View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001106 | bareos-core | director | public | 2019-08-01 17:50 | 2024-03-20 14:43 |
Reporter | b.braunger@syseleven.de | Assigned To | stephand | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Linux | OS | Ubuntu | OS Version | 16.04 |
Product Version | 18.2.6 | ||||
Summary | 0001106: Director's not sending Plugin Options to FileDaemon | ||||
Description | I want to use a fileset with a python command plugin for multiple jobs and give extra key value pairs to the plug via the "FD Plugin Options" parameter. As far as I understand the docs I can add options to the "FD Plugin Options" in the job resource which then will be passed to the Plugin additionally to the Options set in the fileset. Sadly nothing but the Options String from the fileset is sent to the FD Plugin no matter what I define. This extends to the Plugin Options which are set via bconsole they're all ignored. | ||||
Steps To Reproduce | FileSet { Name = "testing" Include { Plugin = "python:module_path=/usr/lib64/bareos/plugins:module_name=test_plugin:from=fileset" } } Job { Name = backup-bareos-test FileSet = testing FD Plugin Options = "python:from=job" } * run job=backup-bareos-test pluginoptions="from=bconsole" yes | ||||
Additional Information | Doc: https://docs.bareos.org/Configuration/Director.html#config-Dir_Job_FdPluginOptions With debug over 500 one can see the "from=fileset" option being passed to the FD and parsed by the python plugin. With TLS Enable = no and TCPdump one can see that no other Option string is sent to the FD | ||||
Tags | director, fd, plugin | ||||
related to | 0001110 | closed | bruno-at-bareos | BareosFdPluginBaseclass:parse_plugin_definition() does not allow to override plugin options using FD Plugin Options in Job |
maybe related: https://bugs.bareos.org/view.php?id=733 | |
So I worked my way through the source code and roughly patched a version together which finally send all FD related plugin options to the FD: https://github.com/bareos/bareos/pull/238 |
|
So I need a bit of support here: 1) Is there any reason why the plugin options are split into "jcr->plugin_options" and "jcr->res.job->FdPluginOptions"? 2) Does anyone contradict to send all plugin options to the FD? 3) Any other suggestions on the PR? I have no experience in cpp at all. |
|
This is fixed and merged by https://github.com/bareos/bareos/pull/238 | |
PR merged | |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-08-01 17:50 | b.braunger@syseleven.de | New Issue | |
2019-08-01 17:50 | b.braunger@syseleven.de | Tag Attached: director | |
2019-08-01 17:50 | b.braunger@syseleven.de | Tag Attached: fd | |
2019-08-01 17:50 | b.braunger@syseleven.de | Tag Attached: plugin | |
2019-08-01 17:51 | b.braunger@syseleven.de | Note Added: 0003552 | |
2019-08-01 17:54 | b.braunger@syseleven.de | Note Added: 0003553 | |
2019-08-01 18:08 | b.braunger@syseleven.de | Note Added: 0003554 | |
2019-09-05 12:44 | stephand | Assigned To | => stephand |
2019-09-05 12:44 | stephand | Status | new => assigned |
2019-09-05 13:08 | stephand | Relationship added | related to 0001110 |
2019-10-14 12:10 | b.braunger@syseleven.de | Note Added: 0003596 | |
2024-03-20 14:43 | bruno-at-bareos | Status | assigned => closed |
2024-03-20 14:43 | bruno-at-bareos | Resolution | open => fixed |
2024-03-20 14:43 | bruno-at-bareos | Note Added: 0005855 |