Registry Mirror
Skip to content

Conversation

@itzPranshul

@itzPranshul pranshul gupta (itzPranshul) commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Resolves TODO(#3046)
Part of #3046

atelet already forwards a worker's Unavailable on CheckpointWorkload (#3123) so ateapi retries instead of crashing the actor, but ateworker-microvm still returned Internal when WaitReady or Pause hit a transient socket/transport stall on a live VM. Both workers also deactivated the actor's tunnel before validating the requested fidelity.

What changed

  • ateworker-microvm:
    • Run fidelity validation and client.WaitReady before tunnel.Deactivate, so pre-flight failures leave actor networking untouched.
    • Return Unavailable for WaitReady and Pause transport/readiness failures when the caller context is active and the tracked Cloud Hypervisor process is still alive (vmAlive).
    • Keep Internal if the VM is untracked/exited or if CH rejects the request with a non-2xx HTTP status (*ch.StatusError), so dead VMs or VMM-level rejections don't retry forever. Preserve ctx.Err() on caller cancellation/timeout.
  • ateworker-gvisor:
    • Check VOLUMES fidelity before tunnel.Deactivate and checkpointDir cleanup, returning FailedPrecondition when there are no durable-dir volumes. (runsc checkpoint stays Internal since it is a single invocation that may stop the sandbox.)
  • atelet: Remove the resolved TODO(#3046).
  • Tests: Unit tests covering pre-snapshot classification, pre-flight tunnel ordering, and Pause HTTP vs. transport errors.

AI use: AI-assisted; I reviewed and tested the changes.

  • Tests pass
  • Docs updated (N/A)

@itzPranshul
pranshul gupta (itzPranshul) force-pushed the worker-checkpoint-classification branch 2 times, most recently from f107792 to 4fd3ce9 Compare November 29, 2026 04:48
Signed-off-by: pranshul gupta <pranshulg01@gmail.com>
@itzPranshul

Copy link
Copy Markdown
Contributor Author

Aditya Shantanu (@aditya-shantanu) you own the TODO this PR addresses, PTAL when you get a chance. Thanks!

@Nishanth29

Nishanth Kotla (Nishanth29) commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Hi pranshul gupta (@itzPranshul), #3359 changes the same checkpoint path (checking the VMM before deactivating the tunnel and returning Unavailable). Haowei Cai (Roy) (@roycaihw) suggested landing #3359 first since it's smaller, and rebasing this on top. I'm addressing review comments on #3359 now and hope to get it in before the Dec 5 cutoff. Does that work for you?

This branch has not been deployed

No deployments
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.

2 participants