Repository navigation
Commit 4028fe8
authored
Migrate Runpod backend to REST API v2 (#4397)
Pods, clusters, network volumes, and container registry credentials
are managed via REST API v2 instead of the deprecated GraphQL API,
with the following exceptions and changes:
* Community Cloud pods are still created via GraphQL, since v2 does
not support placement by country code. gpuhunt also still uses
GraphQL.
* Clusters with `registry_auth` are no longer supported: v2 cluster
creation does not accept registry credentials, and cluster member
pods cannot be updated via `PATCH /v2/pods/{id}`.
* Spot offers are rejected, since v2 has no interruptible pods.
gpuhunt does not produce Runpod spot offers anyway.
* The cluster internal IP is set in `update_provisioning_data()`,
since v2 may assign it after the cluster is created.
* A cluster is deleted if its pods cannot be listed after creation or
their count does not match, as dstack does not track it yet.
* A failed container registry credentials cleanup no longer fails
provisioning of an already created pod.1 parent b556841 commit 4028fe8
4 files changed
Lines changed: 1122 additions & 722 deletions
File tree
- src
- dstack/_internal/core/backends/runpod
- tests/_internal/core/backends/runpod
0 commit comments