Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move instance migration to internal API #6311

Merged
merged 2 commits into from
Aug 14, 2024

Conversation

gjcolombo
Copy link
Contributor

Move instance migration from the external API to the internal API per the determinations in RFD 494. This is almost a purely mechanical change (I have not, for example, changed any API signatures or return values); the only unusual bit is one small adjustment to Nexus::instance_ensure_registered to deal with the fact that migration no longer runs in a context where the caller is acting on behalf of a user in a silo.

Tests: cargo test; spun up a dev cluster and verified that (1) the migrate endpoint is gone from the external API, (2) it's present on the internal API and reachable from the switch zone, and (3) it behaves as it did before (at least to the extent I could test migration's behavior on a single-machine dev cluster).

Fixes #6173.

Copy link
Contributor

@sunshowers sunshowers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@gjcolombo
Copy link
Contributor Author

Thanks for the review!

@gjcolombo gjcolombo merged commit 3d6f213 into main Aug 14, 2024
23 checks passed
@gjcolombo gjcolombo deleted the gjcolombo/instance-migrate-internal branch August 14, 2024 22:38
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.

Move instance/{id}/migrate endpoint to internal API
2 participants