-
Notifications
You must be signed in to change notification settings - Fork 39
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
Update shutdown-k3s.service #707
Conversation
How does |
Hmm I did not test that.. will have a look! |
Good point. According to k3s-io/k3s#2400 (comment) I bet there should be an analog process for rke2 In addition I am still noticing some weird behavior related to this service on my env. On a provisioned cluster if I am run in the shell:
it reboots without issues, no errors during shutdown. However if shutting down directly and relaying on Marking it as draft for now, in any case I believe this is needed. At least to prevent service execution at shutdown before provisioning. In fact I believe this should be provided as part of the provisioning process... not entirely in our hands though |
Signed-off-by: David Cassany <dcassany@suse.com>
9cc7469
to
cdbbeec
Compare
Signed-off-by: David Cassany <dcassany@suse.com>
cdbbeec
to
2565641
Compare
This is are the logs I get with a for a shutdown call including the changes in this PR:
Interesting enough I don't see the issue if I increase the systemd verbosity to debug shutdown:
Shutsdown without issues. I have spent whole day running trials in Rke2 and k3s trying to find a way to include killall scripts as part of the shutdown and make sure they are finalized before umount.target pulls all dependencies (or conflicts to mountpoints). I could not find a way. In any case in both cases, for RKE2 and K3S, the shutdown is quick (with errors on |
IMHO this is an issue for rancher provisioning, we should be providing such a service file, this should be provided as part of the provisioning, so the same logic that provides the |
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.
Nice work! Agree that this should be handled by the provisioning, but this seems like a good workaround!
Some little changes to shutdown-k3s.service. Mostly to prevent it from running if no k3s-killall script is available (e.g. in ISOs or before provisioning).
However the relevant fix is at https://build.opensuse.org/request/show/1068496 to ensure this service is enabled by default.
Related to #587