[Openstack] Fwd: Unable to download images using Glance+Keystone+Swift

Lillie Ross-CDSR11 Ross.Lillie at motorolasolutions.com
Thu Apr 26 18:38:55 UTC 2012



Begin forwarded message:

From: Ross Lillie <ross.lillie at motorolasolutions.com<mailto:ross.lillie at motorolasolutions.com>>
Subject: Re: [Openstack] Unable to download images using Glance+Keystone+Swift
Date: April 26, 2012 1:37:45 PM CDT
To: Jay Pipes <jaypipes at gmail.com<mailto:jaypipes at gmail.com>>
Cc: Ross Lillie <ross.lillie at motorolasolutions.com<mailto:ross.lillie at motorolasolutions.com>>

Hi Jay,

Cut and paste error.  It still doesn't work.  If I issue the simple command (without the pipe or content-type header) I get the following

root at essex1:/etc/keystone# curl -v -H 'X-Auth-Token: 45d01460a0e04bff967eb954e7f4fee8' http://essex3:9292/v1/images/423b0ecc-5ca1-44d8-8e85-5a245ce620e2
* About to connect() to essex3 port 9292 (#0)
*   Trying 172.16.1.5... connected
GET /v1/images/423b0ecc-5ca1-44d8-8e85-5a245ce620e2 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: 45d01460a0e04bff967eb954e7f4fee8

< HTTP/1.1 404 Not Found
< Content-Length: 315
< Content-Type: text/html; charset=UTF-8
< Date: Thu, 26 Apr 2012 18:35:21 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/423b0ecc-5ca1-44d8-8e85-5a245ce620e2<br /><br />



</body>
* Connection #0 to host essex3 left intact
* Closing connection #0
</html>
root at essex1:/etc/keystone#

Now, I can access the image directly via the Swift CLI using my glance tenant, username, and password.  However, the Glance REST call fails.  All other REST calls work fine.  I'm stumped.

Ross


On Apr 26, 2012, at 11:55 AM, Jay Pipes wrote:

On 04/26/2012 11:54 AM, Lillie Ross-CDSR11 wrote:
4.  However, when I try to download the same image, I receive the following error:

curl -v -H 'X-Auth-Token: 45d01460a0e04bff967eb954e7f4fee8' -H 'Content-type: application/json' http://essex3:9292/v1/images/6720c572-12b7-4cc8-a8c5-95b92998671a | python -mjson.tool

You need to remove the | python -mjson.tool :) Don't really want to be piping an image file into that module...

Best,
-jay

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack at lists.launchpad.net<mailto:openstack at lists.launchpad.net>
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120426/246330fe/attachment.html>


More information about the Openstack mailing list