Glance commands get error

asked 2014-06-22 09:01:44 -0600

Parisa gravatar image

updated 2014-06-22 09:27:23 -0600

every image related command I use ends up with an error:

glance image-create --name='Ubuntu 12.04 x86_64 Server' --disk-format=qcow2 --container-format=bare --public < precise-server-cloudimg-amd64-disk1.img
Usage: glance <command> [options] [args]
Commands:
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
                Glance

show            Show detailed information about an image in
                Glance

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

glance: error: no such option: --name

Cut down the above command and got this:

glance image-create
Usage: glance <command> [options] [args]

Commands:

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
                Glance

show            Show detailed information about an image in
                Glance

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

Unknown command: image-create

I can't figure it out.

NOTE: I'm using a VM running Ubuntu Precise and python-glanceclient is no longer available for it.

edit retag flag offensive close merge delete

Comments

what is the result when you type glance image-list

Syed Awais Ali gravatar imageSyed Awais Ali ( 2014-06-22 10:02:38 -0600 )edit

the same as image-create

Parisa gravatar imageParisa ( 2014-06-22 14:55:28 -0600 )edit

If there is no client of glance installed how come it will operate. You need to install glance client only then it would be possible. You should use latest ubuntu that have openstack installed

Syed Awais Ali gravatar imageSyed Awais Ali ( 2014-06-23 04:08:45 -0600 )edit