View Issue Details

IDProjectCategoryView StatusLast Update
0000054AlmaLinux-8almalinux-releasepublic2021-04-02 16:48
Reporterolahaye74 Assigned Toalukoshko  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Summary0000054: /etc/os-release has incompatible VERSION_ID and VERSION strings.
DescriptionVERSION_ID in /etc/os-release should 8 instead of 8.3
Indeed, RHEL and CentOS don't include the minor version number in VERSION_ID (and VERSION). This is because BaseOS package won't change version upon minor releases upgrade. Minor release upgrade will only see non BaseOS package version bump.
Commercial products are tested agains BaseOS packages version and only care about the 8 when speaking of RHEL and its derivatives.
As developper of OSCAR cluster suite, my build tool is miss leaded by this ".3" (I'll add a patch for that but that doesn't change the fact that your os-release file is not compatible with RHEL one).

=> CentOS-8.3 os-release file:
NAME="CentOS Linux"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"

=> AlmaLinux-8£.3 os-release file:
NAME="AlmaLinux"
VERSION="8.3 (Purple Manul)"
ID="almalinux"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.3"
PLATFORM_ID="platform:el8"
PRETTY_NAME="AlmaLinux 8.3 (Purple Manul)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:almalinux:almalinux:8.3:GA"
HOME_URL="https://almalinux.org/"
BUG_REPORT_URL="https://bugs.almalinux.org/"

ALMALINUX_MANTISBT_PROJECT="AlmaLinux-8"
ALMALINUX_MANTISBT_PROJECT_VERSION="8.3"

A software developper for RHEL or CentOS or scientific Linux or any other RHEL derivative and that needs to parse os-release on AlmaLinux may fail.
Steps To Reproduce. /etc/os-release; test $VERSION_ID != "8" && echo failed

It shouldn't print failed.
TagsNo tags attached.
abrt_hash
URL

Activities

alukoshko

2021-04-02 13:09

administrator   ~0000111

Hello and thanks for report.
Actually CentOS is the only system that uses VERSION_ID="8", see below.
So preparing a patch for your build tool would be useful not just for AlmaLinux.

RHEL 8.3:

NAME="Red Hat Enterprise Linux"
VERSION="8.3 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.3"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.3 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8.3:GA"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.3
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.3"

Oracle Linux 8.3:

NAME="Oracle Linux Server"
VERSION="8.3"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.3"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Oracle Linux Server 8.3"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:8:3:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"
ORACLE_BUGZILLA_PRODUCT_VERSION=8.3
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=8.3

olahaye74

2021-04-02 16:19

reporter   ~0000114

Thanks for fast report, So I should have reported that to CentOS-8 bug tracker ;-) LOL
I've made the patch (easy)

You can close.

Cheers.

Issue History

Date Modified Username Field Change
2021-04-02 11:28 olahaye74 New Issue
2021-04-02 13:09 alukoshko Note Added: 0000111
2021-04-02 13:09 alukoshko Assigned To => alukoshko
2021-04-02 13:09 alukoshko Status new => assigned
2021-04-02 16:19 olahaye74 Note Added: 0000114
2021-04-02 16:48 alukoshko Status assigned => closed
2021-04-02 16:48 alukoshko Resolution open => no change required