Replies: 6 comments 5 replies
-
I can confirm that it also fails for me locally on latest main (I checked with |
Beta Was this translation helpful? Give feedback.
-
This is failing for me (f37 laptop) all the way back to |
Beta Was this translation helpful? Give feedback.
-
Found the reason CI passes: $ bin/podman rmi -a
$ hack/bats --rootless 710:container
FAILS!
$ bin/podman save -q quay.io/libpod/testimage:20221018 -o /tmp/foo.tar
$ bin/podman rmi -a
...
$ bin/podman load -q -i /tmp/foo.tar
Loaded image: quay.io/libpod/testimage:20221018
$ hack/bats --rootless 710:container
PASS!
$ bin/podman rmi -a
...
$ !hack
FAIL! Because it re-pulled the image As for why podman save/load changes things, that's beyond my ken but I'm willing to bet a nickel that it has to do with #3761 |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply. When podman saves the container image with --format=docker-archive (default)
--format=oci-archive
AFAICS, Annotations fields are removed in the following save command: podman/test/system/120-load.bats Line 171 in 905dc6d podman/test/system/120-load.bats Line 195 in 905dc6d podman/test/system/120-load.bats Line 215 in 905dc6d Should we fix like |
Beta Was this translation helpful? Give feedback.
-
Um, why are annotations from the image’s manifest copied into the Pod’s annotations in the first place? Is there some specific reason to do that? The way I think about it, annotations are a general concept of an escape hatch to extend a format; that doesn’t mean that annotations that extend one format are a valid extension of another format — if anything, it means the opposite, and it seems to me copying the same annotations into multiple places is much more likely to confuse users (about which of these annotations actually makes any difference) than to help. (From an extremely brief skim, it seems that the image annotations are all copied into the container runtime annotations (which I don’t understand, but, fine) during container creation; and then I’d expect the image-originated annotations to not be copied into the Kube ones, because they can be again retrieved from the image to pass to the container runtime, and just updating the image would naturally update those container runtime annotations. But I’m very unfamiliar with the code and data flow.) |
Beta Was this translation helpful? Give feedback.
-
Looks like this was fixed in #18542, so I'm closing as resolved. However, I haven't forgotten about the problem with Thanks again for reporting this. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In my fedora 37 environment,
podman kube generate - container
test is always failedbecause of warning message
Kubernetes only allows 63 characters
.test log
This test is expected to not output this warning message.
podman/test/system/710-kube.bats
Line 36 in cb18a33
However, the warning message
Kubernetes only allows 63 characters
is always output.I don't know why this warning message isn't output in CI environment.
podman version
podman info
Beta Was this translation helpful? Give feedback.
All reactions