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

build copy-from: Unmounting, invalid argument, no stage or image found with that name #14350

Closed
edsantiago opened this issue May 24, 2022 · 6 comments
Assignees
Labels
flakes Flakes from Continuous Integration locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@edsantiago
Copy link
Member

It's a one-off, but I don't like one-offs:

[+0818s] not ok 150 build with copy-from referencing the base image
...
         # # podman build --no-cache --jobs 4 -t derived-mt -f /tmp/podman_bats.1Efpk4/build-test/Containerfile2 /tmp/podman_bats.1Efpk4/build-test
         # [2/2] STEP 1/2: FROM quay.io/libpod/alpine AS final
         # [1/2] STEP 1/2: FROM quay.io/libpod/testimage:20210610 AS test
         # [1/2] STEP 2/2: RUN rm -f /etc/alpine-release
         # [2/2] STEP 2/2: COPY --from=quay.io/libpod/testimage:20210610 /etc/alpine-release /test/
         # time="2022-05-24T03:04:07-05:00" level=error msg="Unmounting /var/lib/containers/storage/overlay/a4ef9fae76fa79493269d65e523335cf55e36ac67e31c5f6f17e3599e2af7302/merged: invalid argument"
         # Error: COPY --from=quay.io/libpod/testimage:20210610: no stage or image found with that name
         # [ rc=125 (** EXPECTED 0 **) ]

[sys] 150 build with copy-from referencing the base image

@edsantiago edsantiago added the flakes Flakes from Continuous Integration label May 24, 2022
@vrothberg
Copy link
Member

@flouthoc this looks like a cool nut to track .

@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@rhatdan
Copy link
Member

rhatdan commented Jul 28, 2022

@flouthoc do you have time to look at this?

@flouthoc
Copy link
Collaborator

@rhatdan Sure. I'll take a look at this thanks.

@flouthoc
Copy link
Collaborator

I am unable to reproduce this race no matter how many times i invoke this build. I can imaging a scenario where this happens when quay.io/libpod/testimage:20210610 is removed forcefully from storage while the build is in progress but I am not sure if that can happen in CI.

My reproducer attempt ( from which i am not able to reproduce )

FROM quay.io/libpod/testimage:20210610 AS test
RUN rm -f /etc/alpine-release
FROM quay.io/libpod/alpine AS final
COPY --from=quay.io/libpod/testimage:20210610 /etc/alpine-release /test/
podman build --no-cache --jobs 4 -t test .

Since I am unable to reproduce this on main and it had only occurred once with no history, I am closing this issue but @edsantiago please reopen the issue if this is a constant issue or there are more occurrence of this but as of now I can't reproduce this from main.

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 19, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
flakes Flakes from Continuous Integration locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

4 participants