You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform CLI and Terraform IBM Provider Version
Affected Resource(s)
ibm_is_bare_metal_server
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
resource"ibm_is_bare_metal_server""itself" {
profile=local.profilename=local.nameimage=local.imagezone=local.zonekeys=[local.key]
vpc=local.vpcprimary_network_interface {
name="dv-pri"subnet=local.subnetsecurity_groups=[local.sg]
}
# Trying to create second PCI interface without vLANdynamic"network_interfaces" {
for_each=[1]
content {
name="dv-sec"subnet=local.subnetenable_infrastructure_nat=trueallow_ip_spoofing=truesecurity_groups=[local.sg]
interface_type="pci"
}
}
}
Debug Output
│ Error: [DEBUG] Create bare metal server err Expected only one oneOf fields to be set: got 0
│ "Result": {
│ "errors": [
│ {
│ "code": "validation_failed_oneof",
│ "message": "Expected only one oneOf fields to be set: got 0",
│ "target": {
│ "name": "BareMetalServerPrototype",
│ "type": "field"
│ }
│ },
│ {
│ "code": "validation_failed_required",
│ "message": "BareMetalServerByNetworkAttachment is invalid: Validation Failure for field: primary_network_attachment",
│ "target": {
│ "name": "BareMetalServerByNetworkAttachment.primary_network_attachment",
│ "type": "field"
│ }
│ },
│ {
│ "code": "validation_failed_minimum",
│ "message": "BareMetalServerByNetworkInterface is invalid: Validation Failure for field: vlan",
│ "target": {
│ "name": "BareMetalServerByNetworkInterface.vlan",
│ "type": "field",
│ "value": "0"
│ }
│ }
│ ],
│ "trace": "beae1560-2a59-40b0-aaba-022b00e1055a"
│ },
│ "RawResult": null
│ }
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 make allowed_vlans optional in such scenarios.
Steps to Reproduce
terraform apply
Important Factoids
References
#0000
The text was updated successfully, but these errors were encountered:
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 make
allowed_vlans
optional in such scenarios.Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: