Ask Your Question

glance installed whit devstack script doesn't show commands

asked 2012-07-26 12:20:53 -0500

jacopo85 gravatar image


I've installed openstack on Ubuntu 12.04 using devstack script. The installation seems to end successfully, but when i run "$ glance" the output doesn't show commands:

usage: glance [--insecure] [--timeout TIMEOUT] [--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] [--os-endpoint-type OS_ENDPOINT_TYPE] <subcommand> ...

Command-line interface to the OpenStack Images API.

Positional arguments: <subcommand> image-create image-delete Delete a specific image. image-list List images. image-show Describe a specific image. image-update member-create member-delete member-list help Display help about this program or one of its subcommands.

Optional arguments: --insecure Explicitly allow glanceclient to perform "insecure" SSL (https) requests. The server's certificate will not be verified against any certificate authorities. This option should be used with caution. --timeout TIMEOUT Number of seconds to wait for a response --os-username OS_USERNAME Defaults to env[OS_USERNAME] --os-password OS_PASSWORD Defaults to env[OS_PASSWORD] --os-tenant-id OS_TENANT_ID Defaults to env[OS_TENANT_ID] --os-tenant-name OS_TENANT_NAME Defaults to env[OS_TENANT_NAME] --os-auth-url OS_AUTH_URL Defaults to env[OS_AUTH_URL] --os-region-name OS_REGION_NAME Defaults to env[OS_REGION_NAME] --os-auth-token OS_AUTH_TOKEN Defaults to env[OS_AUTH_TOKEN] --os-image-url OS_IMAGE_URL Defaults to env[OS_IMAGE_URL] --os-image-api-version OS_IMAGE_API_VERSION Defaults to env[OS_IMAGE_API_VERSION] or 1 --os-service-type OS_SERVICE_TYPE Defaults to env[OS_SERVICE_TYPE] --os-endpoint-type OS_ENDPOINT_TYPE Defaults to env[OS_ENDPOINT_TYPE]

See "glance help COMMAND" for help on a specific command.

When i install glance from ubuntu packages the output of "$ glance" is:

Usage: glance <command> [options] [args]


help <command>  Output help for one of the commands below

add             Adds a new image to Glance

update          Updates an image's metadata in Glance

delete          Deletes an image from Glance

index           Return brief information about images in Glance

details         Return detailed information about images in

show            Show detailed information about an image in

clear           Removes all images and metadata from Glance

Member Commands:

image-members    List members an image is shared with

member-images    List images shared with a member

member-add       Grants a member access to an image

member-delete    Revokes a member's access to an image

members-replace  Replaces all membership for an image

Options: --version show program's version number and exit -h, --help show this help message and exit --silent-upload disable progress bar animation and information during upload -v, --verbose Print more verbose output -d, --debug Print more verbose output -H ADDRESS, --host=ADDRESS Address of Glance API host. Default: -p PORT, --port=PORT Port the Glance API host listens on. Default: 9292 --ssl Use SSL when talking to Glance API host -U URL, --url=URL URL of Glance service. This option can be used to specify the hostname, port and protocol (http/https) of the glance server, for example -U https://localhost:9292/v1 Default: None. If given, this option will override settings for --host, --port, and --ssl. -k, --insecure Explicitly allow glance to perform "insecure" SSL (https) requests. The server's certificate will not be verified against any certificate authorities. This option should be used with caution. -A TOKEN, --os_auth_token=TOKEN, --auth_token=TOKEN Authentication token to use to ... (more)

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted

answered 2012-07-27 06:49:22 -0500

koolhead17 gravatar image


Please import local envirnment variables. try $glance index (if it returns no error, your all set)

Kindly visit for more detailed decription/usage.

edit flag offensive delete link more

answered 2013-02-13 19:23:45 -0500

Not sure if this is still an issue, but it looks like there were two different versions of glance client being used, you can check the version by doing $glance --version.

devstack will pull the latest version, though from this site, ( it seems like you can still add an image using image-create instead.

hope this helps, please mark the question as solved, if possible.

edit flag offensive delete link more

answered 2013-02-13 20:23:44 -0500

jacopo85 gravatar image

Thanks Steve Martinelli, that solved my question.

edit flag offensive delete link more

answered 2013-11-25 06:13:22 -0500

shrini gravatar image


I too installed devstack. trying glance commands.

It asks for the values if

[--os-tenant-id OS_TENANT_ID] [--os-tenant-name OS_TENANT_NAME] [--os-auth-url OS_AUTH_URL]

How to find them?

The link provided in previous comment , ( is not working.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2012-07-26 12:20:53 -0500

Seen: 153 times

Last updated: Nov 25 '13