-
Bug
-
Resolution: Done
-
Undefined
-
None
-
4.12.0, 4.11.0
-
None
-
None
-
False
-
I am trying to build a module in-cluster in OCP 4.11.0-rc.7:
apiVersion: kmm.sigs.k8s.io/v1alpha1 kind: Module metadata: name: simple-oot spec: driverContainer: name: overwritten-anyway command: [sleep, infinity] imagePullPolicy: Always lifecycle: postStart: exec: command: [modprobe, -avd, /opt, simple-kmod, simple-procfs-kmod] preStop: exec: command: [modprobe, -arvd, /opt, simple-kmod, simple-procfs-kmod] securityContext: privileged: true # capabilities: # add: # - all kernelMappings: - literal: 4.18.0-305.49.1.el8_4.x86_64 containerImage: quay.io/yshnaidm/simple-kmod:4.10.18 - literal: 4.18.0-372.19.1.el8_6.x86_64 containerImage: quay.io/ukalifon/simple-kmod:4.11.0-build build: buildArgs: - name: KVER value: 4.18.0-372.19.1.el8_6.x86_64 - name: KMODVER value: 0.0.1 secrets: - name: build-secret dockerfile: | FROM quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:514e256367e8707e2c30f18a4f06fbd6c821ab9776602d2488e861f577a357d0 WORKDIR /build/ RUN git clone https://github.com/openshift-psap/simple-kmod.git && \ cd simple-kmod && \ make all KVER=${KVER} KMODVER=${KMODVER} && \ make install KVER=${KVER} KMODVER=${KMODVER} && \ mkdir -p /opt/lib/modules/${KVER} && \ cp /lib/modules/${KVER}/simple-*.ko /lib/modules/${KVER}/modules.* /opt/lib/modules/${KVER} selector: wants-oot-module: ooto_simple_kmod
To create the build secret I used:
oc create secret docker-registry build-secret --docker-server=quay.io --docker-username=ukalifon --docker-password=I3U74MF...
When creating the module object the build pod crashloops, and in the logs of the operator you see:
E0815 10:09:03.411807 1 controller.go:326] "msg"="Reconciler error" "error"="failed to handle build for kernel version 4.18.0-372.19.1.el8_6.x86_64: could not synchronize the build: job failed: <nil>" "controller"="module" "controllerGroup"="kmm.sigs.k8s.io" "controllerKind"="Module" "module"={"name":"simple-oot","namespace":"simple-oot"} "name"="simple-oot" "namespace"="simple-oot" "reconcileID"="c276efd4-9f63-4060-975f-0c8a4f30fe0e"