-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Re-tagging images not working (and image delete then fails) #2960
Comments
Can you try from the latest kind sources? |
I can confirm issue is resolved entirely under latest sources. |
cc @aojea broken image loading behavior probably warrants a quicker follow-up release than previously planned |
but this bug was always there, wasn't it? |
No, previously we would just load the image again using the normal loading path. It's a recent change that we attempt to re-tag instead when only the tag changed. |
oh, then we should fix it |
Kind 0.16.0 breaks retagging images: kubernetes-sigs/kind#2960 This downgrades us to 0.15.0 to attempt to get our k8s integration tests running again.
Kind 0.16.0 breaks retagging images: kubernetes-sigs/kind#2960 This downgrades us to 0.15.0 to attempt to get our k8s integration tests running again.
Kind 0.16.0 breaks retagging images: kubernetes-sigs/kind#2960 This downgrades us to 0.15.0 to attempt to get our k8s integration tests running again.
Kind 0.16.0 breaks retagging images: kubernetes-sigs/kind#2960 This downgrades us to 0.15.0 to attempt to get our k8s integration tests running again.
Kind 0.16.0 breaks retagging images: kubernetes-sigs/kind#2960 This downgrades us to 0.15.0 to attempt to get our k8s integration tests running again.
Kind 0.16.0 breaks retagging images: kubernetes-sigs/kind#2960 This downgrades us to 0.15.0 to attempt to get our k8s integration tests running again.
What happened:
My build script generates a unique build tag for every build.
It then "load" the image into kind node.
Then it deploys a manifest using the new tag.
While running this I found that f there are no changes to the image - thus load just re-tags it... the image will no longer be available within the node resulting in a ImagePullBackOff error.
The image cannot then be deleted (
crictl rmi
fails to delete) and the only solution is deleting the "kind cluster" and recreating.What you expected to happen:
I would expect re-tagged images to be available to the node.
And also - "crictl rmi ..." should be able to remove images when run inside node.
How to reproduce it (as minimally and precisely as possible):
Create
Makefile
with:bug: - kind delete cluster kind create cluster docker build -t bug:1 . docker build -t bug:2 . kind load docker-image bug:1 kind load docker-image bug:2 sleep 10 kubectl run --image bug:1 bug-1 kubectl run --image bug:2 bug-2 sleep 10 kubectl describe pod bug-1 kubectl describe pod bug-2
Create
Dockerfile
with:Run
make bug
(terminal bash in folder where files are created) - see output:Further to that... when running
docker exec -it kind-control-plane bash
:Anything else we need to know?:
Environment:
kind version
):kind v0.16.0 go1.18.1 linux/amd64
kubectl version
):Client Version: v1.25.2
docker info
):20.10.14
/etc/os-release
):Ubuntu 22.04.1 LTS (Jammy Jellyfish)
The text was updated successfully, but these errors were encountered: