-
Notifications
You must be signed in to change notification settings - Fork 359
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
Allow a VM to be in a state of 'migrating' #496
Allow a VM to be in a state of 'migrating' #496
Conversation
Thanks for submitting this patch. Can you explain in more detail why someone would want to make a change when an instance is in the middle of migrating? My initial impression is that this kind of error is actually a good thing. |
@jtopjian No problem In our case it's because terraform will try to refresh the state of all instances before every Even if we attempt to avoid the problem with a |
@mifrost OK, that makes sense. So perhaps instead of having |
Build succeeded.
|
@jtopjian very good point - I've updated the PR |
Build succeeded.
|
@mifrost This looks good to me. Have you been able to validate this change in your environment? It's a little hard for me to reproduce a case where this would be triggered. |
@jtopjian yes - I've used this branch to work around the issue we were seeing |
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.
LGTM - thank you!
When applying changes, we have regularly received the error
Invalid power_state for instance <ID>: MIGRATING
, as live migrations occur on instances, preventing any plan / apply operations.This change adds "migrating" to the list of acceptable states for an instance to be in. See also #428