Pipeline Build is failing with error: "fuse: device not found, try 'modprobe fuse' first"
Environment
- Red Hat OpenShift Container Platform
- 4.x
Issue
-
Pipeline Build is failing with error:
level=error msg="Unmounting /var/lib/containers/storage/overlay/dd475f17b24f12407e95e160db4197929d22b30f084f4a5ccd2b0311f5639481/merged: invalid argument" Error: mounting new container: mounting build container "010fd4ecf590024317331d51686be2ab7759975b68c9f838bad8c1da562fc415": creating overlay mount to /var/lib/containers/storage/overlay/dd475f17b24f12407e95e160db4197929d22b30f084f4a5ccd2b0311f5639481/merged, mount_data="lowerdir=/var/lib/containers/storage/overlay/l/UJNU5M6MAO3CQWGCNXDEKNVHAW:/var/lib/containers/storage/overlay/l/ZFTHYYEX6T3MAFL6FT3Y6NDPEX:/var/lib/containers/storage/overlay/l/OPDUEGZVSDA7LNSPKRYCMWQYNK:/var/lib/containers/storage/overlay/l/2FAV43GYF7FDHVZAG6DUQ54OSF:/var/lib/containers/storage/overlay/l/ZSWRTCDMIEDSDNCWUR65HJCDOO:/var/lib/containers/storage/overlay/l/MM3WNDGFUJDMZ6ICNGKBDIL2CC,upperdir=/var/lib/containers/storage/overlay/dd475f17b24f12407e95e160db4197929d22b30f084f4a5ccd2b0311f5639481/diff,workdir=/var/lib/containers/storage/overlay/dd475f17b24f12407e95e160db4197929d22b30f084f4a5ccd2b0311f5639481/work,nodev,volatile": using mount program /usr/bin/fuse-overlayfs: unknown argument ignored: lazytime fuse: device not found, try 'modprobe fuse' first fuse-overlayfs: cannot mount: No such file or directory : exit status 1 level=debug msg="Shutting down engines" Build step 'Execute shell' marked build as failure
Resolution
Set Container to run with privileged: true under the securityContext:
securityContext:
privileged: true
Root Cause
- The Container required multiple permissions/capabilities to run on host which was failing with un-privileged access.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments