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

Updated by Olivier Mauras over 10 years ago

Thanks for redmine formatting, system-release contains something like "Scientific Linux release 6.4 (Carbon)" line is a comment.

Actions #2

Updated by François ARMAND over 10 years ago

  • Status changed from New to 8
  • Assignee set to Vincent MEMBRÉ
  • Priority changed from 5 to 2
  • Target version changed from 2.7.1 to 2.4.8

This one is only for the Fusion inventory part.

Actions #3

Updated by Vincent MEMBRÉ over 10 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
Actions #4

Updated by Vincent MEMBRÉ over 10 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100

Applied in changeset packages:commit:4de2d5359cbb74b38f6e628104bb13a75f6ca377.

Actions #5

Updated by Nicolas PERRON over 10 years ago

Applied in changeset packages:commit:ef3c10978a58afdf4097419d10ceafb53073d00c.

Actions #6

Updated by Nicolas PERRON over 10 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:

Actions #7

Updated by Benoît PECCATTE about 9 years ago

  • Category changed from 26 to Web - Nodes & inventories
Actions

Also available in: Atom PDF