Open tlnd opened 1 year ago
As cross-check, I tried to provision the server using the IBM Cloud CLI - that works using
ibmcloud sl hardware create -d fra04 -D example.net -H dp-node -o UBUNTU_22_64 -p 10000 -s 1U_8260_384GB_4X960GB_SSD_RAID10_RAID_10
Hence, it seems that the TF provider is using different API calls/parameters than the IBM Cloud CLI or web UI.
A trace of ibmcloud
shows that https://api.softlayer.com/rest/v3.1/SoftLayer_Product_Package/getAllObjects.json?
is used before placing the order, while the TF provider calls https://api.softlayer.com/rest/v3/SoftLayer_Hardware/generateOrderTemplate.json
- which fails with 500.
Community Note
Terraform CLI and Terraform IBM Provider Version
Terraform v1.6.0 on linux_amd64
Affected Resource(s)
Terraform Configuration Files
Both listed
fixed_config_preset
options were tested, both fail fornetwork_speed = 10000
.Debug Output
https://gist.github.com/tlnd/4ccd8d2a5c1578db2a283423bf98b73a
Panic Output
Expected Behavior
A baremetal server with 10 Gbit/s port speed should be provisioned.
Actual Behavior
The provisioning fails with HTTP 500 due to missing price in order template:
Provisioning by using the web UI works for port speed 10 Gbit/s - so in general, the 10 Gbit/s port speed option is available for hourly-billed bare metal servers with preset configuration.
Steps to Reproduce
terraform apply
Important Factoids
n/a
References
n/a