bitscuit
bitscuit

Reputation: 1042

Requesting SoftLayer VM with Python API Unable to Find Price for Block Device 3

I am trying to request a SoftLayer VM with the Python API, but I am getting an error when the vsi includes 3 disks.

Error:

SoftLayer.exceptions.SoftLayerAPIError: SoftLayerAPIError(SoftLayer_Exception_NotFound): Unable to find a price for block device 3.

Here is the vsi:

new_vsi = {
        'domain': domain,
        'hostname': hostname + str(n),
        'datacenter': datacenter,
        'dedicated': False,
        'private': False,
        'cpus': number_of_cpus,
        'os_code' : u'UBUNTU_LATEST_64', 
        'hourly': is_hourly_billed,
        'disks': ['100','200', '100'],
        'local_disk': True,
        'memory': 16384,
        'private_vlan': privatevlan,
        'public_vlan': publicvlan,
        'nic_speed':1000
}

If I only have two disks in the list there won't be any errors, but if I add a third disk to the list I will get the above error. I have tried various values for the third disk, including: 25, 100, 150, 200, and 300.

Upvotes: 0

Views: 138

Answers (1)

The error is because your configuration 'local_disk': True, the device 3 (or disk 3) only is available for dedicated hosts or non-local disk, if you change it to 'local_disk': False, it should work.

Upvotes: 1

Related Questions