Bug 21835 - update request: fusioninventory-agent
Summary: update request: fusioninventory-agent
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA6-32-OK MGA6-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2017-10-11 21:25 CEST by Guillaume Rousse
Modified: 2017-10-30 20:24 CET (History)
3 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Guillaume Rousse 2017-10-11 21:25:41 CEST
The fusioninventory-agent package shipped in mageia 6 lacks some private perl modules, preventing all tasks (excepted the local inventory one) to works correctly. For instance, with the fusioninventory-netdiscovery executable, from fusioninventory-agent-task-network package: 

[guillaume@netchaiev ~]$ fusioninventory-netdiscovery --first 192.168.0.1 --last 192.168.0.254
Can't locate FusionInventory/Agent/Task/NetDiscovery/Version.pm in @INC (you may need to install the FusionInventory::Agent::Task::NetDiscovery::Version module) (@INC contains: /usr/share/fusioninventory/lib /usr/lib/perl5/site_perl/5.22.3/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.22.3 /usr/lib/perl5/vendor_perl/5.22.3/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.22.3 /usr/lib/perl5/5.22.3/x86_64-linux-thread-multi /usr/lib/perl5/5.22.3 /usr/lib/perl5/site_perl/5.22.2 /usr/lib/perl5/site_perl/5.22.2/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.20.1 /usr/lib/perl5/site_perl/5.18.1 /usr/lib/perl5/site_perl/5.16.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.22.2 /usr/lib/perl5/vendor_perl/5.22.2/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.22.0 /usr/lib/perl5/vendor_perl/5.20.1 /usr/lib/perl5/vendor_perl/5.18.1 /usr/lib/perl5/vendor_perl/5.16.3 /usr/lib/perl5/vendor_perl/5.16.2 /usr/lib/perl5/vendor_perl .) at /usr/share/fusioninventory/lib/FusionInventory/Agent/Task/NetDiscovery.pm line 24.
BEGIN failed--compilation aborted at /usr/share/fusioninventory/lib/FusionInventory/Agent/Task/NetDiscovery.pm line 24.
Compilation failed in require at /usr/bin/fusioninventory-netdiscovery line 13.
BEGIN failed--compilation aborted at /usr/bin/fusioninventory-netdiscovery line 13.

The fusioninventory-agent-2.3.20-1.1.mga6 release, from mageia 6 core/updates_testing, fix the issue.
Comment 1 Herman Viaene 2017-10-21 17:19:50 CEST
MGA6-32 on Asus A6000VM MATE
Installed all fusioninventory-agent-xxxx packages in testing updates
At CLI following Guillaume's lead I get as feedback:
[info] Can't load Net::NBName, netbios can't be used
<?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
  <CONTENT>
    <DEVICE>
      <AUTHSNMP>1</AUTHSNMP>
      <CONTACT>Root &lt;root@localhost&gt; (configure /etc/snmp/snmp.local.conf)</CONTACT>
and some more refering to the laptop running the command, and then
<?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
  <CONTENT>
    <DEVICE>
      <DNSHOSTNAME>gateway</DNSHOSTNAME>
refering to my router
and then the process hangs. I guess the reason is that my desktop PC is running, but its firewall is restricted, so the laptop sees it,but does not get any answer.
OK for me.

CC: (none) => herman.viaene
Whiteboard: (none) => MGA6-32-OK

Comment 2 Lewis Smith 2017-10-27 11:22:11 CEST
What packages are in involved seem to be all except 'the local inventory one', which all derive from the same SRPM 'fusioninventory-agent'; most offer binaries:
 fusioninventory-agent
  /usr/bin/fusioninventory-agent
  /usr/bin/fusioninventory-injector
 fusioninventory-agent-task-collect
  [Not in M5 where I am currently]
 fusioninventory-agent-task-deploy
  [/usr/share/ things]
 fusioninventory-agent-task-esx
  /usr/bin/fusioninventory-esx
 fusioninventory-agent-task-inventory
  /usr/bin/fusioninventory-inventory
 fusioninventory-agent-task-network
  /usr/bin/fusioninventory-netdiscovery       *** Guillaume's example
  /usr/bin/fusioninventory-netinventory
 fusioninventory-agent-task-wakeonlan
  /usr/bin/fusioninventory-wakeonlan
