- 
                Notifications
    
You must be signed in to change notification settings  - Fork 2.8k
 
Closed
Labels
flakesFlakes from Continuous IntegrationFlakes from Continuous Integrationlocked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.Assist humans wanting to comment on an old issue or PR with locked comments.
Description
Initial setup:
$ bin/podman images
REPOSITORY                    TAG                   IMAGE ID      CREATED         SIZE
quay.io/libpod/testimage      20240123              1f6acd4c4a1d  5 months ago    11.8 MB
quay.io/libpod/systemd-image  20240124              9479ce2eaa2d  5 months ago    149 MBCreate three kube files, and run three kubes in parallel:
$ for i in 1 2 3;do printf "apiVersion: v1\nkind: Pod\nmetadata:\n  name: foo$i\nspec:\n  containers:\n  - command:\n    - top\n    image: quay.io/libpod/testimage:20240123\n    name: fooctr$i\nstatus: {}\n" > foo$i.yaml;done
$ bin/podman kube play foo1.yaml & bin/podman kube play foo2.yaml & bin/podman kube play foo3.yaml
[2] 3587033
[3] 3587034
Pod:
516b243e9ee83dc8eee7e2273f6a4a1c8fb1c97a6bed46dbb00d063d7b649782
Container:
a7d3e67ef42012356dd22aaadd4e4044c77ca199974ca5522bf19af472f28f64
Pod:
773b0cdedc4ea0a7b6a7c5a6602f3b055380e2d4f7678e7a225c7f1d0213512a
Container:
5877a323b87695e85f65b2220d8009f853cb46c977c9ae9a164211e87a65902a
[2]  - done       bin/podman kube play foo1.yaml
Pod:
7aa9abb628f9c337936fb2074253b41ac8b5da61abe1ce0d6ac215128e29d2cf
Container:
47d4a47787470c87d6a73899068e9f85c660aa56c501470a394ea92a8143d4e5
[3]  + done       bin/podman kube play foo2.yaml(Apparently) all three tried to build a pause image, one got tagged, the other two did not:
$ bin/podman images
REPOSITORY                    TAG                   IMAGE ID      CREATED        SIZE                                                                           
<none>                        <none>                0d5444c11909  5 seconds ago  742 kB       <<< BAD
<none>                        <none>                f95539868d11  5 seconds ago  742 kB       <<< BAD
localhost/podman-pause        5.2.0-dev-1721130071  451008d17bce  5 seconds ago  742 kB
quay.io/libpod/testimage      20240123              1f6acd4c4a1d  5 months ago   11.8 MB
quay.io/libpod/systemd-image  20240124              9479ce2eaa2d  5 months ago   149 MBOne of those images is in use by one of the containers, and can't be deleted until the pod stops. The other is not in use and can be rmi'ed. This confuses me because buildPauseImage() returns an image name, not ID. But I'm not going to lose sleep over that.
Relevant code seems to be https://github.com/containers/podman/blob/main/pkg/specgen/generate/pause_image.go . I can't think of any way to fix this that doesn't involve locks, yuk. Hope y'all have better solutions.
Metadata
Metadata
Assignees
Labels
flakesFlakes from Continuous IntegrationFlakes from Continuous Integrationlocked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.Assist humans wanting to comment on an old issue or PR with locked comments.