Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toolbox Error: failed to start container permission denied #734

Closed
ziswiler opened this issue Feb 5, 2021 · 32 comments · Fixed by containers/toolbox#712
Closed

Toolbox Error: failed to start container permission denied #734

ziswiler opened this issue Feb 5, 2021 · 32 comments · Fixed by containers/toolbox#712

Comments

@ziswiler
Copy link

ziswiler commented Feb 5, 2021

Describe the bug
Entering a toolbox on Fedora fails yet again.

Reproduction steps
Steps to reproduce the behavior:

  1. toolbox create --release 33
  2. toolbox enter --release 33
  3. podman --log-level debug start fedora-toolbox-33

Expected behavior
One should be inside the toolbox container.

Actual behavior
Error occurs.

System details

  • Bare Metal running on HPE ProLiant DL380 Gen8 hardware.
  • Fedora CoreOS version: Both latest stable as latest testing show the issue.
[zim@linuxdev ~]$ sudo rpm-ostree status
State: idle
Deployments:
● ostree://fedora:fedora/x86_64/coreos/testing
                   Version: 33.20210201.2.1 (2021-02-02T20:44:57Z)
                    Commit: 68d6cdafd050778bf0d6ce93dbd11623cbd51dc0ca445a1f0de169a0903c1f64
              GPGSignature: Valid signature by 963A2BEB02009608FE67EA4249FD77499570FF31

  ostree://fedora:fedora/x86_64/coreos/stable
                   Version: 33.20210104.3.1 (2021-01-27T20:56:05Z)
                    Commit: 037428822a8b815605400e75fd0bb699cc27f11b1ee8a08ee64d943119c06ae2
              GPGSignature: Valid signature by 963A2BEB02009608FE67EA4249FD77499570FF31

Ignition config
Really nothing ignition specific as it worked before, nothing changed in such ignition respect.

Additional information
Add any other information about the problem here.

[zim@linuxdev ~]$ podman --version
podman version 2.2.1

[zim@linuxdev ~]$ toolbox --version
toolbox version 0.0.99

And full logfile:

[zim@linuxdev ~]$ podman --log-level debug start fedora-toolbox-33
INFO[0000] podman filtering at log level debug          
DEBU[0000] Called start.PersistentPreRunE(podman --log-level debug start fedora-toolbox-33) 
DEBU[0000] Reading configuration file "/usr/share/containers/containers.conf" 
DEBU[0000] Merged system config "/usr/share/containers/containers.conf": &{Containers:{Devices:[] Volumes:[] ApparmorProfile:containers-default-0.29.0 Annotations:[] CgroupNS:host Cgroups:enabled DefaultCapabilities:[CHOWN DAC_OVERRIDE FOWNER FSETID KILL NET_BIND_SERVICE SETFCAP SETGID SETPCAP SETUID SYS_CHROOT] DefaultSysctls:[net.ipv4.ping_group_range=0 0] DefaultUlimits:[] DefaultMountsFile: DNSServers:[] DNSOptions:[] DNSSearches:[] EnableKeyring:true EnableLabeling:true Env:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TERM=xterm] EnvHost:false HTTPProxy:false Init:false InitPath: IPCNS:private LogDriver:k8s-file LogSizeMax:-1 NetNS:slirp4netns NoHosts:false PidsLimit:2048 PidNS:private SeccompProfile:/usr/share/containers/seccomp.json ShmSize:65536k TZ: Umask:0022 UTSNS:private UserNS:host UserNSSize:65536} Engine:{ImageBuildFormat:oci CgroupCheck:false CgroupManager:cgroupfs ConmonEnvVars:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin] ConmonPath:[/usr/libexec/podman/conmon /usr/local/libexec/podman/conmon /usr/local/lib/podman/conmon /usr/bin/conmon /usr/sbin/conmon /usr/local/bin/conmon /usr/local/sbin/conmon /run/current-system/sw/bin/conmon] DetachKeys:ctrl-p,ctrl-q EnablePortReservation:true Env:[] EventsLogFilePath:/run/user/1001/libpod/tmp/events/events.log EventsLogger:journald HooksDir:[/usr/share/containers/oci/hooks.d] ImageDefaultTransport:docker:// InfraCommand: InfraImage:k8s.gcr.io/pause:3.2 InitPath:/usr/libexec/podman/catatonit LockType:shm MultiImageArchive:false Namespace: NetworkCmdPath: NoPivotRoot:false NumLocks:2048 OCIRuntime:runc OCIRuntimes:map[crun:[/usr/bin/crun /usr/sbin/crun /usr/local/bin/crun /usr/local/sbin/crun /sbin/crun /bin/crun /run/current-system/sw/bin/crun] kata:[/usr/bin/kata-runtime /usr/sbin/kata-runtime /usr/local/bin/kata-runtime /usr/local/sbin/kata-runtime /sbin/kata-runtime /bin/kata-runtime /usr/bin/kata-qemu /usr/bin/kata-fc] runc:[/usr/bin/runc /usr/sbin/runc /usr/local/bin/runc /usr/local/sbin/runc /sbin/runc /bin/runc /usr/lib/cri-o-runc/sbin/runc /run/current-system/sw/bin/runc]] PullPolicy:missing Remote:false RemoteURI: RemoteIdentity: ActiveService: ServiceDestinations:map[] RuntimePath:[] RuntimeSupportsJSON:[crun runc] RuntimeSupportsNoCgroups:[crun] RuntimeSupportsKVM:[kata kata-runtime kata-qemu kata-fc] SetOptions:{StorageConfigRunRootSet:false StorageConfigGraphRootSet:false StorageConfigGraphDriverNameSet:false StaticDirSet:false VolumePathSet:false TmpDirSet:false} SignaturePolicyPath:/etc/containers/policy.json SDNotify:false StateType:3 StaticDir:/home/zim/.local/share/containers/storage/libpod StopTimeout:10 TmpDir:/run/user/1001/libpod/tmp VolumePath:/home/zim/.local/share/containers/storage/volumes} Network:{CNIPluginDirs:[/usr/libexec/cni /usr/lib/cni /usr/local/lib/cni /opt/cni/bin] DefaultNetwork:podman NetworkConfigDir:/var/home/zim/.config/cni/net.d}} 
DEBU[0000] Using conmon: "/usr/bin/conmon"              
DEBU[0000] Initializing boltdb state at /home/zim/.local/share/containers/storage/libpod/bolt_state.db 
DEBU[0000] Using graph driver overlay                   
DEBU[0000] Using graph root /home/zim/.local/share/containers/storage 
DEBU[0000] Using run root /run/user/1001/containers     
DEBU[0000] Using static dir /home/zim/.local/share/containers/storage/libpod 
DEBU[0000] Using tmp dir /run/user/1001/libpod/tmp      
DEBU[0000] Using volume path /home/zim/.local/share/containers/storage/volumes 
DEBU[0000] Set libpod namespace to ""                   
DEBU[0000] Not configuring container store              
DEBU[0000] Initializing event backend journald          
DEBU[0000] using runtime "/usr/bin/runc"                
DEBU[0000] using runtime "/usr/bin/crun"                
WARN[0000] Error initializing configured OCI runtime kata: no valid executable found for OCI runtime kata: invalid argument 
INFO[0000] Setting parallel job count to 73             
INFO[0000] podman filtering at log level debug          
DEBU[0000] Called start.PersistentPreRunE(podman --log-level debug start fedora-toolbox-33) 
DEBU[0000] Reading configuration file "/usr/share/containers/containers.conf" 
DEBU[0000] Merged system config "/usr/share/containers/containers.conf": &{Containers:{Devices:[] Volumes:[] ApparmorProfile:containers-default-0.29.0 Annotations:[] CgroupNS:host Cgroups:enabled DefaultCapabilities:[CHOWN DAC_OVERRIDE FOWNER FSETID KILL NET_BIND_SERVICE SETFCAP SETGID SETPCAP SETUID SYS_CHROOT] DefaultSysctls:[net.ipv4.ping_group_range=0 0] DefaultUlimits:[] DefaultMountsFile: DNSServers:[] DNSOptions:[] DNSSearches:[] EnableKeyring:true EnableLabeling:true Env:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TERM=xterm] EnvHost:false HTTPProxy:false Init:false InitPath: IPCNS:private LogDriver:k8s-file LogSizeMax:-1 NetNS:slirp4netns NoHosts:false PidsLimit:2048 PidNS:private SeccompProfile:/usr/share/containers/seccomp.json ShmSize:65536k TZ: Umask:0022 UTSNS:private UserNS:host UserNSSize:65536} Engine:{ImageBuildFormat:oci CgroupCheck:false CgroupManager:cgroupfs ConmonEnvVars:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin] ConmonPath:[/usr/libexec/podman/conmon /usr/local/libexec/podman/conmon /usr/local/lib/podman/conmon /usr/bin/conmon /usr/sbin/conmon /usr/local/bin/conmon /usr/local/sbin/conmon /run/current-system/sw/bin/conmon] DetachKeys:ctrl-p,ctrl-q EnablePortReservation:true Env:[] EventsLogFilePath:/run/user/1001/libpod/tmp/events/events.log EventsLogger:journald HooksDir:[/usr/share/containers/oci/hooks.d] ImageDefaultTransport:docker:// InfraCommand: InfraImage:k8s.gcr.io/pause:3.2 InitPath:/usr/libexec/podman/catatonit LockType:shm MultiImageArchive:false Namespace: NetworkCmdPath: NoPivotRoot:false NumLocks:2048 OCIRuntime:runc OCIRuntimes:map[crun:[/usr/bin/crun /usr/sbin/crun /usr/local/bin/crun /usr/local/sbin/crun /sbin/crun /bin/crun /run/current-system/sw/bin/crun] kata:[/usr/bin/kata-runtime /usr/sbin/kata-runtime /usr/local/bin/kata-runtime /usr/local/sbin/kata-runtime /sbin/kata-runtime /bin/kata-runtime /usr/bin/kata-qemu /usr/bin/kata-fc] runc:[/usr/bin/runc /usr/sbin/runc /usr/local/bin/runc /usr/local/sbin/runc /sbin/runc /bin/runc /usr/lib/cri-o-runc/sbin/runc /run/current-system/sw/bin/runc]] PullPolicy:missing Remote:false RemoteURI: RemoteIdentity: ActiveService: ServiceDestinations:map[] RuntimePath:[] RuntimeSupportsJSON:[crun runc] RuntimeSupportsNoCgroups:[crun] RuntimeSupportsKVM:[kata kata-runtime kata-qemu kata-fc] SetOptions:{StorageConfigRunRootSet:false StorageConfigGraphRootSet:false StorageConfigGraphDriverNameSet:false StaticDirSet:false VolumePathSet:false TmpDirSet:false} SignaturePolicyPath:/etc/containers/policy.json SDNotify:false StateType:3 StaticDir:/home/zim/.local/share/containers/storage/libpod StopTimeout:10 TmpDir:/run/user/1001/libpod/tmp VolumePath:/home/zim/.local/share/containers/storage/volumes} Network:{CNIPluginDirs:[/usr/libexec/cni /usr/lib/cni /usr/local/lib/cni /opt/cni/bin] DefaultNetwork:podman NetworkConfigDir:/var/home/zim/.config/cni/net.d}} 
DEBU[0000] Using conmon: "/usr/bin/conmon"              
DEBU[0000] Initializing boltdb state at /home/zim/.local/share/containers/storage/libpod/bolt_state.db 
DEBU[0000] Using graph driver overlay                   
DEBU[0000] Using graph root /home/zim/.local/share/containers/storage 
DEBU[0000] Using run root /run/user/1001/containers     
DEBU[0000] Using static dir /home/zim/.local/share/containers/storage/libpod 
DEBU[0000] Using tmp dir /run/user/1001/libpod/tmp      
DEBU[0000] Using volume path /home/zim/.local/share/containers/storage/volumes 
DEBU[0000] Set libpod namespace to ""                   
DEBU[0000] [graphdriver] trying provided driver "overlay" 
DEBU[0000] overlay: mount_program=/usr/bin/fuse-overlayfs 
DEBU[0000] backingFs=xfs, projectQuotaSupported=false, useNativeDiff=false, usingMetacopy=false 
DEBU[0000] Initializing event backend journald          
DEBU[0000] using runtime "/usr/bin/runc"                
DEBU[0000] using runtime "/usr/bin/crun"                
WARN[0000] Error initializing configured OCI runtime kata: no valid executable found for OCI runtime kata: invalid argument 
INFO[0000] Setting parallel job count to 73             
DEBU[0000] overlay: mount_data=lowerdir=/home/zim/.local/share/containers/storage/overlay/l/EBFTD6DLAGZWPTGWRPR3ZAAZLG:/home/zim/.local/share/containers/storage/overlay/l/5W4ACAJ7QVC3CRFFITOVXG3RAO,upperdir=/home/zim/.local/share/containers/storage/overlay/80d056f0e90586f17fe9735116867bca418aa91885b01d63174543b043ce6f0e/diff,workdir=/home/zim/.local/share/containers/storage/overlay/80d056f0e90586f17fe9735116867bca418aa91885b01d63174543b043ce6f0e/work,context="system_u:object_r:container_file_t:s0:c107,c194" 
DEBU[0000] mounted container "248bcb8d85fc7d35fd0f17fa97167fe1f8a446f5a51974ec77869bce57cead60" at "/home/zim/.local/share/containers/storage/overlay/80d056f0e90586f17fe9735116867bca418aa91885b01d63174543b043ce6f0e/merged" 
DEBU[0000] Created root filesystem for container 248bcb8d85fc7d35fd0f17fa97167fe1f8a446f5a51974ec77869bce57cead60 at /var/home/zim/.local/share/containers/storage/overlay/80d056f0e90586f17fe9735116867bca418aa91885b01d63174543b043ce6f0e/merged 
DEBU[0000] Not modifying container 248bcb8d85fc7d35fd0f17fa97167fe1f8a446f5a51974ec77869bce57cead60 /etc/passwd 
DEBU[0000] Not modifying container 248bcb8d85fc7d35fd0f17fa97167fe1f8a446f5a51974ec77869bce57cead60 /etc/group 
DEBU[0000] /etc/system-fips does not exist on host, not mounting FIPS mode secret 
DEBU[0000] set root propagation to "rslave"             
DEBU[0000] reading hooks from /usr/share/containers/oci/hooks.d 
DEBU[0000] Created OCI spec for container 248bcb8d85fc7d35fd0f17fa97167fe1f8a446f5a51974ec77869bce57cead60 at /home/zim/.local/share/containers/storage/overlay-containers/248bcb8d85fc7d35fd0f17fa97167fe1f8a446f5a51974ec77869bce57cead60/userdata/config.json 
DEBU[0000] /usr/bin/conmon messages will be logged to syslog 
DEBU[0000] running conmon: /usr/bin/conmon               args="[--api-version 1 -c 248bcb8d85fc7d35fd0f17fa97167fe1f8a446f5a51974ec77869bce57cead60 -u 248bcb8d85fc7d35fd0f17fa97167fe1f8a446f5a51974ec77869bce57cead60 -r /usr/bin/runc -b /home/zim/.local/share/containers/storage/overlay-containers/248bcb8d85fc7d35fd0f17fa97167fe1f8a446f5a51974ec77869bce57cead60/userdata -p /run/user/1001/containers/overlay-containers/248bcb8d85fc7d35fd0f17fa97167fe1f8a446f5a51974ec77869bce57cead60/userdata/pidfile -n fedora-toolbox-33 --exit-dir /run/user/1001/libpod/tmp/exits --socket-dir-path /run/user/1001/libpod/tmp/socket -l k8s-file:/home/zim/.local/share/containers/storage/overlay-containers/248bcb8d85fc7d35fd0f17fa97167fe1f8a446f5a51974ec77869bce57cead60/userdata/ctr.log --log-level debug --syslog --conmon-pidfile /run/user/1001/containers/overlay-containers/248bcb8d85fc7d35fd0f17fa97167fe1f8a446f5a51974ec77869bce57cead60/userdata/conmon.pid --exit-command /usr/bin/podman --exit-command-arg --root --exit-command-arg /home/zim/.local/share/containers/storage --exit-command-arg --runroot --exit-command-arg /run/user/1001/containers --exit-command-arg --log-level --exit-command-arg error --exit-command-arg --cgroup-manager --exit-command-arg cgroupfs --exit-command-arg --tmpdir --exit-command-arg /run/user/1001/libpod/tmp --exit-command-arg --runtime --exit-command-arg runc --exit-command-arg --storage-driver --exit-command-arg overlay --exit-command-arg --storage-opt --exit-command-arg overlay.mount_program=/usr/bin/fuse-overlayfs --exit-command-arg --events-backend --exit-command-arg journald --exit-command-arg container --exit-command-arg cleanup --exit-command-arg 248bcb8d85fc7d35fd0f17fa97167fe1f8a446f5a51974ec77869bce57cead60]"
WARN[0000] Failed to add conmon to cgroupfs sandbox cgroup: error creating cgroup for cpu: mkdir /sys/fs/cgroup/cpu/libpod_parent: permission denied 
[conmon:d]: failed to write to /proc/self/oom_score_adj: Permission denied

