View Issue Details

IDProjectCategoryView StatusLast Update
0001110bareos-core[All Projects] file daemonpublic2019-09-05 13:08
ReporterstephandAssigned To 
PrioritylowSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version18.2.7 
Target VersionFixed in Version 
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
bareos-master: impact
bareos-master: action
bareos-18.2: impact
bareos-18.2: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action

Relationships

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

Activities

There are no notes attached to this issue.

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