-
Notifications
You must be signed in to change notification settings - Fork 85
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
Regression running inner container #330
Comments
Is In the container could you install cni and set the network backend to cni to test if this works (CNI was always used before 4.0, now we use netavark by default) |
Quack @Luap99 , Indeed /sys is ro, no idea why. IIUC Switching back to CNI worked; at least I have a workaround now, thanks a lot. \_o< |
I move this to netavark then, looks like you already set the correct sysctl value that netavark tries to set so netavark should just ignore the error |
When we set a syctl we should not error when they are already set to the correct value. This allows us to work on a read only /proc when the user already configured the correct sysctls. CNI supports this as well. Fixes containers#330 Signed-off-by: Paul Holzinger <[email protected]>
@Luap99 thanks for working on it :-) |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
We run podman inside podman with inner systemd support. There's a few configuration tweaks but it used to work up to podman 3.4.7 and stopped working with 4.1.x (for running the inner container, see environment info below for the outer one).
Steps to reproduce the issue:
as non-root: podman rm outer; podman run --name=outer --cap-add=sys_admin,net_admin,net_raw --sysctl=net.ipv4.ip_forward=1 --sysctl=net.ipv6.conf.all.forwarding=1 --device=/dev/fuse --security-opt=label=disable --security-opt=seccomp=unconfined --uts=private --systemd=always quay.io/podman/stable sleep 99999999
in another non-root terminal:
Describe the results you received:
Outer and inner container start and systemd works inside the inner one.
Here is the log of a working step 2 with podman 3.4.7:
20220706_podman_inner_systemd_ok.log
Describe the results you expected:
The inner container fails to start with:
netavark (exit code 1): io error: read-only file system (os error 30)
Here is the log of a failing step 2 with podman 4.1.1:
20220706_podman_inner_systemd_ko.log
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes and Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
The environment is either F35 (podman 3.4.7) or Debian unstable (podman 3.4.7 or 4.1.1) with the same results.
The text was updated successfully, but these errors were encountered: