Project

General

Profile

Bug #10774

During install, inventory generated into bad file path: /var/rudder/${inventory_path}

Added by Nicolas CHARLES 4 months ago. Updated 4 months ago.

Status:
Released
Priority:
N/A
Category:
Initial promises & sys tech
Target version:
Target version (plugin):
Severity:
Major - prevents use of part of Rudder | no simple workaround
User visibility:
Getting started - demo | first install | level 1 Techniques
Effort required:
Very Small
Priority:
0

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.

Associated revisions

Revision 713b7762
Added by Nicolas CHARLES 4 months ago

Fixes #10774: No generation of inventory at install

History

#1 Updated by Nicolas CHARLES 4 months ago

Running

rudder agent inventory

generates correctly the inventory

#2 Updated by Nicolas CHARLES 4 months ago

  • Status changed from New to In progress

#3 Updated by Nicolas CHARLES 4 months 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

#4 Updated by Nicolas CHARLES 4 months ago

  • Status changed from Pending technical review to Pending release

#5 Updated by François ARMAND 4 months 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

#6 Updated by Vincent MEMBRÉ 4 months 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.

Also available in: Atom PDF