Skip to content

fix(orch): set mmds early to fix a race condition for snapshot templates#2138

Closed
jakubno wants to merge 1 commit intomainfrom
fix/snapshots-envd-init-401
Closed

fix(orch): set mmds early to fix a race condition for snapshot templates#2138
jakubno wants to merge 1 commit intomainfrom
fix/snapshots-envd-init-401

Conversation

@jakubno
Copy link
Member

@jakubno jakubno commented Mar 15, 2026

TODO:

  • try to find reproducer

Note

Medium Risk
Changes the ordering of snapshot resume steps, which can affect VM bring-up timing and failure modes if MMDS or resume calls behave differently than expected. Risk is limited in scope to the Firecracker snapshot resume path.

Overview
Fixes a race during snapshot-based VM resume by moving the MMDS metadata write (setMmds) to occur before resumeVM, ensuring sandbox/template/logging metadata (and access-token hash) is available immediately when the VM comes up.

Written by Cursor Bugbot for commit 0954b5a. This will update automatically on new commits. Configure here.

@jakubno jakubno assigned dobrac and unassigned bchalios Mar 16, 2026
@jakubno jakubno marked this pull request as ready for review March 16, 2026 12:28
@jakubno jakubno marked this pull request as draft March 16, 2026 12:28
@jakubno jakubno closed this Mar 18, 2026
@jakubno jakubno deleted the fix/snapshots-envd-init-401 branch March 18, 2026 15:06
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.

3 participants