Why OpenShift builds are failing on RHEL 7.9 nodes with the error "invalid argument" ?
Issue
- Why OpenShift builds are failing on RHEL 7.9 nodes with the error "invalid argument" ?
From the build logs
Replaced Dockerfile FROM image registry.ocp.internal.com/ubi8/ubi-minimal:8.5-218'
Adding cluster TLS certificate authority to trust store
time="2022-01-12T09:54:32Z" level=info msg="metacopy option not supported on this kernelmetacopy=on"
time="2022-01-12T09:54:32Z" level=info msg="Not using native diff for overlay, this may cause degraded performance for building images: failed to mount overlay: invalid argument"
I0112 09:54:32.443969 1 defaults.go:102] Defaulting to storage driver "overlay" with options [mountopt=metacopy=on].
Caching blobs under "/var/cache/blobs".
Pulling image registry.ocp.internal.com/ubi8/ubi-minimal:8.5-218 ...
Getting image source signatures
Copying blob sha256:131f1a26eef08c7274f7a115f461689819a4218e246ccacacc50ebcfd5e1c758
Copying blob sha256:16b78ed2e82205ceca54aa3a4205f029096a354d346b3bd2434a56b7f66e21c1
Copying config sha256:0e1c0c70dbc541d61917f91e6ad3d05b82762c5a9b49774571f2a87d8f09be65
Writing manifest to image destination
Storing signatures
Adding transient rw bind mount for /run/secrets/rhsm
Adding transient rw bind mount for /run/secrets/etc-pki-entitlement
Adding transient rw bind mount for /run/secrets/redhat.repo
STEP 1: FROM registry.ocp.internal.com/ubi8/ubi-minimal:8.5-218
time="2022-01-12T09:54:42Z" level=error msg="error unmounting /var/lib/containers/storage/overlay/8bd94ccf7cb223d450a78d7639e119fdafd3b8670661af5890c7316e2e671bbe/merged: invalid argument"
error: build error: error mounting new container: error mounting build container "753ff5bf11b8a2aa5263a6c231e6fb5bcef31bdbc5d1c88c54ef0818ad1180b2": error creating overlay mount to /var/lib/containers/storage/overlay/8bd94ccf7cb223d450a78d7639e119fdafd3b8670661af5890c7316e2e671bbe/merged, mount_data="metacopy=on,lowerdir=/var/lib/containers/storage/overlay/l/RXOGCF7JAV2W5UMW26O65G6IE6:/var/lib/containers/storage/overlay/l/6P2A2LLNHSXJHPQBJQSEZGUHYV,upperdir=/var/lib/containers/storage/overlay/8bd94ccf7cb223d450a78d7639e119fdafd3b8670661af5890c7316e2e671bbe/diff,workdir=/var/lib/containers/storage/overlay/8bd94ccf7cb223d450a78d7639e119fdafd3b8670661af5890c7316e2e671bbe/work": invalid argument
Environment
- OpenShift Container Platform 4.9.7
- Worker Nodes: Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.