Skip to content

fix: serialize shim shutdown and quiesce guest before poweroff#32

Open
aledbf wants to merge 6 commits intomainfrom
aledbf/fix
Open

fix: serialize shim shutdown and quiesce guest before poweroff#32
aledbf wants to merge 6 commits intomainfrom
aledbf/fix

Conversation

@aledbf
Copy link
Copy Markdown
Collaborator

@aledbf aledbf commented Apr 19, 2026

Summary

  • Serialize shutdown flow: introduce beginRPC / shutdownOnce to prevent new RPCs during shutdown and ensure in-flight calls drain before exit
  • Quiesce guest filesystem: add PrepareShutdown RPC so the host can flush the guest writable layer before VM poweroff, ensuring snapshot/commit consistency
  • Bump toolchain and deps: Go 1.26.2, QEMU 10.2.2, containerd v2.2.2, gRPC v1.78.0, OpenTelemetry v1.38.0, EROFS snapshotter v20260419.01
  • Remove stale api/next.pb.txt descriptor snapshot

Test plan

  • Unit tests added for PrepareShutdown guest service
  • Unit tests added for beginRPC / shutdown serialization in task service
  • task lint passes
  • go test -race ./... passes
  • Integration tests with KVM verify clean shutdown under concurrent RPCs

🤖 Generated with Claude Code

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.

1 participant