Skip to content
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

Merged
merged 1 commit into from
Apr 6, 2020

Conversation

emkll
Copy link
Contributor

@emkll emkll commented Apr 1, 2020

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 move sd-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 to sd-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

Should they call `sd-log` during shutdown sequence or otherwise, they may interfere with the reboot order and introduce failures.
@emkll emkll requested review from eloquence and conorsch April 1, 2020 14:43
@eloquence
Copy link
Member

Run 1:

  • No templates running
  • No USBs attached
  • Updates not forced, but some fedora-30 updates due from yesterday
  • No errors

@eloquence
Copy link
Member

Run 2:

  • sd-app-buster-template running
  • zlib downgraded to force fedora-30 update
  • No USBs attached
  • No errors

@eloquence
Copy link
Member

Run 3:

  • sd-app-buster-template running
  • zlib downgraded to force fedora-30 update
  • No USBs attached
  • No errors

@eloquence
Copy link
Member

eloquence commented Apr 1, 2020

Run 4:

  • sd-app-buster-template running
  • zlib downgraded to force fedora-30 update
  • No USBs attached
  • No errors

One more.

@eloquence
Copy link
Member

eloquence commented Apr 1, 2020

Run 5.

  • sd-app-buster-template running
  • zlib downgraded to force fedora-30 update
  • No USBs attached
  • "Security updates cannot be applied at this time" but no libxenlight error

(Unrelated to this PR. UPDATES_FAILED=3 reported for sd-whonix so I'm guessing Tor flakiness. Point in favor of moving away from updates over Tor soon, IMO, if necessary by eliminating Whonix dependency - post-initial consolidation, of course.)

All runs were done using the version of Updater.py in this branch, by manually replacing the copies in /opt and /srv in dom0.

@eloquence
Copy link
Member

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.

@conorsch
Copy link
Contributor

conorsch commented Apr 2, 2020

@emkll Nudge on ready-for-review status here. Ideally we'd get in #523 first, but that's not ready-for-review, and this one (arguably 😃) is.

@emkll emkll marked this pull request as ready for review April 3, 2020 17:01
Copy link
Contributor

@conorsch conorsch left a 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.

@conorsch conorsch merged commit 15e825f into master Apr 6, 2020
@eloquence eloquence added this to the 0.3.0 milestone Apr 25, 2020
@emkll emkll mentioned this pull request May 20, 2020
19 tasks
cfm pushed a commit that referenced this pull request Apr 1, 2024
Ensure TemplateVMs are shut down prior to rebooting
@legoktm legoktm deleted the 498-shutdown-templates branch May 28, 2024 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[0.2.3-rpm] libxenlight failed to create new domain sd-log
3 participants