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

OpenStack Neutron Router Interface deletion: timeout too short #11192

Closed
sneumann opened this issue Jan 13, 2017 · 11 comments · Fixed by #11250
Closed

OpenStack Neutron Router Interface deletion: timeout too short #11192

sneumann opened this issue Jan 13, 2017 · 11 comments · Fixed by #11250
Labels

Comments

@sneumann
Copy link

Hi,

I have a working deployment using Terraform v0.8.2 against an OpenStack installation.
When deleting, I always get

* openstack_networking_router_interface_v2.main: Error deleting OpenStack Neutron Router Interface: timeout while waiting for state to become 'DELETED' (last state: 'ACTIVE', timeout: 2m0s

and on re-running, the deletion of the OpenStack Neutron Router Interface succeeds,
so total deletion time is probably <4min.

I don't have a PR for @jtopjian , (who asked for it in #4223 (comment)) but I think the change is required here:
https://github.com/hashicorp/terraform/blob/master/builtin/providers/openstack/resource_openstack_networking_router_interface_v2.go#L73

Yours,
Steffen

@jtopjian
Copy link
Contributor

@sneumann Thanks for the report! #11250 should fix this for you. :)

@mcapuccini
Copy link

@jtopjian isn't 5 minutes still quite little?

@sneumann
Copy link
Author

I am still puzzled it takes more than 2 minutes in first place. But that probably depends on Neutron configuration. Maybe there is some real hardware/switch that required re-configuration ? Sorry, I have zero Neutron experience.

@jtopjian
Copy link
Contributor

@sneumann Sorry, I'm misunderstanding. I had thought that 5 minutes would be enough time since you said that the total deletion time is less than 4 minutes. Is that correct?

And absolutely - deletion and creation times are highly dependent on the OpenStack configuration. I wouldn't say that anything is wrong with your environment.

@sneumann
Copy link
Author

Hi, I am afraid this change did not fix my issue, it timed out after 5 minutes.
My guess would be that this particular OpenStack installation needs two kicks
to actually delete OpenStack Neutron Router Interface. Is there anything
I could ask to the OpenStack admins ? Or check in TF logs ? Yours, Steffen

@jtopjian
Copy link
Contributor

@sneumann The delete call is repeated every 5 seconds, so I think it might just need a longer timeout. Are you able to compile the Terraform binary yourself? If so, you can increase the timeout here and see what the appropriate timeout is.

But if you aren't in a position to compile the binary, I can compile one for you for Linux with a timeout of 10 minutes just to see if that will help.

Either way, once confirmed, we can get it merged into master. It's entirely possible that if you need a longer timeout, there are others as well.

@Ashok2988
Copy link

Hi Jtopjian,
I am facing the similar problem, 2 minutes seem to very less in my case, could you please let me know how I can compile with the increased timeout? atleast 5 minutes would be needed IMO.
I am using terraform version 0.8.0

Error deleting OpenStack Neutron Router Interface: timeout while waiting for state to become 'DELETED' (last state: 'ACTIVE', timeout: 2m0s)

Thanks
Ashok

@jtopjian
Copy link
Contributor

@Ashok2988 The router interface resource supports the timeout options. Have you tried using those?

@Ashok2988
Copy link

@jtopjian I am not using the latest version, moving to the latest would involve some work for me, do you think this can work with 0.8.0 release?

@jtopjian
Copy link
Contributor

Timeouts were introduced in the 0.9.0 release, unfortunately. To fix for 0.8.0, follow the instructions on configuring a dev environment for terraform here. When you clone the Terraform repo, you'll want to check out a 0.8.0 release. Next, edit this file. Look for the two stateConf blocks. You can increase the timeouts there. Then compile Terraform per the instructions in the README.

That's a very quick / high level summary. Let me know if you run into any problems and I'd be happy to give more details. :)

@ghost
Copy link

ghost commented Apr 13, 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 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants