Glance returns 404 when url contains "image name' instead of ID

asked 2016-05-12 07:58:12 -0500

Nivas gravatar image

updated 2016-05-12 09:05:29 -0500

Hi all,

when you query by image UUID it works

    curl -g -i -X HEAD -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-glanceclient' -H    'Connection: keep-alive' -H 'X-Auth-Token: xxxxxxxxxxxxxxxxx' -H 'Content-Type: application/octet-stream'  http://192.168.2.11:9292/v1/images/yyyy-yyyy-yyyyyyyy-yyyyyy

but when you do the same with 'name', it returns 404

    curl -g -i -X HEAD -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: xxxxxxxxxxxxxxxxx' -H 'Content-Type: application/octet-stream' http://192.168.2.11:9292/v1/images/image1

Glace version : 1.1.1 Openstack client version : 1.7.2

Any idea?

thanks in advance!

edit retag flag offensive close merge delete