Bug #7205
closedNo service pack is reported when lsb_release is installed on SLES
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
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 2.10.17 to 2.10.18
Updated by Florian Heigl about 9 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.
Updated by Janos Mattyasovszky about 9 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.
Updated by Janos Mattyasovszky about 9 years ago
- Status changed from New to Pending release
- % Done changed from 0 to 100
Applied in changeset rudder-packages|6ca8bb56dd0c65cfd5f4958e043ecf7784335ff5.
Updated by Vincent MEMBRÉ about 9 years ago
Applied in changeset rudder-packages|4700c11d02b080c124b55092190dad3f718edb79.
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 2.10.18 to 2.11.15
Updated by Vincent MEMBRÉ about 9 years ago
- Status changed from Pending release to Released
Updated by Jonathan CLARKE about 9 years ago
- Related to Bug #7559: Tag FULL_NAME missing from SLES12 inventory added