-
Notifications
You must be signed in to change notification settings - Fork 104
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
misc: remove related images/contents/snapshots in cleanup progress #609
Conversation
cc @ryansavino |
d2c7885
to
8926469
Compare
I fixed a few things in #605 per review comments. You may want to re-cherrypick the commits. |
8926469
to
33d2caa
Compare
Done. |
33d2caa
to
31597ea
Compare
for i in $(nsenter -t 1 -m ctr ${ctr_args} list | grep -v KEY | cut -d' ' -f1); do | ||
nsenter -t 1 -m ctr ${ctr_args} rm $i || true | ||
done | ||
remove_images |
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.
@ChengyuZhu6 wondering if this call to cleanup images even needs to be inside the pid check conditional statement. Why not just run it every time?
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.
If the snapshotter isn’t running, the remove_images
function won’t have any effect.
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
LGTM |
remove related images/contents/snapshots in cleanup progress. Signed-off-by: ChengyuZhu6 <[email protected]>
31597ea
to
27d320f
Compare
The cleanup process exits before completion. In addition to snapshots, we also need to clean up related content and images.
Depends on Ryan's PR #605.