Project

General

Profile

Bug #7205

No service pack is reported when lsb_release is installed on SLES

Added by Nicolas CHARLES over 5 years ago. Updated over 5 years ago.

Status:
Released
Priority:
2
Assignee:
-
Category:
Web - Nodes & inventories
Target version:
Severity:
User visibility:
Effort required:
Priority:

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

Related to Rudder - Bug #7559: Tag FULL_NAME missing from SLES12 inventoryReleasedJonathan CLARKE2015-12-08Actions
#1

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 2.10.17 to 2.10.18
#2

Updated by Florian Heigl over 5 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.
#3

Updated by Janos Mattyasovszky over 5 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.

#4

Updated by Janos Mattyasovszky over 5 years ago

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

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 2.10.18 to 2.11.15
#7

Updated by Vincent MEMBRÉ over 5 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.

#8

Updated by Jonathan CLARKE about 5 years ago

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

Also available in: Atom PDF