Actions
Bug #10774
closedDuring install, inventory generated into bad file path: /var/rudder/${inventory_path}
Pull Request:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Getting started - demo | first install | level 1 Techniques
Effort required:
Very Small
Priority:
0
Name check:
Fix check:
Regression:
Description
At fresh install, on a node, inventory is generated in the path "/var/rudder/${inventory_path}" (verbatim) and so is not found when the agent try to send it:
rudder info: Executing 'no timeout' ... '/usr/bin/curl -L -k -1 -s -f --proxy '' -o "/var/rudder/cfengine-community/rudder-server-uuid.txt" https://192.168.41.2/uuid' rudder info: Completed execution of '/usr/bin/curl -L -k -1 -s -f --proxy '' -o "/var/rudder/cfengine-community/rudder-server-uuid.txt" https://192.168.41.2/uuid' rudder info: Created directory '/var/rudder/tmp/inventory/.' rudder info: Created directory '/var/rudder/reports/.' rudder info: Executing 'no timeout' ... '/opt/rudder/bin/run-inventory --local=${inventory_path}' notice: Q: "...-inventory --lo": [info] FusionInventory instance: builtin Q: "...-inventory --lo": [info] running task Inventory Q: "...-inventory --lo": [info] Inventory saved in ${inventory_path} Q: "...-inventory --lo": [error] Can't locate object method "isEnabled" via package "FusionInventory::Agent::Task::Deploy" at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent.pm line 473. rudder info: Last 4 quoted lines were generated by promiser '/opt/rudder/bin/run-inventory --local=${inventory_path}' rudder info: Completed execution of '/opt/rudder/bin/run-inventory --local=${inventory_path}'
Cause is inventory_path is not defined, bevause class intial_promises is not in global scope. This was introduced in #10641
Running "rudder agent inventory" repaires the problem.
Actions