The original description was really "The fusioninventory-agent packages..." 
I shall move to Mageia 6 and try these.

CC: (none) => lewyssmith

Comment 3 Lewis Smith 2017-10-27 12:34:03 CEST
Testing M6/64
Re previous comment, task-collect has just
 /usr/share/fusioninventory/lib/FusionInventory/Agent/Task/Collect.pm

BEFORE the update, installed all:
- fusioninventory-agent-2.3.20-1.mga6.noarch
- fusioninventory-agent-task-collect-2.3.20-1.mga6.noarch
- fusioninventory-agent-task-deploy-2.3.20-1.mga6.noarch
- fusioninventory-agent-task-esx-2.3.20-1.mga6.noarch
- fusioninventory-agent-task-inventory-2.3.20-1.mga6.noarch
- fusioninventory-agent-task-network-2.3.20-1.mga6.noarch
- fusioninventory-agent-task-wakeonlan-2.3.20-1.mga6.noarch
which also added 12 Perl pkgs.

# fusioninventory-agent -l fusion
[info] running task Inventory
[info] Inventory saved in fusion

# fusioninventory-injector -f fusion

# fusioninventory-esx -h
The error.

# fusioninventory-inventory --scan-homedirs > before
[Produces a big XML file]

# fusioninventory-netdiscovery --first 192.168.0.1 --last 192.168.0.254
The error.

# fusioninventory-netinventory -h
The error.

# fusioninventory-wakeonlan -h
The error.
-----------------------------------------------
AFTER the update:
- fusioninventory-agent-2.3.20-1.1.mga6.noarch
- fusioninventory-agent-task-collect-2.3.20-1.1.mga6.noarch
- fusioninventory-agent-task-deploy-2.3.20-1.1.mga6.noarch
- fusioninventory-agent-task-esx-2.3.20-1.1.mga6.noarch
- fusioninventory-agent-task-inventory-2.3.20-1.1.mga6.noarch
- fusioninventory-agent-task-network-2.3.20-1.1.mga6.noarch
- fusioninventory-agent-task-wakeonlan-2.3.20-1.1.mga6.noarch

# fusioninventory-agent -l fusion
# fusioninventory-injector -f fusion
Same outputs as before, which did not show th error.

# fusioninventory-esx -h
# fusioninventory-esx --host localhost
Correct O/Ps, NO error.

# fusioninventory-inventory --scan-homedirs > after
As previously, did not show the error.
The big XML file produced was *not* identical to before, but no matter.

# fusioninventory-netdiscovery --first 192.168.0.1 --last 192.168.0.254
  did *not* throw th error; produced O/P like comment 1, but neater:
[info] Can't load Net::NBName, netbios can't be used
<?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
...
</REQUEST>
^C

# fusioninventory-netinventory -h
# fusioninventory-netinventory --file fusion2
[error] SNMP emulation error: non-existing file 'fusion2'
<?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
...
</REQUEST>
 did *not* throw the error.

# fusioninventory-wakeonlan -h
 worked, did *not* throw the error.

So this update does indeed stop the reported error where that occured for:
 fusioninventory-esx
 fusioninventory-netdiscovery
 fusioninventory-netinventory
 fusioninventory-wakeonlan
OK. Validating, advisory to follow.

Whiteboard: MGA6-32-OK => MGA6-32-OK MGA6-64-OK
Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 4 Lewis Smith 2017-10-27 12:45:01 CEST
Advisory made from commenst 0 & 3, and updates RPMs link.

Keywords: (none) => advisory

Comment 5 Mageia Robot 2017-10-30 20:24:08 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2017-0100.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.