-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
destroy fails on openstack provider for network ports still in use due to attached floating ip #2343
Comments
In some situations terraform cannot know there is a dependency between resources because there is no explicit reference from one to another. In such a situation, you have to declare dependencies yourself using the attribute |
Sounds reasonable, since the floating ip has a dependency only on the instance, that is a slower operation than remove a network, so the error is easy to hit. May be useful a PR with a working example of a typical deployment on openstack, to be put on the examples/ folder? |
Yes, i have some good examples. I'll do a PR. |
#3712 was just merged which might help with this issue. Please let me know. |
I'm going to close this issue as it should have been fixed with #3712. However, if that's incorrect please feel free to re-open or open a new issue. As well, if you run into any other issues similar to this, please let me know! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
It looks like that terraform on destruct wants to delete one of the two router interfaces before de-allocating a floating ip that requires such interface to work.
May be necessary to explicitly de-attach the floating ip from the instance instead of simply deleting the instance (and get the floating-ip naturally de-attached).
logs: https://gist.githubusercontent.com/gionn/afb3a790f188cf407985/raw/e41cff94dbfb12aac7928ebdaa558cfc1df5440e/gistfile1.txt
Thanks!
The text was updated successfully, but these errors were encountered: