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.
Updated by Nicolas CHARLES over 7 years ago
Running
rudder agent inventory
generates correctly the inventory
Updated by Nicolas CHARLES over 7 years ago
- Status changed from New to In progress
Updated by Nicolas CHARLES over 7 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to Benoît PECCATTE
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/1147
Updated by Nicolas CHARLES over 7 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-techniques|713b77624c622ec59963b91ce5c424446fd67a61.
Updated by François ARMAND over 7 years ago
- Subject changed from No generation of inventory at install to During install, inventory generated into bad file path: /var/rudder/${inventory_path}
- Description updated (diff)
- User visibility changed from First impressions of Rudder to Getting started - demo | first install | level 1 Techniques
- Effort required set to Very Small
Updated by Vincent MEMBRÉ over 7 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 4.0.6 and 4.1.2 which were released today.
- 4.0.6: Announce Changelog
- 4.1.2: Announce Changelog
- Download: https://www.rudder-project.org/site/get-rudder/downloads/
Actions