Project

General

Profile

Bug #16457

Inventory fails with errors on CentOS/RHEL 8

Added by Marius Rieck 3 months ago. Updated 3 months ago.

Status:
Released
Priority:
N/A
Category:
Agent
Target version:
Severity:
User visibility:
Effort required:
Priority:
0

Description

Hello There,
I installed the 6.0.1 root server and agent on a CentOS 8 Server.
The Agent is not reporting any inventory data to the server.
The agent (on the root server) can't run the inventory, reporting the following errors:

# rudder agent inventory
Rudder agent 6.0.1.release
Node uuid: root
   error: Finished command related to promiser '/opt/rudder/bin/run-inventory --local=/var/rudder/tmp/inventory/svtc-app-03-root.ocs' -- an error occurred, returned 2
Start execution with config [20191223-110551-d8a97744]

M| State         Technique                 Component                 Key                Message
E| error         Inventory                 inventory                                    Could not execute the inventory
   error: Method 'fusionAgent' failed in some repairs
   error: Method 'doInventory_always' failed in some repairs
info     Rudder agent was run on a subset of policies - not all policies were checked

## Summary #####################################################################
1 components verified in 3 directives
   => 1 components in Enforce mode
      -> 1 error
Execution time: 2.16s
################################################################################

I also attached the Debug output.

Greetings,
Marius Rieck


Related issues

Has duplicate Rudder - Bug #16523: Missing perl-Getopt-Long dependency for fusion on some CentOS8 systemsRejectedActions
#1

Updated by Marius Rieck 3 months ago

I Also get the same Inventory Errors on a RHEL8 server with only the 6.0.1 Agent installed:

rudder agent run
Rudder agent 6.0.1.release
Node uuid: 236f863a-ac22-41a6-ace5-1470cad38494
Start execution with config [0]

M| State         Technique                 Component                 Key                Message
E| compliant     Common                    ncf Initialization                           Configuration library initialization was correct
E| compliant     Common                    Security parameters                          The internal environment security is acceptable
E| compliant     Common                    CRON Daemon                                  Cron daemon status was correct
   error: Finished command related to promiser '/opt/rudder/bin/run-inventory --local=/var/rudder/tmp/inventory/sppr-hs-01-236f863a-ac22-41a6-ace5-1470cad38494.ocs' -- an error occurred, returned 2
E| error         Inventory                 inventory                                    Could not execute the inventory
   error: Method 'fusionAgent' failed in some repairs
E| compliant     Inventory                 inventory                                    Next inventory scheduled between 00:00 and 06:00
   error: Method 'doInventory_always' failed in some repairs
   error: Method 'doInventory' failed in some repairs

## Summary #####################################################################
5 components verified in 4 directives
   => 5 components in Enforce mode
      -> 4 compliant
      -> 1 error
Execution time: 0.79s
################################################################################
#2

Updated by Marius Rieck 3 months ago

  • Subject changed from Rudder Agent Inventory fails with errors on root-node (CentOS 8) to Rudder Agent Inventory fails with errors on (CentOS 8 and RHEL 8)
#3

Updated by Jakob Overgaard 3 months ago

I had had the same issue. It was caused by missing Perl (Can't locate Memoize.pm in @INC (you may need to install the Memoize module) module.

"yum install perl" did the trick on my CentOS 8.

#4

Updated by Marius Rieck 3 months ago

Jakob Overgaard wrote:

I had had the same issue. It was caused by missing Perl (Can't locate Memoize.pm in @INC (you may need to install the Memoize module) module.

"yum install perl" did the trick on my CentOS 8.

Thanks for the advice. This solved the error.
Maybe checking this dependency before installing the agent would be nice.

#5

Updated by Alexis MOUSSET 3 months ago

  • Assignee set to Alexis MOUSSET
  • Target version set to 6.0.2
#6

Updated by Alexis MOUSSET 3 months ago

  • Description updated (diff)
#7

Updated by Alexis MOUSSET 3 months ago

  • Target version changed from 6.0.2 to 5.0.16

Probably also happens on 5.0.

#8

Updated by Alexis MOUSSET 3 months ago

  • Status changed from New to In progress
#9

Updated by Alexis MOUSSET 3 months ago

  • Target version changed from 5.0.16 to 6.0.2

Only 6.0

#10

Updated by Alexis MOUSSET 3 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis MOUSSET to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/2179
#11

Updated by Alexis MOUSSET 3 months ago

  • Status changed from Pending technical review to Pending release
#13

Updated by Alexis MOUSSET 3 months ago

  • Subject changed from Rudder Agent Inventory fails with errors on (CentOS 8 and RHEL 8) to Inventory fails with errors on CentOS/RHEL 8
#14

Updated by Alexis MOUSSET 3 months ago

  • Has duplicate Bug #16523: Missing perl-Getopt-Long dependency for fusion on some CentOS8 systems added
#15

Updated by Vincent MEMBRÉ 3 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 6.0.2 which was released today.

Also available in: Atom PDF