Skip to content

Support orphaned resources cleanup for GCP - #4408

Merged
r4victor merged 2 commits into
masterfrom
issue_3453_gcp_orphan_cleanup
Oct 26, 2026
Merged

r4victor merged 2 commits into
masterfrom
issue_3453_gcp_orphan_cleanup

Conversation

@r4victor

Copy link
Copy Markdown
Collaborator

Follow-up to #4401 for #3453.

  • Support orphan cleanup for GCP: VMs and TPU nodes created by create_instance() are labeled with dstack_provider_ref and listed with one aggregated instances call and one locations/- TPU nodes call (the latter only if tpu is enabled), skipping VMs in STOPPING and TPU nodes in DELETING as their deletion is in progress.
  • Document the compute.instances.list and tpu.nodes.list permissions it requires; until they are granted, cleanup of the backend logs a warning and backs off.
  • Document that resources copying the tags or names of a dstack instance (e.g. via "Create similar") are treated as its orphans, and list gcp and runpod among the backends supporting orphan cleanup.

@r4victor
r4victor merged commit 9150a3a into master Oct 26, 2026
27 checks passed
@r4victor
r4victor deleted the issue_3453_gcp_orphan_cleanup branch October 26, 2026 07:53
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