<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<br>
<div><br>
<div>Begin forwarded message:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;">
<span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>From:
</b></span><span style="font-family:'Helvetica'; font-size:medium;">Ross Lillie <<a href="mailto:ross.lillie@motorolasolutions.com">ross.lillie@motorolasolutions.com</a>><br>
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;">
<span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>Subject:
</b></span><span style="font-family:'Helvetica'; font-size:medium;"><b>Re: [Openstack] Unable to download images using Glance+Keystone+Swift</b><br>
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;">
<span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>Date:
</b></span><span style="font-family:'Helvetica'; font-size:medium;">April 26, 2012 1:37:45 PM CDT<br>
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;">
<span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>To:
</b></span><span style="font-family:'Helvetica'; font-size:medium;">Jay Pipes <<a href="mailto:jaypipes@gmail.com">jaypipes@gmail.com</a>><br>
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;">
<span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>Cc:
</b></span><span style="font-family:'Helvetica'; font-size:medium;">Ross Lillie <<a href="mailto:ross.lillie@motorolasolutions.com">ross.lillie@motorolasolutions.com</a>><br>
</span></div>
<br>
<div>Hi Jay,<br>
<br>
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<br>
<br>
root@essex1:/etc/keystone# curl -v -H 'X-Auth-Token: 45d01460a0e04bff967eb954e7f4fee8'
<a href="http://essex3:9292/v1/images/423b0ecc-5ca1-44d8-8e85-5a245ce620e2">http://essex3:9292/v1/images/423b0ecc-5ca1-44d8-8e85-5a245ce620e2</a><br>
* About to connect() to essex3 port 9292 (#0)<br>
* Trying 172.16.1.5... connected<br>
<blockquote type="cite">GET /v1/images/423b0ecc-5ca1-44d8-8e85-5a245ce620e2 HTTP/1.1<br>
</blockquote>
<blockquote type="cite">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<br>
</blockquote>
<blockquote type="cite">Host: essex3:9292<br>
</blockquote>
<blockquote type="cite">Accept: */*<br>
</blockquote>
<blockquote type="cite">X-Auth-Token: 45d01460a0e04bff967eb954e7f4fee8<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
< HTTP/1.1 404 Not Found<br>
< Content-Length: 315<br>
< Content-Type: text/html; charset=UTF-8<br>
< Date: Thu, 26 Apr 2012 18:35:21 GMT<br>
< <br>
<html><br>
<head><br>
<title>404 Not Found</title><br>
</head><br>
<body><br>
<h1>404 Not Found</h1><br>
An object with the specified identifier was not found.<br>
Details: Swift could not find image at uri <a href="swift+http://service:glance:glance@essex1:5000/v2.0/glance/423b0ecc-5ca1-44d8-8e85-5a245ce620e2">
swift+http://service:glance:glance@essex1:5000/v2.0/glance/423b0ecc-5ca1-44d8-8e85-5a245ce620e2</a><br /><br /><br>
<br>
<br>
<br>
</body><br>
* Connection #0 to host essex3 left intact<br>
* Closing connection #0<br>
</html><br>
root@essex1:/etc/keystone# <br>
<br>
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.<br>
<br>
Ross<br>
<br>
<br>
On Apr 26, 2012, at 11:55 AM, Jay Pipes wrote:<br>
<br>
<blockquote type="cite">On 04/26/2012 11:54 AM, Lillie Ross-CDSR11 wrote:<br>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">4. However, when I try to download the same image, I receive the following error:<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">curl -v -H 'X-Auth-Token: 45d01460a0e04bff967eb954e7f4fee8' -H 'Content-type: application/json'
<a href="http://essex3:9292/v1/images/6720c572-12b7-4cc8-a8c5-95b92998671a">http://essex3:9292/v1/images/6720c572-12b7-4cc8-a8c5-95b92998671a</a> | python -mjson.tool<br>
</blockquote>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">You need to remove the | python -mjson.tool :) Don't really want to be piping an image file into that module...<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Best,<br>
</blockquote>
<blockquote type="cite">-jay<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">_______________________________________________<br>
</blockquote>
<blockquote type="cite">Mailing list: <a href="https://launchpad.net/~openstack">
https://launchpad.net/~openstack</a><br>
</blockquote>
<blockquote type="cite">Post to : <a href="mailto:openstack@lists.launchpad.net">
openstack@lists.launchpad.net</a><br>
</blockquote>
<blockquote type="cite">Unsubscribe : <a href="https://launchpad.net/~openstack">
https://launchpad.net/~openstack</a><br>
</blockquote>
<blockquote type="cite">More help : <a href="https://help.launchpad.net/ListHelp">
https://help.launchpad.net/ListHelp</a><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</body>
</html>