I am trying to order hourly baremetal systems from Softlayer using the ordering API.
First step to the ordering is likely verifying the cpu/disk/prices ids/package ids etc in the order. So we use the python wrapper,
client = sl_client.new_dev_client()
order = client['Product_Order'].verifyOrder(productOrder)
Following are from the storage groups and disks submitted,
Storage Groups
"storage_groups": [
{
"drives": [
0,
1
],
"key": "RAID_1",
"size": 1000
},
{
"drives": [
2,
3,
4,
5,
6,
7,
8,
9,
10,
11
],
"key": "RAID_10",
"size": 8500
},
{
"drives": [
12,
13,
14,
15
],
"key": "RAID_10",
"size": 1920
}
],
They get later changed to the actual order format,
'storageGroups': [
{
'arrayTypeId': 2,
'arraySize': 1000,
'hardDrives': [
0,
1
]
},
{
'arrayTypeId': 5,
'arraySize': 8500,
'hardDrives': [
2,
3,
4,
5,
6,
7,
8,
9,
10,
11
]
},
{
'arrayTypeId': 5,
'arraySize': 1920,
'hardDrives': [
12,
13,
14,
15
]
}
],
Disks
"disks": {
"disk0": "HARD_DRIVE_1_00_TB_SATA_2",
"disk1": "HARD_DRIVE_1_00_TB_SATA_2",
"disk2": "HARD_DRIVE_1_7_TB_SSD_3_DWPD",
"disk3": "HARD_DRIVE_1_7_TB_SSD_3_DWPD",
"disk4": "HARD_DRIVE_1_7_TB_SSD_3_DWPD",
"disk5": "HARD_DRIVE_1_7_TB_SSD_3_DWPD",
"disk6": "HARD_DRIVE_1_7_TB_SSD_3_DWPD",
"disk7": "HARD_DRIVE_1_7_TB_SSD_3_DWPD",
"disk8": "HARD_DRIVE_1_7_TB_SSD_3_DWPD",
"disk9": "HARD_DRIVE_1_7_TB_SSD_3_DWPD",
"disk10": "HARD_DRIVE_1_7_TB_SSD_3_DWPD",
"disk11": "HARD_DRIVE_1_7_TB_SSD_3_DWPD",
"disk12": "HARD_DRIVE_960GB_SSD",
"disk13": "HARD_DRIVE_960GB_SSD",
"disk14": "HARD_DRIVE_960GB_SSD",
"disk15": "HARD_DRIVE_960GB_SSD"
},
However, when I request these, I receive a error saying,
Hard drive #2 does not have enough space to fit the storage groups assigned to it.
Not sure why this error is reported though. Could not find sufficient docs related to this error.
Thank you.