-
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
Support enforcing state for other VMs #567
Comments
Would it be feasible for the RPM to create a file (perhaps in its |
We'll consider our options in the context of the pending template consolidation (#471). For this one-time consolidation, we may utilize a simple one-time flag ("template consolidation tasks have not run yet"), but as part of investigating this, @conorsch has committed to considering ways this could be made more reusable for future updates, with a timebox of 8 hours total. |
The first option considered for a generalized approach is to manage the requests for a full-state run similar to how database migrations are managed: an ordered list of transitions that can be safely reapplied with no side-effects. We could store a list of such "migrations" in So we need a mechanism to detect whether a full-state run is required. We already have a "handle-upgrade" script that we used to migrate from Stretch to Buster templates (#352). During that point in the dom0 state run, we can run a simple command to determine whether or not a full-state run is required, and drop a flag in /tmp/ that can be consumed by the GUI updater code. For now, that's mostly going to handle the case of #471, but if it works, it should be flexible enough that we can reuse it in future RPM updates to trigger a full-state run based on a custom query command run in dom0. |
We've got a candidate implementation for triggering a full-state run via the GUI updater, as part of #619 However, we're unable to use that new method for template consolidation, because we need to update the updater first. Once 0.5.0 ships, though, we'll have the ability to manage more complicated changes in an unattended manner, which will resolve this issue. |
Support for enforcing state changes if certain conditions are present was indeed shipped as part of the template consolidation epic (#471), so closing this old issue. |
The updater enforces dom0 state via Salt (#458), but it does not currently allow state to be applied to any other VMs due to the runtime this would require. This causes problems when we want to make more complex system-level changes, e.g., #563.
For future changes of this type, it would be useful to have a mechanism to selectively apply a state update to specific VMs as part of an update.
The text was updated successfully, but these errors were encountered: