Skip to content

fix(docker): retry volume removal when delete races provisioning - #5620

Open
ericcurtin wants to merge 4 commits into
ai-openshell:mainfrom
ericcurtin:fix/5459-docker-delete-starting/ericcurtin
Open

ericcurtin wants to merge 4 commits into
ai-openshell:mainfrom
ericcurtin:fix/5459-docker-delete-starting/ericcurtin

Conversation

@ericcurtin

Copy link
Copy Markdown
Contributor

Summary

Deleting a Docker sandbox while it is starting could fail with "volume is in use".

Related Issue

Closes #5459

Changes

  • Wait for the cancelled provisioning task in delete, as stop already does (shared helper).
  • On a "volume is in use" conflict, remove containers using the volume and retry.

Testing

  • Checks appropriate to the affected code and behavior pass
  • Unit tests added/updated (if applicable)
  • E2E tests added/updated (if applicable)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

Signed-off-by: Eric Curtin <eric.curtin@docker.com>
@copy-pr-bot

copy-pr-bot Bot commented Nov 16, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@ericcurtin

Copy link
Copy Markdown
Contributor Author

@TaylorMutch @purp PTAL when you get a chance, and could you please triage #5459 so the issue check can pass? /ok to test 17a8e3388a43e49a96e4df95ee993be278883e71 if it looks good. Thank you!

@ericcurtin

Copy link
Copy Markdown
Contributor Author

@SDAChess @alangou PTAL when you get a chance, and could you please triage #5459 so the issue check can pass? /ok to test 17a8e3388a43e49a96e4df95ee993be278883e71 if it looks good. Thank you!

Signed-off-by: Eric Curtin <eric.curtin@docker.com>
@ericcurtin

Copy link
Copy Markdown
Contributor Author

Merged main to start CI. @FrostGod @pimlock PTAL, and could you please approve the workflow runs? Thank you!

@ericcurtin

Copy link
Copy Markdown
Contributor Author

@shailendra-nv @TaylorMutch PTAL when you get a chance, and could you please triage #5459 so the issue check can pass? /ok to test 01eed3dea742feaf58bc5cd21acc1df305f0ace5 if it looks good. Thank you!

@alangou alangou added area:drivers Compute and secret drivers, host OS/architecture support, backend isolation, and lifecycle. test:e2e Requires end-to-end coverage topic:reliability High availability, recovery, retries, graceful degradation, and correctness across restarts. labels Nov 27, 2026
@alangou

alangou commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Thanks @ericcurtin

One change before merging: remove_containers_using_volume force-removes any container using the volume. Please scope it with the managed labels (managed-by, sandbox-namespace, sandbox-id) like the rest of the driver, otherwise it can kill an operator's own container attached to the workspace volume.

A test for the retry loop would be good too.

@alangou alangou added the state:accepted A maintainer decided OpenShell should pursue this issue label Nov 27, 2026
Signed-off-by: Eric Curtin <eric.curtin@docker.com>
@ericcurtin

Copy link
Copy Markdown
Contributor Author

@alangou Done in d2954b1: scoped by managed-by, sandbox-namespace and sandbox-id, with a retry test. Merged main to fix the CI feature errors.

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

area:drivers Compute and secret drivers, host OS/architecture support, backend isolation, and lifecycle. state:accepted A maintainer decided OpenShell should pursue this issue test:e2e Requires end-to-end coverage topic:reliability High availability, recovery, retries, graceful degradation, and correctness across restarts.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(docker): deleting a sandbox while it is starting fails with "volume is in use"

2 participants