IBM-Cloud / terraform-provider-ibm

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs
Mozilla Public License 2.0
336 stars 645 forks source link

IBM Cloud allows me to create VNI's with the same name across bare Metal nodes #5389

Open scottgit42 opened 1 month ago

scottgit42 commented 1 month ago

Community Note

Terraform CLI and Terraform IBM Provider Version

terraform -v Terraform v1.5.7 on darwin_arm64

Your version of Terraform is out of date! The latest version is 1.8.3. You can update by downloading from https://www.terraform.io/downloads.html


Problem:

IBM says that I need a globally unique VNI name for each Bare metal VPC, though it allows me to create more than one Bare Metal with the same VNI name. It error after 2 or 3 are deployed.

Error: module.scale-ibm[0].ibm_is_bare_metal_server.scaleMetalNode["sycomp6-scalem1"]: Still creating... [30m0s elapsed] β•· β”‚ Error: [DEBUG] Create bare metal server err Handler Error: Status=400, JSON={"errors":[{"code":"validation_unique_failed","message":"Another VNI with the requested name already exists"}],"trace":"f9b36c66-9365-430d-b955-fc7253697096"} β”‚ { β”‚ "StatusCode": 400, β”‚ "Headers": { β”‚ "Allow-Snippet-Annotations": [ β”‚ "true" β”‚ ], β”‚ "Cache-Control": [ β”‚ "max-age=0, no-cache, no-store, must-revalidate" β”‚ ], β”‚ "Cf-Cache-Status": [ β”‚ "DYNAMIC" β”‚ ], β”‚ "Cf-Ray": [ β”‚ "881ba462eeca69d5-PDX" β”‚ ], β”‚ "Content-Length": [ β”‚ "312" β”‚ ], β”‚ "Content-Type": [ β”‚ "application/json" β”‚ ], β”‚ "Date": [ β”‚ "Fri, 10 May 2024 17:27:50 GMT" β”‚ ], β”‚ "Expires": [ β”‚ "-1" β”‚ ], β”‚ "Pragma": [ β”‚ "no-cache" β”‚ ], β”‚ "Server": [ β”‚ "cloudflare" β”‚ ], β”‚ "Strict-Transport-Security": [ β”‚ "max-age=31536000; includeSubDomains" β”‚ ], β”‚ "Vary": [ β”‚ "Accept-Encoding" β”‚ ], β”‚ "X-Content-Type-Options": [ β”‚ "nosniff" β”‚ ], β”‚ "X-Correlation-Id": [ β”‚ "5a675a2f-83b1-4760-ab30-b0e82ba3ca3a" β”‚ ], β”‚ "X-Request-Id": [ β”‚ "f9b36c66-9365-430d-b955-fc7253697096" β”‚ ], β”‚ "X-Xss-Protection": [ β”‚ "1; mode=block" β”‚ ] β”‚ }, β”‚ "Result": { β”‚ "errors": [ β”‚ { β”‚ "code": "bad_field", β”‚ "message": "Handler Error: Status=400, JSON={\"errors\":[{\"code\":\"validation_unique_failed\",\"message\":\"Another VNI with the requested name already exists\"}],\"trace\":\"f9b36c66-9365-430d-b955-fc7253697096\"}", β”‚ "more_info": "" β”‚ } β”‚ ], β”‚ "trace": "f9b36c66-9365-430d-b955-fc7253697096" β”‚ }, β”‚ "RawResult": null β”‚ } β”‚ β”‚ β”‚ with module.scale-ibm[0].ibm_is_bare_metal_server.scaleMetalNode["sycomp6-scalem3"], β”‚ on modules/sycomp-scale-ibm/instances.tf line 300, in resource "ibm_is_bare_metal_server" "scaleMetalNode": β”‚ 300: resource "ibm_is_bare_metal_server" "scaleMetalNode" { β”‚ β•΅ β•· β”‚ Error: [DEBUG] Create bare metal server err Handler Error: Status=400, JSON={"errors":[{"code":"validation_unique_failed","message":"Another VNI with the requested name already exists"}],"trace":"0c903b6d-ae83-4b4a-93c1-00998af4a5ed"} β”‚ { β”‚ "StatusCode": 400, β”‚ "Headers": { β”‚ "Allow-Snippet-Annotations": [ β”‚ "true" β”‚ ], β”‚ "Cache-Control": [ β”‚ "max-age=0, no-cache, no-store, must-revalidate" β”‚ ], β”‚ "Cf-Cache-Status": [ β”‚ "DYNAMIC" β”‚ ], β”‚ "Cf-Ray": [ β”‚ "881ba4636ef969d5-PDX" β”‚ ], β”‚ "Content-Length": [ β”‚ "312" β”‚ ], β”‚ "Content-Type": [ β”‚ "application/json" β”‚ ], β”‚ "Date": [ β”‚ "Fri, 10 May 2024 17:27:50 GMT" β”‚ ], β”‚ "Expires": [ β”‚ "-1" β”‚ ], β”‚ "Pragma": [ β”‚ "no-cache" β”‚ ], β”‚ "Server": [ β”‚ "cloudflare" β”‚ ], β”‚ "Strict-Transport-Security": [ β”‚ "max-age=31536000; includeSubDomains" β”‚ ], β”‚ "Vary": [ β”‚ "Accept-Encoding" β”‚ ], β”‚ "X-Content-Type-Options": [ β”‚ "nosniff" β”‚ ], β”‚ "X-Correlation-Id": [ β”‚ "b699e5d7-93e7-4b10-a68c-7bf69b7e1d08" β”‚ ], β”‚ "X-Request-Id": [ β”‚ "0c903b6d-ae83-4b4a-93c1-00998af4a5ed" β”‚ ], β”‚ "X-Xss-Protection": [ β”‚ "1; mode=block" β”‚ ] β”‚ }, β”‚ "Result": { β”‚ "errors": [ β”‚ { β”‚ "code": "bad_field", β”‚ "message": "Handler Error: Status=400, JSON={\"errors\":[{\"code\":\"validation_unique_failed\",\"message\":\"Another VNI with the requested name already exists\"}],\"trace\":\"0c903b6d-ae83-4b4a-93c1-00998af4a5ed\"}", β”‚ "more_info": "" β”‚ } β”‚ ], β”‚ "trace": "0c903b6d-ae83-4b4a-93c1-00998af4a5ed" β”‚ }, β”‚ "RawResult": null β”‚ } β”‚ β”‚ β”‚ with module.scale-ibm[0].ibm_is_bare_metal_server.scaleMetalNode["sycomp6-scalem2"], β”‚ on modules/sycomp-scale-ibm/instances.tf line 300, in resource "ibm_is_bare_metal_server" "scaleMetalNode": β”‚ 300: resource "ibm_is_bare_metal_server" "scaleMetalNode" { β”‚ β•΅ β•· β”‚ Error: [DEBUG] Create bare metal server err Handler Error: Status=400, JSON={"errors":[{"code":"validation_unique_failed","message":"Another VNI with the requested name already exists"}],"trace":"3cb02240-c238-45e1-abb3-96b1dce63b60"} β”‚ { β”‚ "StatusCode": 400, β”‚ "Headers": { β”‚ "Allow-Snippet-Annotations": [ β”‚ "true" β”‚ ], β”‚ "Cache-Control": [ β”‚ "max-age=0, no-cache, no-store, must-revalidate" β”‚ ], β”‚ "Cf-Cache-Status": [ β”‚ "DYNAMIC" β”‚ ], β”‚ "Cf-Ray": [ β”‚ "881ba4631ede69d5-PDX" β”‚ ], β”‚ "Content-Length": [ β”‚ "312" β”‚ ], β”‚ "Content-Type": [ β”‚ "application/json" β”‚ ], β”‚ "Date": [ β”‚ "Fri, 10 May 2024 17:27:51 GMT" β”‚ ], β”‚ "Expires": [ β”‚ "-1" β”‚ ], β”‚ "Pragma": [ β”‚ "no-cache" β”‚ ], β”‚ "Server": [ β”‚ "cloudflare" β”‚ ], β”‚ "Strict-Transport-Security": [ β”‚ "max-age=31536000; includeSubDomains" β”‚ ], β”‚ "Vary": [ β”‚ "Accept-Encoding" β”‚ ], β”‚ "X-Content-Type-Options": [ β”‚ "nosniff" β”‚ ], β”‚ "X-Correlation-Id": [ β”‚ "402072fa-6b43-4572-be6a-4f458229c706" β”‚ ], β”‚ "X-Request-Id": [ β”‚ "3cb02240-c238-45e1-abb3-96b1dce63b60" β”‚ ], β”‚ "X-Xss-Protection": [ β”‚ "1; mode=block" β”‚ ] β”‚ }, β”‚ "Result": { β”‚ "errors": [ β”‚ { β”‚ "code": "bad_field", β”‚ "message": "Handler Error: Status=400, JSON={\"errors\":[{\"code\":\"validation_unique_failed\",\"message\":\"Another VNI with the requested name already exists\"}],\"trace\":\"3cb02240-c238-45e1-abb3-96b1dce63b60\"}", β”‚ "more_info": "" β”‚ } β”‚ ], β”‚ "trace": "3cb02240-c238-45e1-abb3-96b1dce63b60" β”‚ }, β”‚ "RawResult": null β”‚ } β”‚ β”‚ β”‚ with module.scale-ibm[0].ibm_is_bare_metal_server.scaleMetalNode["sycomp6-scalem0"], β”‚ on modules/sycomp-scale-ibm/instances.tf line 300, in resource "ibm_is_bare_metal_server" "scaleMetalNode": β”‚ 300: resource "ibm_is_bare_metal_server" "scaleMetalNode" { β”‚ β•΅ β•· β”‚ Error: timeout while waiting for state to become 'running, failed' (last state: 'pending', timeout: 30m0s) β”‚ β”‚ with module.scale-ibm[0].ibm_is_bare_metal_server.scaleMetalNode["sycomp6-scalem1"], β”‚ on modules/sycomp-scale-ibm/instances.tf line 300, in resource "ibm_is_bare_metal_server" "scaleMetalNode": β”‚ 300: resource "ibm_is_bare_metal_server" "scaleMetalNode" { β”‚ β•΅