DEBU[0000] Received: -1                                 
DEBU[0000] Cleaning up container 248bcb8d85fc7d35fd0f17fa97167fe1f8a446f5a51974ec77869bce57cead60 
DEBU[0000] Network is already cleaned up, skipping...   
DEBU[0000] unmounted container "248bcb8d85fc7d35fd0f17fa97167fe1f8a446f5a51974ec77869bce57cead60" 
Error: unable to start container "248bcb8d85fc7d35fd0f17fa97167fe1f8a446f5a51974ec77869bce57cead60": time="2021-02-05T13:07:39Z" level=warning msg="exit status 1"
time="2021-02-05T13:07:39Z" level=warning msg="cannot toggle freezer: cgroups not configured for container"
time="2021-02-05T13:07:39Z" level=warning msg="lstat : no such file or directory"
time="2021-02-05T13:07:39Z" level=error msg="container_linux.go:370: starting container process caused: process_linux.go:459: container init caused: rootfs_linux.go:59: mounting \"/boot\" to rootfs at \"/var/home/zim/.local/share/containers/storage/overlay/80d056f0e90586f17fe9735116867bca418aa91885b01d63174543b043ce6f0e/merged/run/host/boot\" caused: operation not permitted": OCI permission denied
@debarshiray
Copy link

What does this show:

$ podman start --attach fedora-toolbox-33

The --attach is important to see what's going on with entry point inside the container, as opposed to the Podman process on the host.

@debarshiray
Copy link

Also, what's the version of conmon? We have come across what seems like a conmon breakage.

@ziswiler
Copy link
Author

ziswiler commented Feb 23, 2021

What does this show:

$ podman start --attach fedora-toolbox-33

The --attach is important to see what's going on with entry point inside the container, as opposed to the Podman process on the host.

[zim@linuxdev ~]$ podman start --attach fedora-toolbox-33
Error: unable to start container 30f0179405f47140ba36d4cbce0ed895449863fa1b22f754cb1426752f7f675a: container_linux.go:370: starting container process caused: process_linux.go:459: container init caused: rootfs_linux.go:59: mounting "/boot" to rootfs at "/var/home/zim/.local/share/containers/storage/overlay/9ece48ae04c8a1c6f2f958602e4297ccda29c876a8173bc18ea612e5aab43b35/merged/run/host/boot" caused: operation not permitted: OCI permission denied

Actually, latest updates changed behaviour slightly.

