FlexibleEngineCloud / terraform-provider-flexibleengine

Terraform flexibleengine provider
https://www.terraform.io/docs/providers/flexibleengine/
Mozilla Public License 2.0
30 stars 53 forks source link

[ELB] resource creation not failing when quota of listeners is reached #315

Closed Karreg closed 2 years ago

Karreg commented 4 years ago

Terraform Version

0.12.21

Affected Resource(s)

Debug Output

...
flexibleengine_lb_listener_v2.listener_gitlab_ssh_22: Still creating... [6m10s elapsed]
flexibleengine_lb_listener_v2.listener_gitlab_https_443: Still creating... [6m20s elapsed]
flexibleengine_lb_listener_v2.listener_gitlab_http_80: Still creating... [6m20s elapsed]
flexibleengine_lb_listener_v2.listener_gitlab_ssh_22: Still creating... [6m20s elapsed]
flexibleengine_lb_listener_v2.listener_gitlab_https_443: Still creating... [6m30s elapsed]
flexibleengine_lb_listener_v2.listener_gitlab_http_80: Still creating... [6m30s elapsed]
flexibleengine_lb_listener_v2.listener_gitlab_ssh_22: Still creating... [6m30s elapsed]
flexibleengine_lb_listener_v2.listener_gitlab_http_80: Still creating... [6m40s elapsed]
flexibleengine_lb_listener_v2.listener_gitlab_https_443: Still creating... [6m40s elapsed]
flexibleengine_lb_listener_v2.listener_gitlab_ssh_22: Still creating... [6m40s elapsed]
flexibleengine_lb_listener_v2.listener_gitlab_https_443: Still creating... [6m50s elapsed]
...

image

Expected Behavior

Terraform Creation should fail with an explicit error message

Actual Behavior

It's running forever...

Steps to Reproduce

  1. reach listener quota
  2. try to create listener
niuzhenguo commented 4 years ago

@Karreg Can you provide the detailed log with OS_DEBUG=1 TF_LOG=DEBUG? Not sure if the API on cloud side returned quota exceeded error.

Karreg commented 4 years ago

After letting terraform running for a while while I was grabing a coffee, I eventually had an error:


Error: Error creating listener: Expected HTTP response code [201 202] when accessing [POST https://xxx/v2.0/lbaas/listeners], but got 409 instead
{"NeutronError": {"message": "Quota exceeded for resources: ['listener'].", "type": "OverQuota", "detail": ""}}```

So it looks like it may be an issue on the server side, not to be able to send the error as soon as the resource is being created?
qukuijin1989 commented 3 years ago

hi @niuzhenguo any update for this problem?

ShiChangkuo commented 2 years ago

@Karreg I will close it temporarily, If you have any questions, please reopen it. Thanks.