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

kicbase runs systemd-binfmt.service and wipes out host binfmt registrations #18455

Open
hpidcock opened this issue Mar 20, 2024 · 1 comment · May be fixed by #18456
Open

kicbase runs systemd-binfmt.service and wipes out host binfmt registrations #18455

hpidcock opened this issue Mar 20, 2024 · 1 comment · May be fixed by #18456
Labels
co/podman-driver podman driver issues kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@hpidcock
Copy link

What Happened?

On the host machine there is several binfmt registrations in /proc/sys/fs/binfmt_misc and after starting minikube using podman as the driver, those binfmt registrations are reset.

Attach the log file

Ubuntu 22.04 on AWS ec2 host:

ubuntu@ip-172-31-1-82:~$ ls /proc/sys/fs/binfmt_misc/
python3.10  qemu-aarch64  qemu-ppc64le  qemu-s390x  register  status
ubuntu@ip-172-31-1-82:~$ systemctl status systemd-binfmt.service
● systemd-binfmt.service - Set Up Additional Binary Formats
     Loaded: loaded (/lib/systemd/system/systemd-binfmt.service; static)
     Active: active (exited) since Wed 2024-03-20 00:54:43 UTC; 29min ago
       Docs: man:systemd-binfmt.service(8)
             man:binfmt.d(5)
             https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html
             https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
    Process: 320 ExecStart=/lib/systemd/systemd-binfmt (code=exited, status=0/SUCCESS)
   Main PID: 320 (code=exited, status=0/SUCCESS)
        CPU: 7ms
ubuntu@ip-172-31-1-82:~$ minikube start --driver=podman --container-runtime=cri-o
# wait for it to start
ubuntu@ip-172-31-1-82:~$ ls /proc/sys/fs/binfmt_misc/
python3.10  register  status

Inside the minikube privileged container on the upstream kicbase image:

root@minikube:/# systemctl status systemd-binfmt.service
● systemd-binfmt.service - Set Up Additional Binary Formats
     Loaded: loaded (/lib/systemd/system/systemd-binfmt.service; static)
     Active: active (exited) since Wed 2024-03-20 00:57:44 UTC; 30min ago
       Docs: man:systemd-binfmt.service(8)
             man:binfmt.d(5)
             https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html
             https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
   Main PID: 110 (code=exited, status=0/SUCCESS)
        CPU: 6ms

Mar 20 00:57:44 minikube systemd[1]: Starting Set Up Additional Binary Formats...
Mar 20 00:57:44 minikube systemd[1]: Finished Set Up Additional Binary Formats.

Operating System

Ubuntu

Driver

Podman

@hpidcock hpidcock linked a pull request Mar 20, 2024 that will close this issue
@afbjorklund
Copy link
Collaborator

afbjorklund commented Mar 20, 2024

The immediate issue was addressed, by removing the /usr/lib/binfmt.d/python3.10.conf

But it would still be a good idea to disable the service, so that it doesn't happen again...

See also: kubernetes-sigs/kind@07484ab

@afbjorklund afbjorklund added co/podman-driver podman driver issues kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. labels Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/podman-driver podman driver issues kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants