Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2066359

Summary: SRO appends "arm64" instead of "aarch64" to the kernel name and it doesn't match the DTK
Product: OpenShift Container Platform Reporter: Udi Kalifon <ukalifon>
Component: Special Resource OperatorAssignee: Pablo Acevedo <pacevedo>
Status: CLOSED ERRATA QA Contact: Udi Kalifon <ukalifon>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.11CC: aos-bugs, bthurber
Target Milestone: ---   
Target Release: 4.10.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2066945 (view as bug list) Environment:
Last Closed: 2022-04-08 05:04:28 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: 2066945    
Bug Blocks:    

Description Udi Kalifon 2022-03-21 15:04:22 UTC
Description of problem:
When trying to build simple-kmod on ARM you get:

error: build error: error determining starting point for build: no FROM statement found

It turns out the FROM line received a blank value for $IMAGE. In the SRO logs you see blank values for the kernels:

2022-03-21T09:21:30.094Z	INFO	[1;32msimple-kmod  [0m	Runtime Information	{"ClusterUpgradeInfo": {"4.18.0-305.34.2.el8_4.aarch64":{"OSVersion":"8.4","OSMajor":"rhel8","OSMajorMinor":"rhel8.4","clusterVersion":"4.10","driverToolkit":{"imageURL":"","kernelFullVersion":"","RTKernelFullVersion":"","OSVersion":""}}}}

This is because SRO is looking for a kernel that ends with _arm64, but the name of the architecture is aarch64:

# uname -a
Linux dtk 4.18.0-305.34.2.el8_4.aarch64 #1 SMP Mon Jan 17 09:23:59 EST 2022 aarch64 aarch64 aarch64 GNU/Linux

# rpm -qa |grep kernel
kernel-core-4.18.0-305.34.2.el8_4.aarch64


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


Steps to Reproduce:
1. Install OCP 4.10 on ARM
2. Install NFD and SRO from OLM
3. Follow the steps to build simple-kmod with a configmap


Actual results:
The build pod fails to build the driver container image

Comment 5 Udi Kalifon 2022-04-04 12:01:41 UTC
Verified on 4.10.5, using NFD and SRO from OLM.

Comment 7 errata-xmlrpc 2022-04-08 05:04:28 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 (Important: OpenShift Container Platform 4.10.8 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-2022:1162