[zim@linuxdev ~]$ podman --log-level debug start fedora-toolbox-33
INFO[0000] podman filtering at log level debug          
DEBU[0000] Called start.PersistentPreRunE(podman --log-level debug start fedora-toolbox-33) 
DEBU[0000] Reading configuration file "/usr/share/containers/containers.conf" 
DEBU[0000] Merged system config "/usr/share/containers/containers.conf": &{Containers:{Devices:[] Volumes:[] ApparmorProfile:containers-default-0.29.0 Annotations:[] CgroupNS:host Cgroups:enabled DefaultCapabilities:[CHOWN DAC_OVERRIDE FOWNER FSETID KILL NET_BIND_SERVICE SETFCAP SETGID SETPCAP SETUID SYS_CHROOT] DefaultSysctls:[net.ipv4.ping_group_range=0 0] DefaultUlimits:[] DefaultMountsFile: DNSServers:[] DNSOptions:[] DNSSearches:[] EnableKeyring:true EnableLabeling:true Env:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TERM=xterm] EnvHost:false HTTPProxy:false Init:false InitPath: IPCNS:private LogDriver:k8s-file LogSizeMax:-1 NetNS:slirp4netns NoHosts:false PidsLimit:2048 PidNS:private SeccompProfile:/usr/share/containers/seccomp.json ShmSize:65536k TZ: Umask:0022 UTSNS:private UserNS:host UserNSSize:65536} Engine:{ImageBuildFormat:oci CgroupCheck:false CgroupManager:cgroupfs ConmonEnvVars:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin] ConmonPath:[/usr/libexec/podman/conmon /usr/local/libexec/podman/conmon /usr/local/lib/podman/conmon /usr/bin/conmon /usr/sbin/conmon /usr/local/bin/conmon /usr/local/sbin/conmon /run/current-system/sw/bin/conmon] DetachKeys:ctrl-p,ctrl-q EnablePortReservation:true Env:[] EventsLogFilePath:/run/user/1001/libpod/tmp/events/events.log EventsLogger:journald HooksDir:[/usr/share/containers/oci/hooks.d] ImageDefaultTransport:docker:// InfraCommand: InfraImage:k8s.gcr.io/pause:3.2 InitPath:/usr/libexec/podman/catatonit LockType:shm MultiImageArchive:false Namespace: NetworkCmdPath: NoPivotRoot:false NumLocks:2048 OCIRuntime:runc OCIRuntimes:map[crun:[/usr/bin/crun /usr/sbin/crun /usr/local/bin/crun /usr/local/sbin/crun /sbin/crun /bin/crun /run/current-system/sw/bin/crun] kata:[/usr/bin/kata-runtime /usr/sbin/kata-runtime /usr/local/bin/kata-runtime /usr/local/sbin/kata-runtime /sbin/kata-runtime /bin/kata-runtime /usr/bin/kata-qemu /usr/bin/kata-fc] runc:[/usr/bin/runc /usr/sbin/runc /usr/local/bin/runc /usr/local/sbin/runc /sbin/runc /bin/runc /usr/lib/cri-o-runc/sbin/runc /run/current-system/sw/bin/runc]] PullPolicy:missing Remote:false RemoteURI: RemoteIdentity: ActiveService: ServiceDestinations:map[] RuntimePath:[] RuntimeSupportsJSON:[crun runc] RuntimeSupportsNoCgroups:[crun] RuntimeSupportsKVM:[kata kata-runtime kata-qemu kata-fc] SetOptions:{StorageConfigRunRootSet:false StorageConfigGraphRootSet:false StorageConfigGraphDriverNameSet:false StaticDirSet:false VolumePathSet:false TmpDirSet:false} SignaturePolicyPath:/etc/containers/policy.json SDNotify:false StateType:3 StaticDir:/home/zim/.local/share/containers/storage/libpod StopTimeout:10 TmpDir:/run/user/1001/libpod/tmp VolumePath:/home/zim/.local/share/containers/storage/volumes} Network:{CNIPluginDirs:[/usr/libexec/cni /usr/lib/cni /usr/local/lib/cni /opt/cni/bin] DefaultNetwork:podman NetworkConfigDir:/var/home/zim/.config/cni/net.d}} 
DEBU[0000] Reading configuration file "/etc/containers/containers.conf" 
DEBU[0000] Merged system config "/etc/containers/containers.conf": &{Containers:{Devices:[] Volumes:[] ApparmorProfile:containers-default-0.29.0 Annotations:[] CgroupNS:host Cgroups:enabled DefaultCapabilities:[CHOWN DAC_OVERRIDE FOWNER FSETID KILL NET_BIND_SERVICE SETFCAP SETGID SETPCAP SETUID SYS_CHROOT] DefaultSysctls:[net.ipv4.ping_group_range=0 0] DefaultUlimits:[] DefaultMountsFile: DNSServers:[] DNSOptions:[] DNSSearches:[] EnableKeyring:true EnableLabeling:true Env:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TERM=xterm] EnvHost:false HTTPProxy:false Init:false InitPath: IPCNS:private LogDriver:k8s-file LogSizeMax:-1 NetNS:slirp4netns NoHosts:false PidsLimit:2048 PidNS:private SeccompProfile:/usr/share/containers/seccomp.json ShmSize:65536k TZ: Umask:0022 UTSNS:private UserNS:host UserNSSize:65536} Engine:{ImageBuildFormat:oci CgroupCheck:false CgroupManager:cgroupfs ConmonEnvVars:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin] ConmonPath:[/usr/libexec/podman/conmon /usr/local/libexec/podman/conmon /usr/local/lib/podman/conmon /usr/bin/conmon /usr/sbin/conmon /usr/local/bin/conmon /usr/local/sbin/conmon /run/current-system/sw/bin/conmon] DetachKeys:ctrl-p,ctrl-q EnablePortReservation:true Env:[] EventsLogFilePath:/run/user/1001/libpod/tmp/events/events.log EventsLogger:journald HooksDir:[/usr/share/containers/oci/hooks.d] ImageDefaultTransport:docker:// InfraCommand: InfraImage:k8s.gcr.io/pause:3.2 InitPath:/usr/libexec/podman/catatonit LockType:shm MultiImageArchive:false Namespace: NetworkCmdPath: NoPivotRoot:false NumLocks:2048 OCIRuntime:runc OCIRuntimes:map[crun:[/usr/bin/crun /usr/sbin/crun /usr/local/bin/crun /usr/local/sbin/crun /sbin/crun /bin/crun /run/current-system/sw/bin/crun] kata:[/usr/bin/kata-runtime /usr/sbin/kata-runtime /usr/local/bin/kata-runtime /usr/local/sbin/kata-runtime /sbin/kata-runtime /bin/kata-runtime /usr/bin/kata-qemu /usr/bin/kata-fc] runc:[/usr/bin/runc /usr/sbin/runc /usr/local/bin/runc /usr/local/sbin/runc /sbin/runc /bin/runc /usr/lib/cri-o-runc/sbin/runc /run/current-system/sw/bin/runc]] PullPolicy:missing Remote:false RemoteURI: RemoteIdentity: ActiveService: ServiceDestinations:map[] RuntimePath:[] RuntimeSupportsJSON:[crun runc] RuntimeSupportsNoCgroups:[crun] RuntimeSupportsKVM:[kata kata-runtime kata-qemu kata-fc] SetOptions:{StorageConfigRunRootSet:false StorageConfigGraphRootSet:false StorageConfigGraphDriverNameSet:false StaticDirSet:false VolumePathSet:false TmpDirSet:false} SignaturePolicyPath:/etc/containers/policy.json SDNotify:false StateType:3 StaticDir:/home/zim/.local/share/containers/storage/libpod StopTimeout:10 TmpDir:/run/user/1001/libpod/tmp VolumePath:/home/zim/.local/share/containers/storage/volumes} Network:{CNIPluginDirs:[/usr/libexec/cni /usr/lib/cni /usr/local/lib/cni /opt/cni/bin] DefaultNetwork:podman NetworkConfigDir:/var/home/zim/.config/cni/net.d}} 
DEBU[0000] Using conmon: "/usr/bin/conmon"              
DEBU[0000] Initializing boltdb state at /home/zim/.local/share/containers/storage/libpod/bolt_state.db 
DEBU[0000] Using graph driver overlay                   
DEBU[0000] Using graph root /home/zim/.local/share/containers/storage 
DEBU[0000] Using run root /run/user/1001/containers     
DEBU[0000] Using static dir /home/zim/.local/share/containers/storage/libpod 
DEBU[0000] Using tmp dir /run/user/1001/libpod/tmp      
DEBU[0000] Using volume path /home/zim/.local/share/containers/storage/volumes 
DEBU[0000] Set libpod namespace to ""                   
DEBU[0000] Not configuring container store              
DEBU[0000] Initializing event backend journald          
DEBU[0000] using runtime "/usr/bin/crun"                
WARN[0000] Error initializing configured OCI runtime kata: no valid executable found for OCI runtime kata: invalid argument 
DEBU[0000] using runtime "/usr/bin/runc"                
INFO[0000] Setting parallel job count to 73             
INFO[0000] podman filtering at log level debug          
DEBU[0000] Called start.PersistentPreRunE(podman --log-level debug start fedora-toolbox-33) 
DEBU[0000] Reading configuration file "/usr/share/containers/containers.conf" 
DEBU[0000] Merged system config "/usr/share/containers/containers.conf": &{Containers:{Devices:[] Volumes:[] ApparmorProfile:containers-default-0.29.0 Annotations:[] CgroupNS:host Cgroups:enabled DefaultCapabilities:[CHOWN DAC_OVERRIDE FOWNER FSETID KILL NET_BIND_SERVICE SETFCAP SETGID SETPCAP SETUID SYS_CHROOT] DefaultSysctls:[net.ipv4.ping_group_range=0 0] DefaultUlimits:[] DefaultMountsFile: DNSServers:[] DNSOptions:[] DNSSearches:[] EnableKeyring:true EnableLabeling:true Env:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TERM=xterm] EnvHost:false HTTPProxy:false Init:false InitPath: IPCNS:private LogDriver:k8s-file LogSizeMax:-1 NetNS:slirp4netns NoHosts:false PidsLimit:2048 PidNS:private SeccompProfile:/usr/share/containers/seccomp.json ShmSize:65536k TZ: Umask:0022 UTSNS:private UserNS:host UserNSSize:65536} Engine:{ImageBuildFormat:oci CgroupCheck:false CgroupManager:cgroupfs ConmonEnvVars:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin] ConmonPath:[/usr/libexec/podman/conmon /usr/local/libexec/podman/conmon /usr/local/lib/podman/conmon /usr/bin/conmon /usr/sbin/conmon /usr/local/bin/conmon /usr/local/sbin/conmon /run/current-system/sw/bin/conmon] DetachKeys:ctrl-p,ctrl-q EnablePortReservation:true Env:[] EventsLogFilePath:/run/user/1001/libpod/tmp/events/events.log EventsLogger:journald HooksDir:[/usr/share/containers/oci/hooks.d] ImageDefaultTransport:docker:// InfraCommand: InfraImage:k8s.gcr.io/pause:3.2 InitPath:/usr/libexec/podman/catatonit LockType:shm MultiImageArchive:false Namespace: NetworkCmdPath: NoPivotRoot:false NumLocks:2048 OCIRuntime:runc OCIRuntimes:map[crun:[/usr/bin/crun /usr/sbin/crun /usr/local/bin/crun /usr/local/sbin/crun /sbin/crun /bin/crun /run/current-system/sw/bin/crun] kata:[/usr/bin/kata-runtime /usr/sbin/kata-runtime /usr/local/bin/kata-runtime /usr/local/sbin/kata-runtime /sbin/kata-runtime /bin/kata-runtime /usr/bin/kata-qemu /usr/bin/kata-fc] runc:[/usr/bin/runc /usr/sbin/runc /usr/local/bin/runc /usr/local/sbin/runc /sbin/runc /bin/runc /usr/lib/cri-o-runc/sbin/runc /run/current-system/sw/bin/runc]] PullPolicy:missing Remote:false RemoteURI: RemoteIdentity: ActiveService: ServiceDestinations:map[] RuntimePath:[] RuntimeSupportsJSON:[crun runc] RuntimeSupportsNoCgroups:[crun] RuntimeSupportsKVM:[kata kata-runtime kata-qemu kata-fc] SetOptions:{StorageConfigRunRootSet:false StorageConfigGraphRootSet:false StorageConfigGraphDriverNameSet:false StaticDirSet:false VolumePathSet:false TmpDirSet:false} SignaturePolicyPath:/etc/containers/policy.json SDNotify:false StateType:3 StaticDir:/home/zim/.local/share/containers/storage/libpod StopTimeout:10 TmpDir:/run/user/1001/libpod/tmp VolumePath:/home/zim/.local/share/containers/storage/volumes} Network:{CNIPluginDirs:[/usr/libexec/cni /usr/lib/cni /usr/local/lib/cni /opt/cni/bin] DefaultNetwork:podman NetworkConfigDir:/var/home/zim/.config/cni/net.d}} 
DEBU[0000] Reading configuration file "/etc/containers/containers.conf" 
DEBU[0000] Merged system config "/etc/containers/containers.conf": &{Containers:{Devices:[] Volumes:[] ApparmorProfile:containers-default-0.29.0 Annotations:[] CgroupNS:host Cgroups:enabled DefaultCapabilities:[CHOWN DAC_OVERRIDE FOWNER FSETID KILL NET_BIND_SERVICE SETFCAP SETGID SETPCAP SETUID SYS_CHROOT] DefaultSysctls:[net.ipv4.ping_group_range=0 0] DefaultUlimits:[] DefaultMountsFile: DNSServers:[] DNSOptions:[] DNSSearches:[] EnableKeyring:true EnableLabeling:true Env:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TERM=xterm] EnvHost:false HTTPProxy:false Init:false InitPath: IPCNS:private LogDriver:k8s-file LogSizeMax:-1 NetNS:slirp4netns NoHosts:false PidsLimit:2048 PidNS:private SeccompProfile:/usr/share/containers/seccomp.json ShmSize:65536k TZ: Umask:0022 UTSNS:private UserNS:host UserNSSize:65536} Engine:{ImageBuildFormat:oci CgroupCheck:false CgroupManager:cgroupfs ConmonEnvVars:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin] ConmonPath:[/usr/libexec/podman/conmon /usr/local/libexec/podman/conmon /usr/local/lib/podman/conmon /usr/bin/conmon /usr/sbin/conmon /usr/local/bin/conmon /usr/local/sbin/conmon /run/current-system/sw/bin/conmon] DetachKeys:ctrl-p,ctrl-q EnablePortReservation:true Env:[] EventsLogFilePath:/run/user/1001/libpod/tmp/events/events.log EventsLogger:journald HooksDir:[/usr/share/containers/oci/hooks.d] ImageDefaultTransport:docker:// InfraCommand: InfraImage:k8s.gcr.io/pause:3.2 InitPath:/usr/libexec/podman/catatonit LockType:shm MultiImageArchive:false Namespace: NetworkCmdPath: NoPivotRoot:false NumLocks:2048 OCIRuntime:runc OCIRuntimes:map[crun:[/usr/bin/crun /usr/sbin/crun /usr/local/bin/crun /usr/local/sbin/crun /sbin/crun /bin/crun /run/current-system/sw/bin/crun] kata:[/usr/bin/kata-runtime /usr/sbin/kata-runtime /usr/local/bin/kata-runtime /usr/local/sbin/kata-runtime /sbin/kata-runtime /bin/kata-runtime /usr/bin/kata-qemu /usr/bin/kata-fc] runc:[/usr/bin/runc /usr/sbin/runc /usr/local/bin/runc /usr/local/sbin/runc /sbin/runc /bin/runc /usr/lib/cri-o-runc/sbin/runc /run/current-system/sw/bin/runc]] PullPolicy:missing Remote:false RemoteURI: RemoteIdentity: ActiveService: ServiceDestinations:map[] RuntimePath:[] RuntimeSupportsJSON:[crun runc] RuntimeSupportsNoCgroups:[crun] RuntimeSupportsKVM:[kata kata-runtime kata-qemu kata-fc] SetOptions:{StorageConfigRunRootSet:false StorageConfigGraphRootSet:false StorageConfigGraphDriverNameSet:false StaticDirSet:false VolumePathSet:false TmpDirSet:false} SignaturePolicyPath:/etc/containers/policy.json SDNotify:false StateType:3 StaticDir:/home/zim/.local/share/containers/storage/libpod StopTimeout:10 TmpDir:/run/user/1001/libpod/tmp VolumePath:/home/zim/.local/share/containers/storage/volumes} Network:{CNIPluginDirs:[/usr/libexec/cni /usr/lib/cni /usr/local/lib/cni /opt/cni/bin] DefaultNetwork:podman NetworkConfigDir:/var/home/zim/.config/cni/net.d}} 
DEBU[0000] Using conmon: "/usr/bin/conmon"              
DEBU[0000] Initializing boltdb state at /home/zim/.local/share/containers/storage/libpod/bolt_state.db 
DEBU[0000] Using graph driver overlay                   
DEBU[0000] Using graph root /home/zim/.local/share/containers/storage 
DEBU[0000] Using run root /run/user/1001/containers     
DEBU[0000] Using static dir /home/zim/.local/share/containers/storage/libpod 
DEBU[0000] Using tmp dir /run/user/1001/libpod/tmp      
DEBU[0000] Using volume path /home/zim/.local/share/containers/storage/volumes 
DEBU[0000] Set libpod namespace to ""                   
DEBU[0000] [graphdriver] trying provided driver "overlay" 
DEBU[0000] overlay: mount_program=/usr/bin/fuse-overlayfs 
DEBU[0000] backingFs=xfs, projectQuotaSupported=false, useNativeDiff=false, usingMetacopy=false 
DEBU[0000] Initializing event backend journald          
DEBU[0000] using runtime "/usr/bin/runc"                
DEBU[0000] using runtime "/usr/bin/crun"                
WARN[0000] Error initializing configured OCI runtime kata: no valid executable found for OCI runtime kata: invalid argument 
INFO[0000] Setting parallel job count to 73             
DEBU[0000] overlay: mount_data=lowerdir=/home/zim/.local/share/containers/storage/overlay/l/EBFTD6DLAGZWPTGWRPR3ZAAZLG:/home/zim/.local/share/containers/storage/overlay/l/5W4ACAJ7QVC3CRFFITOVXG3RAO,upperdir=/home/zim/.local/share/containers/storage/overlay/9ece48ae04c8a1c6f2f958602e4297ccda29c876a8173bc18ea612e5aab43b35/diff,workdir=/home/zim/.local/share/containers/storage/overlay/9ece48ae04c8a1c6f2f958602e4297ccda29c876a8173bc18ea612e5aab43b35/work,context="system_u:object_r:container_file_t:s0:c84,c955" 
DEBU[0000] mounted container "30f0179405f47140ba36d4cbce0ed895449863fa1b22f754cb1426752f7f675a" at "/home/zim/.local/share/containers/storage/overlay/9ece48ae04c8a1c6f2f958602e4297ccda29c876a8173bc18ea612e5aab43b35/merged" 
DEBU[0000] Created root filesystem for container 30f0179405f47140ba36d4cbce0ed895449863fa1b22f754cb1426752f7f675a at /var/home/zim/.local/share/containers/storage/overlay/9ece48ae04c8a1c6f2f958602e4297ccda29c876a8173bc18ea612e5aab43b35/merged 
DEBU[0000] Not modifying container 30f0179405f47140ba36d4cbce0ed895449863fa1b22f754cb1426752f7f675a /etc/passwd 
DEBU[0000] Not modifying container 30f0179405f47140ba36d4cbce0ed895449863fa1b22f754cb1426752f7f675a /etc/group 
DEBU[0000] /etc/system-fips does not exist on host, not mounting FIPS mode secret 
DEBU[0000] set root propagation to "rslave"             
DEBU[0000] reading hooks from /usr/share/containers/oci/hooks.d 
DEBU[0000] Created OCI spec for container 30f0179405f47140ba36d4cbce0ed895449863fa1b22f754cb1426752f7f675a at /home/zim/.local/share/containers/storage/overlay-containers/30f0179405f47140ba36d4cbce0ed895449863fa1b22f754cb1426752f7f675a/userdata/config.json 
DEBU[0000] /usr/bin/conmon messages will be logged to syslog 
DEBU[0000] running conmon: /usr/bin/conmon               args="[--api-version 1 -c 30f0179405f47140ba36d4cbce0ed895449863fa1b22f754cb1426752f7f675a -u 30f0179405f47140ba36d4cbce0ed895449863fa1b22f754cb1426752f7f675a -r /usr/bin/runc -b /home/zim/.local/share/containers/storage/overlay-containers/30f0179405f47140ba36d4cbce0ed895449863fa1b22f754cb1426752f7f675a/userdata -p /run/user/1001/containers/overlay-containers/30f0179405f47140ba36d4cbce0ed895449863fa1b22f754cb1426752f7f675a/userdata/pidfile -n fedora-toolbox-33 --exit-dir /run/user/1001/libpod/tmp/exits --socket-dir-path /run/user/1001/libpod/tmp/socket -l k8s-file:/home/zim/.local/share/containers/storage/overlay-containers/30f0179405f47140ba36d4cbce0ed895449863fa1b22f754cb1426752f7f675a/userdata/ctr.log --log-level debug --syslog --conmon-pidfile /run/user/1001/containers/overlay-containers/30f0179405f47140ba36d4cbce0ed895449863fa1b22f754cb1426752f7f675a/userdata/conmon.pid --exit-command /usr/bin/podman --exit-command-arg --root --exit-command-arg /home/zim/.local/share/containers/storage --exit-command-arg --runroot --exit-command-arg /run/user/1001/containers --exit-command-arg --log-level --exit-command-arg error --exit-command-arg --cgroup-manager --exit-command-arg cgroupfs --exit-command-arg --tmpdir --exit-command-arg /run/user/1001/libpod/tmp --exit-command-arg --runtime --exit-command-arg runc --exit-command-arg --storage-driver --exit-command-arg overlay --exit-command-arg --storage-opt --exit-command-arg overlay.mount_program=/usr/bin/fuse-overlayfs --exit-command-arg --events-backend --exit-command-arg journald --exit-command-arg container --exit-command-arg cleanup --exit-command-arg 30f0179405f47140ba36d4cbce0ed895449863fa1b22f754cb1426752f7f675a]"
WARN[0000] Failed to add conmon to cgroupfs sandbox cgroup: error creating cgroup for cpu: mkdir /sys/fs/cgroup/cpu/libpod_parent: permission denied 
[conmon:d]: failed to write to /proc/self/oom_score_adj: Permission denied

