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

Wrong price id when requesting baremetal servers with dual processor #1189

Closed
ldlazari opened this issue Mar 17, 2020 · 1 comment
Closed
Assignees

Comments

@ldlazari
Copy link

ldlazari commented Mar 17, 2020

Terraform Version

  • Terraform v0.12.23
  • provider.ibm v1.2.3

Affected Resource(s)

  • ibm_compute_bare_metal

Terraform Configuration Files

resource "ibm_compute_bare_metal" "test-mail-102" {

# Mandatory fields
  hostname               = "test-mail-102"
  domain                 = "ibm-cio-global-mail-systems.cloud"
  datacenter             = "dal12"
  package_key_name       = "DUAL_E52600_V4_36_DRIVES"
  process_key_name       = "INTEL_INTEL_XEON_E52690_V4_2_60"
  memory                 = 64
  os_key_name            = "OS_RHEL_7_1_64_BIT"
  network_speed          = 10000
  
  disk_key_names         = ["HARD_DRIVE_1_00_TB_SATA_2", "HARD_DRIVE_1_00_TB_SATA_2", "HARD_DRIVE_10_00_TB_SATA", "HARD_DRIVE_10_00_TB_SATA", "HARD_DRIVE_10_00_TB_SATA", "HARD_DRIVE_10_00_TB_SATA", "HARD_DRIVE_10_00_TB_SATA", "HARD_DRIVE_10_00_TB_SATA", "HARD_DRIVE_10_00_TB_SATA", "HARD_DRIVE_10_00_TB_SATA", "HARD_DRIVE_10_00_TB_SATA", "HARD_DRIVE_10_00_TB_SATA", "HARD_DRIVE_10_00_TB_SATA", "HARD_DRIVE_10_00_TB_SATA", "HARD_DRIVE_10_00_TB_SATA", "HARD_DRIVE_10_00_TB_SATA", "HARD_DRIVE_10_00_TB_SATA", "HARD_DRIVE_10_00_TB_SATA", "HARD_DRIVE_10_00_TB_SATA" ]

  hourly_billing         = false
  os_reference_code      = "REDHAT_7_64"
  
# Optional fields
  private_network_only   = true
  unbonded_network       = false
  redundant_network      = true
  private_vlan_id        = 2823038
  redundant_power_supply = true
  tcp_monitoring         = true

  storage_groups {
    # RAID 1
    array_type_id = 2
    # Use three disks
    hard_drives = [ 0, 1]
    array_size = 1000
    # Basic partition template for Linux
    partition_template_id = 1
  }

  storage_groups{
    # RAID 10
    array_type_id = 5
    # Use three disks
    hard_drives = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
    array_size = 80000
    # No partition
    partition_template_id = 8
  }

  storage_groups{
    # HOT SPARE
    array_type_id = 11
    # Use three disks
    hard_drives = [18]
    #array_size = 10000
    # No partition
    partition_template_id = 8  
  }
}

Debug Output

https://gist.github.com/ldlazari/5b2c8308e14c624d6b5369327a34addb#file-terraform-log

Panic Output

No Panic.

Expected Behavior

It seems that it is trying to use the priceid 49073 (which is for the single processor) instead of using the price id 49081 (which is for the dual processor).

Actual Behavior

It used the wrong price id

Steps to Reproduce

  1. terraform apply

Important Factoids

Nothing atypical.

References

No other issue linked.

@hkantare hkantare self-assigned this Mar 24, 2020
@hkantare
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants