-
Notifications
You must be signed in to change notification settings - Fork 74
[nexus] add POST /v1/instances/{instance}/force-terminate
#6795
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
Closed
Closed
Changes from 6 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
3de530f
plumbing for instance_force_terminate
hawkw afcd4b8
implement force terminate
hawkw 360c9cd
add tests
hawkw 34c3058
fix bug due to idempotency
hawkw 231c59f
Update nexus/external-api/src/lib.rs
hawkw a86935a
i guess i needed to clobber those
hawkw d6a2bd4
terminate active and target vmms
hawkw e841bd0
run instance-update saga synchronously
hawkw a69740d
add a note about running 2 sagas
hawkw e632bed
can't believe i forgot to do that
hawkw e50af89
Update instance.rs
hawkw d69a1ce
only run one saga (@gjcolombo is smarter than me)
hawkw a923f2a
cleanup mark_vmm_failed and sis_ensure_registered_undo
hawkw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
putting my mildly-uninformed-user hat on, is there something important i could be missing out on by not transitioning through "stopping"? resources that could be leaked (seems unlikely), or internal instance state that could get weird (seems more likely)? from what's here it doesn't seem unreasonable for a user to always
/force-terminateon the assumption that it's more like yanking power, and i dunno how much anyone would be disturbed by that. i recognize this is also kind of the ambiguity @gjcolombo was trying to address, sorry :)putting my Oxide engineer hat on, it feels like any reason to use
/force-terminateis a result of a user trying to unwedge themselves from an Oxide bug. so maybe that's the kind of warding this documentation deserves? though i'm still not sure how load-bearingstoppingis..There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The instance will still transition through the
Stoppingstate if you are querying it in the meantime, which will be visible in e.g. the console. It's just that theforce-terminateAPI endpoint does not return until the instance has advanced toStopped.