Problem: Error when attempting to shelve a server in the process of being shelved
Problem/Opportunity Statement
A support ticket from a Jetstream community member:
I shelved an instance, but it says it's in the ready state. Now I can't unshelf it.
CRITICAL at 2024-02-06 22:44:59 UTC -- while trying to perform action for server <REDACTED> -- Cannot 'shelve' instance <REDACTED> while it is in task_state shelving_image_uploading (response code: 409)
Support determined:
It looks like this instance is properly shelved at the time of writing. Are you still experiencing issues? Instances can take a bit of time to finish shelving (up to ~15ish minutes on the upper end) sometimes, and during that time Exosphere might get confused and wrongfully report the instance’s state. It’s possible that’s what happened here
Related to #508, and should have been fixed by !429 (merged) to close #311 (closed).
To reproduce:
- Shelve instance
- Refresh browser
- Observe that shelve action is available
- Shelve instance
What would success / a fix look like?
See !429 (merged) - Suppress errors from API responses for servers that we have already requested to delete, shelve, etc.