Bug 2066359 - SRO appends "arm64" instead of "aarch64" to the kernel name and it doesn't match the DTK
Summary: SRO appends "arm64" instead of "aarch64" to the kernel name and it doesn't ma...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Special Resource Operator
Version: 4.11
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 4.10.z
Assignee: Pablo Acevedo
QA Contact: Udi Kalifon
URL:
Whiteboard:
Depends On: 2066945
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-21 15:04 UTC by Udi Kalifon
Modified: 2022-04-08 05:04 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2066945 (view as bug list)
Environment:
Last Closed: 2022-04-08 05:04:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift special-resource-operator pull 146 0 None open Bug 2066359: SRO appends "arm64" instead of "aarch64" to the kernel name and it doesn't match the DTK 2022-03-22 20:05:09 UTC
Red Hat Product Errata RHSA-2022:1162 0 None None None 2022-04-08 05:04:42 UTC

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


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