Skip to content

Unable to order a dedicatedhost from SLCLI for a GPU Flavor #1022

@FernandoOjeda

Description

@FernandoOjeda

Unable to order a dedicatedhost from slcli for a GPU flavor.

slcli dedicatedhost create -H E2ETestHost1 -D e2eperftest.com -f 56_CORES_X_484_RAM_X_1_5_TB_X_2_GPU_P100 -d dal13

Receive the below error when I submit an order request.

SoftLayerAPIError(SoftLayer_Exception_Public): Unable to find a price for the dedicated host configuration provided.

The slcli to get the routers available for the dedicatedHost item use the following structure:

SoftLayer_Virtual_DedicatedHost::getAvailableRouters

{
      "cpuCount": 56,
      "diskCapacity": 1200,
      "memoryCapacity": 360,
      "datacenter": {
      	"id": 1854895
      }

But for dedicatedHost GPU flavor has to add the following structure:

{
      "cpuCount": 56,
      "diskCapacity": 1200,
      "memoryCapacity": 360,
      "datacenter": {
      	"id": 1854895
      },
      "pciDevices": [ 
      	{ 
      		"hardwareComponentModel": 
      		   { 
      		   	   "hardwareGenericComponentModel":
			               {"hardwareComponentType":
					{"keyName":"GPU"
					}
				}
      		   	
      		   } 
      	}, 
      	{ 
      		"hardwareComponentModel": 
      		   { 
      		   	   "hardwareGenericComponentModel":
			               {"hardwareComponentType":
					{"keyName":"GPU"
					}
				}
        	 } 
       	} 
      ] 
    }

Environment Information
Operating System:
softlayer-python version (slcli --version): version 5.5.0

Metadata

Metadata

Assignees

Labels

OrderingAnything related to ordering

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions