Project

General

Profile

Actions

Bug #7205

closed

No service pack is reported when lsb_release is installed on SLES

Added by Nicolas CHARLES over 8 years ago. Updated over 8 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 CLARKE2015-12-08Actions
Actions #1

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.10.17 to 2.10.18
Actions #2

Updated by Florian Heigl over 8 years ago

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.
Actions #3

Updated by Janos Mattyasovszky over 8 years ago

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

Actions #4

Updated by Janos Mattyasovszky over 8 years ago

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

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.10.18 to 2.11.15
Actions #7

Updated by Vincent MEMBRÉ over 8 years ago

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

Actions #8

Updated by Jonathan CLARKE over 8 years ago

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

Also available in: Atom PDF