[Openstack] [Rally] Failed run command "rally show images"

Li, Chen chen.li at intel.com
Thu Mar 13 06:39:06 UTC 2014


Issue has been solved.

It is caused by the extra "/v1" at the end of glance endpoint.

A bug report is at https://bugs.launchpad.net/rally/+bug/1291184.

The simplest workaround is edit endpoint in keystone.
The best way to solve the issue is to upgrade glanceclient to the newest version.

:)

Thanks.
-chen


From: Li, Chen [mailto:chen.li at intel.com]
Sent: Wednesday, March 12, 2014 1:08 PM
To: openstack at lists.openstack.org
Subject: [Openstack] [Rally] Failed run command "rally show images"


Hi list,

I have followed guide

https://wiki.openstack.org/wiki/Rally/installation

and

https://wiki.openstack.org/wiki/Rally/HowTo

Everything works file until I run command:

rally show images

I enabled debug in /etc/rally/rally.conf, and get:

2014-03-12 12:56:30.459 18999 DEBUG glanceclient.common.http [-] curl -i -X GET -H 'X-Auth-Token: ......=' -H 'Content-Type: application/json' -H 'User-Agent: python-glanceclient' http://host-glance:9292/v1/v1/images/detail?limit=20 log_curl_request /usr/lib/python2.6/site-packages/glanceclient/common/http.py:118

2014-03-12 12:56:30.662 18999 DEBUG glanceclient.common.http [-]
HTTP/1.1 404 Not Found
date: Wed, 12 Mar 2014 04:56:30 GMT
content-length: 52
content-type: text/plain; charset=UTF-8
x-openstack-request-id: req-6b39f8f1-6e32-429c-b04e-137e7fd6c563

404 Not Found
The resource could not be found.
log_http_response /usr/lib/python2.6/site-packages/glanceclient/common/http.py:128
2014-03-12 12:56:30.663 18999 ERROR glanceclient.common.http [-] Request returned failure status.
2014-03-12 12:56:30.663 18999 CRITICAL rally [-] 404 Not Found
The resource could not be found.
(HTTP 404)

If I run command:

glance --debug image-list

curl -i -X GET -H 'X-Auth-Token: ......=' -H 'Content-Type: application/json' -H 'User-Agent: python-glanceclient' http://host-glance:9292/v1/images/detail?sort_key=name&sort_dir=asc&limit=20
......

Compare with the two command, I noticed the URL for glance is different.

For rally show images, it is

http://host-glance:9292/v1/v1/images/

For glance image-lisy

http://host-glance:9292/v1/images/

we get an extra /v1.

Anyone know why this happened ????

Thanks.
-chen

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140313/50d7e491/attachment.html>


More information about the Openstack mailing list