Project

General

Profile

Actions

Bug #12040

closed

User story #11741: Use system Perl instead of embedding into rudder-agent if possible

Bug #12033: Script /opt/rudder/bin/run-inventory cannot run FusionInventory on Rudder 4.3

Inventory fails to run (at least on centos7)

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

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

Description

Parent ticket fix was incomplete:

perl -I /opt/rudder/lib/perl5 /opt/rudder/bin/fusioninventory-agent --config=none --no-task=Deploy --local=/var/rudder/tmp/inventory
[error] Can't locate object method "isEnabled" via package "FusionInventory::Agent::Task::ESX" at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent.pm line 473.
[error] Can't locate object method "isEnabled" via package "FusionInventory::Agent::Task::Inventory" at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent.pm line 473.
[error] Can't locate object method "isEnabled" via package "FusionInventory::Agent::Task::Collect" at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent.pm line 473.
root@agent1:/home/vagrant# perl -I /opt/rudder/lib/perl5 /opt/rudder/bin/fusioninventory-agent --config=none --no-task=Deploy --local=/var/rudder/tmp/inventory --debug[debug] FusionInventory Agent (2.3.19)
[debug] Configuration directory: /opt/rudder/etc/fusioninventory
[debug] Data directory: /opt/rudder/share/fusioninventory
[debug] Storage directory: /opt/rudder/var/fusioninventory
[debug] Lib directory: /opt/rudder/share/fusioninventory/lib
[debug] [target local0] Next server contact planned for Wed Jan 24 12:26:47 2018
[debug] Available tasks:
[debug] - ESX: 2.2.2
[debug] - Inventory: 1.1
[debug] - Collect: 2.4.0
[debug] - WakeOnLan: 2.1
[debug] - NetDiscovery: 2.2.2
[debug] - NetInventory: 2.2.2
[debug] Planned tasks:
[debug] - ESX: 2.2.2
[debug] - Inventory: 1.1
[debug] - Collect: 2.4.0
[debug] - WakeOnLan: 2.1
[debug] - NetDiscovery: 2.2.2
[debug] - NetInventory: 2.2.2
[debug] _runTarget
[error] Can't locate object method "isEnabled" via package "FusionInventory::Agent::Task::ESX" at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent.pm line 473.
[error] Can't locate object method "isEnabled" via package "FusionInventory::Agent::Task::Inventory" at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent.pm line 473.
[error] Can't locate object method "isEnabled" via package "FusionInventory::Agent::Task::Collect" at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent.pm line 473.
[debug] WakeOnLan task not compatible with local target
[debug] NetDiscovery task not compatible with local target
[debug] NetInventory task not compatible with local target

Actions #1

Updated by Nicolas CHARLES almost 7 years ago

it does work on Centos6

Actions #2

Updated by Nicolas CHARLES almost 7 years ago

On a working centos6

# rpm -qa | grep perl
perl-Pod-Escapes-1.04-144.el6.x86_64
perl-libs-5.10.1-144.el6.x86_64
perl-Pod-Simple-3.13-144.el6.x86_64
perl-Locale-Maketext-Simple-0.18-144.el6.x86_64
perl-Params-Check-0.26-144.el6.x86_64
perl-Module-Load-0.16-144.el6.x86_64
perl-Test-Harness-3.17-144.el6.x86_64
perl-devel-5.10.1-144.el6.x86_64
perl-Error-0.17015-4.el6.noarch
perl-Git-1.7.1-9.el6_9.noarch
perl-version-0.77-144.el6.x86_64
perl-Module-Pluggable-3.90-144.el6.x86_64
perl-5.10.1-144.el6.x86_64
perl-Module-Load-Conditional-0.30-144.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-144.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-144.el6.x86_64
perl-IPC-Cmd-0.56-144.el6.x86_64

on a non working centos7

