Project

General

Profile

Actions

Bug #10774

closed

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

Added by Nicolas CHARLES almost 7 years ago. Updated almost 7 years ago.

Status:
Released
Priority:
N/A
Category:
System techniques
Target version:
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 #1

Updated by Nicolas CHARLES almost 7 years ago

Running

rudder agent inventory

generates correctly the inventory

Actions #2

Updated by Nicolas CHARLES almost 7 years ago

  • Status changed from New to In progress
Actions #3

Updated by Nicolas CHARLES almost 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
Actions #4

Updated by Nicolas CHARLES almost 7 years ago

  • Status changed from Pending technical review to Pending release
Actions #5

Updated by François ARMAND almost 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
Actions #6

Updated by Vincent MEMBRÉ almost 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.

Actions

Also available in: Atom PDF