-
Notifications
You must be signed in to change notification settings - Fork 10
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
Error when trying to attach a floating IP when an instance is starting #2361
Comments
We should try and get a better error message out the API there too. It’s possible that we are getting one and not displaying it because it’s a 503. Also is 503 really the right status code for this? |
This came up today (and I almost opened a new issue for it hah). I did confirm that we are getting back a 503 with an external message that mirrors the status code. So this is likely something that should be fixed in the API to provide more context to the error being sent back. I'm not sure there is a great error code to be returned here, but 503 fits decently close with its emphasis on it being temporary. |
This would be pretty easy to fix by adding something like Lines 92 to 123 in efcaba7
The problem is I need to nail down exactly which states allow IP attach/detach. It looks like this is probably the relevant code. @gjcolombo or @FelixMcFelix, does |
I think that's right, from my recollection of what the code you linked is trying to do (I agree that it's the relevant bit here). |
If you attempt to attach a floating IP while an instance is in the starting state you will get the following error:
This is an expected behavior, but in the future we should likely prevent this action until the instance is in a state that will accept the request.
The text was updated successfully, but these errors were encountered: