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.
Updated by Olivier Mauras over 11 years ago
Thanks for redmine formatting, system-release contains something like "Scientific Linux release 6.4 (Carbon)" line is a comment.
Updated by François ARMAND over 11 years ago
- Status changed from New to 8
- Assignee set to Vincent MEMBRÉ
- Priority changed from 5 (lowest) to 2
- Target version changed from 2.7.1 to 2.4.8
This one is only for the Fusion inventory part.
Updated by Vincent MEMBRÉ over 11 years ago
- Status changed from 8 to Pending technical review
- Assignee changed from Vincent MEMBRÉ to Nicolas PERRON
- Pull Request set to https://github.com/Normation/rudder-packages/pull/97
Pull request here : https://github.com/Normation/rudder-packages/pull/97
Updated by Vincent MEMBRÉ over 11 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset packages:commit:4de2d5359cbb74b38f6e628104bb13a75f6ca377.
Updated by Nicolas PERRON over 11 years ago
Applied in changeset packages:commit:ef3c10978a58afdf4097419d10ceafb53073d00c.
Updated by Nicolas PERRON about 11 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.4.8, which was released today.
Check out:
- The release announcement: http://www.rudder-project.org/pipermail/rudder-announce/2013-September/000044.html
- The full ChangeLog: http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog24
- Download information: http://www.rudder-project.org/foswiki/Download/
Updated by Benoît PECCATTE over 9 years ago
- Category changed from 26 to Web - Nodes & inventories