-
Notifications
You must be signed in to change notification settings - Fork 65
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
pre-install: pre-install: Remove nydus-snapshotter config #280
pre-install: pre-install: Remove nydus-snapshotter config #280
Conversation
/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. We might want to run the tests twice here because this is a change to the uninstall stuff.
Also, @ryansavino looks like we need some cleanup on the SEV/SNP node.
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.
@fidencio lgtm
f29c2ac
to
f73b1de
Compare
/test |
f73b1de
to
db75f8e
Compare
for i in `ctr -n k8s.io snapshot --snapshotter nydus list | grep -v KEY | cut -d' ' -f1`; do | ||
ctr -n k8s.io snapshot --snapshotter nydus rm $i || true | ||
for i in `host_ctr -n k8s.io snapshot --snapshotter nydus list | grep -v KEY | cut -d' ' -f1`; do | ||
host_ctr -n k8s.io snapshot --snapshotter nydus rm $i || 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.
@fidencio I was about to ask you if there is a situation where ctr
is not installed, but this || true
will handle any error.
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.
very clever way of solving it @fidencio !
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
/test |
We've been leaving the nydus-snapshotter config behind because we were trying to remove it from a path that was changed from the first iteration of the nydus-snapshotter addition, but ended up not being noticed during review. While here, let's also make sure to entirely remove `/opt/confidential-containers/share`, as nydus-snapshotter is the only bit of code using that. Fixes: confidential-containers#278 Signed-off-by: Fabiano Fidêncio <[email protected]>
Otherwise ctr will not find nydus as one of its available napshotters. Signed-off-by: Fabiano Fidêncio <[email protected]>
Let's take the same approach taken to use systemd and use ctr directly from the host, which helps us to avoid actually mounting /run/ content into our daemonset. Signed-off-by: Fabiano Fidêncio <[email protected]>
db75f8e
to
4c8d276
Compare
/test |
I'm going ahead and merging this one, as the changes will most likely help with the AMD / Intel CIs. |
We've been leaving the nydus-snapshotter config behind because we were
trying to remove it from a path that was changed from the first
iteration of the nydus-snapshotter addition, but ended up not being
noticed during review.
While here, let's also make sure to entirely remove
/opt/confidential-containers/share
, as nydus-snapshotter is the onlybit of code using that.
Fixes: #278
While here let's also pre-remove ctr cleanup of nydus snapshotters
This has proven to be useless as it is, as
ctr
doesn't have access tothe
/var/run/{containerd,containerd-nydus}
to actually be able toperform any operation.
We could, obviously, expose those to the operator, but I'm very much
against adding even more host mounts to the operator, unless this is
strictly needed, and right now I don't think it is (and I'm fine to be
proven wrong in the future ;-)).