Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-11021

Failed to run depmod on ubi8 image with latest DTK from 4.13 nightlies

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • 4.13
    • Driver Toolkit
    • None
    • Critical
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      While trying to build a driver with KMM on OCP 4.13.0-0.nightly-2023-03-28-132111 I get this error

      [2/2] STEP 9/11: RUN depmod -b /opt
      depmod: error while loading shared libraries: libcrypto.so.3: cannot open shared object file: No such file or directory
      error: build error: building at STEP "RUN depmod -b /opt": while running runtime: exit status 127

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

      4.13.0-0.nightly-2023-03-28-132111

      How reproducible:

      Build a KMM module with following Dockerfile

          FROM image-registry.openshift-image-registry.svc:5000/openshift/driver-toolkit as builder
          ARG KERNEL_VERSION
          ARG MY_MODULE
          WORKDIR /build
          RUN git clone https://github.com/cdvultur/kmm-kmod.git
          WORKDIR /build/kmm-kmod
          RUN cp kmm_ci_a.c multi-stage.c
          RUN make
      
          FROM registry.redhat.io/ubi8/ubi-minimal
          ARG KERNEL_VERSION
          ARG MY_MODULE
          RUN microdnf -y install kmod
          COPY --from=builder /usr/bin/kmod /usr/bin/
          RUN for link in /usr/bin/modprobe /usr/bin/rmmod; do \
              ln -s /usr/bin/kmod "$link"; done
          COPY --from=builder /etc/driver-toolkit-release.json /etc/
          COPY --from=builder /build/kmm-kmod/*.ko /opt/lib/modules/${KERNEL_VERSION}/
          RUN depmod -b /opt

      Steps to Reproduce:

      1.
      2.
      3.
      

      Actual results:

      [2/2] STEP 9/11: RUN depmod -b /opt
      depmod: error while loading shared libraries: libcrypto.so.3: cannot open shared object file: No such file or directory
      error: build error: building at STEP "RUN depmod -b /opt": while running runtime: exit status 127

      Expected results:

      Driver build to succeed 

       

      Additional info:

       

              ybettan@redhat.com Yoni Bettan
              cvultur@redhat.com Constantin Daniel Vultur
              Constantin Daniel Vultur Constantin Daniel Vultur
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: