Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1773440 - podman bind mounts fail: creating file '[...]/merged/mnt': Is a directory: OCI runtime error
Summary: podman bind mounts fail: creating file '[...]/merged/mnt': Is a directory: OC...
Keywords:
Status: CLOSED DUPLICATE of bug 1772460
Alias: None
Product: Fedora
Classification: Fedora
Component: crun
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Giuseppe Scrivano
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-18 07:42 UTC by Martin Pitt
Modified: 2019-11-18 08:51 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-18 08:51:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Martin Pitt 2019-11-18 07:42:05 UTC
Description of problem: I upgraded my F31 OSTree host system yesterday, and now toolbox is broken again:

$ toolbox create
Created container: fedora-toolbox-31
Enter with: toolbox enter

$ toolbox --verbose enter
toolbox: running as real user ID 1000
toolbox: resolved absolute path for /bin/toolbox to /usr/bin/toolbox
toolbox: checking if /etc/subgid and /etc/subuid have entries for user martin
toolbox: TOOLBOX_PATH is /usr/bin/toolbox
toolbox: running on a cgroups v2 host
toolbox: current Podman version is 1.6.2
toolbox: migration not needed: Podman version 1.6.2 is unchanged
toolbox: Fedora generational core is f31
toolbox: base image is fedora-toolbox:31
toolbox: container is fedora-toolbox-31
toolbox: checking if container fedora-toolbox-31 exists
toolbox: calling org.freedesktop.Flatpak.SessionHelper.RequestSession
toolbox: starting container fedora-toolbox-31
toolbox: /etc/profile.d/toolbox.sh already mounted in container fedora-toolbox-31
Error: unable to start container "fedora-toolbox-31": creating file '/var/home/martin/.local/share/containers/storage/overlay/d981f538fd1de6f6b79894fcb94b7352e293a9f2ba01b2ed9363e4635e664746/merged/mnt': Is a directory: OCI runtime error
toolbox: failed to start container fedora-toolbox-31

This error comes from podman:

$ podman  start fedora-toolbox-31
Error: unable to start container "fedora-toolbox-31": creating file '/var/home/martin/.local/share/containers/storage/overlay/d981f538fd1de6f6b79894fcb94b7352e293a9f2ba01b2ed9363e4635e664746/merged/mnt': Is a directory: OCI runtime error

So the problem is apparently in the way the container gets set up, most likely the bind mounts:

            {
                "Type": "bind",
                "Name": "",
                "Source": "/mnt",
                "Destination": "/mnt",
                "Driver": "",
                "Mode": "",
                "Options": [
                    "rbind"
                ],
                "RW": true,
                "Propagation": "rslave"
            },


A simple podman invocation without volumes still works:

$ podman run -it --rm registry.fedoraproject.org/f31/fedora-toolbox:31 /bin/bash

But it reproduces with a volume:


$ podman run -it --rm -v /mnt:/mnt:rw registry.fedoraproject.org/f31/fedora-toolbox:31 /bin/bash
Error: creating file '/var/home/martin/.local/share/containers/storage/overlay/5ba39ba24e32611acef21e4d93d845169cb8d70096b817382630ec5747c4c4a5/merged/mnt': Is a directory: OCI runtime error

toolbox uses flags ":rw,rslave", but that fails just the same way.


Version-Release number of selected component (if applicable):

podman-1.6.2-2.fc31.x86_64
toolbox-0.0.16-1.fc31.noarch
kernel-5.3.11-300.fc31.x86_64


How reproducible: Always


Additional info:

Neither podman nor toolbox got upgraded in the last run, the only relevant package seems to be the kernel:

$ sudo rpm-ostree db diff
[sudo] password for martin: 
ostree diff commit from: rollback deployment (a9816f462894a004fcc0b86eb3877ce3ac18a173221f40f9077d6ae6fdd6d582)
ostree diff commit to:   booted deployment (b8668dec8f7b271c8ff21a0f41d190d0e9a743ee734951e4ee5b56f1cd981383)
Upgraded:
  adwaita-cursor-theme 3.34.1-2.fc31 -> 3.34.3-1.fc31
  adwaita-icon-theme 3.34.1-2.fc31 -> 3.34.3-1.fc31
  alsa-lib 1.1.9-2.fc31 -> 1.2.1-3.fc31
  alsa-plugins-pulseaudio 1.1.9-2.fc31 -> 1.2.1-1.fc31
  alsa-utils 1.1.9-2.fc31 -> 1.2.1-3.fc31
  ansible 2.8.6-1.fc31 -> 2.9.1-1.fc31
  cockpit-bridge 206-1.fc31 -> 207-1.fc31
  cockpit-system 206-1.fc31 -> 207-1.fc31
  cockpit-ws 206-1.fc31 -> 207-1.fc31
  containers-common 1:0.1.40-2.fc31 -> 1:0.1.40-3.fc31
  crun 0.10.4-1.fc31 -> 0.10.5-2.fc31
  djvulibre-libs 3.5.27-12.fc31 -> 3.5.27-16.fc31
  dnf 4.2.9-5.fc31 -> 4.2.15-2.fc31
  dnf-data 4.2.9-5.fc31 -> 4.2.15-2.fc31
  dnf-plugins-core 4.0.9-1.fc31 -> 4.0.11-1.fc31
  dnf-utils 4.0.9-1.fc31 -> 4.0.11-1.fc31
  duplicity 0.8.06-1.fc31 -> 0.8.07-1.fc31
  efivar-libs 37-1.fc30 -> 37-4.fc31
  firefox 70.0-1.fc31 -> 70.0.1-4.fc31
  fuse-overlayfs 0.6.5-2.fc31 -> 0.7-1.fc31
  gtk2 2.24.32-5.fc31 -> 2.24.32-6.fc31
  hunspell 1.7.0-3.fc31 -> 1.7.0-4.fc31
  i3 4.16.1-3.fc31 -> 4.17.1-2.fc31
  iwd 1.0-1.fc31 -> 1.1-1.fc31
  json-c 0.13.1-6.fc31 -> 0.13.1-7.fc31
  kernel 5.3.8-300.fc31 -> 5.3.11-300.fc31
  kernel-core 5.3.8-300.fc31 -> 5.3.11-300.fc31
  kernel-devel 5.3.8-300.fc31 -> 5.3.11-300.fc31
  kernel-headers 5.3.6-300.fc31 -> 5.3.11-300.fc31
  kernel-modules 5.3.8-300.fc31 -> 5.3.11-300.fc31
  kernel-modules-extra 5.3.8-300.fc31 -> 5.3.11-300.fc31
  libdnf 0.35.3-6.fc31 -> 0.37.2-2.fc31
  libdvdread 6.0.1-2.fc31 -> 6.0.2-2.fc31
  libgs 9.27-1.fc31 -> 9.27-2.fc31
  libindicator-gtk3 12.10.1-15.fc31 -> 12.10.1-16.fc31
  libjpeg-turbo 2.0.2-4.fc31 -> 2.0.2-5.fc31
  libnghttp2 1.39.2-1.fc31 -> 1.39.2-2.fc31
  libnma 1.8.22-1.fc31.1 -> 1.8.24-1.fc31
  librados2 2:14.2.4-2.fc31 -> 2:14.2.4-3.fc31
  librbd1 2:14.2.4-2.fc31 -> 2:14.2.4-3.fc31
  librepo 1.10.5-1.fc31 -> 1.11.0-1.fc31
  libreport-filesystem 2.10.1-2.fc31 -> 2.11.3-1.fc31
  libsolv 0.7.7-1.fc31 -> 0.7.8-1.fc31
  libssh 0.9.0-6.fc31 -> 0.9.2-1.fc31
  libssh-config 0.9.0-6.fc31 -> 0.9.2-1.fc31
  libwacom 1.1-1.fc31 -> 1.1-2.fc31
  libwacom-data 1.1-1.fc31 -> 1.1-2.fc31
  libxml2 2.9.9-3.fc31 -> 2.9.10-1.fc31
  mesa-dri-drivers 19.2.2-1.fc31 -> 19.2.4-1.fc31
  mesa-filesystem 19.2.2-1.fc31 -> 19.2.4-1.fc31
  mesa-libEGL 19.2.2-1.fc31 -> 19.2.4-1.fc31
  mesa-libGL 19.2.2-1.fc31 -> 19.2.4-1.fc31
  mesa-libOpenCL 19.2.2-1.fc31 -> 19.2.4-1.fc31
  mesa-libgbm 19.2.2-1.fc31 -> 19.2.4-1.fc31
  mesa-libglapi 19.2.2-1.fc31 -> 19.2.4-1.fc31
  microcode_ctl 2:2.1-32.fc31 -> 2:2.1-33.fc31
  mokutil 1:0.3.0-11.fc30 -> 1:0.3.0-14.fc31
  network-manager-applet 1.8.22-1.fc31.1 -> 1.8.24-1.fc31
  nm-connection-editor 1.8.22-1.fc31.1 -> 1.8.24-1.fc31
  perl-Errno 1.30-446.fc31 -> 1.30-448.fc31
  perl-IO 1.40-446.fc31 -> 1.40-448.fc31
  perl-Time-Piece 1.33-446.fc31 -> 1.33-448.fc31
  perl-interpreter 4:5.30.0-446.fc31 -> 4:5.30.1-448.fc31
  perl-libs 4:5.30.0-446.fc31 -> 4:5.30.1-448.fc31
  perl-macros 4:5.30.0-446.fc31 -> 4:5.30.1-448.fc31
  perl-open 1.11-446.fc31 -> 1.11-448.fc31
  python-pip-wheel 19.1.1-4.fc31 -> 19.1.1-5.fc31
  python2-pip 19.1.1-4.fc31 -> 19.1.1-5.fc31
  python3-dnf 4.2.9-5.fc31 -> 4.2.15-2.fc31
  python3-dnf-plugins-core 4.0.9-1.fc31 -> 4.0.11-1.fc31
  python3-hawkey 0.35.3-6.fc31 -> 0.37.2-2.fc31
  python3-libdnf 0.35.3-6.fc31 -> 0.37.2-2.fc31
  python3-pip 19.1.1-4.fc31 -> 19.1.1-5.fc31
  python3-urllib3 1.25.3-4.fc31 -> 1.25.7-1.fc31
  qemu-audio-alsa 2:4.1.0-5.fc31 -> 2:4.1.0-6.fc31
  qemu-audio-oss 2:4.1.0-5.fc31 -> 2:4.1.0-6.fc31
  qemu-audio-pa 2:4.1.0-5.fc31 -> 2:4.1.0-6.fc31
  qemu-audio-sdl 2:4.1.0-5.fc31 -> 2:4.1.0-6.fc31
  qemu-block-curl 2:4.1.0-5.fc31 -> 2:4.1.0-6.fc31
  qemu-block-dmg 2:4.1.0-5.fc31 -> 2:4.1.0-6.fc31
  qemu-block-gluster 2:4.1.0-5.fc31 -> 2:4.1.0-6.fc31
  qemu-block-iscsi 2:4.1.0-5.fc31 -> 2:4.1.0-6.fc31
  qemu-block-nfs 2:4.1.0-5.fc31 -> 2:4.1.0-6.fc31
  qemu-block-rbd 2:4.1.0-5.fc31 -> 2:4.1.0-6.fc31
  qemu-block-ssh 2:4.1.0-5.fc31 -> 2:4.1.0-6.fc31
  qemu-common 2:4.1.0-5.fc31 -> 2:4.1.0-6.fc31
  qemu-img 2:4.1.0-5.fc31 -> 2:4.1.0-6.fc31
  qemu-kvm 2:4.1.0-5.fc31 -> 2:4.1.0-6.fc31
  qemu-system-x86 2:4.1.0-5.fc31 -> 2:4.1.0-6.fc31
  qemu-system-x86-core 2:4.1.0-5.fc31 -> 2:4.1.0-6.fc31
  qemu-ui-curses 2:4.1.0-5.fc31 -> 2:4.1.0-6.fc31
  qemu-ui-gtk 2:4.1.0-5.fc31 -> 2:4.1.0-6.fc31
  qemu-ui-sdl 2:4.1.0-5.fc31 -> 2:4.1.0-6.fc31
  shared-mime-info 1.14-1.fc31 -> 1.15-1.fc31
  skopeo 1:0.1.40-2.fc31 -> 1:0.1.40-3.fc31
  sudo 1.8.28p1-1.fc31 -> 1.8.29-1.fc31
  totem-pl-parser 3.26.3-2.fc31 -> 3.26.4-1.fc31
  vim-common 2:8.1.2234-1.fc31 -> 2:8.1.2267-1.fc31
  vim-filesystem 2:8.1.2234-1.fc31 -> 2:8.1.2267-1.fc31
  vim-minimal 2:8.1.2234-1.fc31 -> 2:8.1.2267-1.fc31
  webkit2gtk3 2.26.1-1.fc31 -> 2.26.2-1.fc31
  webkit2gtk3-jsc 2.26.1-1.fc31 -> 2.26.2-1.fc31
  xen-libs 4.12.1-4.fc31 -> 4.12.1-6.fc31
  xen-licenses 4.12.1-4.fc31 -> 4.12.1-6.fc31
  zchunk-libs 1.1.2-3.fc31 -> 1.1.4-1.fc31

Comment 1 Martin Pitt 2019-11-18 08:49:28 UTC
Argh, I was missing the updated "crun" package (I was looking for "runc"). So this is https://github.com/containers/toolbox/issues/330 and it already got fixed in https://github.com/containers/crun/pull/178; but there's no bodhi update for it yet, apparently.

Comment 2 Martin Pitt 2019-11-18 08:51:52 UTC

*** This bug has been marked as a duplicate of bug 1772460 ***


Note You need to log in before you can comment on or make changes to this bug.