DEBU[0000] Received: -1                                 
DEBU[0000] Cleaning up container 30f0179405f47140ba36d4cbce0ed895449863fa1b22f754cb1426752f7f675a 
DEBU[0000] Network is already cleaned up, skipping...   
DEBU[0000] unmounted container "30f0179405f47140ba36d4cbce0ed895449863fa1b22f754cb1426752f7f675a" 
Error: unable to start container "30f0179405f47140ba36d4cbce0ed895449863fa1b22f754cb1426752f7f675a": time="2021-02-23T00:49:37Z" level=warning msg="exit status 1"
time="2021-02-23T00:49:37Z" level=warning msg="cannot toggle freezer: cgroups not configured for container"
time="2021-02-23T00:49:37Z" level=warning msg="lstat : no such file or directory"
time="2021-02-23T00:49:37Z" level=error msg="container_linux.go:370: starting container process caused: process_linux.go:459: container init caused: rootfs_linux.go:59: mounting \"/boot\" to rootfs at \"/var/home/zim/.local/share/containers/storage/overlay/9ece48ae04c8a1c6f2f958602e4297ccda29c876a8173bc18ea612e5aab43b35/merged/run/host/boot\" caused: operation not permitted": OCI permission denied

@ziswiler
Copy link
Author

Also, what's the version of conmon? We have come across what seems like a conmon breakage.

[zim@linuxdev ~]$ rpm -qa | grep conmon
conmon-2.0.21-3.fc33.x86_64

@ziswiler
Copy link
Author

Looks like updated conmon in testing also does not help!

