Comment 11 for bug 1347692

Revision history for this message
Adam Gandelman (gandelman-a) wrote :

Okay, this is a bit bonkers. I think this all points to a Horizon bug, of all things. There a few issues:

1)

glance logging is misleading. The test is attempting to register an image from an external URL (CONF.image.http_image) and register it in glance's swift store. This requires two calls to two different stores, http and swift. In the case of this error, we're getting a 500 from the first call (fetching the external URL) as seen in the trace:

glance.api.v1.images File "/opt/stack/new/glance/glance/store/http.py", line 179, in _query
glance.api.v1.images raise exception.BadStoreUri(message=reason)
glance.api.v1.images BadStoreUri: HTTP URL returned a 500 status code.

but the logged error is misleading, pointing to an error in swift itself:

glance.api.v1.images [-] Copy from external source 'swift' failed for image: c42364fe-3420-4532-83b4-3340e51acd67

2)

tempest is getting configured on the devstack slaves with CONF.image.http_image = http://127.0.0.1. I'm not sure this intentional or not, but results in the image being used in test actually being a dump of the horizon login page. The tempest default is to pull a cirros image from the internets, so its logical that we attempt to pull something local instead. Using the horizon login page as an image seems strange, but it works.

3)

In the case of these failures, glance's request to fetch http://127.0.0.1 is resulting in a 500 from horizon. horizon_error.txt contains a traceback and a 500 that points to https://bugs.launchpad.net/horizon/+bug/1345955