<div dir="ltr"><p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;font-family:'Helvetica Neue',Arial,Helvetica,sans-serif;color:rgb(75,75,75)">Hello,</p><p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;font-family:'Helvetica Neue',Arial,Helvetica,sans-serif;color:rgb(75,75,75)"><span style="line-height:1.4">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:</span><br></p><p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;font-family:'Helvetica Neue',Arial,Helvetica,sans-serif;color:rgb(75,75,75)">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)</p><div>Thanks,</div><div><br></div><div>Su</div>
</div>