[Openstack] How specify image api version at server side?
Su Zhang
westlifezs at gmail.com
Thu Mar 26 03:53:07 UTC 2015
Hello,
I encountered an error while running glance cli. If I export the
OS_IMAGE_API_VERSION to 1, then I will be able to run glance cli. However,
if I export OS_IMAGE_API_VERSION to 2, then it will encounter an internal
error. Could anyone please let me know how to adjust the glance api version
at the server side to make the client also compatible to image api version
2? More information can be founded as follow:
su at ubuntu:/opt/stack/glance/glance$ export OS_IMAGE_API_VERSION=1
su at ubuntu:/opt/stack/glance/glance$
glance image-list
+--------------------------------------+---------------------------------+-------------+------------------+-----------+--------+
| ID | Name | Disk Format | Container Format | Size | Status |
+--------------------------------------+---------------------------------+-------------+------------------+-----------+--------+
| 4adda55e-fa6e-4605-aa42-aa5faabc04b8 | cirros-0.3.2-x86_64-uec | ami |
ami | 25165824 | active | | e979c1b2-d4f1-4dac-a447-4d56005e0d82 |
cirros-0.3.2-x86_64-uec-kernel | aki | aki | 4969360 | active | |
7ce02482-a74e-4eac-942d-cf489ed2b65b | cirros-0.3.2-x86_64-uec-ramdisk |
ari | ari | 3723817 | active | | 6155a107-96f8-4158-901f-000a46fd680c |
Fedora-x86_64-20-20140618-sda | qcow2 | bare | 209649664 | active |
+--------------------------------------+---------------------------------+-------------+------------------+-----------+--------+
su at ubuntu:/opt/stack/glance/glance$ export OS_IMAGE_API_VERSION=2
su at ubuntu:/opt/stack/glance/glance$
glance image-list HTTPInternalServerError (HTTP 500)
Thanks,
Su
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150325/b1e2eef2/attachment.html>
More information about the Openstack
mailing list