# rpm -qa | grep perl
perl-podlators-2.5.1-3.el7.noarch
perl-Encode-2.51-7.el7.x86_64
perl-threads-1.87-4.el7.x86_64
perl-Time-Local-1.2300-2.el7.noarch
perl-threads-shared-1.43-6.el7.x86_64
perl-File-Path-2.09-2.el7.noarch
perl-5.16.3-286.el7.x86_64
perl-Git-1.8.3.1-12.el7_4.noarch
perl-version-0.99.07-2.el7.x86_64
perl-Module-Metadata-1.000018-2.el7.noarch
perl-Locale-Maketext-Simple-0.21-292.el7.noarch
perl-ExtUtils-ParseXS-3.18-3.el7.noarch
perl-IPC-Cmd-0.80-4.el7.noarch
perl-HTTP-Tiny-0.033-3.el7.noarch
perl-Pod-Perldoc-3.20-4.el7.noarch
perl-Text-ParseWords-3.29-4.el7.noarch
perl-Pod-Usage-1.63-3.el7.noarch
perl-macros-5.16.3-286.el7.x86_64
perl-Storable-2.45-3.el7.x86_64
perl-constant-1.27-2.el7.noarch
perl-Socket-2.010-3.el7.x86_64
perl-Time-HiRes-1.9725-3.el7.x86_64
perl-PathTools-3.40-5.el7.x86_64
perl-File-Temp-0.23.01-3.el7.noarch
perl-Filter-1.49-3.el7.x86_64
perl-Getopt-Long-2.40-2.el7.noarch
perl-Error-0.17020-2.el7.noarch
perl-Module-CoreList-2.76.02-292.el7.noarch
perl-Digest-1.17-245.el7.noarch
perl-Test-Harness-3.28-3.el7.noarch
perl-Locale-Maketext-1.23-3.el7.noarch
perl-Params-Check-0.38-2.el7.noarch
perl-ExtUtils-Manifest-1.61-244.el7.noarch
perl-devel-5.16.3-292.el7.x86_64
perl-ExtUtils-MakeMaker-6.68-3.el7.noarch
perl-parent-0.225-244.el7.noarch
perl-Pod-Escapes-1.04-286.el7.noarch
perl-libs-5.16.3-286.el7.x86_64
perl-Exporter-5.68-3.el7.noarch
perl-Carp-1.26-244.el7.noarch
perl-Scalar-List-Utils-1.27-248.el7.x86_64
perl-Pod-Simple-3.28-4.el7.noarch
perl-TermReadKey-2.30-20.el7.x86_64
perl-Module-Load-0.24-3.el7.noarch
perl-Module-Load-Conditional-0.54-3.el7.noarch
perl-ExtUtils-Install-1.58-292.el7.noarch

Actions #3

Updated by Nicolas CHARLES almost 7 years ago

perl-Data-Dumper is missing on Centos 7 !

Actions #4

Updated by Nicolas CHARLES almost 7 years ago

For further reference - method for debuging is perl -I/opt/rudder/lib/perl5 -I/opt/rudder/share/fusioninventory/lib -e 'use FusionInventory::Agent::Task::Inventory'

Actions #5

Updated by Nicolas CHARLES almost 7 years ago

  • Assignee set to Benoît PECCATTE
We should add Data::Dumper in our /opt/rudder/lib/perl5
We also have duplicate fusion inventory :
  1. in /opt/rudder/share/fusioninventory/
  2. and in /opt/rudder/lib/perl5/FusionInventory/

we should prebably drop one of them

Actions #6

Updated by Nicolas CHARLES almost 7 years ago

  • Parent task set to #12033
Actions #7

Updated by Benoît PECCATTE almost 7 years ago

  • Status changed from New to In progress
Actions #8

Updated by Benoît PECCATTE almost 7 years ago

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

Updated by Benoît PECCATTE almost 7 years ago

  • Status changed from Pending technical review to In progress
  • Assignee changed from Alexis Mousset to Benoît PECCATTE
Actions #10

Updated by Benoît PECCATTE almost 7 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Benoît PECCATTE to Nicolas CHARLES
Actions #11

Updated by Benoît PECCATTE almost 7 years ago

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

Updated by Vincent MEMBRÉ almost 7 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.3.0~beta1 which was released today.

Actions

Also available in: Atom PDF