Skip to content
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

Closed
gionn opened this issue Jun 15, 2015 · 6 comments
Labels

Comments

@gionn
Copy link

gionn commented Jun 15, 2015

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!

@ggiamarchi
Copy link
Contributor

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 depends_on.

@gionn
Copy link
Author

gionn commented Jun 15, 2015

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?

@ggiamarchi
Copy link
Contributor

Yes, i have some good examples. I'll do a PR.

@jtopjian
Copy link
Contributor

jtopjian commented Nov 3, 2015

#3712 was just merged which might help with this issue. Please let me know.

@apparentlymart apparentlymart changed the title destroy fails on opentstack provider for network ports still in use due to attached floating ip destroy fails on openstack provider for network ports still in use due to attached floating ip Nov 3, 2015
@jtopjian
Copy link
Contributor

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!

@ghost
Copy link

ghost commented Apr 30, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants