openstack glace未知命令
我使用的每个与图像相关的命令最终都会出现错误:openstack glace未知命令,openstack,Openstack,我使用的每个与图像相关的命令最终都会出现错误: glance image-create --name='Ubuntu 12.04 x86_64 Server' --disk-format=qcow2 --container-format=bare --public < precise-server-cloudimg-amd64-disk1.img 浏览:错误:没有这样的选项:-名称 减少上面的命令并获得以下结果: glance image-create 用法:浏览[选项][参数] 命令
glance image-create --name='Ubuntu 12.04 x86_64 Server' --disk-format=qcow2 --container-format=bare --public < precise-server-cloudimg-amd64-disk1.img
浏览:错误:没有这样的选项:-名称
减少上面的命令并获得以下结果:
glance image-create
用法:浏览[选项][参数]
命令:
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
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
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
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
未知命令:图像创建
我想不出来
注意:我使用的是运行UbuntuPrecise的虚拟机,python客户端不再适用于它。对于第一个命令,您使用的是“=”字符,这不是必需的。请注意“浏览图像创建”命令帮助:
usage: glance image-create [--id <IMAGE_ID>] [--name <NAME>] [--store <STORE>]
[--disk-format <DISK_FORMAT>]
[--container-format <CONTAINER_FORMAT>]
[--owner <TENANT_ID>] [--size <SIZE>]
[--min-disk <DISK_GB>] [--min-ram <DISK_RAM>]
[--location <IMAGE_URL>] [--file <FILE>]
[--checksum <CHECKSUM>] [--copy-from <IMAGE_URL>]
[--is-public {True,False}]
[--is-protected {True,False}]
[--property <key=value>] [--human-readable]
[--progress]
“=”是可选的,我找不到python GleaseClient,但已经重新安装了repos上可用的所有与Glease相关的软件包。您可能使用的是非常旧的python GleaseClient版本,因为命令image create不可用。请发布一瞥版的输出。在较新的python客户端版本中,不推荐使用“添加”,而应尝试使用“图像创建”。使用“帮助添加”查看更多详细信息。
sudo pip install python-glanceclient