Project

General

Profile

Actions

Bug #16457

closed

Inventory fails with errors on CentOS/RHEL 8

Added by Marius Rieck almost 5 years ago. Updated almost 5 years ago.

Status:
Released
Priority:
N/A
Category:
Agent
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Reviewed
Fix check:
Checked
Regression:

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 1 (0 open1 closed)

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

Updated by Marius Rieck almost 5 years 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
################################################################################
Actions #2

Updated by Marius Rieck almost 5 years 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)
Actions #3

Updated by Jakob Overgaard almost 5 years 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.

Actions #4

Updated by Marius Rieck almost 5 years 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.

Actions #5

Updated by Alexis Mousset almost 5 years ago

  • Assignee set to Alexis Mousset
  • Target version set to 6.0.2
Actions #6

Updated by Alexis Mousset almost 5 years ago

  • Description updated (diff)
Actions #7

Updated by Alexis Mousset almost 5 years ago

  • Target version changed from 6.0.2 to 5.0.16

Probably also happens on 5.0.

Actions #8

Updated by Alexis Mousset almost 5 years ago

  • Status changed from New to In progress
Actions #9

Updated by Alexis Mousset almost 5 years ago

  • Target version changed from 5.0.16 to 6.0.2

Only 6.0

Actions #10

Updated by Alexis Mousset almost 5 years 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
Actions #11

Updated by Alexis Mousset almost 5 years ago

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

Updated by Vincent MEMBRÉ almost 5 years ago

  • Fix check changed from To do to Checked
Actions #13

Updated by Alexis Mousset almost 5 years 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
  • Name check changed from To do to Reviewed
Actions #14

Updated by Alexis Mousset almost 5 years ago

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

Updated by Vincent MEMBRÉ almost 5 years ago

  • Status changed from Pending release to Released

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

Actions

Also available in: Atom PDF