Project

General

Profile

Actions

Bug #3834

closed

Inventory doesn't support Scientific Linux - Os Name = Red Hat

Added by Olivier Mauras over 10 years ago. Updated about 9 years ago.

Status:
Released
Priority:
2
Assignee:
Nicolas PERRON
Category:
Web - Nodes & inventories
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

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

  1. 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.


Related issues 2 (0 open2 closed)

Related to Rudder - Bug #3835: OS Full name should be queriableReleasedVincent MEMBRÉ2013-08-14Actions
Related to Rudder - Bug #3836: Missing support for OS "Scientific linux" and "Unbreakable Linux"ReleasedVincent MEMBRÉ2013-08-14Actions
Actions

Also available in: Atom PDF