outscale / terraform-provider-outscale

Mozilla Public License 2.0
28 stars 30 forks source link

InsufficientCapacity when creating multiple VPCs #357

Open swbsf opened 1 year ago

swbsf commented 1 year ago

Hi there,

I'm wondering if there's something wrong in our deployment orchestration or if you guys had some insight on possible limits from your API? Looks like we should add some kind of delay when creating VPCs.

TLDR : deployment fails saying InsufficientCapacity when creating multiple VPC.

Thanks!

Terraform Version

1.3.9

Terraform Configuration Files

resource "outscale_net" "network" {
  ip_range = var.vpc_ip_range
  tenancy  = var.tenancy

  dynamic "tags" {
    for_each = var.tags
    content {
      key   = tags.value["key"]
      value = tags.value["value"]
    }
  }

  tags {
    key   = "name"
    value = "${local.prefix}-vpc"
  }
}

Debug Output

None, not that easy to reproduce, but will provide if required

Crash Output

│ Error: error creating Outscale Net: 400 Bad Request { │ "Errors": [ │ { │ "Code": "10001", │ "Details": "", │ "Type": "InsufficientCapacity" │ } │ ], │ "ResponseContext": { │ "RequestId": "6f32f776-73f0-4252-b039-07fa3deaa693" │ } │ } │ │ with module.admin_net.outscale_net.network, │ on .terraform/modules/admin_net/net.tf line 1, in resource "outscale_net" "network": │ 1: resource "outscale_net" "network" {

Expected Behavior

terraform apply should not fail

Actual Behavior

Creating multiple network with terraform sometimes fails saying InsufficientCapacity. I guess we're probably throttled or something.

Steps to Reproduce

Does not happens every time. We're deploying a 130+ resources IaC on Outscale, with at least 3 VPC.

Additional Context

References

outscale-toa commented 1 year ago

Hello @swbsf, Thanks for reaching us, We have an API issue, our API team are working to fix it.

Best regards.