Bug 1977972

Summary: Kernel version in /etc/driver-toolkit-release.json not including architecture
Product: OpenShift Container Platform Reporter: dagray
Component: Special Resource OperatorAssignee: Brett Thurber <bthurber>
Status: CLOSED ERRATA QA Contact: Lena Horsley <lhorsley>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.9CC: aos-bugs
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:37:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1977982    

Description dagray 2021-06-30 19:57:07 UTC
In versions of OCP where ART is specifying the kernel version as an argument to the driver-toolkit image build, the KERNEL_VERSION and RT_KERNEL_VERSION in /etc/driver-toolkit-release.json is missing the architecture. 

This results in unneeded inconsistencies between OCP versions, and means in some cases the kernel versions do not match with the node labels from NFD.

Comment 2 Lena Horsley 2021-07-15 18:51:33 UTC
Verified in build: 4.9.0-0.nightly-2021-07-15-015134

1. Go to the OpenShift release nightly build page for the nightly build, click "Download the installer," and then click "release.txt."

2. Search for "driver-toolkit" and pull the corresponding image to your dev machine with the command:
podman pull --authfile /path/to/pullsecret <openshift_release_repo>/<corresponding_image_to_your_dev_machine>

3. Enter the following command from the terminal:
podman run <image_from_previous_step> cat /etc/driver-toolkit-release.json

4. Ensure that the kernel version's contain the architecture at the end, for example
4.18.0-305.7.1.el8_4.x86_64 
not
4.18.0-305.7.1.el8_4


=========================================================

Output:
{ "KERNEL_VERSION": "4.18.0-305.7.1.el8_4.x86_64", "RT_KERNEL_VERSION": "4.18.0-305.7.1.rt7.79.el8_4.x86_64", "RHEL_VERSION": "8.4" }

Comment 7 errata-xmlrpc 2021-10-18 17:37:23 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