Actions
Bug #4689
closedFusionInventory warnings on AIX in LVM module
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
When FusionInventory is run on AIX (5.3), the following warnings are displayed:
Use of uninitialized value $_ in pattern match (m//) at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Input/AIX/LVM.pm line 71, <$handle> line 1. Use of uninitialized value $_ in pattern match (m//) at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Input/AIX/LVM.pm line 71, <$handle> line 2. Use of uninitialized value $_ in pattern match (m//) at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Input/AIX/LVM.pm line 71, <$handle> line 3. Use of uninitialized value $_ in pattern match (m//) at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Input/AIX/LVM.pm line 71, <$handle> line 4. Use of uninitialized value $_ in pattern match (m//) at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Input/AIX/LVM.pm line 71, <$handle> line 5. Use of uninitialized value $_ in pattern match (m//) at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Input/AIX/LVM.pm line 71, <$handle> line 6. Use of uninitialized value $_ in pattern match (m//) at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Input/AIX/LVM.pm line 71, <$handle> line 7. Use of uninitialized value $_ in pattern match (m//) at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Input/AIX/LVM.pm line 71, <$handle> line 8. Use of uninitialized value $_ in pattern match (m//) at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Input/AIX/LVM.pm line 71, <$handle> line 9. Use of uninitialized value $_ in pattern match (m//) at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Input/AIX/LVM.pm line 71, <$handle> line 10. Use of uninitialized value $_ in pattern match (m//) at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Input/AIX/LVM.pm line 71, <$handle> line 11. Use of uninitialized value $_ in pattern match (m//) at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Input/AIX/LVM.pm line 71, <$handle> line 12. Use of uninitialized value $_ in pattern match (m//) at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Input/AIX/LVM.pm line 71, <$handle> line 13. Use of uninitialized value $_ in pattern match (m//) at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Input/AIX/LVM.pm line 71, <$handle> line 14. Use of uninitialized value $params{"name"} in concatenation (.) or string at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Input/AIX/LVM.pm line 92. Use of uninitialized value $size in multiplication (*) at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Input/AIX/LVM.pm line 83. Use of uninitialized value in multiplication (*) at /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Input/AIX/LVM.pm line 83.
This doesn't seem to be particularly bad, since Rudder doesn't actually read in the LVM data. And the inventory generated does contain some LVM data anyway:
<LOGICAL_VOLUMES> <SIZE>0</SIZE> <VG_UUID>rootvg</VG_UUID> </LOGICAL_VOLUMES> <PHYSICAL_VOLUMES> <ATTR>VG rootvg</ATTR> <DEVICE>/dev/hdisk0</DEVICE> <FORMAT>AIX PV hdisk0</FORMAT> <FREE>0</FREE> <PE_SIZE>64</PE_SIZE> <PV_PE_COUNT>435</PV_PE_COUNT> <PV_UUID>0002a827ae18e3cf</PV_UUID> <SIZE>27840</SIZE> </PHYSICAL_VOLUMES> <PHYSICAL_VOLUMES> <ATTR>VG rootvg</ATTR> <DEVICE>/dev/hdisk1</DEVICE> <FORMAT>AIX PV hdisk1</FORMAT> <FREE>23744</FREE> <PE_SIZE>64</PE_SIZE> <PV_PE_COUNT>799</PV_PE_COUNT> <PV_UUID>0002a827ae6f772c</PV_UUID> <SIZE>51136</SIZE> </PHYSICAL_VOLUMES> <VOLUME_GROUPS> <FREE>371</FREE> <LV_COUNT>11</LV_COUNT> <PV_COUNT>2</PV_COUNT> <SIZE>1234</SIZE> <VG_EXTENT_SIZE>64</VG_EXTENT_SIZE> <VG_NAME>rootvg</VG_NAME> <VG_UUID>0002a8270000d6000000014407aee688</VG_UUID> </VOLUME_GROUPS>
Updated by Matthieu CERDA over 10 years ago
- Status changed from New to Discussion
- Assignee set to Jonathan CLARKE
- Priority changed from 4 to 3
I am unable to reproduce this on FusionInventory 2.3.6, which we currently use:
root@machine:~/FusionInventory-Agent-2.3.6# /opt/rudder/bin/perl -I /opt/rudder/lib/perl5 bin/fusioninventory-agent --config=none --local=/tmp --debug [debug] FusionInventory Agent (2.3.6) [debug] Configuration directory: ./etc [debug] Data directory: ./share [debug] Storage directory: ./var [debug] Lib directory: ./lib [debug] [target local0] Next server contact planned for Tue Apr 8 13:06:16 2014 [debug] Available tasks: [debug] - Inventory: 1.0 [debug] - WakeOnLan: 2.0 [debug] - NetDiscovery: 2.2.0 [debug] - NetInventory: 2.2.0 [debug] FusionInventory Agent initialised [debug] running task Inventory [debug] FusionInventory Inventory task 1.0 [debug] --scan-homedirs missing. Don't scan user directories [debug] Running FusionInventory::Agent::Task::Inventory::Generic [debug] Running FusionInventory::Agent::Task::Inventory::AIX [debug] Running FusionInventory::Agent::Task::Inventory::AIX::CPU [debug] Running FusionInventory::Agent::Task::Inventory::AIX::Controllers [debug] Running FusionInventory::Agent::Task::Inventory::AIX::Drives [debug] Running FusionInventory::Agent::Task::Inventory::AIX::LVM [debug] Running FusionInventory::Agent::Task::Inventory::AIX::Memory [debug] Running FusionInventory::Agent::Task::Inventory::AIX::Modems [debug] Running FusionInventory::Agent::Task::Inventory::AIX::Networks [debug] Running FusionInventory::Agent::Task::Inventory::AIX::Slots [debug] Running FusionInventory::Agent::Task::Inventory::AIX::Softwares [debug] Running FusionInventory::Agent::Task::Inventory::AIX::Sounds [debug] Running FusionInventory::Agent::Task::Inventory::AIX::Storages [debug] Running FusionInventory::Agent::Task::Inventory::AIX::Videos [debug] Running FusionInventory::Agent::Task::Inventory::AccessLog [debug] Running FusionInventory::Agent::Task::Inventory::Generic::Domains [debug] Running FusionInventory::Agent::Task::Inventory::Generic::Environment [debug] Running FusionInventory::Agent::Task::Inventory::Generic::Hostname [debug] Running FusionInventory::Agent::Task::Inventory::Generic::Processes [debug] Running FusionInventory::Agent::Task::Inventory::Generic::SSH [debug] Running FusionInventory::Agent::Task::Inventory::Generic::Softwares [debug] Running FusionInventory::Agent::Task::Inventory::Generic::Softwares::RPM [debug] Running FusionInventory::Agent::Task::Inventory::Generic::Storages [debug] Running FusionInventory::Agent::Task::Inventory::Generic::Users [debug] Running FusionInventory::Agent::Task::Inventory::Virtualization [debug] Running FusionInventory::Agent::Task::Inventory::Virtualization::Vmsystem [debug] last state file './var/__LOCAL__/last_state' doesn't exist [debug] Section INPUT has changed since last inventory [debug] Section BIOS has changed since last inventory [debug] Section PRINTERS has changed since last inventory [debug] Section VIDEOS has changed since last inventory [debug] Section HARDWARE has changed since last inventory [debug] Section SOUNDS has changed since last inventory [debug] Section SOFTWARES has changed since last inventory [debug] Section MEMORIES has changed since last inventory [debug] Section CONTROLLERS has changed since last inventory [debug] Section STORAGES has changed since last inventory [debug] Section NETWORKS has changed since last inventory [debug] Section MODEMS has changed since last inventory [debug] Section MONITORS has changed since last inventory [debug] Section DRIVES has changed since last inventory [debug] Section PORTS has changed since last inventory [debug] Section REGISTRY has changed since last inventory [debug] Section SLOTS has changed since last inventory [info] Inventory saved in /tmp/machine-2014-04-08-12-12-54.ocs [debug] running task WakeOnLan [info] task WakeOnLan execution not requested [debug] running task NetDiscovery [info] task NetDiscovery execution not requested [debug] running task NetInventory [info] task NetInventory execution not requested
On which version has this been encountered ?
Updated by Jonathan CLARKE over 10 years ago
- Status changed from Discussion to Rejected
This was occurring using the older, 2.2 version of Fusion. Closing this.
Updated by Benoît PECCATTE over 9 years ago
- Project changed from 34 to Rudder
- Category set to Packaging
Actions