-
Notifications
You must be signed in to change notification settings - Fork 1.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
retry on resourceNotReady #2307
retry on resourceNotReady #2307
Conversation
Hi! I'm the modular magician, I work on Magic Modules. Pull request statusesNo diff detected in Ansible. New Pull RequestsI built this PR into one or more new PRs on other repositories, and when those are closed, this PR will also be merged and closed. |
@@ -110,6 +117,10 @@ func CommonRefreshFunc(w Waiter) resource.StateRefreshFunc { | |||
} | |||
|
|||
if err = w.Error(); err != nil { | |||
if w.IsRetryable(err) { |
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.
Not sure if this is a display glitch or not, but spacing looks weird here.
func (w *ComputeOperationWaiter) IsRetryable(err error) bool { | ||
if oe, ok := err.(ComputeOperationError); ok { | ||
for _, e := range oe.Errors { | ||
if e.Code == "RESOURCE_NOT_READY" { |
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.
Same here.
Tracked submodules are build/terraform-beta build/terraform-mapper build/terraform build/ansible build/inspec.
b7fee65
to
62ad405
Compare
A bunch of our tests fail for this reason, likely because they run in parallel. This should help us stop seeing this error message.
Release Note for Downstream PRs (will be copied)