Skip to content

The slcli returns only gpu0 items when there are already gpu1 items #983

@acamacho82

Description

@acamacho82

This is for baremetal servers which have GPU support.

Expected Behavior

The slcli should list gpu0 and gpu1 items

Actual Behavior

The slcli returns only gpu0 items when there are already gpu1 items

$ slcli order item-list DUAL_E52600_V4_12_DRIVES

: gpu0 :        GPU_NVIDIA_TESLA_K80      :                                                  NVIDIA Tesla K80 Graphic Card                                                   :
: gpu0 : GPU_NVIDIA_TESLA_M60_ACCELERATOR : NVIDIA Tesla M60 GPU Accelerator - Software may be required (Product is subject to availability - Please contact Sales to order) :
: gpu0 :       GPU_NVIDIA_TESLA_V100      :                                                  NVIDIA Tesla V100 Graphic Card                                                  :
: gpu0 :       GPU_NVIDIA_TESLA_P100      :                                                  NVIDIA Tesla P100 Graphic Card                                                  :

Here the REST call to get the gpu1 items

https://api.softlayer.com/rest/v3.1/SoftLayer_Product_Package/553/getItemPrices?objectMask=mask[categories,pricingLocationGroup[locations],item[itemCategory]]&objectFilter={"itemPrices":{"categories":{"categoryCode":{"operation":"gpu1"}}}}


         {
		"id": 141767,
		"itemId": 6072,
		"locationGroupId": 507,
		"categories": [
			{
				"categoryCode": "gpu1",
				"id": 327,
				"name": "Secondary Graphics Processing Unit",
				"quantityLimit": 0,
	         	}
		],
		"item": {
			"capacity": "4992",
			"description": "NVIDIA Tesla K80 Graphic Card",
			"id": 6072,
			"itemTaxCategoryId": 166,
			"keyName": "GPU_NVIDIA_TESLA_K80",
			"units": "Cuda_Core",		
			"itemCategory": {
				"categoryCode": "gpu0",
				"id": 326,
				"name": "Graphics Processing Unit",
				"quantityLimit": 0,
				"sortOrder": null
			}
		}

Environment Information

Operating System: Linux
softlayer-python version (slcli --version): 5.4.4

Metadata

Metadata

Assignees

No one assigned

    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