Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hourly baremetal server cannot be provisoned with 10Gbit/s port speed #4848

Open
tlnd opened this issue Oct 8, 2023 · 1 comment
Open

Hourly baremetal server cannot be provisoned with 10Gbit/s port speed #4848

tlnd opened this issue Oct 8, 2023 · 1 comment
Labels
service/Classic Infrastructure Issues related to classic Infrastructure

Comments

@tlnd
Copy link

tlnd commented Oct 8, 2023

Community Note

  • 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

Terraform v1.6.0
on linux_amd64

  • provider registry.terraform.io/ibm-cloud/ibm v1.58.1

Affected Resource(s)

  • ibm_compute_bare_metal

Terraform Configuration Files

resource "ibm_compute_bare_metal" "dp-1000" {
  hostname            = "dp-1000"
  domain              = "example.net"
  #fixed_config_preset = "1U_8260_384GB_4X960GB_SSD_RAID10_RAID_10"
  fixed_config_preset = "1U_4210S_384GB_2X4TB_RAID_1"
  os_reference_code   = "UBUNTU_22_64"
  datacenter          = "fra04"
  network_speed       = 10000
  hourly_billing      = true
  ipv6_enabled        = false
  redundant_network   = true
}

Both listed fixed_config_preset options were tested, both fail for network_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:

Error: Encountered problem trying to get the bare metal order template: SoftLayer_Exception_NotFound: Unable to find price for uplink port speeds with max speed of 10000. (HTTP 500)

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

  1. terraform apply

Important Factoids

n/a

References

n/a

@github-actions github-actions bot added the service/Classic Infrastructure Issues related to classic Infrastructure label Oct 8, 2023
@tlnd
Copy link
Author

tlnd commented Oct 8, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/Classic Infrastructure Issues related to classic Infrastructure
Projects
None yet
Development

No branches or pull requests

1 participant