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

InsufficientCapacity when creating multiple VPCs #357

Open
swbsf opened this issue Jun 1, 2023 · 1 comment
Open

InsufficientCapacity when creating multiple VPCs #357

swbsf opened this issue Jun 1, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@swbsf
Copy link

swbsf commented Jun 1, 2023

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

@swbsf swbsf added the bug Something isn't working label Jun 1, 2023
@outscale-toa
Copy link
Member

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

Best regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants