Using the Glance CLI Tool

asked 2012-06-13 09:38:02 -0600


I try to install Openstack on my virtual machine using the script.

I got an error about the glance CLI tool <hich does="" not="" recognise="" the="" subcommand="" add="" !="" here="" is="" the="" trace="" of="" the="" script="" :="" <="" p="">

[OutPut] glance add --silent-upload -A name=cirros-0.3.0-x86_64-uec-kernel is_public=true container_format=aki disk_format=aki usage: glance [--os-username OS_USERNAME] [--os-password OS_PASSWORD] [--os-tenant-id OS_TENANT_ID] [--os-tenant-name OS_TENANT_NAME] [--os-auth-url OS_AUTH_URL] [--os-region-name OS_REGION_NAME] [--os-auth-token OS_AUTH_TOKEN] [--os-image-url OS_IMAGE_URL] [--os-image-api-version OS_IMAGE_API_VERSION] [--os-service-type OS_SERVICE_TYPE] <subcommand> ... glance: error: argument <subcommand>: invalid choice: 'add' [/OutPut]

I just re-install the last version of glance ....

How idea how to fix this issue ? thanks !

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-06-14 09:16:49 -0600

eglynn gravatar image

This is because devstack uses the new python-glanceclient CLI by default instead of the legacy CLI.

The equivalent command with the new CLI would be:

glance image-create --name cirros-0.3.0-x86_64-uec-kernel --public --container_format=aki --disk_format=aki

If you really want to use the legacy version, you call it directly from /opt/stack/glance/bin/glance. But note that this will be removed for the Folsom release so it would make sense to get used to the new CLI.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2012-06-13 09:38:02 -0600

Seen: 88 times

Last updated: Jun 14 '12