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

RUN --mount directives breaking MCO image builds

XMLWordPrintable

    • None
    • False
    • Hide

      None

      Show
      None
    • 3
    • None
    • None
    • None
    • Rejected
    • MCO Sprint 280
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      The MCO CI image builds are repeatedly failing due to the use of --mount directives within the RUN blocks to enable better caching.

       

      How reproducible:

      100%. Here is a list of failed jobs:

      And here is the job history page: https://prow.ci.openshift.org/job-history/gs/test-platform-results/pr-logs/directory/pull-ci-openshift-machine-config-operator-main-images 

       

      Steps to Reproduce:

      Run an MCO image build by opening a PR or building with clusterbot.

       

      Actual results:

      The build should succeed.

       

      Expected results:

      The build fails with the following error message:

      [1/3] STEP 8/8: RUN --mount=type=cache,target=/go/rhel9/.cache,z --mount=type=cache,target=/go/rhel9/pkg/mod,z make install DESTDIR=./instroot-rhel9 && tar -C instroot-rhel9 -cf instroot-rhel9.tar .
      error running container: from /usr/bin/runc creating container for [/bin/sh -c make install DESTDIR=./instroot-rhel9 && tar -C instroot-rhel9 -cf instroot-rhel9.tar .]: time="2025-11-18T14:59:30Z" level=error msg="runc create failed: invalid mount &{Source:/var/tmp/buildah3798428566/mnt/buildah-bind-target-10 Destination:/go/rhel9/.cache Device:bind Flags:20480 ClearedFlags:1 PropagationFlags:[1048576] Data:z Relabel: RecAttr:<nil> Extensions:0 IDMapping:<nil>}: bind mounts cannot have any filesystem-specific options applied" 

       

      Additional info:

      There is some additional information here about the root cause of the problem: https://issues.redhat.com/browse/RHEL-129120.

      For now, the best short-term resolution is to remove the --mount directives so that our image builds succeed.

              zzlotnik@redhat.com Zack Zlotnik
              zzlotnik@redhat.com Zack Zlotnik
              None
              None
              Sergio Regidor de la Rosa Sergio Regidor de la Rosa
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: