Open ocofaigh opened 2 years ago
This is still an issue in 1.66.0:
│ Error: A gateway with the same name already exists.
│
│ with module.landing_zone.module.landing_zone.ibm_tg_gateway.transit_gateway[0],
│ on ../../transit_gateway.tf line 6, in resource "ibm_tg_gateway" "transit_gateway":
│ 6: resource "ibm_tg_gateway" "transit_gateway" {
│
│ ---
│ id: terraform-1e84d8d2
│ summary: A gateway with the same name already exists.
│ severity: error
│ resource: ibm_tg_gateway
│ operation: create
│ component:
│ name: github.com/IBM-Cloud/terraform-provider-ibm
│ version: 1.66.0
│ ---
@hkantare We still intermittently see this issue. Who could take a look?
2024/10/24 07:33:11 Terraform apply | Error: A gateway with the same name already exists.
2024/10/24 07:33:11 Terraform apply |
2024/10/24 07:33:11 Terraform apply | with module.landing_zone.module.landing_zone.ibm_tg_gateway.transit_gateway[0],
2024/10/24 07:33:11 Terraform apply | on ../../transit_gateway.tf line 6, in resource "ibm_tg_gateway" "transit_gateway":
2024/10/24 07:33:11 Terraform apply | 6: resource "ibm_tg_gateway" "transit_gateway" {
2024/10/24 07:33:11 Terraform apply |
2024/10/24 07:33:11 Terraform apply | ---
2024/10/24 07:33:11 Terraform apply | id: terraform-d421a70a
2024/10/24 07:33:11 Terraform apply | summary: A gateway with the same name already exists.
2024/10/24 07:33:11 Terraform apply | severity: error
2024/10/24 07:33:11 Terraform apply | resource: ibm_tg_gateway
2024/10/24 07:33:11 Terraform apply | operation: create
2024/10/24 07:33:11 Terraform apply | component:
2024/10/24 07:33:11 Terraform apply | name: github.com/IBM-Cloud/terraform-provider-ibm
2024/10/24 07:33:11 Terraform apply | version: 1.70.1
2024/10/24 07:33:11 Terraform apply | ---
@ocofaigh We can reach out @sushmitha or post in #ibmcloud-transit-gateway channel
We intermittently see an issue where transit gateway creation fails with
Error: A gateway with the same name already exists.
However, we are using a random prefix so this should not be the case.As you can the plan contains tg name called
landing-3156-transit-gateway
:yet the apply fails with:
After checking manually in the UI, I can see that the test did create the transit gateway:
So this seems to be a provider (or backend UI issue) where the resource is actually being created, but perhaps a success response is not coming in time, and perhaps a retry is attempted.
I have not (yet) reproduced with trace logs, but creating to issue to see if this may be a known issue, or incase others have hit it
Community Note
Terraform CLI and Terraform IBM Provider Version
Affected Resource(s)
Terraform Configuration Files
https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone/tree/main/patterns/vsi
Debug Output
Panic Output
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
References
0000