← Back to team overview

openstack team mailing list archive

Re: Unable to download images using Glance+Keystone+Swift

 

Also, as a followup, if I try to retrieve an images raw data and don't specify a content-type on the request, I receive the following error message:

First, get image details…

root@essex3:/etc/glance# curl -v -I -H 'X-Auth-Token: 04e74eab602f4e48954a3ed1404f223b' -H 'Content-type: application/json' http://essex3:9292/v1/images/9fe687a4-ccf0-4b69-86b2-a785e04a49b1 | python -mjson.tool
* About to connect() to essex3 port 9292 (#0)
*   Trying 172.16.1.5...   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0connected
> HEAD /v1/images/9fe687a4-ccf0-4b69-86b2-a785e04a49b1 HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: essex3:9292
> Accept: */*
> X-Auth-Token: 04e74eab602f4e48954a3ed1404f223b
> Content-type: application/json
> 
< HTTP/1.1 200 OK
< Content-Type: text/html; charset=UTF-8
< Content-Length: 0
< X-Image-Meta-Id: 9fe687a4-ccf0-4b69-86b2-a785e04a49b1
< X-Image-Meta-Deleted: False
< X-Image-Meta-Container_format: ari
< X-Image-Meta-Checksum: 2d222d406f3ed30e03ed44123c33cba6
< X-Image-Meta-Protected: False
< X-Image-Meta-Min_disk: 0
< X-Image-Meta-Created_at: 2012-04-24T19:38:21
< X-Image-Meta-Size: 5882349
< X-Image-Meta-Status: active
< X-Image-Meta-Is_public: True
< X-Image-Meta-Min_ram: 0
< X-Image-Meta-Owner: 1
< X-Image-Meta-Updated_at: 2012-04-24T19:38:22
< X-Image-Meta-Disk_format: ari
< X-Image-Meta-Name: tty-linux-ramdisk
< Location: http://essex3:9292/v1/images/9fe687a4-ccf0-4b69-86b2-a785e04a49b1
< Etag: 2d222d406f3ed30e03ed44123c33cba6
< Date: Thu, 26 Apr 2012 15:59:06 GMT
< 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
* Connection #0 to host essex3 left intact
* Closing connection #0
No JSON object could be decoded

Then, try to download the image…

root@essex3:/etc/glance# curl -v -H 'X-Auth-Token: 04e74eab602f4e48954a3ed1404f223b' http://essex3:9292/v1/images/9fe687a4-ccf0-4b69-86b2-a785e04a49b1
* About to connect() to essex3 port 9292 (#0)
*   Trying 172.16.1.5... connected
> GET /v1/images/9fe687a4-ccf0-4b69-86b2-a785e04a49b1 HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: essex3:9292
> Accept: */*
> X-Auth-Token: 04e74eab602f4e48954a3ed1404f223b
> 
< HTTP/1.1 404 Not Found
< Content-Length: 315
< Content-Type: text/html; charset=UTF-8
< Date: Thu, 26 Apr 2012 16:02:04 GMT
< 
<html>
 <head>
  <title>404 Not Found</title>
 </head>
 <body>
  <h1>404 Not Found</h1>
  An object with the specified identifier was not found.
Details: Swift could not find image at uri swift+http://service:glance:glance@essex1:5000/v2.0/glance/9fe687a4-ccf0-4b69-86b2-a785e04a49b1<br /><br />



 </body>
* Connection #0 to host essex3 left intact
* Closing connection #0
</html>

What is going on?  I'm stumped…

/ross






References