os-release inconsistencies in SLES for SAP Applications
This document (7023490) is provided subject to the disclaimer at the end of this document.
Environment
Situation
Resolution
Fresh installs of SLES for SAP Applications produce the following os-release syntax and products.d contents:-
------------------------------------------------------------------------------------------------------------------------------------
NAME="SLES"
VERSION="12"
VERSION_ID="12"
PRETTY_NAME="SUSE Linux Enterprise Server 12"
ID="sles"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:12"
/etc/products.d # ls -l
total 16
-rw-r--r-- 1 root root 2705 Oct 14 2014 SLES.prod
-rw-r--r-- 1 root root 2839 Apr 23 2015 SLES_SAP.prod
lrwxrwxrwx 1 root root 13 Apr 3 15:41 baseproduct -> SLES_SAP.prod
-rw-r--r-- 1 root root 1598 Oct 2 2014 sle-ha.prod
VERSION="12"
VERSION_ID="12.0.1"
PRETTY_NAME="SUSE Linux Enterprise Server for SAP Applications 12"
ID="sles_sap"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles_sap:12"
total 8
-rw-r--r-- 1 root root 2838 Oct 3 2017 SLES_SAP.prod
lrwxrwxrwx 1 root root 13 Feb 3 04:34 baseproduct -> SLES_SAP.prod
NAME="SLES_SAP"
VERSION="12-SP1"
VERSION_ID="12.1.0.1"
PRETTY_NAME="SUSE Linux Enterprise Server for SAP Applications 12 SP1"
ID="sles_sap"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles_sap:12:sp1"
/etc/products.d # ls -l
total 8
-rw-r--r-- 1 root root 2854 Mar 15 2017 SLES_SAP.prod
lrwxrwxrwx 1 root root 13 Apr 3 15:05 baseproduct -> SLES_SAP.prod
------------------------------------------------------
NAME="SLES_SAP"
VERSION="12-SP2"
VERSION_ID="12.2"
PRETTY_NAME="SUSE Linux Enterprise Server for SAP Applications 12 SP2"
ID="sles_sap"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles_sap:12:sp2"
/etc/products.d # ls -l
total 8
-rw-r--r-- 1 root root 3080 Mar 30 2017 SLES_SAP.prod
lrwxrwxrwx 1 root root 13 Apr 3 13:11 baseproduct -> SLES_SAP.prod
------------------------------------------------------
NAME="SLES"
VERSION="12-SP3"
VERSION_ID="12.3"
PRETTY_NAME="SUSE Linux Enterprise Server 12 SP3"
ID="sles"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles_sap:12:sp3"
/etc/products.d # ls -l
total 8
-rw-r--r-- 1 root root 2972 Jul 24 2017 SLES_SAP.prod
lrwxrwxrwx 1 root root 13 Apr 3 12:31 baseproduct -> SLES_SAP.prod
VERSION="12-SP4"
VERSION_ID="12.4"
PRETTY_NAME="SUSE Linux Enterprise Server 12 SP4"
ID="sles"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles_sap:12:sp4"
total 8
-rw-r--r-- 1 root root 2974 Nov 7 04:09 SLES_SAP.prod
lrwxrwxrwx 1 root root 13 Jan 30 11:52 baseproduct -> SLES_SAP.prod
NAME="SLES"
VERSION="15"
VERSION_ID="15"
PRETTY_NAME="SUSE Linux Enterprise Server 15"
ID="sles"
ID_LIKE="suse"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:15"
linux-mpxw:~ #
/etc/products.d # ls -l
total 28
-rw-r--r-- 1 root root 3185 May 30 05:23 SLES_SAP.prod
lrwxrwxrwx 1 root root 13 Oct 31 11:46 baseproduct -> SLES_SAP.prod
-rw-r--r-- 1 root root 3197 May 30 05:23 sle-ha.prod
-rw-r--r-- 1 root root 1892 May 30 05:23 sle-module-basesystem.prod
-rw-r--r-- 1 root root 2264 May 30 05:23 sle-module-desktop-applications.prod
-rw-r--r-- 1 root root 2315 May 30 05:23 sle-module-sap-applications.prod
-rw-r--r-- 1 root root 2351 May 30 05:23 sle-module-server-applications.prod
------------------------------------------------------
This leaves us with the question 'How do we identify the 'base product' of a server?".
The correct way to do this is is by examining the contents of /etc/products.d/ directory (and look at which product file the link 'baseproduct' is pointing too).
Cause
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7023490
- Creation Date: 01-Nov-2018
- Modified Date:07-Apr-2022
-
- SUSE Linux Enterprise Server for SAP Applications
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com