opentelekomcloud / terraform-provider-opentelekomcloud

Terraform OpenTelekomCloud provider
https://registry.terraform.io/providers/opentelekomcloud/opentelekomcloud/latest
Mozilla Public License 2.0
87 stars 77 forks source link

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

Closed IamThomasB closed 8 months ago

IamThomasB commented 8 months ago

Terraform provider version

Terraform v1.7.2 on linux_amd64

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 commented 8 months ago

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

anton-sidelnikov commented 8 months ago

@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 (https://github.com/opentelekomcloud/terraform-provider-opentelekomcloud/pull/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

IamThomasB commented 8 months ago

this settings helped: OS_MAX_BACKOFF_RETRIES=30, OS_BACKOFF_RETRY_TIMEOUT=60

Thank you