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

serviceusage: retry on 403's for operation calls #5234

Conversation

ScottSuarez
Copy link
Contributor

@ScottSuarez ScottSuarez commented Sep 22, 2021

closes hashicorp/terraform-provider-google#9489

Release Note Template for Downstream PRs (will be copied)

serviceusage: enabled the service api to retry on failed operation calls in anticipation of transient errors that occur when first enabling the service.

added reference to comment
@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 1 file changed, 22 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 1 file changed, 22 insertions(+), 3 deletions(-))

@ScottSuarez
Copy link
Contributor Author

/gcbrun

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 1 file changed, 22 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 2 files changed, 23 insertions(+), 4 deletions(-))

mmv1/api/product.rb Outdated Show resolved Hide resolved
@@ -0,0 +1,11 @@
// Retries errors on 403 3 times if the error message
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this just get reset on every iteration? I don't think the code allows us to retry n times as written (and the change to do so would be messy- not sure we want to do it to the common op code)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

umm I'm confused? This is specific to three times. We use w.retryCount to monitor the count.

If you look at the downstream code it should make more sense.

@modular-magician
Copy link
Collaborator

I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccComputeServiceAttachment_serviceAttachmentBasicExample You can view the result here: https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=207248

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 1 file changed, 22 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 2 files changed, 23 insertions(+), 4 deletions(-))

@modular-magician
Copy link
Collaborator

I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccComputeServiceAttachment_serviceAttachmentBasicExampleUpdate|TestAccNetworkServicesEdgeCacheOrigin_networkServicesEdgeCacheOriginBasicExample|TestAccNetworkServicesEdgeCacheOrigin_networkServicesEdgeCacheOriginAdvancedExample|TestAccNetworkServicesEdgeCacheService_networkServicesEdgeCacheServiceAdvancedExample You can view the result here: https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=207362

@rileykarson
Copy link
Member

Maybe specify how it was fixed in the changelog entry- we aren't 100% certain it worked because you had no repro or test case, right?

@ScottSuarez
Copy link
Contributor Author

Maybe specify how it was fixed in the changelog entry- we aren't 100% certain it worked because you had no repro or test case, right?

correct, I could not reproduce on my end. Presumably this should fix the issue for the team. We will have to monitor if the issue still occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Self-referential error enabling the Service Usage API
3 participants