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

Fix timeout issue with project services #737

Merged
merged 2 commits into from
Nov 14, 2017

Conversation

danawillow
Copy link
Contributor

Apparently the retry function (which was set to retry for one minute) was conflicting with our operation wait (which was set to retry for ten minutes) and winning. I looked through the code and it really seems like that the first iteration through the retry it should wait for the function to return, which would take the full ten minutes (or whenever the api is done getting enabled) but this at least fixes it.

I definitely agree that we should have configurable timeouts, but it's a bit complicated with project_services because it makes as many API calls as there are APIs to enable or disable in a given run, and we usually do a timeout per create/read/update/delete function and I don't want it to be misleading. We could pretty easily add it to the fine-grained project_service resource, but it's not as urgent now that the timeout is actually getting set to the value we had set it to originally.

I'll go ahead and say this fixes #722.

@danawillow danawillow requested a review from rosbo November 13, 2017 23:32
@rosbo
Copy link
Contributor

rosbo commented Nov 13, 2017

CI is failling. Can't build the test...

google/resource_google_project_services.go:208:14: too many arguments in call to retry

@danawillow
Copy link
Contributor Author

whoops, fixed.

@danawillow danawillow merged commit 2c8dbac into hashicorp:master Nov 14, 2017
@danawillow danawillow deleted the is-722 branch November 14, 2017 19:42
modular-magician added a commit to modular-magician/terraform-provider-google that referenced this pull request Sep 27, 2019
Signed-off-by: Modular Magician <magic-modules@google.com>
@ghost
Copy link

ghost commented Mar 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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

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

Successfully merging this pull request may close these issues.

Timeout when enabling the compute API
3 participants