API版本参数无效。OpenStack中支持的值为[1,2]

API版本参数无效。OpenStack中支持的值为[1,2],openstack,openstack-glance,Openstack,Openstack Glance,安装glance后,执行以下命令时: [root@ha-node1 ~]# glance image-create --name "cirros-0.3.4-x86_64" --file cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --visibility public --progress 我得到以下错误: Invalid API version parameter. Supported v

安装glance后,执行以下命令时:

[root@ha-node1 ~]# glance image-create --name "cirros-0.3.4-x86_64" --file cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --visibility public --progress
我得到以下错误:

Invalid API version parameter. Supported values are [1, 2]
如果我使用“浏览图像”列表,也会出现以下错误:

[root@ha-node1 ~]# glance image-list 
Invalid API version parameter. Supported values are [1, 2]
在我的
/root/admin openrc
中:

export OS_USER_DOMAIN_ID=default
export OS_PROJECT_DOMAIN_ID=default
export OS_USERNAME=admin
export OS_PROJECT_NAME=admin
export OS_PASSWORD=passw0rd
export OS_IDENTITY_API_VERSION=3
export OS_AUTH_URL=http://devops.taobao.com:35357/v3
export OS_IMAGE_API_VERSION=3
我将OS_IMAGE_API_VERSION设置为3,为什么不能使用
API VERSION 3参数

有人知道为什么会有错误吗


我的OpenStack是牛顿。VM是CentOS 7.2,Glance没有v3 API。当前的API版本是2.5,Newton支持2.4。有关更多详细信息,请参阅。

Glance没有V3API。当前的API版本是2.5,Newton支持2.4。有关更多详细信息,请参阅