[zim@linuxdev ~]$ toolbox create
Image required to create toolbox container.
Download registry.fedoraproject.org/f33/fedora-toolbox:33 (500MB)? [y/N]: y
Created container: fedora-toolbox-33
Enter with: toolbox enter
[zim@linuxdev ~]$ toolbox enter
Error: failed to start container fedora-toolbox-33
[zim@linuxdev ~]$ podman start --attach fedora-toolbox-33
Error: unable to start container 7a20758abbc884b67738192b24245e0ac624f8295853e675b81de1ca6d6c2065: container_linux.go:370: starting container process caused: process_linux.go:459: container init caused: rootfs_linux.go:59: mounting "/boot" to rootfs at "/var/home/zim/.local/share/containers/storage/overlay/c728c360e3b8c6e13e4d7e887b89991b21acfbc3f586de6d6981361508d9c905/merged/run/host/boot" caused: operation not permitted: OCI permission denied
[zim@linuxdev ~]$ podman --log-level debug start fedora-toolbox-33
INFO[0000] podman filtering at log level debug          
DEBU[0000] Called start.PersistentPreRunE(podman --log-level debug start fedora-toolbox-33) 
DEBU[0000] Reading configuration file "/usr/share/containers/containers.conf" 
DEBU[0000] Merged system config "/usr/share/containers/containers.conf": &{Containers:{Devices:[] Volumes:[] ApparmorProfile:containers-default-0.29.0 Annotations:[] CgroupNS:host Cgroups:enabled DefaultCapabilities:[CHOWN DAC_OVERRIDE FOWNER FSETID KILL NET_BIND_SERVICE SETFCAP SETGID SETPCAP SETUID SYS_CHROOT] DefaultSysctls:[net.ipv4.ping_group_range=0 0] DefaultUlimits:[] DefaultMountsFile: DNSServers:[] DNSOptions:[] DNSSearches:[] EnableKeyring:true EnableLabeling:true Env:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TERM=xterm] EnvHost:false HTTPProxy:false Init:false InitPath: IPCNS:private LogDriver:k8s-file LogSizeMax:-1 NetNS:slirp4netns NoHosts:false PidsLimit:2048 PidNS:private SeccompProfile:/usr/share/containers/seccomp.json ShmSize:65536k TZ: Umask:0022 UTSNS:private UserNS:host UserNSSize:65536} Engine:{ImageBuildFormat:oci CgroupCheck:false CgroupManager:cgroupfs ConmonEnvVars:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin] ConmonPath:[/usr/libexec/podman/conmon /usr/local/libexec/podman/conmon /usr/local/lib/podman/conmon /usr/bin/conmon /usr/sbin/conmon /usr/local/bin/conmon /usr/local/sbin/conmon /run/current-system/sw/bin/conmon] DetachKeys:ctrl-p,ctrl-q EnablePortReservation:true Env:[] EventsLogFilePath:/run/user/1001/libpod/tmp/events/events.log EventsLogger:journald HooksDir:[/usr/share/containers/oci/hooks.d] ImageDefaultTransport:docker:// InfraCommand: InfraImage:k8s.gcr.io/pause:3.2 InitPath:/usr/libexec/podman/catatonit LockType:shm MultiImageArchive:false Namespace: NetworkCmdPath: NoPivotRoot:false NumLocks:2048 OCIRuntime:runc OCIRuntimes:map[crun:[/usr/bin/crun /usr/sbin/crun /usr/local/bin/crun /usr/local/sbin/crun /sbin/crun /bin/crun /run/current-system/sw/bin/crun] kata:[/usr/bin/kata-runtime /usr/sbin/kata-runtime /usr/local/bin/kata-runtime /usr/local/sbin/kata-runtime /sbin/kata-runtime /bin/kata-runtime /usr/bin/kata-qemu /usr/bin/kata-fc] runc:[/usr/bin/runc /usr/sbin/runc /usr/local/bin/runc /usr/local/sbin/runc /sbin/runc /bin/runc /usr/lib/cri-o-runc/sbin/runc /run/current-system/sw/bin/runc]] PullPolicy:missing Remote:false RemoteURI: RemoteIdentity: ActiveService: ServiceDestinations:map[] RuntimePath:[] RuntimeSupportsJSON:[crun runc] RuntimeSupportsNoCgroups:[crun] RuntimeSupportsKVM:[kata kata-runtime kata-qemu kata-fc] SetOptions:{StorageConfigRunRootSet:false StorageConfigGraphRootSet:false StorageConfigGraphDriverNameSet:false StaticDirSet:false VolumePathSet:false TmpDirSet:false} SignaturePolicyPath:/etc/containers/policy.json SDNotify:false StateType:3 StaticDir:/home/zim/.local/share/containers/storage/libpod StopTimeout:10 TmpDir:/run/user/1001/libpod/tmp VolumePath:/home/zim/.local/share/containers/storage/volumes} Network:{CNIPluginDirs:[/usr/libexec/cni /usr/lib/cni /usr/local/lib/cni /opt/cni/bin] DefaultNetwork:podman NetworkConfigDir:/var/home/zim/.config/cni/net.d}} 
DEBU[0000] Reading configuration file "/etc/containers/containers.conf" 
DEBU[0000] Merged system config "/etc/containers/containers.conf": &{Containers:{Devices:[] Volumes:[] ApparmorProfile:containers-default-0.29.0 Annotations:[] CgroupNS:host Cgroups:enabled DefaultCapabilities:[CHOWN DAC_OVERRIDE FOWNER FSETID KILL NET_BIND_SERVICE SETFCAP SETGID SETPCAP SETUID SYS_CHROOT] DefaultSysctls:[net.ipv4.ping_group_range=0 0] DefaultUlimits:[] DefaultMountsFile: DNSServers:[] DNSOptions:[] DNSSearches:[] EnableKeyring:true EnableLabeling:true Env:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TERM=xterm] EnvHost:false HTTPProxy:false Init:false InitPath: IPCNS:private LogDriver:k8s-file LogSizeMax:-1 NetNS:slirp4netns NoHosts:false PidsLimit:2048 PidNS:private SeccompProfile:/usr/share/containers/seccomp.json ShmSize:65536k TZ: Umask:0022 UTSNS:private UserNS:host UserNSSize:65536} Engine:{ImageBuildFormat:oci CgroupCheck:false CgroupManager:cgroupfs ConmonEnvVars:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin] ConmonPath:[/usr/libexec/podman/conmon /usr/local/libexec/podman/conmon /usr/local/lib/podman/conmon /usr/bin/conmon /usr/sbin/conmon /usr/local/bin/conmon /usr/local/sbin/conmon /run/current-system/sw/bin/conmon] DetachKeys:ctrl-p,ctrl-q EnablePortReservation:true Env:[] EventsLogFilePath:/run/user/1001/libpod/tmp/events/events.log EventsLogger:journald HooksDir:[/usr/share/containers/oci/hooks.d] ImageDefaultTransport:docker:// InfraCommand: InfraImage:k8s.gcr.io/pause:3.2 InitPath:/usr/libexec/podman/catatonit LockType:shm MultiImageArchive:false Namespace: NetworkCmdPath: NoPivotRoot:false NumLocks:2048 OCIRuntime:runc OCIRuntimes:map[crun:[/usr/bin/crun /usr/sbin/crun /usr/local/bin/crun /usr/local/sbin/crun /sbin/crun /bin/crun /run/current-system/sw/bin/crun] kata:[/usr/bin/kata-runtime /usr/sbin/kata-runtime /usr/local/bin/kata-runtime /usr/local/sbin/kata-runtime /sbin/kata-runtime /bin/kata-runtime /usr/bin/kata-qemu /usr/bin/kata-fc] runc:[/usr/bin/runc /usr/sbin/runc /usr/local/bin/runc /usr/local/sbin/runc /sbin/runc /bin/runc /usr/lib/cri-o-runc/sbin/runc /run/current-system/sw/bin/runc]] PullPolicy:missing Remote:false RemoteURI: RemoteIdentity: ActiveService: ServiceDestinations:map[] RuntimePath:[] RuntimeSupportsJSON:[crun runc] RuntimeSupportsNoCgroups:[crun] RuntimeSupportsKVM:[kata kata-runtime kata-qemu kata-fc] SetOptions:{StorageConfigRunRootSet:false StorageConfigGraphRootSet:false StorageConfigGraphDriverNameSet:false StaticDirSet:false VolumePathSet:false TmpDirSet:false} SignaturePolicyPath:/etc/containers/policy.json SDNotify:false StateType:3 StaticDir:/home/zim/.local/share/containers/storage/libpod StopTimeout:10 TmpDir:/run/user/1001/libpod/tmp VolumePath:/home/zim/.local/share/containers/storage/volumes} Network:{CNIPluginDirs:[/usr/libexec/cni /usr/lib/cni /usr/local/lib/cni /opt/cni/bin] DefaultNetwork:podman NetworkConfigDir:/var/home/zim/.config/cni/net.d}} 
DEBU[0000] Using conmon: "/usr/bin/conmon"              
DEBU[0000] Initializing boltdb state at /home/zim/.local/share/containers/storage/libpod/bolt_state.db 
DEBU[0000] Using graph driver overlay                   
DEBU[0000] Using graph root /home/zim/.local/share/containers/storage 
DEBU[0000] Using run root /run/user/1001/containers     
DEBU[0000] Using static dir /home/zim/.local/share/containers/storage/libpod 
DEBU[0000] Using tmp dir /run/user/1001/libpod/tmp      
DEBU[0000] Using volume path /home/zim/.local/share/containers/storage/volumes 
DEBU[0000] Set libpod namespace to ""                   
DEBU[0000] Not configuring container store              
DEBU[0000] Initializing event backend journald          
DEBU[0000] using runtime "/usr/bin/runc"                
DEBU[0000] using runtime "/usr/bin/crun"                
WARN[0000] Error initializing configured OCI runtime kata: no valid executable found for OCI runtime kata: invalid argument 
INFO[0000] Setting parallel job count to 73             
INFO[0000] podman filtering at log level debug          
DEBU[0000] Called start.PersistentPreRunE(podman --log-level debug start fedora-toolbox-33) 
DEBU[0000] Reading configuration file "/usr/share/containers/containers.conf" 
DEBU[0000] Merged system config "/usr/share/containers/containers.conf": &{Containers:{Devices:[] Volumes:[] ApparmorProfile:containers-default-0.29.0 Annotations:[] CgroupNS:host Cgroups:enabled DefaultCapabilities:[CHOWN DAC_OVERRIDE FOWNER FSETID KILL NET_BIND_SERVICE SETFCAP SETGID SETPCAP SETUID SYS_CHROOT] DefaultSysctls:[net.ipv4.ping_group_range=0 0] DefaultUlimits:[] DefaultMountsFile: DNSServers:[] DNSOptions:[] DNSSearches:[] EnableKeyring:true EnableLabeling:true Env:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TERM=xterm] EnvHost:false HTTPProxy:false Init:false InitPath: IPCNS:private LogDriver:k8s-file LogSizeMax:-1 NetNS:slirp4netns NoHosts:false PidsLimit:2048 PidNS:private SeccompProfile:/usr/share/containers/seccomp.json ShmSize:65536k TZ: Umask:0022 UTSNS:private UserNS:host UserNSSize:65536} Engine:{ImageBuildFormat:oci CgroupCheck:false CgroupManager:cgroupfs ConmonEnvVars:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin] ConmonPath:[/usr/libexec/podman/conmon /usr/local/libexec/podman/conmon /usr/local/lib/podman/conmon /usr/bin/conmon /usr/sbin/conmon /usr/local/bin/conmon /usr/local/sbin/conmon /run/current-system/sw/bin/conmon] DetachKeys:ctrl-p,ctrl-q EnablePortReservation:true Env:[] EventsLogFilePath:/run/user/1001/libpod/tmp/events/events.log EventsLogger:journald HooksDir:[/usr/share/containers/oci/hooks.d] ImageDefaultTransport:docker:// InfraCommand: InfraImage:k8s.gcr.io/pause:3.2 InitPath:/usr/libexec/podman/catatonit LockType:shm MultiImageArchive:false Namespace: NetworkCmdPath: NoPivotRoot:false NumLocks:2048 OCIRuntime:runc OCIRuntimes:map[crun:[/usr/bin/crun /usr/sbin/crun /usr/local/bin/crun /usr/local/sbin/crun /sbin/crun /bin/crun /run/current-system/sw/bin/crun] kata:[/usr/bin/kata-runtime /usr/sbin/kata-runtime /usr/local/bin/kata-runtime /usr/local/sbin/kata-runtime /sbin/kata-runtime /bin/kata-runtime /usr/bin/kata-qemu /usr/bin/kata-fc] runc:[/usr/bin/runc /usr/sbin/runc /usr/local/bin/runc /usr/local/sbin/runc /sbin/runc /bin/runc /usr/lib/cri-o-runc/sbin/runc /run/current-system/sw/bin/runc]] PullPolicy:missing Remote:false RemoteURI: RemoteIdentity: ActiveService: ServiceDestinations:map[] RuntimePath:[] RuntimeSupportsJSON:[crun runc] RuntimeSupportsNoCgroups:[crun] RuntimeSupportsKVM:[kata kata-runtime kata-qemu kata-fc] SetOptions:{StorageConfigRunRootSet:false StorageConfigGraphRootSet:false StorageConfigGraphDriverNameSet:false StaticDirSet:false VolumePathSet:false TmpDirSet:false} SignaturePolicyPath:/etc/containers/policy.json SDNotify:false StateType:3 StaticDir:/home/zim/.local/share/containers/storage/libpod StopTimeout:10 TmpDir:/run/user/1001/libpod/tmp VolumePath:/home/zim/.local/share/containers/storage/volumes} Network:{CNIPluginDirs:[/usr/libexec/cni /usr/lib/cni /usr/local/lib/cni /opt/cni/bin] DefaultNetwork:podman NetworkConfigDir:/var/home/zim/.config/cni/net.d}} 
DEBU[0000] Reading configuration file "/etc/containers/containers.conf" 
DEBU[0000] Merged system config "/etc/containers/containers.conf": &{Containers:{Devices:[] Volumes:[] ApparmorProfile:containers-default-0.29.0 Annotations:[] CgroupNS:host Cgroups:enabled DefaultCapabilities:[CHOWN DAC_OVERRIDE FOWNER FSETID KILL NET_BIND_SERVICE SETFCAP SETGID SETPCAP SETUID SYS_CHROOT] DefaultSysctls:[net.ipv4.ping_group_range=0 0] DefaultUlimits:[] DefaultMountsFile: DNSServers:[] DNSOptions:[] DNSSearches:[] EnableKeyring:true EnableLabeling:true Env:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TERM=xterm] EnvHost:false HTTPProxy:false Init:false InitPath: IPCNS:private LogDriver:k8s-file LogSizeMax:-1 NetNS:slirp4netns NoHosts:false PidsLimit:2048 PidNS:private SeccompProfile:/usr/share/containers/seccomp.json ShmSize:65536k TZ: Umask:0022 UTSNS:private UserNS:host UserNSSize:65536} Engine:{ImageBuildFormat:oci CgroupCheck:false CgroupManager:cgroupfs ConmonEnvVars:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin] ConmonPath:[/usr/libexec/podman/conmon /usr/local/libexec/podman/conmon /usr/local/lib/podman/conmon /usr/bin/conmon /usr/sbin/conmon /usr/local/bin/conmon /usr/local/sbin/conmon /run/current-system/sw/bin/conmon] DetachKeys:ctrl-p,ctrl-q EnablePortReservation:true Env:[] EventsLogFilePath:/run/user/1001/libpod/tmp/events/events.log EventsLogger:journald HooksDir:[/usr/share/containers/oci/hooks.d] ImageDefaultTransport:docker:// InfraCommand: InfraImage:k8s.gcr.io/pause:3.2 InitPath:/usr/libexec/podman/catatonit LockType:shm MultiImageArchive:false Namespace: NetworkCmdPath: NoPivotRoot:false NumLocks:2048 OCIRuntime:runc OCIRuntimes:map[crun:[/usr/bin/crun /usr/sbin/crun /usr/local/bin/crun /usr/local/sbin/crun /sbin/crun /bin/crun /run/current-system/sw/bin/crun] kata:[/usr/bin/kata-runtime /usr/sbin/kata-runtime /usr/local/bin/kata-runtime /usr/local/sbin/kata-runtime /sbin/kata-runtime /bin/kata-runtime /usr/bin/kata-qemu /usr/bin/kata-fc] runc:[/usr/bin/runc /usr/sbin/runc /usr/local/bin/runc /usr/local/sbin/runc /sbin/runc /bin/runc /usr/lib/cri-o-runc/sbin/runc /run/current-system/sw/bin/runc]] PullPolicy:missing Remote:false RemoteURI: RemoteIdentity: ActiveService: ServiceDestinations:map[] RuntimePath:[] RuntimeSupportsJSON:[crun runc] RuntimeSupportsNoCgroups:[crun] RuntimeSupportsKVM:[kata kata-runtime kata-qemu kata-fc] SetOptions:{StorageConfigRunRootSet:false StorageConfigGraphRootSet:false StorageConfigGraphDriverNameSet:false StaticDirSet:false VolumePathSet:false TmpDirSet:false} SignaturePolicyPath:/etc/containers/policy.json SDNotify:false StateType:3 StaticDir:/home/zim/.local/share/containers/storage/libpod StopTimeout:10 TmpDir:/run/user/1001/libpod/tmp VolumePath:/home/zim/.local/share/containers/storage/volumes} Network:{CNIPluginDirs:[/usr/libexec/cni /usr/lib/cni /usr/local/lib/cni /opt/cni/bin] DefaultNetwork:podman NetworkConfigDir:/var/home/zim/.config/cni/net.d}} 
DEBU[0000] Using conmon: "/usr/bin/conmon"              
DEBU[0000] Initializing boltdb state at /home/zim/.local/share/containers/storage/libpod/bolt_state.db 
DEBU[0000] Using graph driver overlay                   
DEBU[0000] Using graph root /home/zim/.local/share/containers/storage 
DEBU[0000] Using run root /run/user/1001/containers     
DEBU[0000] Using static dir /home/zim/.local/share/containers/storage/libpod 
DEBU[0000] Using tmp dir /run/user/1001/libpod/tmp      
DEBU[0000] Using volume path /home/zim/.local/share/containers/storage/volumes 
DEBU[0000] Set libpod namespace to ""                   
DEBU[0000] [graphdriver] trying provided driver "overlay" 
DEBU[0000] overlay: mount_program=/usr/bin/fuse-overlayfs 
DEBU[0000] backingFs=xfs, projectQuotaSupported=false, useNativeDiff=false, usingMetacopy=false 
DEBU[0000] Initializing event backend journald          
DEBU[0000] using runtime "/usr/bin/runc"                
DEBU[0000] using runtime "/usr/bin/crun"                
WARN[0000] Error initializing configured OCI runtime kata: no valid executable found for OCI runtime kata: invalid argument 
INFO[0000] Setting parallel job count to 73             
DEBU[0000] overlay: mount_data=lowerdir=/home/zim/.local/share/containers/storage/overlay/l/4Z5IHSFTFWSHIGCRKGC6BDAOMI:/home/zim/.local/share/containers/storage/overlay/l/EL22SUK3COY3FEP4MYWGFHHR5U,upperdir=/home/zim/.local/share/containers/storage/overlay/c728c360e3b8c6e13e4d7e887b89991b21acfbc3f586de6d6981361508d9c905/diff,workdir=/home/zim/.local/share/containers/storage/overlay/c728c360e3b8c6e13e4d7e887b89991b21acfbc3f586de6d6981361508d9c905/work,context="system_u:object_r:container_file_t:s0:c82,c422" 
DEBU[0000] mounted container "7a20758abbc884b67738192b24245e0ac624f8295853e675b81de1ca6d6c2065" at "/home/zim/.local/share/containers/storage/overlay/c728c360e3b8c6e13e4d7e887b89991b21acfbc3f586de6d6981361508d9c905/merged" 
DEBU[0000] Created root filesystem for container 7a20758abbc884b67738192b24245e0ac624f8295853e675b81de1ca6d6c2065 at /var/home/zim/.local/share/containers/storage/overlay/c728c360e3b8c6e13e4d7e887b89991b21acfbc3f586de6d6981361508d9c905/merged 
DEBU[0000] Not modifying container 7a20758abbc884b67738192b24245e0ac624f8295853e675b81de1ca6d6c2065 /etc/passwd 
DEBU[0000] Not modifying container 7a20758abbc884b67738192b24245e0ac624f8295853e675b81de1ca6d6c2065 /etc/group 
DEBU[0000] /etc/system-fips does not exist on host, not mounting FIPS mode secret 
DEBU[0000] set root propagation to "rslave"             
DEBU[0000] reading hooks from /usr/share/containers/oci/hooks.d 
DEBU[0000] Created OCI spec for container 7a20758abbc884b67738192b24245e0ac624f8295853e675b81de1ca6d6c2065 at /home/zim/.local/share/containers/storage/overlay-containers/7a20758abbc884b67738192b24245e0ac624f8295853e675b81de1ca6d6c2065/userdata/config.json 
DEBU[0000] /usr/bin/conmon messages will be logged to syslog 
DEBU[0000] running conmon: /usr/bin/conmon               args="[--api-version 1 -c 7a20758abbc884b67738192b24245e0ac624f8295853e675b81de1ca6d6c2065 -u 7a20758abbc884b67738192b24245e0ac624f8295853e675b81de1ca6d6c2065 -r /usr/bin/runc -b /home/zim/.local/share/containers/storage/overlay-containers/7a20758abbc884b67738192b24245e0ac624f8295853e675b81de1ca6d6c2065/userdata -p /run/user/1001/containers/overlay-containers/7a20758abbc884b67738192b24245e0ac624f8295853e675b81de1ca6d6c2065/userdata/pidfile -n fedora-toolbox-33 --exit-dir /run/user/1001/libpod/tmp/exits --socket-dir-path /run/user/1001/libpod/tmp/socket -l k8s-file:/home/zim/.local/share/containers/storage/overlay-containers/7a20758abbc884b67738192b24245e0ac624f8295853e675b81de1ca6d6c2065/userdata/ctr.log --log-level debug --syslog --conmon-pidfile /run/user/1001/containers/overlay-containers/7a20758abbc884b67738192b24245e0ac624f8295853e675b81de1ca6d6c2065/userdata/conmon.pid --exit-command /usr/bin/podman --exit-command-arg --root --exit-command-arg /home/zim/.local/share/containers/storage --exit-command-arg --runroot --exit-command-arg /run/user/1001/containers --exit-command-arg --log-level --exit-command-arg error --exit-command-arg --cgroup-manager --exit-command-arg cgroupfs --exit-command-arg --tmpdir --exit-command-arg /run/user/1001/libpod/tmp --exit-command-arg --runtime --exit-command-arg runc --exit-command-arg --storage-driver --exit-command-arg overlay --exit-command-arg --storage-opt --exit-command-arg overlay.mount_program=/usr/bin/fuse-overlayfs --exit-command-arg --events-backend --exit-command-arg journald --exit-command-arg container --exit-command-arg cleanup --exit-command-arg 7a20758abbc884b67738192b24245e0ac624f8295853e675b81de1ca6d6c2065]"
WARN[0000] Failed to add conmon to cgroupfs sandbox cgroup: error creating cgroup for memory: mkdir /sys/fs/cgroup/memory/libpod_parent: permission denied 
[conmon:d]: failed to write to /proc/self/oom_score_adj: Permission denied

DEBU[0000] Received: -1                                 
DEBU[0000] Cleaning up container 7a20758abbc884b67738192b24245e0ac624f8295853e675b81de1ca6d6c2065 
DEBU[0000] Network is already cleaned up, skipping...   
DEBU[0000] unmounted container "7a20758abbc884b67738192b24245e0ac624f8295853e675b81de1ca6d6c2065" 
Error: unable to start container "7a20758abbc884b67738192b24245e0ac624f8295853e675b81de1ca6d6c2065": time="2021-02-23T11:02:03Z" level=warning msg="exit status 1"
time="2021-02-23T11:02:03Z" level=warning msg="cannot toggle freezer: cgroups not configured for container"
time="2021-02-23T11:02:03Z" level=warning msg="lstat : no such file or directory"
time="2021-02-23T11:02:03Z" level=error msg="container_linux.go:370: starting container process caused: process_linux.go:459: container init caused: rootfs_linux.go:59: mounting \"/boot\" to rootfs at \"/var/home/zim/.local/share/containers/storage/overlay/c728c360e3b8c6e13e4d7e887b89991b21acfbc3f586de6d6981361508d9c905/merged/run/host/boot\" caused: operation not permitted": OCI permission denied
[zim@linuxdev ~]$ rpm -qa | grep conmon
conmon-2.0.26-1.fc33.x86_64

@ziswiler
Copy link
Author

Is toolbox broken beyond repair? Should one no longer use it? What exactly is the recommended way forward? Help!

@travier
Copy link
Member

travier commented Feb 23, 2021

I'm currently investigating this one. In the meantime, you can use a "classic" Fedora container via podman. I'm also adding basic toolbox tests in coreos/fedora-coreos-config#862 so that we catch that earlier in the future.

