Bug 2011350 - RenderOperatingSystem() returns wrong OS version on OCP 4.7.24
Summary: RenderOperatingSystem() returns wrong OS version on OCP 4.7.24
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Special Resource Operator
Version: 4.9
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.9.0
Assignee: Pablo Acevedo
QA Contact: liqcui
URL:
Whiteboard:
Depends On: 2010911
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-06 13:21 UTC by OpenShift BugZilla Robot
Modified: 2021-10-18 17:52 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-18 17:52:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift special-resource-operator pull 47 0 None open [release-4.9] Bug 2011350: RenderOperatingSystem() returns wrong OS version on OCP 4.7.24 2021-10-06 13:21:33 UTC
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:52:50 UTC

Description OpenShift BugZilla Robot 2021-10-06 13:21:22 UTC
+++ This bug was initially created as a clone of Bug #2010911 +++

Description of problem:

OCP 4.7.24 uses rhel8.4 kernel. It is assumed that all OCP 4.7 versions will have rhel8.3. OS env variables are set incorrectly on OCP 4.7.24.

Version-Release number of selected component (if applicable):
4.9


How reproducible:

Steps to Reproduce:
1. Install OCP 4.7.25
2. Deploy SRO
3. Check helm variables set to RHEL8.3 instead of RHEL8.4

Actual results:


Expected results:


Additional info:

Comment 2 liqcui 2021-10-08 08:04:54 UTC
verify result:
$ oc logs -f special-resource-controller-manager-6cb747bbf4-h24lr -n openshift-operators -c manager |grep -i -E 'OperatingSystemMajorMinor|OperatingSystemDecimal'
2021-10-08T07:31:07.410Z        INFO    simple-kmod     Runtime Information     {"OperatingSystemMajorMinor": "rhel8.4"}
2021-10-08T07:31:07.410Z        INFO    simple-kmod     Runtime Information     {"OperatingSystemDecimal": "8.4"}
2021-10-08T07:31:59.577Z        INFO    simple-kmod     Runtime Information     {"OperatingSystemMajorMinor": "rhel8.4"}
2021-10-08T07:31:59.577Z        INFO    simple-kmod     Runtime Information     {"OperatingSystemDecimal": "8.4"}
2021-10-08T07:32:45.176Z        INFO    simple-kmod     Runtime Information     {"OperatingSystemMajorMinor": "rhel8.4"}
2021-10-08T07:32:45.176Z        INFO    simple-kmod     Runtime Information     {"OperatingSystemDecimal": "8.4"}
2021-10-08T07:33:30.907Z        INFO    simple-kmod     Runtime Information     {"OperatingSystemMajorMinor": "rhel8.4"}
2021-10-08T07:33:30.907Z        INFO    simple-kmod     Runtime Information     {"OperatingSystemDecimal": "8.4"}
2021-10-08T07:34:16.704Z        INFO    simple-kmod     Runtime Information     {"OperatingSystemMajorMinor": "rhel8.4"}
2021-10-08T07:34:16.704Z        INFO    simple-kmod     Runtime Information     {"OperatingSystemDecimal": "8.4"}
2021-10-08T07:35:23.302Z        INFO    simple-kmod     Runtime Information     {"OperatingSystemMajorMinor": "rhel8.4"}
2021-10-08T07:35:23.302Z        INFO    simple-kmod     Runtime Information     {"OperatingSystemDecimal": "8.4"}
2021-10-08T07:36:25.479Z        INFO    simple-kmod     Runtime Information     {"OperatingSystemMajorMinor": "rhel8.4"}
2021-10-08T07:36:25.479Z        INFO    simple-kmod     Runtime Information     {"OperatingSystemDecimal": "8.4"}
2021-10-08T07:37:27.109Z        INFO    simple-kmod     Runtime Information     {"OperatingSystemMajorMinor": "rhel8.4"}
2021-10-08T07:37:27.109Z        INFO    simple-kmod     Runtime Information     {"OperatingSystemDecimal": "8.4"}
2021-10-08T07:38:25.455Z        INFO    simple-kmod     Runtime Information     {"OperatingSystemMajorMinor": "rhel8.4"}
2021-10-08T07:38:25.455Z        INFO    simple-kmod     Runtime Information     {"OperatingSystemDecimal": "8.4"}
^C
[ocpadmin@ec2-18-217-45-133 nfd]$ oc get clusterversion
NAME      VERSION   AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.7.25    True        False         153m    Cluster version is 4.7.25

The expected result is rhel8.4

Comment 5 errata-xmlrpc 2021-10-18 17:52:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:3759


Note You need to log in before you can comment on or make changes to this bug.