-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
4.21
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:
- https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/openshift_machine-config-operator/5363/pull-ci-openshift-machine-config-operator-main-images/1990791846107811840
- https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/openshift_machine-config-operator/5400/pull-ci-openshift-machine-config-operator-main-images/1990768529875406848
- https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/openshift_machine-config-operator/5318/pull-ci-openshift-machine-config-operator-main-images/1990758284117676032
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.