Repository navigation
Migrate Runpod backend to REST API v2 - #4397
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
registry_authare no longer supported: v2 cluster creation does not accept registry credentials, and cluster member pods cannot be updated viaPATCH /v2/pods/{id}.update_provisioning_data(), since v2 may assign it after the cluster is created.