@travier travier self-assigned this Feb 23, 2021
@travier travier added the jira for syncing to jira label Feb 23, 2021
HarryMichal added a commit to HarryMichal/toolbox that referenced this issue Feb 25, 2021
CoreOS recently made /boot read-only[0]. This caused an issue with
starting containers because /boot was mounted only with option rslave
but missed the ro option. This caused a permission issue.

This scenario is very similar to the one with /usr on Fedora Silverblue.
The solution for this is to check mount options of the path and check if
it uses the rw option or ro and then add it to the mount options in the
--volume option in 'podman create'.

Fixes: coreos/fedora-coreos-tracker#734

coreos/fedora-coreos-config@1de21ff
@HarryMichal
Copy link

I believe this is caused by coreos/fedora-coreos-config@1de21ff . This change in CoreOS makes /boot read-only, which is a situation Toolbox was not ready for. The problem is in the way the toolboxes are created. A toolbox is created with the podman create command and Toolbox sets several volumes with which it mounts several filepaths. /boot is also mounted. Now, /boot is only mounted with the rslave option but, due to the change, on CoreOS this has to be ro,rslave.

I just proposed a fix for this upstream: containers/toolbox#712. I tried it on an instance of CoreOS and it seems to fix the issue. @ziswiler, @travier, would you be so kind and tried the fix, too? I'm afraid the fix will not fix your existing toolboxes because this is an error in container configuration and that can not be changed once a container has been created.

@travier
Copy link
Member

travier commented Feb 25, 2021

Thanks for the investigation. I'm wondering if that's the full issue as on a stable FCOS (33.20210201.3.0), I have /boot RO and an existing toolbox with:

$ podman inspect 6c7ef69cf698 | grep boot
                "Source": "/boot",
                "Destination": "/run/host/boot",
                "/boot:/run/host/boot:rslave",
                "/boot:/run/host/boot:rslave,rw,rbind",

thus I'm wondering why we are not having this issue on stable.

@HarryMichal
Copy link

HarryMichal commented Feb 25, 2021

Just tried the same command and I get a bit different output:

$ podman inspect fedora-toolbox-32 | grep boot
                "Source": "/boot",
                "Destination": "/run/host/boot",
                "/boot:/run/host/boot:rslave",
                "/boot:/run/host/boot:rslave,rw,nosuid,nodev,rbind",

Maybe the two security-related options are causing the problem? My CoreOS instance version is also 33.20210201.3.0.

@ziswiler
Copy link
Author

Great, thank you very much!

I just proposed a fix for this upstream: containers/toolbox#712. I tried it on an instance of CoreOS and it seems to fix the issue. @ziswiler, @travier, would you be so kind and tried the fix, too?

Please excuse my ignorance but how exactly would I go about testing any such?

As for the existing toolbox' mount options that looks indeed the same for me:

$ podman inspect fedora-toolbox-33 | grep boot
                "Source": "/boot",
                "Destination": "/run/host/boot",
                "/boot:/run/host/boot:rslave",
                "/boot:/run/host/boot:rslave,rw,nosuid,nodev,rbind",

HarryMichal added a commit to HarryMichal/toolbox that referenced this issue Mar 1, 2021
CoreOS recently made /boot read-only[0]. This caused an issue with
starting containers because /boot was mounted only with option rslave
but missed the ro option. This caused a permission issue.

This scenario is very similar to the one with /usr on Fedora Silverblue.
The solution for this is to check mount options of the path and check if
it uses the rw option or ro and then add it to the mount options in the
--volume option in 'podman create'.

Fixes: coreos/fedora-coreos-tracker#734

[0] coreos/fedora-coreos-config@1de21ff

containers#712
HarryMichal added a commit to containers/toolbox that referenced this issue Mar 1, 2021
CoreOS recently made /boot read-only[0]. This caused an issue with
starting containers because /boot was mounted only with option rslave
but missed the ro option. This caused a permission issue.

This scenario is very similar to the one with /usr on Fedora Silverblue.
The solution for this is to check mount options of the path and check if
it uses the rw option or ro and then add it to the mount options in the
--volume option in 'podman create'.

Fixes: coreos/fedora-coreos-tracker#734

[0] coreos/fedora-coreos-config@1de21ff

#712
@travier
Copy link
Member

travier commented Mar 19, 2021

I can not reproduce that anymore either on stable or testing. Feel free to re-open if that's still the case for you.

See also coreos/fedora-coreos-config#862 (comment)

@travier travier closed this as completed Mar 19, 2021
@ziswiler
Copy link
Author

Well, for me on latest Fedora CoreOS Testing it still does NOT work:

[zim@linuxdev ~]$ sudo rpm-ostree status
State: idle
Deployments:
● ostree://fedora:fedora/x86_64/coreos/testing
                   Version: 33.20210314.2.0 (2021-03-16T18:03:30Z)
                    Commit: 89401ea81fac035adb07caacea792663823ca13b51496bf82b58a43ae86bdc9d
              GPGSignature: Valid signature by 963A2BEB02009608FE67EA4249FD77499570FF31

[zim@linuxdev ~]$ podman --version
podman version 3.0.1

[zim@linuxdev ~]$ toolbox --version
toolbox version 0.0.99.1

[zim@linuxdev ~]$ toolbox list
Error: failed to change ownership of the runtime directory /run/user/1001/toolbox: chown /run/user/1001/toolbox: operation not permitted
[zim@linuxdev ~]$ sudo chown -R zim:1001 /run/user/1001/toolbox
[zim@linuxdev ~]$ toolbox list
IMAGE ID      IMAGE NAME                                        CREATED
4a6adf1f2a96  registry.fedoraproject.org/f29/fedora-toolbox:29  16 months ago
c49513deb616  registry.fedoraproject.org/f30/fedora-toolbox:30  12 months ago
675192cc4238  registry.fedoraproject.org/fedora-toolbox:33      10 days ago

CONTAINER ID  CONTAINER NAME     CREATED       STATUS  IMAGE NAME
96dc39b34904  fedora-toolbox-29  3 months ago  exited  registry.fedoraproject.org/f29/fedora-toolbox:29
a9a93981c1a6  fedora-toolbox-30  5 weeks ago   exited  registry.fedoraproject.org/f30/fedora-toolbox:30
8e5375174b31  fedora-toolbox-33  3 days ago    exited  registry.fedoraproject.org/fedora-toolbox:33

[zim@linuxdev ~]$ toolbox create --release 33
Image required to create toolbox container.
Download registry.fedoraproject.org/fedora-toolbox:33 (500MB)? [y/N]: y
Created container: fedora-toolbox-33
Enter with: toolbox enter
[zim@linuxdev ~]$ toolbox enter --release 33
Error: invalid entry point PID of container fedora-toolbox-33

