Open digvijay-ukirde opened 4 months ago
Response from BMS team member - It looks like it is making an assumption on PCI if the allowed_vlans is set. https://github.com/IBM-Cloud/terraform-provider-ibm/blob/master/ibm/service/vpc/resource_ibm_is_bare_metal_server.go#L1403 And it wrongly assumes there must be values in there (not an empty list) https://github.com/IBM-Cloud/terraform-provider-ibm/blob/master/ibm/service/vpc/resource_ibm_is_bare_metal_server.go#L1410
looking at it
Community Note
Terraform CLI and Terraform IBM Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Panic Output
Expected Behavior
A BMS with 2 PCI interfaces (without vLAN) should get created
Actual Behavior
It fails looking for
allowed_vlans
variable. If we provide a dummy vLAN ->allowed_vlans = [1]
, it works. Need to makeallowed_vlans
optional in such scenarios.Steps to Reproduce
terraform apply
Important Factoids
References
0000