Project

General

Profile

Actions

Bug #9433

closed

Incorrect inventory on Rudder server

Added by Alexis Mousset over 7 years ago. Updated over 7 years ago.

Status:
Released
Priority:
N/A
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

rudder     info: Automatically promoting context scope for 'heartbeat_sent' to namespace visibility, due to persistence
rudder     info: Executing 'no timeout' ... '/usr/bin/curl -L -k -1 -s -f --proxy '' -o "/var/rudder/cfengine-community/rudder-server-uuid.txt" https://127.0.0.1/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://127.0.0.1/uuid'
rudder     info: Executing 'no timeout' ... '/opt/rudder/bin/run-inventory --local=/var/rudder/tmp/inventory/server-root.ocs --scan-homedirs'
  notice: Q: "...-inventory --lo": [info] FusionInventory instance: builtin
Q: "...-inventory --lo": [info] running task Inventory
Q: "...-inventory --lo": String found where operator expected at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Virtualization/Vmsystem.pm line 23, near "': QEMU Standard PC'" 
Q: "...-inventory --lo":     (Missing semicolon on previous line?)
Q: "...-inventory --lo": [info] Inventory saved in /var/rudder/tmp/inventory/server-root.ocs
rudder     info: Last 5 quoted lines were generated by promiser '/opt/rudder/bin/run-inventory --local=/var/rudder/tmp/inventory/server-root.ocs --scan-homedirs'
rudder     info: Completed execution of '/opt/rudder/bin/run-inventory --local=/var/rudder/tmp/inventory/server-root.ocs --scan-homedirs'
M| State         Technique                 Component                 Key                Message
   info          Inventory                 inventory                                    Running inventory
   info          Inventory                 inventory                                    Curl installed
rudder     info: Executing 'no timeout' ... '/var/rudder/tools/cpuid-linux-V1.0.sh  > /var/rudder/tmp/cpuid.arc'
rudder     info: Completed execution of '/var/rudder/tools/cpuid-linux-V1.0.sh  > /var/rudder/tmp/cpuid.arc'
   info          Inventory                 inventory                                    Generated the CPUID
   info          Inventory                 inventory                                    The user list generation tool is not present yet. Skipping...
rudder     info: Edit file '/var/rudder/tmp/inventory/server-root.ocs'
rudder     info: Edit file '/var/rudder/tmp/inventory/server-root.ocs'
rudder     info: Edit file '/var/rudder/tmp/inventory/server-root.ocs'
E| error         Inventory                 inventory                                    Generated inventory has been detected as invalid
R: ********************************************************************************
* WARNING Generated inventory is not valid, as it is missing mandatory fields. *
* Not sending it to the Rudder Server                                          *
* You can check the invalid inventory in /var/rudder/tmp/inventory/        *
********************************************************************************
Actions #1

Updated by Alexis Mousset over 7 years ago

  • Status changed from New to In progress
  • Assignee set to Alexis Mousset
Actions #2

Updated by Alexis Mousset over 7 years ago

  • Status changed from In progress to New
  • Assignee deleted (Alexis Mousset)
  • returnszero takes 2 arguments, only one given. It breaks the promises when removing the classes, but does not seem to be detected
  • We need to protect the report and methods with a pass2 class in case an inventory already exists

Currently no reporting when fixing this.

Actions #3

Updated by Alexis Mousset over 7 years ago

  • Status changed from New to Pending technical review
  • Assignee set to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/1064
Actions #4

Updated by Alexis Mousset over 7 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
Actions #5

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 318 to 4.0.0~rc2
Actions #6

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 4.0.0~rc2 to 4.0.0~rc1
Actions #7

Updated by Alexis Mousset over 7 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.0.0 which was released the 10th November 2016.

Actions

Also available in: Atom PDF