Project

General

Profile

Actions

Bug #7205

closed

No service pack is reported when lsb_release is installed on SLES

Bug #7205: No service pack is reported when lsb_release is installed on SLES

Added by Nicolas CHARLES almost 11 years ago. Updated over 10 years ago.

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

Description

On SLES system, if lsb_release is installed, there is not indication of the service pack in the inventory
Removing lsb_release make the Service Pack appears in the inventory


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #7559: Tag FULL_NAME missing from SLES12 inventoryReleasedJonathan CLARKEActions

Updated by Vincent MEMBRÉ almost 11 years ago Actions #1

  • Target version changed from 2.10.17 to 2.10.18

Updated by Florian Heigl almost 11 years ago Actions #2

SUSE could unfortunately not be convinced to generally fix this in the SLES11 releases available.
In SLES 12, they use a /etc/lsb-release.d which does proper information on the service pack.

For SLES11
It needs a patch FusionInventory:
The detection code is rather simple:

lib/FusionInventory/Agent/Task/Inventory/Linux/Distro/LSB.pm handles LSB supporting systems
lib/FusionInventory/Agent/Task/Inventory/Linux/Distro/NonLSB.pm is called if a system has no lsb_release binary

If lsb_release is not available on a system everything works.
thus,

  • detect the OS
  • if it's sles11, do not go to the lsb_release handler and return
  • if we're still there, continue as it was - check if lsb_release and use that or don't if it's not there.

Updated by Janos Mattyasovszky almost 11 years ago Actions #3

  • Pull Request set to https://github.com/Normation/rudder-packages/pull/762
  • Found in version(s) old 2.11.14 added

I tested this patch on SLES 11, but the logic should behave the same on all SLES 10/11 releases, as the /etc/SuSE-release format has not changed.

Updated by Janos Mattyasovszky almost 11 years ago Actions #4

  • Status changed from New to Pending release
  • % Done changed from 0 to 100

Updated by Vincent MEMBRÉ over 10 years ago Actions #6

  • Target version changed from 2.10.18 to 2.11.15

Updated by Vincent MEMBRÉ over 10 years ago Actions #7

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.11.15, 3.0.10 and 3.1.3 which were released today.

Updated by Jonathan CLARKE over 10 years ago Actions #8

  • Related to Bug #7559: Tag FULL_NAME missing from SLES12 inventory added
Actions

Also available in: PDF Atom