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

opentelekomcloud_waf_dedicated_XXX - "Too many requests have been sent..." #2460

Closed
IamThomasB opened this issue Mar 7, 2024 · 3 comments
Closed
Assignees
Labels
otc-issue Blocked by OTC issues

Comments

@IamThomasB
Copy link

Terraform provider version

Terraform v1.7.2
on linux_amd64

  • provider registry.terraform.io/opentelekomcloud/opentelekomcloud v1.36.2

Affected Resource(s)

opentelekomcloud_waf_dedicated_XXX
several "opentelekomcloud_waf_dedicated" related resources

Debug Output/Panic Output

Error: error retrieving OpenTelekomCloud Waf Dedicated CC Attack Protection Rule: Too many requests have been sent in a given amount of time. Pause requests, wait up to one minute, and try again.
with opentelekomcloud_waf_dedicated_cc_rule_v1.cc-protection-proxy,
on cc-protection-proxy.tf line 1, in resource "opentelekomcloud_waf_dedicated_cc_rule_v1" "cc-protection-proxy":
1: resource "opentelekomcloud_waf_dedicated_cc_rule_v1" "cc-protection-proxy" {
Error: error retrieving OpenTelekomCloud Waf Dedicated Precise Protection Rule: Too many requests have been sent in a given amount of time. Pause requests, wait up to one minute, and try again.
with opentelekomcloud_waf_dedicated_precise_protection_rule_v1.loaderio-file,
on loader-io-file.tf line 2, in resource "opentelekomcloud_waf_dedicated_precise_protection_rule_v1" "xxx-file":
2: resource "opentelekomcloud_waf_dedicated_precise_protection_rule_v1" "xxx-file" {

Steps to Reproduce

  1. terraform plan/apply
  2. Having ~25 rules
  3. terraform plan/apply -parallelism=1 => WORKS

References

eg.
#2012
#1844
#1753

@anton-sidelnikov anton-sidelnikov self-assigned this Mar 11, 2024
@anton-sidelnikov
Copy link
Member

Hi @IamThomasB could you list all resources in configuration, region and az? I have created 30 rules and still not reached limit.

@anton-sidelnikov
Copy link
Member

anton-sidelnikov commented Mar 12, 2024

@IamThomasB found issue, so there is a really low request limits, you can ask support to enlarge number of wafd requests for your tenant.
But also you can play with variables in terraform (#2302):
OS_MAX_BACKOFF_RETRIES (5 times by default) and OS_BACKOFF_RETRY_TIMEOUT (60 seconds by default),
for me works with more than 30 wafd rules: OS_MAX_BACKOFF_RETRIES=30, OS_BACKOFF_RETRY_TIMEOUT=60

@anton-sidelnikov anton-sidelnikov added the otc-issue Blocked by OTC issues label Mar 12, 2024
otc-zuul bot pushed a commit that referenced this issue Mar 12, 2024
[WAFD] throttling test

Summary of the Pull Request
PR Checklist

 Refers to: #2460
 Tests added/passed.
 Documentation updated.
 Schema updated.
 Release notes added.

Acceptance Steps Performed
=== RUN   TestThrottlingWafDedicatedConfiguration
--- PASS: TestThrottlingWafDedicatedConfiguration (406.18s)
PASS

Process finished with the exit code 0

Reviewed-by: Aloento
Reviewed-by: Artem Lifshits
Reviewed-by: Sergei Martynov
@IamThomasB
Copy link
Author

this settings helped: OS_MAX_BACKOFF_RETRIES=30, OS_BACKOFF_RETRY_TIMEOUT=60

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
otc-issue Blocked by OTC issues
Projects
None yet
Development

No branches or pull requests

2 participants