[zim@linuxdev ~]$ podman --log-level debug start fedora-toolbox-33
INFO[0000] podman filtering at log level debug          
DEBU[0000] Called start.PersistentPreRunE(podman --log-level debug start fedora-toolbox-33) 
DEBU[0000] Reading configuration file "/usr/share/containers/containers.conf" 
DEBU[0000] Merged system config "/usr/share/containers/containers.conf": &{Containers:{Devices:[] Volumes:[] ApparmorProfile:containers-default-0.33.4 Annotations:[] CgroupNS:host Cgroups:enabled DefaultCapabilities:[CHOWN DAC_OVERRIDE FOWNER FSETID KILL NET_BIND_SERVICE SETFCAP SETGID SETPCAP SETUID SYS_CHROOT] DefaultSysctls:[net.ipv4.ping_group_range=0 0] DefaultUlimits:[] DefaultMountsFile: DNSServers:[] DNSOptions:[] DNSSearches:[] EnableKeyring:true EnableLabeling:true Env:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TERM=xterm] EnvHost:false HTTPProxy:true Init:false InitPath: IPCNS:private LogDriver:k8s-file LogSizeMax:-1 NetNS:slirp4netns NoHosts:false PidsLimit:2048 PidNS:private SeccompProfile:/usr/share/containers/seccomp.json ShmSize:65536k TZ: Umask:0022 UTSNS:private UserNS:host UserNSSize:65536} Engine:{ImageBuildFormat:oci CgroupCheck:false CgroupManager:cgroupfs ConmonEnvVars:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin] ConmonPath:[/usr/libexec/podman/conmon /usr/local/libexec/podman/conmon /usr/local/lib/podman/conmon /usr/bin/conmon /usr/sbin/conmon /usr/local/bin/conmon /usr/local/sbin/conmon /run/current-system/sw/bin/conmon] DetachKeys:ctrl-p,ctrl-q EnablePortReservation:true Env:[] EventsLogFilePath:/run/user/1001/libpod/tmp/events/events.log EventsLogger:journald HooksDir:[/usr/share/containers/oci/hooks.d] ImageDefaultTransport:docker:// InfraCommand: InfraImage:k8s.gcr.io/pause:3.2 InitPath:/usr/libexec/podman/catatonit LockType:shm MultiImageArchive:false Namespace: NetworkCmdPath: NetworkCmdOptions:[] NoPivotRoot:false NumLocks:2048 OCIRuntime:crun OCIRuntimes:map[crun:[/usr/bin/crun /usr/sbin/crun /usr/local/bin/crun /usr/local/sbin/crun /sbin/crun /bin/crun /run/current-system/sw/bin/crun] kata:[/usr/bin/kata-runtime /usr/sbin/kata-runtime /usr/local/bin/kata-runtime /usr/local/sbin/kata-runtime /sbin/kata-runtime /bin/kata-runtime /usr/bin/kata-qemu /usr/bin/kata-fc] runc:[/usr/bin/runc /usr/sbin/runc /usr/local/bin/runc /usr/local/sbin/runc /sbin/runc /bin/runc /usr/lib/cri-o-runc/sbin/runc /run/current-system/sw/bin/runc]] PullPolicy:missing Remote:false RemoteURI: RemoteIdentity: ActiveService: ServiceDestinations:map[] RuntimePath:[] RuntimeSupportsJSON:[crun runc] RuntimeSupportsNoCgroups:[crun] RuntimeSupportsKVM:[kata kata-runtime kata-qemu kata-fc] SetOptions:{StorageConfigRunRootSet:false StorageConfigGraphRootSet:false StorageConfigGraphDriverNameSet:false StaticDirSet:false VolumePathSet:false TmpDirSet:false} SignaturePolicyPath:/etc/containers/policy.json SDNotify:false StateType:3 StaticDir:/home/zim/.local/share/containers/storage/libpod StopTimeout:10 TmpDir:/run/user/1001/libpod/tmp VolumePath:/home/zim/.local/share/containers/storage/volumes VolumePlugins:map[]} Network:{CNIPluginDirs:[/usr/libexec/cni /usr/lib/cni /usr/local/lib/cni /opt/cni/bin] DefaultNetwork:podman NetworkConfigDir:/var/home/zim/.config/cni/net.d}} 
DEBU[0000] Reading configuration file "/etc/containers/containers.conf" 
DEBU[0000] Merged system config "/etc/containers/containers.conf": &{Containers:{Devices:[] Volumes:[] ApparmorProfile:containers-default-0.33.4 Annotations:[] CgroupNS:host Cgroups:enabled DefaultCapabilities:[CHOWN DAC_OVERRIDE FOWNER FSETID KILL NET_BIND_SERVICE SETFCAP SETGID SETPCAP SETUID SYS_CHROOT] DefaultSysctls:[net.ipv4.ping_group_range=0 0] DefaultUlimits:[] DefaultMountsFile: DNSServers:[] DNSOptions:[] DNSSearches:[] EnableKeyring:true EnableLabeling:true Env:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TERM=xterm] EnvHost:false HTTPProxy:true Init:false InitPath: IPCNS:private LogDriver:k8s-file LogSizeMax:-1 NetNS:slirp4netns NoHosts:false PidsLimit:2048 PidNS:private SeccompProfile:/usr/share/containers/seccomp.json ShmSize:65536k TZ: Umask:0022 UTSNS:private UserNS:host UserNSSize:65536} Engine:{ImageBuildFormat:oci CgroupCheck:false CgroupManager:cgroupfs ConmonEnvVars:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin] ConmonPath:[/usr/libexec/podman/conmon /usr/local/libexec/podman/conmon /usr/local/lib/podman/conmon /usr/bin/conmon /usr/sbin/conmon /usr/local/bin/conmon /usr/local/sbin/conmon] DetachKeys:ctrl-p,ctrl-q EnablePortReservation:true Env:[] EventsLogFilePath:/run/user/1001/libpod/tmp/events/events.log EventsLogger:journald HooksDir:[/usr/share/containers/oci/hooks.d] ImageDefaultTransport:docker:// InfraCommand: InfraImage:k8s.gcr.io/pause:3.2 InitPath:/usr/libexec/podman/catatonit LockType:shm MultiImageArchive:false Namespace: NetworkCmdPath: NetworkCmdOptions:[] NoPivotRoot:false NumLocks:2048 OCIRuntime:crun OCIRuntimes:map[crun:[/usr/bin/crun /usr/sbin/crun /usr/local/bin/crun /usr/local/sbin/crun /sbin/crun /bin/crun /run/current-system/sw/bin/crun] kata:[/usr/bin/kata-runtime /usr/sbin/kata-runtime /usr/local/bin/kata-runtime /usr/local/sbin/kata-runtime /sbin/kata-runtime /bin/kata-runtime /usr/bin/kata-qemu /usr/bin/kata-fc] runc:[/usr/bin/runc /usr/sbin/runc /usr/local/bin/runc /usr/local/sbin/runc /sbin/runc /bin/runc /usr/lib/cri-o-runc/sbin/runc /run/current-system/sw/bin/runc]] PullPolicy:missing Remote:false RemoteURI: RemoteIdentity: ActiveService: ServiceDestinations:map[] RuntimePath:[] RuntimeSupportsJSON:[crun runc] RuntimeSupportsNoCgroups:[crun] RuntimeSupportsKVM:[kata kata-runtime kata-qemu kata-fc] SetOptions:{StorageConfigRunRootSet:false StorageConfigGraphRootSet:false StorageConfigGraphDriverNameSet:false StaticDirSet:false VolumePathSet:false TmpDirSet:false} SignaturePolicyPath:/etc/containers/policy.json SDNotify:false StateType:3 StaticDir:/home/zim/.local/share/containers/storage/libpod StopTimeout:10 TmpDir:/run/user/1001/libpod/tmp VolumePath:/home/zim/.local/share/containers/storage/volumes VolumePlugins:map[]} Network:{CNIPluginDirs:[/usr/libexec/cni /usr/lib/cni /usr/local/lib/cni /opt/cni/bin] DefaultNetwork:podman NetworkConfigDir:/var/home/zim/.config/cni/net.d}} 
DEBU[0000] Using conmon: "/usr/bin/conmon"              
DEBU[0000] Initializing boltdb state at /home/zim/.local/share/containers/storage/libpod/bolt_state.db 
DEBU[0000] Using graph driver overlay                   
DEBU[0000] Using graph root /home/zim/.local/share/containers/storage 
DEBU[0000] Using run root /run/user/1001/containers     
DEBU[0000] Using static dir /home/zim/.local/share/containers/storage/libpod 
DEBU[0000] Using tmp dir /run/user/1001/libpod/tmp      
DEBU[0000] Using volume path /home/zim/.local/share/containers/storage/volumes 
DEBU[0000] Set libpod namespace to ""                   
DEBU[0000] Not configuring container store              
DEBU[0000] Initializing event backend journald          
INFO[0000] Error initializing configured OCI runtime kata: no valid executable found for OCI runtime kata: invalid argument 
DEBU[0000] using runtime "/usr/bin/crun"                
DEBU[0000] using runtime "/usr/bin/runc"                
INFO[0000] Setting parallel job count to 73             
INFO[0000] podman filtering at log level debug          
DEBU[0000] Called start.PersistentPreRunE(podman --log-level debug start fedora-toolbox-33) 
DEBU[0000] Reading configuration file "/usr/share/containers/containers.conf" 
DEBU[0000] Merged system config "/usr/share/containers/containers.conf": &{Containers:{Devices:[] Volumes:[] ApparmorProfile:containers-default-0.33.4 Annotations:[] CgroupNS:host Cgroups:enabled DefaultCapabilities:[CHOWN DAC_OVERRIDE FOWNER FSETID KILL NET_BIND_SERVICE SETFCAP SETGID SETPCAP SETUID SYS_CHROOT] DefaultSysctls:[net.ipv4.ping_group_range=0 0] DefaultUlimits:[] DefaultMountsFile: DNSServers:[] DNSOptions:[] DNSSearches:[] EnableKeyring:true EnableLabeling:true Env:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TERM=xterm] EnvHost:false HTTPProxy:true Init:false InitPath: IPCNS:private LogDriver:k8s-file LogSizeMax:-1 NetNS:slirp4netns NoHosts:false PidsLimit:2048 PidNS:private SeccompProfile:/usr/share/containers/seccomp.json ShmSize:65536k TZ: Umask:0022 UTSNS:private UserNS:host UserNSSize:65536} Engine:{ImageBuildFormat:oci CgroupCheck:false CgroupManager:cgroupfs ConmonEnvVars:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin] ConmonPath:[/usr/libexec/podman/conmon /usr/local/libexec/podman/conmon /usr/local/lib/podman/conmon /usr/bin/conmon /usr/sbin/conmon /usr/local/bin/conmon /usr/local/sbin/conmon /run/current-system/sw/bin/conmon] DetachKeys:ctrl-p,ctrl-q EnablePortReservation:true Env:[] EventsLogFilePath:/run/user/1001/libpod/tmp/events/events.log EventsLogger:journald HooksDir:[/usr/share/containers/oci/hooks.d] ImageDefaultTransport:docker:// InfraCommand: InfraImage:k8s.gcr.io/pause:3.2 InitPath:/usr/libexec/podman/catatonit LockType:shm MultiImageArchive:false Namespace: NetworkCmdPath: NetworkCmdOptions:[] NoPivotRoot:false NumLocks:2048 OCIRuntime:crun OCIRuntimes:map[crun:[/usr/bin/crun /usr/sbin/crun /usr/local/bin/crun /usr/local/sbin/crun /sbin/crun /bin/crun /run/current-system/sw/bin/crun] kata:[/usr/bin/kata-runtime /usr/sbin/kata-runtime /usr/local/bin/kata-runtime /usr/local/sbin/kata-runtime /sbin/kata-runtime /bin/kata-runtime /usr/bin/kata-qemu /usr/bin/kata-fc] runc:[/usr/bin/runc /usr/sbin/runc /usr/local/bin/runc /usr/local/sbin/runc /sbin/runc /bin/runc /usr/lib/cri-o-runc/sbin/runc /run/current-system/sw/bin/runc]] PullPolicy:missing Remote:false RemoteURI: RemoteIdentity: ActiveService: ServiceDestinations:map[] RuntimePath:[] RuntimeSupportsJSON:[crun runc] RuntimeSupportsNoCgroups:[crun] RuntimeSupportsKVM:[kata kata-runtime kata-qemu kata-fc] SetOptions:{StorageConfigRunRootSet:false StorageConfigGraphRootSet:false StorageConfigGraphDriverNameSet:false StaticDirSet:false VolumePathSet:false TmpDirSet:false} SignaturePolicyPath:/etc/containers/policy.json SDNotify:false StateType:3 StaticDir:/home/zim/.local/share/containers/storage/libpod StopTimeout:10 TmpDir:/run/user/1001/libpod/tmp VolumePath:/home/zim/.local/share/containers/storage/volumes VolumePlugins:map[]} Network:{CNIPluginDirs:[/usr/libexec/cni /usr/lib/cni /usr/local/lib/cni /opt/cni/bin] DefaultNetwork:podman NetworkConfigDir:/var/home/zim/.config/cni/net.d}} 
DEBU[0000] Reading configuration file "/etc/containers/containers.conf" 
DEBU[0000] Merged system config "/etc/containers/containers.conf": &{Containers:{Devices:[] Volumes:[] ApparmorProfile:containers-default-0.33.4 Annotations:[] CgroupNS:host Cgroups:enabled DefaultCapabilities:[CHOWN DAC_OVERRIDE FOWNER FSETID KILL NET_BIND_SERVICE SETFCAP SETGID SETPCAP SETUID SYS_CHROOT] DefaultSysctls:[net.ipv4.ping_group_range=0 0] DefaultUlimits:[] DefaultMountsFile: DNSServers:[] DNSOptions:[] DNSSearches:[] EnableKeyring:true EnableLabeling:true Env:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TERM=xterm] EnvHost:false HTTPProxy:true Init:false InitPath: IPCNS:private LogDriver:k8s-file LogSizeMax:-1 NetNS:slirp4netns NoHosts:false PidsLimit:2048 PidNS:private SeccompProfile:/usr/share/containers/seccomp.json ShmSize:65536k TZ: Umask:0022 UTSNS:private UserNS:host UserNSSize:65536} Engine:{ImageBuildFormat:oci CgroupCheck:false CgroupManager:cgroupfs ConmonEnvVars:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin] ConmonPath:[/usr/libexec/podman/conmon /usr/local/libexec/podman/conmon /usr/local/lib/podman/conmon /usr/bin/conmon /usr/sbin/conmon /usr/local/bin/conmon /usr/local/sbin/conmon] DetachKeys:ctrl-p,ctrl-q EnablePortReservation:true Env:[] EventsLogFilePath:/run/user/1001/libpod/tmp/events/events.log EventsLogger:journald HooksDir:[/usr/share/containers/oci/hooks.d] ImageDefaultTransport:docker:// InfraCommand: InfraImage:k8s.gcr.io/pause:3.2 InitPath:/usr/libexec/podman/catatonit LockType:shm MultiImageArchive:false Namespace: NetworkCmdPath: NetworkCmdOptions:[] NoPivotRoot:false NumLocks:2048 OCIRuntime:crun OCIRuntimes:map[crun:[/usr/bin/crun /usr/sbin/crun /usr/local/bin/crun /usr/local/sbin/crun /sbin/crun /bin/crun /run/current-system/sw/bin/crun] kata:[/usr/bin/kata-runtime /usr/sbin/kata-runtime /usr/local/bin/kata-runtime /usr/local/sbin/kata-runtime /sbin/kata-runtime /bin/kata-runtime /usr/bin/kata-qemu /usr/bin/kata-fc] runc:[/usr/bin/runc /usr/sbin/runc /usr/local/bin/runc /usr/local/sbin/runc /sbin/runc /bin/runc /usr/lib/cri-o-runc/sbin/runc /run/current-system/sw/bin/runc]] PullPolicy:missing Remote:false RemoteURI: RemoteIdentity: ActiveService: ServiceDestinations:map[] RuntimePath:[] RuntimeSupportsJSON:[crun runc] RuntimeSupportsNoCgroups:[crun] RuntimeSupportsKVM:[kata kata-runtime kata-qemu kata-fc] SetOptions:{StorageConfigRunRootSet:false StorageConfigGraphRootSet:false StorageConfigGraphDriverNameSet:false StaticDirSet:false VolumePathSet:false TmpDirSet:false} SignaturePolicyPath:/etc/containers/policy.json SDNotify:false StateType:3 StaticDir:/home/zim/.local/share/containers/storage/libpod StopTimeout:10 TmpDir:/run/user/1001/libpod/tmp VolumePath:/home/zim/.local/share/containers/storage/volumes VolumePlugins:map[]} Network:{CNIPluginDirs:[/usr/libexec/cni /usr/lib/cni /usr/local/lib/cni /opt/cni/bin] DefaultNetwork:podman NetworkConfigDir:/var/home/zim/.config/cni/net.d}} 
DEBU[0000] Using conmon: "/usr/bin/conmon"              
DEBU[0000] Initializing boltdb state at /home/zim/.local/share/containers/storage/libpod/bolt_state.db 
DEBU[0000] Using graph driver overlay                   
DEBU[0000] Using graph root /home/zim/.local/share/containers/storage 
DEBU[0000] Using run root /run/user/1001/containers     
DEBU[0000] Using static dir /home/zim/.local/share/containers/storage/libpod 
DEBU[0000] Using tmp dir /run/user/1001/libpod/tmp      
DEBU[0000] Using volume path /home/zim/.local/share/containers/storage/volumes 
DEBU[0000] Set libpod namespace to ""                   
DEBU[0000] [graphdriver] trying provided driver "overlay" 
DEBU[0000] overlay: mount_program=/usr/bin/fuse-overlayfs 
DEBU[0000] backingFs=xfs, projectQuotaSupported=false, useNativeDiff=false, usingMetacopy=false 
DEBU[0000] Initializing event backend journald          
INFO[0000] Error initializing configured OCI runtime kata: no valid executable found for OCI runtime kata: invalid argument 
DEBU[0000] using runtime "/usr/bin/crun"                
DEBU[0000] using runtime "/usr/bin/runc"                
INFO[0000] Setting parallel job count to 73             
DEBU[0000] overlay: mount_data=,lowerdir=/home/zim/.local/share/containers/storage/overlay/l/VDCOKGGE7IV63E7XQVS66JZCB2:/home/zim/.local/share/containers/storage/overlay/l/EHQKTF3H7RGE33QHUUCH6ITCO7,upperdir=/home/zim/.local/share/containers/storage/overlay/5607c2053fcfadeb9225253fdafa0dc4406b4dea9de026061b448a03a6ffbeda/diff,workdir=/home/zim/.local/share/containers/storage/overlay/5607c2053fcfadeb9225253fdafa0dc4406b4dea9de026061b448a03a6ffbeda/work,context="system_u:object_r:container_file_t:s0:c484,c727" 
DEBU[0000] mounted container "e74449d487b432a38ffcdee44f409393bd9019dcf82b52a0c79403262e675fe6" at "/home/zim/.local/share/containers/storage/overlay/5607c2053fcfadeb9225253fdafa0dc4406b4dea9de026061b448a03a6ffbeda/merged" 
DEBU[0000] Created root filesystem for container e74449d487b432a38ffcdee44f409393bd9019dcf82b52a0c79403262e675fe6 at /var/home/zim/.local/share/containers/storage/overlay/5607c2053fcfadeb9225253fdafa0dc4406b4dea9de026061b448a03a6ffbeda/merged 
DEBU[0000] Workdir "/" resolved to host path "/var/home/zim/.local/share/containers/storage/overlay/5607c2053fcfadeb9225253fdafa0dc4406b4dea9de026061b448a03a6ffbeda/merged" 
DEBU[0000] Not modifying container e74449d487b432a38ffcdee44f409393bd9019dcf82b52a0c79403262e675fe6 /etc/passwd 
DEBU[0000] Not modifying container e74449d487b432a38ffcdee44f409393bd9019dcf82b52a0c79403262e675fe6 /etc/group 
DEBU[0000] /etc/system-fips does not exist on host, not mounting FIPS mode subscription 
DEBU[0000] set root propagation to "rslave"             
DEBU[0000] reading hooks from /usr/share/containers/oci/hooks.d 
DEBU[0000] Created OCI spec for container e74449d487b432a38ffcdee44f409393bd9019dcf82b52a0c79403262e675fe6 at /home/zim/.local/share/containers/storage/overlay-containers/e74449d487b432a38ffcdee44f409393bd9019dcf82b52a0c79403262e675fe6/userdata/config.json 
DEBU[0000] /usr/bin/conmon messages will be logged to syslog 
DEBU[0000] running conmon: /usr/bin/conmon               args="[--api-version 1 -c e74449d487b432a38ffcdee44f409393bd9019dcf82b52a0c79403262e675fe6 -u e74449d487b432a38ffcdee44f409393bd9019dcf82b52a0c79403262e675fe6 -r /usr/bin/crun -b /home/zim/.local/share/containers/storage/overlay-containers/e74449d487b432a38ffcdee44f409393bd9019dcf82b52a0c79403262e675fe6/userdata -p /run/user/1001/containers/overlay-containers/e74449d487b432a38ffcdee44f409393bd9019dcf82b52a0c79403262e675fe6/userdata/pidfile -n fedora-toolbox-33 --exit-dir /run/user/1001/libpod/tmp/exits --socket-dir-path /run/user/1001/libpod/tmp/socket -l k8s-file:/home/zim/.local/share/containers/storage/overlay-containers/e74449d487b432a38ffcdee44f409393bd9019dcf82b52a0c79403262e675fe6/userdata/ctr.log --log-level debug --syslog --conmon-pidfile /run/user/1001/containers/overlay-containers/e74449d487b432a38ffcdee44f409393bd9019dcf82b52a0c79403262e675fe6/userdata/conmon.pid --exit-command /usr/bin/podman --exit-command-arg --root --exit-command-arg /home/zim/.local/share/containers/storage --exit-command-arg --runroot --exit-command-arg /run/user/1001/containers --exit-command-arg --log-level --exit-command-arg error --exit-command-arg --cgroup-manager --exit-command-arg cgroupfs --exit-command-arg --tmpdir --exit-command-arg /run/user/1001/libpod/tmp --exit-command-arg --runtime --exit-command-arg crun --exit-command-arg --storage-driver --exit-command-arg overlay --exit-command-arg --storage-opt --exit-command-arg overlay.mount_program=/usr/bin/fuse-overlayfs --exit-command-arg --events-backend --exit-command-arg journald --exit-command-arg container --exit-command-arg cleanup --exit-command-arg e74449d487b432a38ffcdee44f409393bd9019dcf82b52a0c79403262e675fe6]"
INFO[0000] Failed to add conmon to cgroupfs sandbox cgroup: error creating cgroup for blkio: mkdir /sys/fs/cgroup/blkio/libpod_parent: permission denied 
[conmon:d]: failed to write to /proc/self/oom_score_adj: Permission denied

