-
Notifications
You must be signed in to change notification settings - Fork 12
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
Disallow disk snapshots for disks attached to stopped instances #1947
Comments
Found what looks like the relevant API-side check. It has been there since snapshots were introduced. Unfortunately the client-side check is written in a way that is hard to extend to include instance state. Not a big deal, but it won't be a one-line fix. Lines 112 to 126 in cfda163
|
Tested snapshotting a disk attached to a stopped instance on dogfood with #1948 deployed. It's not great, but it would be better if the API error message was better. {
"request_id": "f14e26d3-f122-4f12-b284-daf99c2386c3",
"error_code": "ServiceNotAvailable",
"message": "Service Unavailable"
} |
I was wrong, the error comes from Nexus, right in the saga. |
That is unfortunate. Maybe Eventually we will need to back it out once this functionality is working. |
I think it might be a bug, as there is such a check before starting the saga. The logic might not be quite right. |
We probably want to hold this ticket for a bit as oxidecomputer/omicron#3289 is being fixed by oxidecomputer/omicron#5221. Hopefully we no longer have to deal with the 503 error for much longer. |
I just confirmed on rack2 that we can now snapshot disks attached to stopped instance. The change requested here is no longer necessary. |
Currently the web console allows for attempting to snapshot a disk that is attached to a stopped instance. This is currently not supported in nexus and either the instance needs to be running, or the disk needs to be detached for us to be able to snapshot it. We should not present the option to snapshot under these conditions.
The text was updated successfully, but these errors were encountered: