-
Notifications
You must be signed in to change notification settings - Fork 196
Conversation
/test |
@@ -41,6 +41,7 @@ main () { | |||
sudo systemctl stop "${CRI_RUNTIME}" | |||
|
|||
sudo kill -9 $(pidof "containerd-nydus-grpc") || true | |||
sudo rm -rf "/var/lib/containerd-nydus" || true |
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.
@ryansavino, as part of the cleanup, I'd also add:
for i in `sudo ctr -n k8s.io snapshot --snapshotter nydus list | grep -v KEY | cut -d' ' -f1`; do sudo ctr -n k8s.io snapshot --snapshotter nydus rm $i; done
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.
Thanks! I have added this.
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.
Sorry, last "request" / "suggestion", can you make sure we don't fail on that command?
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.
Sure thing. Also, I moved the nydus snapshot cleanup to right before the CRI_RUNTIME stop call. In case this might cause any issues.
a1b2b7a
to
0fb4a06
Compare
/test |
0fb4a06
to
dd88b7b
Compare
Cleanup created nydus snapshots and var directory Fixes: kata-containers#5787 Signed-Off-By: Ryan Savino <ryan.savino@amd.com>
dd88b7b
to
c628afe
Compare
/test |
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, thanks @ryansavino!
Fixes: #5787