-
Notifications
You must be signed in to change notification settings - Fork 195
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
livefs: Require deployment staging #1456
Conversation
Hmm, although...this means if we crash during a livefs, the next reboot will still go back into the partially-written livefs root. I think the fix here is simple: when we push the rollback deployment, actually make it the default at first. To clarify things I'll call this the "livefs safety deployment". So the flow would be:
If we're interrupted here it's a bit weird, since we'll reboot into the livefs safety deployment. But eh.
Optional enhancement: Don't prune the original rollback deployment here either; the livefs safety deployment is fully transient if everything is successful. |
Both are failing due to:
|
Hmm. I think the problem here is "leakage" of staging state across the current vmcheck suite - we have the STI approach which runs each test in its own VM. |
FWIW the code change looks good to me :-) |
Weren't we at some point talking about |
3fa1c39
to
5e8479f
Compare
Staging fixes the `/etc` bug for livefs. There's actually more we could do here around taking advantage of staging for livefs; for example, I think once the livefs is complete, we could just delete the staged deployment. And then we don't need to render on the next boot the live status, etc. Anyways, all that can come in the future. This is prep for enabling staging by default. Closes: #1456 Approved by: jlebon
💥 Test timed out |
@rh-atomic-bot retry |
Staging fixes the `/etc` bug for livefs. There's actually more we could do here around taking advantage of staging for livefs; for example, I think once the livefs is complete, we could just delete the staged deployment. And then we don't need to render on the next boot the live status, etc. Anyways, all that can come in the future. This is prep for enabling staging by default. Closes: #1456 Approved by: jlebon
@rh-atomic-bot retry |
Staging fixes the `/etc` bug for livefs. There's actually more we could do here around taking advantage of staging for livefs; for example, I think once the livefs is complete, we could just delete the staged deployment. And then we don't need to render on the next boot the live status, etc. Anyways, all that can come in the future. This is prep for enabling staging by default. Closes: #1456 Approved by: jlebon
💔 Test failed - status-atomicjenkins |
Hmm, looks like tests might need to be adjusted some more? |
Staging fixes the `/etc` bug for livefs. There's actually more we could do here around taking advantage of staging for livefs; for example, I think once the livefs is complete, we could just delete the staged deployment. And then we don't need to render on the next boot the live status, etc. Anyways, all that can come in the future. This is prep for enabling staging by default.
5e8479f
to
d623351
Compare
Maybe it's simpler to have this one live with the #1430 commit - having this merged without that means that Closing this one. |
Staging fixes the
/etc
bug for livefs. There's actually morewe could do here around taking advantage of staging for livefs;
for example, I think once the livefs is complete, we could just delete
the staged deployment. And then we don't need to render on the next
boot the live status, etc.
Anyways, all that can come in the future. This is prep for
enabling staging by default.