Bug 2057337
| Summary: | failed to open /dev/fuse: Operation not permitted | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Alex Jia <ajia> |
| Component: | buildah-container | Assignee: | Jindrich Novy <jnovy> |
| Status: | CLOSED ERRATA | QA Contact: | Alex Jia <ajia> |
| Severity: | high | Docs Contact: | Michelle Bearer <mbearer> |
| Priority: | unspecified | ||
| Version: | 9.0 | CC: | atomic-bugs, jnovy, mbearer, tsweeney, ypu |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 2057243 | Environment: | |
| Last Closed: | 2022-05-18 02:50:57 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 2057243 | ||
| Bug Blocks: | 2056952 | ||
|
Description
Alex Jia
2022-02-23 08:56:01 UTC
[root@ibm-x3250m6-04 ~]# podman run --rm --device /dev/fuse -it registry-proxy.engineering.redhat.com/rh-osbs/rhel9-buildah:9.0.0-3 Trying to pull registry-proxy.engineering.redhat.com/rh-osbs/rhel9-buildah:9.0.0-3... Getting image source signatures Copying blob 1fb14c654ae4 done Copying blob 52663ea9d10c done Copying blob 3f5eb906db0f done Copying config 3694df9b3a done Writing manifest to image destination Storing signatures [root@b628756870c3 /]# rpm -q buildah fuse-overlayfs buildah-1.24.1-1.el9.x86_64 fuse-overlayfs-1.8.2-1.el9.x86_64 [root@b628756870c3 /]# buildah from registry.access.redhat.com/ubi8 Trying to pull registry.access.redhat.com/ubi8:latest... Getting image source signatures Checking if image destination supports signatures Copying blob 8671113e1c57 done Copying blob 5dcbdc60ea6b done Copying config b81e86a2cb done Writing manifest to image destination Storing signatures ubi8-working-container [root@b628756870c3 /]# buildah ps CONTAINER ID BUILDER IMAGE ID IMAGE NAME CONTAINER NAME c701e405189e * b81e86a2cb9a registry.access.redhat.com/ub... ubi8-working-container [root@b628756870c3 /]# buildah run --isolation=chroot ubi8-working-container ls / ERRO[0000] Unmounting /var/lib/containers/storage/overlay/1b9026475244313d5b30294d70b79385cc00cac26ffda7478852ca46ee71112e/merged: invalid argument error mounting container "c701e405189ea6cd3f49a4a71f61a28892d6a0cb48da2cc633de25cb8b5c3a52": error mounting build container "c701e405189ea6cd3f49a4a71f61a28892d6a0cb48da2cc633de25cb8b5c3a52": creating overlay mount to /var/lib/containers/storage/overlay/1b9026475244313d5b30294d70b79385cc00cac26ffda7478852ca46ee71112e/merged, mount_data="nodev,lowerdir=/var/lib/containers/storage/overlay/l/BVYS7EFL3LJ5Z43OVU5UDQGBDH:/var/lib/containers/storage/overlay/l/LP6Q5UMIDRJ5GSD4XYMLZBOWGO,upperdir=/var/lib/containers/storage/overlay/1b9026475244313d5b30294d70b79385cc00cac26ffda7478852ca46ee71112e/diff,workdir=/var/lib/containers/storage/overlay/1b9026475244313d5b30294d70b79385cc00cac26ffda7478852ca46ee71112e/work,volatile": using mount program /usr/bin/fuse-overlayfs: fuse: failed to open /dev/fuse: Operation not permitted fuse-overlayfs: cannot mount: Operation not permitted : exit status 1 ERRO[0000] exit status 125 *** Bug 2061602 has been marked as a duplicate of this bug. *** This bug hasn't been fixed on rhel9-buildah:9.0.0-4 yet. https://issues.redhat.com/browse/TFT-1108 currently blocks update to buildah-1.24.2 and skopeo-1.6.1 for RHEL9 GA. This bug has been verified on podman-4.0.2-2.el9_0.x86_64 w/ rhel9-buildah:9.0.0-5. [root@sweetpig-9 ~]# cat /etc/redhat-release Red Hat Enterprise Linux release 9.0 Beta (Plow) [root@sweetpig-9 ~]# rpm -q podman crun systemd kernel podman-4.0.2-2.el9_0.x86_64 crun-1.4.2-1.el9.x86_64 systemd-250-4.el9.x86_64 kernel-5.14.0-70.1.1.el9.x86_64 [root@sweetpig-9 ~]# grep cgroup /proc/mounts cgroup2 /sys/fs/cgroup cgroup2 rw,seclabel,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot 0 0 [root@sweetpig-9 ~]# podman run --rm --device /dev/fuse -it registry-proxy.engineering.redhat.com/rh-osbs/rhel9-buildah:9.0.0-5 Trying to pull registry-proxy.engineering.redhat.com/rh-osbs/rhel9-buildah:9.0.0-5... Getting image source signatures Copying blob 8ee8520e2f0c done Copying blob a308807e614a done Copying blob c7250d4af681 done Copying config 067ae46188 done Writing manifest to image destination Storing signatures [root@194a415b13d9 /]# rpm -q buildah fuse-overlayfs buildah-1.24.1-1.el9.x86_64 fuse-overlayfs-1.8.2-1.el9.x86_64 [root@194a415b13d9 /]# buildah from registry.access.redhat.com/ubi8 Trying to pull registry.access.redhat.com/ubi8:latest... Getting image source signatures Checking if image destination supports signatures Copying blob de9bc33d7337 done Copying blob effc4ea612c8 done Copying config b1b0a30a72 done Writing manifest to image destination Storing signatures ubi8-working-container [root@194a415b13d9 /]# buildah ps CONTAINER ID BUILDER IMAGE ID IMAGE NAME CONTAINER NAME d36f66b75ad3 * b1b0a30a7282 registry.access.redhat.com/ub... ubi8-working-container [root@194a415b13d9 /]# buildah run --isolation=chroot ubi8-working-container ls / bin boot dev etc home lib lib64 lost+found media mnt opt proc root run sbin srv sys tmp usr var @jnovy another candidate for closing as current release? This bug is hit again on podman-4.0.2-3.el9.x86_64 w/ rhel9-buildah:9.0.0-6. @jnovy ping, failed qe Alex, there is no other change in podman-4.0.2-3 apart from rebuild with the new golang. What is the difference from comment #5 package-wise apart from podman? (In reply to Jindrich Novy from comment #12) > Alex, there is no other change in podman-4.0.2-3 apart from rebuild with the > new golang. > > What is the difference from comment #5 package-wise apart from podman? Only upgrade podman to 4.0.2-3 w/ new system in the beaker (RHEL-9.0.0-20220320.0), BTW, it works well if using podman-4.0.2-2.el9_0.x86_64 for the same tests. [root@sweetpig-21 ~]# rpm -q podman crun systemd kernel podman-4.0.2-3.el9.x86_64 (different from Comment 5) crun-1.4.2-1.el9.x86_64 systemd-250-4.el9.x86_64 kernel-5.14.0-70.2.1.el9_0.x86_64 (different from Comment 5) and others [root@sweetpig-21 ~]# rpm -q conmon containers-common fuse-overlayfs slirp4netns conmon-2.1.0-1.el9.x86_64 containers-common-1-32.el9.x86_64 fuse-overlayfs-1.8.2-1.el9.x86_64 slirp4netns-1.1.12-4.el9.x86_64 [root@sweetpig-21 ~]# podman run --rm --device /dev/fuse -it registry-proxy.engineering.redhat.com/rh-osbs/rhel9-buildah:9.0.0-6 [root@3f6792baa50d /]# rpm -q buildah fuse-overlayfs buildah-1.24.1-1.el9.x86_64 fuse-overlayfs-1.8.2-1.el9.x86_64 [root@3f6792baa50d /]# buildah from registry.access.redhat.com/ubi8 Trying to pull registry.access.redhat.com/ubi8:latest... Getting image source signatures Checking if image destination supports signatures Copying blob c530010fb61c done Copying blob 3de00bb8554b done Copying config 552ac8ae42 done Writing manifest to image destination Storing signatures ubi8-working-container [root@3f6792baa50d /]# buildah ps CONTAINER ID BUILDER IMAGE ID IMAGE NAME CONTAINER NAME 9d26efa2157b * 552ac8ae4291 registry.access.redhat.com/ub... ubi8-working-container [root@3f6792baa50d /]# buildah run --isolation=chroot ubi8-working-container ls / ERRO[0000] Unmounting /var/lib/containers/storage/overlay/358b3dfb67b74fa8ad9413ac037dc9d09e93666b2e070658fe92fc65be85a8ff/merged: invalid argument error mounting container "9d26efa2157b329d078e4d8d9eb2f469672213273159d81a383d6e33c25e5e5a": error mounting build container "9d26efa2157b329d078e4d8d9eb2f469672213273159d81a383d6e33c25e5e5a": creating overlay mount to /var/lib/containers/storage/overlay/358b3dfb67b74fa8ad9413ac037dc9d09e93666b2e070658fe92fc65be85a8ff/merged, mount_data="nodev,lowerdir=/var/lib/containers/storage/overlay/l/WKLZGWUR54RNQWTRPGSV5VTFKO:/var/lib/containers/storage/overlay/l/ZFM4LF2AAXDJZ6N3752SIYVNQ5,upperdir=/var/lib/containers/storage/overlay/358b3dfb67b74fa8ad9413ac037dc9d09e93666b2e070658fe92fc65be85a8ff/diff,workdir=/var/lib/containers/storage/overlay/358b3dfb67b74fa8ad9413ac037dc9d09e93666b2e070658fe92fc65be85a8ff/work,volatile": using mount program /usr/bin/fuse-overlayfs: fuse: failed to open /dev/fuse: Operation not permitted fuse-overlayfs: cannot mount: Operation not permitted : exit status 1 ERRO[0000] exit status 125 This bug has been verified on podman-4.0.3-1.el9 w/ rhel9-buildah:9.0.0-8. [root@kvm-08-guest08 ~]# cat /etc/redhat-release Red Hat Enterprise Linux release 9.0 Beta (Plow) [root@kvm-08-guest08 ~]# rpm -q podman crun systemd kernel podman-4.0.3-1.el9.x86_64 crun-1.4.2-1.el9.x86_64 systemd-250-4.el9.x86_64 kernel-5.14.0-70.5.1.el9_0.x86_64 [root@kvm-08-guest08 ~]# podman run --rm --device /dev/fuse -it registry-proxy.engineering.redhat.com/rh-osbs/rhel9-buildah:9.0.0-8 Trying to pull registry-proxy.engineering.redhat.com/rh-osbs/rhel9-buildah:9.0.0-8... Getting image source signatures Copying blob ae4eddbce769 done Copying blob f0d9a1a0a611 done Copying blob d89ed0dbe0c5 done Copying config 1b16beb8ed done Writing manifest to image destination Storing signatures [root@21274d430979 /]# rpm -q buildah fuse-overlayfs buildah-1.24.2-4.el9_0.x86_64 fuse-overlayfs-1.8.2-1.el9.x86_64 [root@21274d430979 /]# buildah from registry.access.redhat.com/ubi8 Trying to pull registry.access.redhat.com/ubi8:latest... Getting image source signatures Checking if image destination supports signatures Copying blob 4eef1fa1f1c1 done Copying blob eb24191cef20 done Copying config c54243b588 done Writing manifest to image destination Storing signatures ubi8-working-container [root@21274d430979 /]# buildah ps CONTAINER ID BUILDER IMAGE ID IMAGE NAME CONTAINER NAME e2beff80e100 * c54243b58814 registry.access.redhat.com/ub... ubi8-working-container [root@21274d430979 /]# buildah run --isolation=chroot ubi8-working-container ls / bin boot dev etc home lib lib64 lost+found media mnt opt proc root run sbin srv sys tmp usr var [root@21274d430979 /]# exit exit [root@kvm-08-guest08 ~]# echo $? 0 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (New rhel9/buildah container image), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:4601 |