-
Bug
-
Resolution: Done-Errata
-
Major
-
None
-
4.14.z
Description of problem:
As a OCP Integrator, I would like to use kernel-module-management operator in an air gap environment.
Version-Release number of selected component (if applicable):
KMMv2.0.0
How reproducible:
100%
Steps to Reproduce:
In a Air Gap environment, in order to deploy OCP its required to mirror all the dependencies to a local registry:
apiVersion: mirror.openshift.io/v1alpha2 kind: ImageSetConfiguration mirror: platform: channels: - name: stable-4.14 minVersion: 4.14.9 maxVersion: 4.14.9 graph: true operators: # Operators we want to mirror - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.14 packages: - name: kernel-module-management channels: - name: stable - name: kernel-module-management-hub channels: - name: stable
Once the mirroring its completed `mapping.txt` content:
registry.redhat.io/kmm/kernel-module-management-operator-bundle@sha256:69b16d605af30119072ad3ab8594693ac6d7cbeb040ef26046286e71ceb6b92e=rock5b.offline.oxtechnix.lan:5000/kmm-test-414/kmm/kernel-module-management-operator-bundle:6c5c78b9registry.redhat.io/kmm/kernel-module-management-hub-rhel9-operator@sha256:e66b83a61a6a96ecdb6fecde1069883004adec627ebdeb683bdc57419190e824=rock5b.offline.oxtechnix.lan:5000/kmm-test-414/kmm/kernel-module-management-hub-rhel9-operator:729cce60registry.redhat.io/kmm/kernel-module-management-hub-operator-bundle@sha256:ef3a9010a9ffd3de442167635e76a292089b8be8f377a971bd152ad98ccb4155=rock5b.offline.oxtechnix.lan:5000/kmm-test-414/kmm/kernel-module-management-hub-operator-bundle:c6f9b2ddregistry.redhat.io/kmm/kernel-module-management-rhel9-operator@sha256:6dbd524edc1007846946044cd8b87dedc25bfe4cc4189cd2423a6b1c15f931dc=rock5b.offline.oxtechnix.lan:5000/kmm-test-414/kmm/kernel-module-management-rhel9-operator:c089bb05
using the following CR:
apiVersion: kmm.sigs.x-k8s.io/v1beta1 kind: Module metadata: name: ran-nic-oot namespace: openshift-kmm spec: moduleLoader: container: modprobe: moduleName: oct_ep_phc modulesLoadingOrder: - oct_ep_phc - octeon_ep_vf - octeon_ep - octboot_net kernelMappings: - literal: 5.14.0-284.45.1.el9_2.x86_64 containerImage: "rock5b.offline.oxtechnix.lan:5000/nic-drivers/loki/loki-v23.12-kmm_poc_v1-n0:5.14.0-284.45.1.el9_2.x86_64" - regexp: '^.*x86_64$' containerImage: "rock5b.offline.oxtechnix.lan:5000/nic-drivers/loki/loki-v23.12-kmm_poc_v1-n0: 5.14.0-284.45.1.el9_2.x86_64" imageRepoSecret: name: pull-secret selector: node-role.kubernetes.io/worker: ""
its creating a container on the worker nodes
$ oc get pods -n openshift-kmm
NAME READY STATUS RESTARTS AGE
kmm-operator-controller-7bcc97dbbb-68sbx 2/2 Running 8 (2d3h ago) 2d20h
kmm-worker-master0-ran-nic-oot 0/1 ImagePullBackOff 0 2d13h
kmm-worker-worker0-rdnet.net-ran-nic-oot 0/1 ImagePullBackOff 0 2d13h
The resources created in `ImagePullBackOff` are trying to pull the following container base image:
registry.redhat.io/kmm/kernel-module-management-worker-rhel9@sha256:999f83b0c65c96c8a66f144af931633e9ef489b6b5829c33b4bf3e46336a0360
Which is not made available throught the operator mirror.
Actual results:
$ oc get pods -n openshift-kmm NAME READY STATUS RESTARTS AGE kmm-operator-controller-7bcc97dbbb-68sbx 2/2 Running 8 (2d3h ago) 2d20h kmm-worker-master0-ran-nic-oot 0/1 ImagePullBackOff 0 2d13h kmm-worker-worker0-rdnet.net-ran-nic-oot 0/1 ImagePullBackOff 0 2d13h
Expected results:
I would expect that the registry.redhat.io/kmm/kernel-module-management-worker-rhel9@sha256:999f83b0c65c96c8a66f144af931633e9ef489b6b5829c33b4bf3e46336a0360 be included in the operator bundle and mirrored in an Air Gap environment this is made available.
Additional info:
- links to
-
RHBA-2023:125547 Red Hat OpenShift kernel module management 2.0 operator/operand containers