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>
Actions