-
Notifications
You must be signed in to change notification settings - Fork 803
Cleans up containers and shims on microk8s stop and snap removal #4755
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
Cleans up containers and shims on microk8s stop and snap removal #4755
Conversation
The containerd shims and the containers are now removed in both classic and strict modes when stopping microk8s (microk8s stop) or when removing the snap. Note that ctr container delete has no ``--force`` flag. Adds additional assertion in the upgrade test, ensuring that the Pods / containers have been removed on snap removal. Adds additional test, ensuring that the Pods / containers have been removed when running microk8s stop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi Folks, Is this part of any release yet? |
Will this be available for microk8s 1.30 release? If so, can we please have a date |
@abhilashshetty04 @mathnitin this work will initially ship with the 1.32 release. Assuming we do not run into any issues with it we will consider backporting it to older releases. |
…onical#4755) The containerd shims and the containers are now removed in both classic and strict modes when stopping microk8s (microk8s stop) or when removing the snap. Note that ctr container delete has no ``--force`` flag. Adds additional assertion in the upgrade test, ensuring that the Pods / containers have been removed on snap removal. Adds additional test, ensuring that the Pods / containers have been removed when running microk8s stop. (cherry picked from commit 941b781)
…onical#4755) The containerd shims and the containers are now removed in both classic and strict modes when stopping microk8s (microk8s stop) or when removing the snap. Note that ctr container delete has no ``--force`` flag. Adds additional assertion in the upgrade test, ensuring that the Pods / containers have been removed on snap removal. Adds additional test, ensuring that the Pods / containers have been removed when running microk8s stop. (cherry picked from commit 941b781)
…onical#4755) The containerd shims and the containers are now removed in both classic and strict modes when stopping microk8s (microk8s stop) or when removing the snap. Note that ctr container delete has no ``--force`` flag. Adds additional assertion in the upgrade test, ensuring that the Pods / containers have been removed on snap removal. Adds additional test, ensuring that the Pods / containers have been removed when running microk8s stop. (cherry picked from commit 941b781)
…onical#4755) The containerd shims and the containers are now removed in both classic and strict modes when stopping microk8s (microk8s stop) or when removing the snap. Note that ctr container delete has no ``--force`` flag. Adds additional assertion in the upgrade test, ensuring that the Pods / containers have been removed on snap removal. Adds additional test, ensuring that the Pods / containers have been removed when running microk8s stop. (cherry picked from commit 941b781)
The containerd shims and the containers are now removed in both classic and strict modes when stopping microk8s (microk8s stop) or when removing the snap. Note that ctr container delete has no ``--force`` flag. Adds additional assertion in the upgrade test, ensuring that the Pods / containers have been removed on snap removal. Adds additional test, ensuring that the Pods / containers have been removed when running microk8s stop. (cherry picked from commit 941b781)
The containerd shims and the containers are now removed in both classic and strict modes when stopping microk8s (microk8s stop) or when removing the snap. Note that ctr container delete has no ``--force`` flag. Adds additional assertion in the upgrade test, ensuring that the Pods / containers have been removed on snap removal. Adds additional test, ensuring that the Pods / containers have been removed when running microk8s stop. (cherry picked from commit 941b781)
The containerd shims and the containers are now removed in both classic and strict modes when stopping microk8s (microk8s stop) or when removing the snap. Note that ctr container delete has no ``--force`` flag. Adds additional assertion in the upgrade test, ensuring that the Pods / containers have been removed on snap removal. Adds additional test, ensuring that the Pods / containers have been removed when running microk8s stop. (cherry picked from commit 941b781)
The containerd shims and the containers are now removed in both classic and strict modes when stopping microk8s (microk8s stop) or when removing the snap. Note that ctr container delete has no ``--force`` flag. Adds additional assertion in the upgrade test, ensuring that the Pods / containers have been removed on snap removal. Adds additional test, ensuring that the Pods / containers have been removed when running microk8s stop. (cherry picked from commit 941b781)
…nap removal (#4880) * Cleans up containers and shims on microk8s stop and snap removal (#4755) The containerd shims and the containers are now removed in both classic and strict modes when stopping microk8s (microk8s stop) or when removing the snap. Note that ctr container delete has no ``--force`` flag. Adds additional assertion in the upgrade test, ensuring that the Pods / containers have been removed on snap removal. Adds additional test, ensuring that the Pods / containers have been removed when running microk8s stop. (cherry picked from commit 941b781) * Add psutil to pip install directives (#4782) (cherry picked from commit e2b2a2f) --------- Co-authored-by: Claudiu Belu <[email protected]>
…p and snap removal (#4881) * Cleans up containers and shims on microk8s stop and snap removal (#4755) The containerd shims and the containers are now removed in both classic and strict modes when stopping microk8s (microk8s stop) or when removing the snap. Note that ctr container delete has no ``--force`` flag. Adds additional assertion in the upgrade test, ensuring that the Pods / containers have been removed on snap removal. Adds additional test, ensuring that the Pods / containers have been removed when running microk8s stop. (cherry picked from commit 941b781) * Add psutil to pip install directives (#4782) (cherry picked from commit e2b2a2f) --------- Co-authored-by: Claudiu Belu <[email protected]>
…nap removal (#4882) * Cleans up containers and shims on microk8s stop and snap removal (#4755) The containerd shims and the containers are now removed in both classic and strict modes when stopping microk8s (microk8s stop) or when removing the snap. Note that ctr container delete has no ``--force`` flag. Adds additional assertion in the upgrade test, ensuring that the Pods / containers have been removed on snap removal. Adds additional test, ensuring that the Pods / containers have been removed when running microk8s stop. (cherry picked from commit 941b781) * Add psutil to pip install directives (#4782) (cherry picked from commit e2b2a2f) * Disable testing on debian and centos. Images missing. (#4606) (cherry picked from commit 81d5d0a) --------- Co-authored-by: Claudiu Belu <[email protected]> Co-authored-by: Konstantinos Tsakalozos <[email protected]>
…p and snap removal (#4883) * Cleans up containers and shims on microk8s stop and snap removal (#4755) The containerd shims and the containers are now removed in both classic and strict modes when stopping microk8s (microk8s stop) or when removing the snap. Note that ctr container delete has no ``--force`` flag. Adds additional assertion in the upgrade test, ensuring that the Pods / containers have been removed on snap removal. Adds additional test, ensuring that the Pods / containers have been removed when running microk8s stop. (cherry picked from commit 941b781) * Add psutil to pip install directives (#4782) (cherry picked from commit e2b2a2f) --------- Co-authored-by: Claudiu Belu <[email protected]>
`microk8s stop` was changed to fully remove containers via ctr(#4755) which results in an old DNAT rule getting left-over that points to the old container id. flushing the chain should fix issues of hostPort connections dropping after a stop & start.
`microk8s stop` was changed to fully remove containers via ctr(#4755) which results in an old DNAT rule getting left-over that points to the old container id. flushing the chain should fix issues of hostPort connections dropping after a stop & start.
Summary
The containerd shims and the containers are now removed in both classic and strict modes when stopping microk8s (
microk8s stop
) or when removing the snap.Note that
ctr container delete
has no--force
flag.Adds additional assertion in the upgrade test, ensuring that the Pods / containers have been removed on snap removal.
Adds additional test, ensuring that the Pods / containers have been removed when running
microk8s stop
.Changes
The Kubernetes-related containers / Pods are now stopped when running
microk8s stop
. The same containers / Pods are no longer leaked on snap removal.Testing
Added extra assertions and integration test to ensure the new behaviour.
Possible Regressions
Checklist
Notes
Inspired by: #4693
Closes: #3969