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@ubuntu:/opt/stack/glance/glance$ export OS_IMAGE_API_VERSION=1 su@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@ubuntu:/opt/stack/glance/glance$ export OS_IMAGE_API_VERSION=2 su@ubuntu:/opt/stack/glance/glance$ glance image-list HTTPInternalServerError (HTTP 500) Thanks, Su
_______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack