Bug #3834
closedInventory doesn't support Scientific Linux - Os Name = Red Hat
Description
Inventory running on a Scientific Linux gives the following:
Operating System: Scientific Linux release 6.4 (Carbon)
Operating System Type: Linux
Operating System Name: Red Hat
Operating System Version: 6.4
As "Operating System" cannot be used for queries, OS Name should be "Scientific" for grouping purpose.
$ lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: Scientific
Description: Scientific Linux release 6.4 (Carbon)
Release: 6.4
Codename: Carbon
Inventory with redhat-lsb-core package installed:
<OPERATINGSYSTEM>
<FULL_NAME>Scientific Linux release 6.4 (Carbon)</FULL_NAME>
<KERNEL_NAME>linux</KERNEL_NAME>
<KERNEL_VERSION>2.6.32-042stab076.8</KERNEL_VERSION>
<NAME>Scientific</NAME>
<VERSION>6.4</VERSION>
</OPERATINGSYSTEM>
Inventory without:
<OPERATINGSYSTEM>
<FULL_NAME>Scientific Linux release 6.4 (Carbon)</FULL_NAME>
<KERNEL_NAME>linux</KERNEL_NAME>
<KERNEL_VERSION>2.6.32-358.6.2.el6.x86_64</KERNEL_VERSION>
<NAME>RedHat</NAME>
<VERSION>6.4</VERSION>
</OPERATINGSYSTEM>
Both gives "Red Hat" in Rudder interface.
Fusioninventory should be fixed, in /opt/rudder/share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Input/Linux/Distro/NonLSB.pm to support Scientific Linux if redhat-lsb-core is not installed.
Scientific Linux provides /etc/system-release, so here's the proposed lines to add to NonLSB.pm
- system-release contains something like "Scientific Linux release 6.4 (Carbon)"
[ '/etc/system-release', 'Scientific', 'release ([\d.]+)', '%s' ],
Tested and working, gives the same result as with redhat-lsb-core package installed.
Thanks for supporting this.