View Issue Details

IDProjectCategoryView StatusLast Update
0001110bareos-corefile daemonpublic2023-10-24 09:35
Reporterstephand Assigned Tobruno-at-bareos  
PrioritylowSeverityminorReproducibilityalways
Status closedResolutionsuspended 
Product Version18.2.7 
Summary0001110: BareosFdPluginBaseclass:parse_plugin_definition() does not allow to override plugin options using FD Plugin Options in Job
DescriptionCurrently, the code does not allow to override plugin options set from FileSet by using
the FD Plugin Options parameter in a Job resource.
As a user/admin, I want to be able to override the more general settings (FileSet) by more
specific settings (Job).

See
https://github.com/bareos/bareos/blob/02f72235abaa5acacc5e672bbe6af1a9253f9479/core/src/plugins/filed/BareosFdPluginBaseclass.py#L99
Steps To ReproduceExample FileSet:

FileSet {
  Name = "vm_generic_fileset"
  Include {
    Options {
      ...
    }
    Plugin = "python:module_path=/usr/lib64/bareos/plugins/vmware_plugin:module_name=bareos-fd-vmware:dc=mydc:folder=/my/vmfolder:vmname=myvm:vcserver=myvc.example.com:vcuser=bakadm@vsphere.local:vcpass=myexamplepassword"
  }
}

And example Job definition:

Job {
  Name = "vm_test02_job"
  JobDefs = "DefaultJob"
  FileSet = "vm_generic_fileset"
  FD Plugin Options = "python:folder=/dmz:vmname=fw01"
}

The above options from "FD Plugin Options" do currently not override the options declared in the FileSet,
it is only possible to add options not yet declared in the FileSet.
Tagsfd, plugin

Relationships

related to 0001106 closedstephand Director's not sending Plugin Options to FileDaemon 

Activities

bruno-at-bareos

bruno-at-bareos

2023-07-20 10:27

manager   ~0005236

Would be nice to have.
bruno-at-bareos

bruno-at-bareos

2023-10-24 09:35

manager   ~0005477

The task concerning this feature is registered now.

Issue History

Date Modified Username Field Change
2019-09-05 13:07 stephand New Issue
2019-09-05 13:07 stephand Tag Attached: fd
2019-09-05 13:07 stephand Tag Attached: plugin
2019-09-05 13:08 stephand Relationship added related to 0001106
2023-07-20 10:27 bruno-at-bareos Note Added: 0005236
2023-10-24 09:35 bruno-at-bareos Assigned To => bruno-at-bareos
2023-10-24 09:35 bruno-at-bareos Status new => closed
2023-10-24 09:35 bruno-at-bareos Resolution open => suspended
2023-10-24 09:35 bruno-at-bareos Note Added: 0005477