-
Notifications
You must be signed in to change notification settings - Fork 785
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
glibc 2.33 bug causes regressions #3021
Comments
Could you add in the AUDIT_WRITE capability and see if it works? |
attk@attk-VirtualBox:~/podman-container$ sudo podman --runtime=crun build --cap-add=CAP_AUDIT_WRITE -f Containerfile_x86_64 .
STEP 1: FROM docker.io/archlinux/archlinux:base
STEP 2: RUN pacman-key --init && pacman-key --populate archlinux && rm -f /etc/pacman.d/gnupg/S.gpg-agent*
==> ERROR: pacman configuration file '/etc/pacman.conf' not found.
Error: error building at STEP "RUN pacman-key --init && pacman-key --populate archlinux && rm -f /etc/pacman.d/gnupg/S.gpg-agent*": error while running runtime: exit status 1 |
Does it work --privileged? |
Sorry, I am not sure how to execute http://docs.podman.io/en/latest/markdown/podman-build.1.html does not list
|
Does anyone have an idea what we could try next? It's a big problem for us not being able to build this image on Ubuntu machines, and it would be great if we could avoid having to compile older versions of Podman from source. The problem persists with Podman 3.0.1 by the way. |
Sorry that you ran into this issue, @polygamma! Does |
Were you using the same version of Podman on Ubuntu and Arch? It worked on Arch but not on Ubuntu? |
Unfortunately not.
It works on Arch with Podman < 3.0.0 and Podman >= 3.0.0 and it works on Ubuntu with Podman < 3.0.0 but NOT with Podman >= 3.0.0 |
Can you share the output of |
|
Thanks! I am going to spin up an Ubuntu VM to have a look at it myself. There must be something going on. Cc @lsm5 |
@vrothberg If it would be of any help, I could also set up a new VM and try Ubuntu 20.10 instead of 20.04... Maybe that gives even more information about what's wrong? |
Thanks, I appreciate your help! I can reproduce in my new Ubuntu VM and about to track the bug down. |
I have installed the new VM and the bug also exists on Ubuntu 20.10. I am going to do the following for the time being: Building Podman from source based on different commits, maybe I'm able to find the specific commit introducing the bug. |
FWIW, building Podman v2.2.1 from source also fails. May be a packaging issue. |
Ha, seems like you had the exact same idea... Was also going to write that it fails with an older version < 3.0.0 which I built from source. Could it be a crun problem? |
hm ... I am still scatching my head a bit |
It doesn't look like crun since I can reproduce with runc (see above). |
It works in the build container started by
|
Okay, so it doesn't seem to be Podman itself, nor crun or runc. Do I see that right? I'm going to boot Ubuntu 20.10 again and install Podman from the official Ubuntu repos instead of the Kubic PPA. Maybe that makes a difference. |
It does not. Still fails. As one can see, the Podman version and the runc version are both very old and I get the same error.
Phew, could it be something that Ubuntu itself changed, that leads to this problem? |
Still investigating. Docker is failing as well. |
So... I am going to correct my initial post in this thread: It does not seem to be Podman 3.0.0 that introduced the bug, but what I can say for sure is the following: I was setting up devices for work on 01.02.21 (I just looked it up) and installed Ubuntu 20.04.02 LTS and fully updated the systems. Podman was installed from the Kubic PPA. Everything worked back then. So it has to be something that changed in Ubuntu between 01.02.21 and 18.02.21. Gives us at least something to start with.
Ha, and people use Ubuntu because it's so stable, I see... |
Bad things can happen. There are so many moving targets and we don't yet know exactly what's going on. FWIW, Buildah containers work. |
@giuseppe Any ideas? |
I found it: https://bugs.archlinux.org/index.php?do=details&task_id=69563 It's a fart in glibc that renders the archlinux containers to fail on some hosts. @fatherlinux, that's a candidate for your "why hosts matter" conversations :) I am closing since there's nothing Podman can do. |
To lift the last open question regarding Buildah: when I build it locally in Ubuntu 20.04, it'll fail as well. It seems like the upstream packages of Podman and Buildah were built with slightly different versions of glibc, which would explain why one fails but not the other. |
@vrothberg Thank you very much :) Building the latest runc version from source actually fixes the issue.
|
Description
With the release of Podman 3.0.0 we are not able to build images that we've been able to build before the release of Podman 3.0.0.
EDIT: It's not Podman 3.0.0 that introduced the bug, but rather something that was changed by Ubuntu.
EDIT 2: It's glibc, sorry Ubuntu!
This happens using Ubuntu 20.04.2 LTS but not using Arch Linux.
To be very precise: We can still build those images on Arch Linux with Podman 3.0.0, but not on Ubuntu 20.04.2 LTS with Podman 3.0.0.
All systems are fully updated.
Steps to reproduce the issue:
Use Ubuntu 20.04.2 LTS
Use the following Containerfile:
Execute:
sudo podman --runtime=crun build
(see: kubic xUbuntu_18.04 broken default OCI runtime config? dockerfile RUN lines fail with default installation podman#9365 for why the --runtime specification is needed)Get an error:
The file
/etc/pacman.conf
is however present during the build process.ls
andcat
both show that, when including them in the Containerfile.Describe the results you expected:
Successful building of the image. This was achieved on Arch Linux.
Output of
rpm -q buildah
orapt list buildah
:Output of
buildah version
:Output of
podman version
if reporting apodman build
issue:Output of
cat /etc/*release
:Output of
uname -a
:But it happens on non-virtualized version of Ubuntu, too.
Output of
cat /etc/containers/storage.conf
:The text was updated successfully, but these errors were encountered: