fix(vm): recover overlay journal before generation cleanup - #3940
Closed
romainPellerin wants to merge 1 commit into
Closed
romainPellerin wants to merge 1 commit into
romainPellerin wants to merge 1 commit into
Conversation
Signed-off-by: romainPellerin <591564+romainPellerin@users.noreply.github.com>
romainPellerin
requested review from
a team,
derekwaynecarr,
mrunalp and
sjenning
as code owners
September 30, 2026 06:46
|
Thank you for your submission! We ask that you sign our Developer Certificate of Origin before we can accept your contribution. You can sign the DCO by adding a comment below using this text: I have read the DCO document and I hereby sign the DCO. You can retrigger this bot by commenting recheck in this Pull Request. Posted by the DCO Assistant Lite bot. |
|
Thank you for your interest in contributing to OpenShell, @romainPellerin. This project uses a vouch system for first-time contributors. Before submitting a pull request, you need to be vouched by a maintainer. To get vouched:
See CONTRIBUTING.md for details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Recover the stopped VM's ext4 overlay before removing the previous generation's guest authentication files. Cleanup currently calls
debugfson an unrecovered journal; a subsequent start can fail with an unattached inode ande2fsckexit status 4.Related Issue
No issue required: localized ordering fix in existing VM stop/start cleanup, with a regression test and no API or policy change.
Changes
recover_rootfs_imagecheck before the first offline deletion.Testing
cargo clippy -p openshell-driver-vm --all-targets --locked -- -D warningspasses.git diff --checkpass.mise run pre-commitpasses: unavailable becausemiseis not installed. The same limitation prevents the fullmise run cisuite; focused checks are listed above.Checklist
This fix retains the existing automatic-repair policy and fails closed on unrecoverable disks. It does not make VM termination a graceful filesystem shutdown; the persistence test explicitly flushes writes before stopping.