-
Notifications
You must be signed in to change notification settings - Fork 46
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
Ensure TemplateVMs are shut down prior to rebooting #522
Conversation
Should they call `sd-log` during shutdown sequence or otherwise, they may interfere with the reboot order and introduce failures.
Run 1:
|
Run 2:
|
Run 3:
|
Run 4:
One more. |
Run 5.
(Unrelated to this PR. All runs were done using the version of |
I don't see any regressions and the reasoning for the changes makes sense to me, so 👍 from me to promoting from draft status for final review. |
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.
Haven't performed functional review of these changes myself, but given the copious testing by @eloquence & @rocodes (see #498 (comment)), quite comfortable merging based on visual review.
The test updates in #523 will need to be rebased post-merge, I'll get on that shortly.
Ensure TemplateVMs are shut down prior to rebooting
Status
Ready for Review
Description of Changes
Maybe fixes #498.
Should they call
sd-log
during shutdown sequence or otherwise, they may interfere with the reboot order and introduce failures. ALso movesd-app
to beginning of shutdown sequence.Since
sd-log
receives qubes-rpc calls from pretty much every AppVM and TemplateVM we provision. If that's the case, changed we've introduced in #487 could explain why we have been seeing this error more often, but also why it has been inconsistent across our installs: we do not control the state (powered on/off) of TemplateVMs. Should a template send logs tosd-log
and triggering an out-of-order reboot. It would make sense to ensure any VM that logs to be shut down prior to sd-log, and start sd-log before all other VMs.Testing