DEBU[0000] Received: 7351                               
INFO[0000] Got Conmon PID as 7347                       
DEBU[0000] Created container e74449d487b432a38ffcdee44f409393bd9019dcf82b52a0c79403262e675fe6 in OCI runtime 
DEBU[0000] Starting container e74449d487b432a38ffcdee44f409393bd9019dcf82b52a0c79403262e675fe6 with command [toolbox --verbose init-container --home /home/zim --home-link --media-link --mnt-link --monitor-host --shell /bin/bash --uid 1001 --user zim] 
DEBU[0000] Started container e74449d487b432a38ffcdee44f409393bd9019dcf82b52a0c79403262e675fe6 
fedora-toolbox-33
DEBU[0000] Called start.PersistentPostRunE(podman --log-level debug start fedora-toolbox-33) 

@travier
Copy link
Member

travier commented Mar 23, 2021

I've just given this a try on a fresh testing image and this worked for me. Can you give us the output of id and more information regarding your user setup?

@travier
Copy link
Member

travier commented Mar 26, 2021

Closing this one until we get more info.

@travier travier closed this as completed Mar 26, 2021
@ziswiler
Copy link
Author

Can you give us the output of id and more information regarding your user setup?

[zim@linuxdev ~]$ id
uid=1001(zim) gid=1000(core) groups=1000(core),10(wheel) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

I am not exactly sure what further information you are looking for. It all worked just fine until around X-mas. Since then I have not seen any toolbox working any longer whatever I tried...

@travier
Copy link
Member

travier commented Mar 29, 2021

As your UID and GID do not match and that may have an impact with rootless podman, can you try to run the container with podman start toolbox-xyz to get better error output?
Can you give us also the content of /etc/subuid & /etc/subgid and the FCC you used to create your user that way to reproduce that?

@ziswiler
Copy link
Author

ziswiler commented Mar 30, 2021

As your UID and GID do not match and that may have an impact with rootless podman, can you try to run the container with podman start toolbox-xyz to get better error output?

You mean in addition to the podman --log-level debug start fedora-toolbox-33 output I gave above?

Can you give us also the content of /etc/subuid & /etc/subgid

[zim@linuxdev ~]$ cat /etc/subuid
core:100000:65536
...
zim:100010:65536
...
[zim@linuxdev ~]$ cat /etc/subgid
core:100000:65536
...
zim:100010:65536
...

and the FCC you used to create your user that way to reproduce that?

Unfortunately, this being a bare-metal instance this is not how that user got created. I believe regular useradd was used for that. But again, it worked just fine until around X-mas. Something in that whole tooling must have changed...

@travier
Copy link
Member

travier commented Mar 30, 2021

Can you try podman exec -ti fedora-toolbox-33 bash?

@travier travier reopened this Mar 30, 2021
@ziswiler
Copy link
Author

Can you try podman exec -ti fedora-toolbox-33 bash?

I guess that does not work as it does not get that far:

[zim@linuxdev ~]$ podman exec -ti fedora-toolbox-33 bash
Error: can only create exec sessions on running containers: container state improper

However, attach suggests that it really has to do with that user/group ID stuff. But, again, that would just be a regression as that all used to work just fine, not?

[zim@linuxdev ~]$ podman start --attach fedora-toolbox-33
level=debug msg="Running as real user ID 0"
level=debug msg="Resolved absolute path to the executable as /usr/bin/toolbox"
level=debug msg="TOOLBOX_PATH is /usr/bin/toolbox"
level=debug msg="Creating /run/.toolboxenv"
level=debug msg="Monitoring host"
level=debug msg="Path /run/host/etc exists"
level=debug msg="Binding /etc/machine-id to /run/host/etc/machine-id"
level=debug msg="Creating /run/systemd/journal"
level=debug msg="Binding /run/systemd/journal to /run/host/run/systemd/journal"
level=debug msg="Creating /run/udev/data"
level=debug msg="Binding /run/udev/data to /run/host/run/udev/data"
level=debug msg="Creating /tmp"
level=debug msg="Binding /tmp to /run/host/tmp"
level=debug msg="Creating /var/lib/systemd/coredump"
level=debug msg="Binding /var/lib/systemd/coredump to /run/host/var/lib/systemd/coredump"
level=debug msg="Creating /var/log/journal"
level=debug msg="Binding /var/log/journal to /run/host/var/log/journal"
level=debug msg="Creating /var/mnt"
level=debug msg="Binding /var/mnt to /run/host/var/mnt"
level=debug msg="Creating /sys/fs/selinux"
level=debug msg="Binding /sys/fs/selinux to /usr/share/empty"
level=debug msg="Preparing to redirect /home to /var/home"
level=debug msg="/var/home isn't a symbolic link"
level=debug msg="Redirecting /home to /var/home"
level=debug msg="Looking up group for sudo"
level=debug msg="Group for sudo is wheel"
level=debug msg="Modifying user zim with UID 1001:"
level=debug msg=usermod
level=debug msg=--append
level=debug msg=--groups
level=debug msg=wheel
level=debug msg=--home
level=debug msg=/home/zim
level=debug msg=--shell
level=debug msg=/bin/bash
level=debug msg=--uid
level=debug msg=1001
level=debug msg=zim
level=debug msg="Removing password for user zim"
level=debug msg="Removing password for user root"
level=debug msg="Setting up daily ticker"
level=debug msg="Setting up watches for file system events"
level=debug msg="Finished initializing container"
level=debug msg="Creating runtime directory /run/user/1001/toolbox"
Error: failed to change ownership of the runtime directory /run/user/1001/toolbox: chown /run/user/1001/toolbox: operation not permitted

@ziswiler
Copy link
Author

ziswiler commented Apr 1, 2021

OK, I can confirm that this has indeed to do with my regular user's UID and GID not being the same. It does work with a different user account that has those both set to the same. As this used to work just fine before around X-mas time I would consider this a regression. What do you think?

@travier
Copy link
Member

travier commented Apr 1, 2021

Can you open a bug report upstream in podman and link it here? Thanks!

@debarshiray
Copy link

I can confirm that this has indeed to do with my regular user's
UID and GID not being the same. It does work with a different
user account that has those both set to the same. As this used
to work just fine before around X-mas time I would consider this
a regression. What do you think?

In March we merged this commit:
containers/toolbox@31d63e9

I wonder if that's causing problems for you.

To be honest, the commit is a bit dubious. See the second paragraph of the commit message. However, the NixOS folks wanted it because it helped them get Toolbox running on NixOS hosts, so I didn't want to block them indefinitely.

@ziswiler
Copy link
Author

ziswiler commented Jun 8, 2021

Hm, that thing still does not work even after I meanwhile changed to such wired uid:gid being the same number kinda setup:

[zim@localhost ~]$ id
uid=1001(zim) gid=1001(zim) groups=1001(zim),10(wheel) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[zim@localhost ~]$ podman start --attach fedora-toolbox-33
Error: unable to start container 9756a8b540a70ef9616a6b690bec640b9f91fc70f5e1bba731487e155faa85e6: make `/var/home/zim/.local/share/containers/storage/overlay/419186cdd62b773caef02e8516699ac9e62911801f4fce93adb5a9edb3c6cb1a/merged` private: Permission denied: OCI permission denied

Ah, yeah, before I forget it, that's on latest testing:

[zim@localhost ~]$ sudo rpm-ostree status
State: idle
AutomaticUpdatesDriver: Zincati
  DriverState: active; periodically polling for updates (last checked Tue 2021-06-08 22:20:02 UTC)
Deployments:
* ostree://fedora:fedora/x86_64/coreos/testing
                   Version: 34.20210529.2.0 (2021-06-01T19:23:21Z)
                    Commit: d7ad41d882de1a9b5652d29ea69b0aedb83e5dec66cb4ce379ff651af14536ee
              GPGSignature: Valid signature by 8C5BA6990BDB26E19F2A1A801161AE6945719A39

What could be the issue now?

Anyway, I am tempted to throw it all out the window and dig out my good oldé C64 again. That thing used to rock! 🤣

@travier
Copy link
Member

travier commented Jun 9, 2021

Have you try creating a new toolbox while running under your new uid/gid matching user? Could you also check the /etc/subuid & /etc/sub/gid config files?

@ziswiler
Copy link
Author

Have you try creating a new toolbox while running under your new uid/gid matching user?

Yes, of course. I even removed any and all containers so toolbox list was empty and started from scratch.

Could you also check the /etc/subuid & /etc/sub/gid config files?

Sure, I guess by the later you mean /etc/subgid:

[zim@localhost ~]$ cat /etc/subuid
core:100000:65536
...
zim:100010:65536
...
kia:165546:65536
drd:231082:65536
[zim@localhost ~]$ cat /etc/subgid
core:100000:65536
...
zim:100010:65536
...

@ziswiler
Copy link
Author

Actually, one strange thing I noticed is that them files of the containers storage overlay are owned by zim:core rather than zim:zim. But I have no clue why it would end up doing this:

[zim@localhost ~]$ podman start --attach fedora-toolbox-33
Error: unable to start container bfce9ad9c4d3f584c768e6fa03a6959523aff5876224467e606500797832dcb0: make `/var/home/zim/.local/share/containers/storage/overlay/f0b4eeb6e03d2685bb49e3b0b36c61ec1fd55ffd74d0d52133abe94086c715d2/merged` private: Permission denied: OCI permission denied
[zim@localhost ~]$ ls -l /var/home/zim/.local/share/containers/storage/overlay/f0b4eeb6e03d2685bb49e3b0b36c61ec1fd55ffd74d0d52133abe94086c715d2
total 8
dr-xr-xr-x. 3 zim core 17 Jun  8 22:57 diff
-rw-r--r--. 1 zim core 26 Jun  8 22:57 link
-rw-r--r--. 1 zim core 57 Jun  8 22:57 lower
drwx------. 3 zim core 18 Jun  8 22:57 work

Any idea what I may have messed up?

@travier
Copy link
Member

travier commented Jun 10, 2021

On a fresh image:

[core@cosa-devsh ~]$ cat /etc/subuid
core:100000:65536
[core@cosa-devsh ~]$ sudo useradd foo
[core@cosa-devsh ~]$ cat /etc/subuid
core:100000:65536
foo:165536:65536

The ID overlap may be the root of this issue:

core:100000:65536
...
zim:100010:65536

100010 is part of the allocated space for core.

@travier
Copy link
Member

travier commented Jul 7, 2021

Closing this one pending more information.

@travier travier closed this as completed Jul 7, 2021
@PavelSosin-320
Copy link

@travier You can find more in #containers/podman#12986
The same issue exists in Fedora 35 WS, btrfs based & podman 3.4.4. conmon 2.1 that has some gaps in logging to journald and many details can be missed. But podman itself passes some options to conmon that don't reflect system features for rootless users.

@PavelSosin-320
Copy link

@travier I found something very similar in the RHEL bugzilla but proposed solution is not applicable to Fedora 35 - the versions container-selinux don't match. From the recent log I see that CRun when it is invoked by Conmon for the rootless user tries to run container's entry-point from /var/run... I created the new image using buildah with my own entry-point script in /var/bin and it doesn't start too. From the SELinux point of view user's tmpfs and root's tmpfs are labeled differently and also made available differently. Indeed, root's /var/run and user's /run/user/uid are different things. I would like to look at Fedora's SELinux module from the corresponding container-selinux. I guess that either UID mapping is needed or vector container_runtime or run-labelled exec entry-point script execution by CRun should be allowed.
Unfortunately, Conmon has big gap in the logging and I see only "open Executable: Permission denied" "Error running runtime exit status 1". Maybe, Conmon doesn't distinguishes between Root's tmp and user's tmp FS and passes --console-socket=/var/tmp/ ...console.sock to CRun. GNOME user has no console - the output must be piped to the journald socket.

@travier
Copy link
Member

travier commented Mar 11, 2022

Please don't ping individuals and open another issue with updated details about your current issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants