gcp: retry transient quota limit errors - #10735
Conversation
Retry GCP Service Usage quota reads after rate-limit and server errors. Keep partial pagination results local to each attempt so a restart cannot duplicate limits. Signed-off-by: Stephen Benjamin <stbenjam+ai@redhat.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hi @not-stbenjam. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Quota failures are supposed to be. non-fatal. Specifically, if users are not authorized we gracefully ignore the error. Instead of adding retry options, it could be simpler to just extend the skip, so we ignore 429 or 500: |
Summary
Why
Eight of ten child runs in one OpenShift 5.0 aggregated GCP upgrade job failed in Platform Quota Check when Service Usage returned HTTP 503
backendError. The installer exited before product tests. A representative run is 2043664734464512000. The aggregated parent shows the cohort.The change does not alter quota decisions. It retries only transient transport responses.
Testing
CGO_ENABLED=0 GOTOOLCHAIN=auto go test ./pkg/quota/gcpCGO_ENABLED=0 GOTOOLCHAIN=auto go vet ./pkg/quota/gcpgit diff --check