openstack image list throwing 500 error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I can list service catalog without issues
openstack catalog list
+------
| Name | Type | Endpoints |
+------
| keystone | identity | RegionOne |
| | | public: http://
| | | RegionOne |
| | | admin: http://
| | | RegionOne |
| | | internal: http://
| | | |
| glance | image | RegionOne |
| | | admin: http://
| | | RegionOne |
| | | public: http://
| | | RegionOne |
| | | internal: http://
| | | |
+------
but when I use openstack image list it is throwing 500 error, following is from glance-api log.
Installation is on Ubuntu17.04 + octa release
2017-09-07 17:17:41.096 19450 DEBUG eventlet.
2017-09-07 17:17:41.099 19450 DEBUG glance.
2017-09-07 17:17:41.099 19450 DEBUG glance.
2017-09-07 17:17:41.100 19450 DEBUG glance.
2017-09-07 17:17:41.100 19450 DEBUG glance.
2017-09-07 17:17:41.244 19450 INFO eventlet.
File "/usr/lib/
result = self.applicatio
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/usr/lib/
response = req.get_
File "/usr/lib/
application, catch_exc_
File "/usr/lib/
app_iter = application(
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/usr/lib/
response = req.get_
File "/usr/lib/
application, catch_exc_
File "/usr/lib/
app_iter = application(
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/usr/lib/
response = req.get_
File "/usr/lib/
application, catch_exc_
File "/usr/lib/
app_iter = application(
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/usr/local/
response = req.get_
File "/usr/lib/
application, catch_exc_
File "/usr/lib/
app_iter = application(
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/usr/lib/
return request.
File "/usr/lib/
application, catch_exc_
File "/usr/lib/
app_iter = application(
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/usr/local/
response = self.process_
File "/usr/local/
resp = super(AuthProtocol, self).process_
File "/usr/local/
allow_
File "/usr/local/
data = self.fetch_
File "/usr/local/
allow_
File "/usr/local/
auth_ref = self._request_
File "/usr/local/
strategy_class = self._get_
File "/usr/local/
if self._adapter.
File "/usr/local/
return self.session.
File "/usr/local/
return auth.get_
File "/usr/local/
service_
File "/usr/lib/
return wrapped(*args, **kwargs)
File "/usr/local/
raise exceptions.
EmptyCatalog: The service catalog is empty.
2017-09-07 17:17:41.245 19450 INFO eventlet.
output of following command with debug option
openstack image list --debug
Making authentication request to http:// controller1: 35357/v3/ auth/tokens 83856b59e82f329 6fb", "name": "admin"}], "expires_at": "2017-09- 08T02:38: 45.000000Z" , "pro\ a79633f7d8a8a7b 302", "name": "admin"}, "catalog": [{"endpoints": [{"url": "http:// controller1: 5000/v\ 92b82596bc26c94 3c1"}, {"url": "http:// controller1: 35357/v3/", "interface": "adm\ eeaca8c205c87a2 ffc"}, {"url": "http:// controller1: 5000/v3/", "interface": "internal", "region": "Regio\ ed9014ceeca1703 4f1"}], "type": "identity", "id": "ad82e0a0be5448 00b041a433a1aa5 2b5", "name": "keystone"}, {"endpoints": [{"\ controller1: 9292", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "588d09bb63db43 44ab2efcfe85b08 7fa"}, {"url": "http:// controller1: 92\ 17874434e5d8732 ba2"}, {"url": "http:// controller1: 9292", "interface": "internal\ 20ba1cec4529a06 a8b"}], "type": "image", "id": "b0aba851dbc14e fbbd183cee8f529 08d", "name": "glance"}], "u\ expires_ at": null, "name": "admin", "id": "d24cae7c524b42 fcb9fa11a41326e 0a1"}, "audit_ids": ["z8mA0VytSve8b vE2JT\ 08T01:38: 45.000000Z" }} t.api.image_ v2.APIv2' > controller1: 9292/v2/ images? marker= None" -H "User-Agent: osc-lib/1.3.0 keystoneauth1/ 2.18.0 python- requests/ 2.10.0 CPython/2.7.13" -H "X-Auth-Token\ b65bad14acb8e27 e9a63c25434cce5 2"
"POST /v3/auth/tokens HTTP/1.1" 201 1645
{"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "e09e9f01a29242
ject": {"domain": {"id": "default", "name": "Default"}, "id": "173d0a72eebd44
3/", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "20b4007c328348
in", "region": "RegionOne", "region_id": "RegionOne", "id": "3201afe42cf247
nOne", "region_id": "RegionOne", "id": "e2c3ad4225c04d
url": "http://
92", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "9ea27634d05d4d
", "region": "RegionOne", "region_id": "RegionOne", "id": "d5c5aca5e09f44
ser": {"domain": {"id": "default", "name": "Default"}, "password_
eQnA"], "issued_at": "2017-09-
Instantiating image api: <class 'openstackclien
REQ: curl -g -i -X GET "http://
: {SHA1}2ee688187
Starting new HTTP connection (1): controller1
"GET /v2/images HTTP/1.1" 500 0
RESP: [500] Content-Type: text/plain Content-Length: 0 Date: Fri, 08 Sep 2017 01:38:46 GMT Connection: close
RESP BODY: Omitted, Content-Type is set to text/plain. Only application/json responses have their bodies logged.
Request returned failure status: 500