Skip to content

Requiring Global Identifier for '--image' option with 'slcli virtual create' command #704

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

Closed
sudorandom opened this issue Mar 21, 2016 · 1 comment
Labels

Comments

@sudorandom
Copy link
Contributor

Expected Behavior

This command will work:

slcli -y vs create --image=967301 --cpu=4 --memory=8192 --san --vlan-private=789 --datacenter=dal06 --hostname=ussj1d-scopclark-ws --domain=smartercitiescloud.com --private --network=1000Mbps

Actual Behavior

This command returns an error

slcli -y vs create --image=967301 --cpu=4 --memory=8192 --san --vlan-private=789 --datacenter=dal06 --hostname=ussj1d-scopclark-ws --domain=smartercitiescloud.com --private --network=1000Mbps
SoftLayerAPIError(SoftLayer_Exception_InvalidValue): Invalid value provided for 'blockDeviceTemplateGroup.globalIdentifier'. A valid global identifier is required for a template.

slcli vs create cannot accept an image id for the --image option and it is not clear from the documentation that you need to pass in the global identifier.

Environment Information

Operating System:
softlayer-python version (slcli --version): v5.0.0

Detail

The thing that we did change between version is slcli image list to show IDs instead of global identifiers. There's 3 ways to make this better:

  1. Be more explicit in the description for the --image option for slcli virtual create
  2. Show global identifiers in the slcli image list command again
  3. Have slcli virtual create automatically translate the image ID to the image global identifier
@sudorandom
Copy link
Contributor Author

I chose to implement option 3.

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

No branches or pull requests

1 participant