nova image-list returns a 500 error but glance image-list and openstack image list works fine
Installed mitaka on trusty according to the docs ... can't start an instance .... "cirros resource unavailable" digging deeper ... nova image-list fails with 500 exception:
ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. <class 'glanceclient.exc.HTTPInternalServerError'> (HTTP 500) (Request-ID: req-3661137c-15c8-40a5-bb86-b7a05b756568)
.. but but glance image-list and openstack image list works fine:
root@helium-v6:~# glance image-list
+--------------------------------------+--------+
| ID | Name |
+--------------------------------------+--------+
| 8f131a96-84c7-463a-aa0c-f2bf72917b30 | cirros |
+--------------------------------------+--------+
root@helium-v6:~# openstack image list
+--------------------------------------+--------+--------+
| ID | Name | Status |
+--------------------------------------+--------+--------+
| 8f131a96-84c7-463a-aa0c-f2bf72917b30 | cirros | active |
+--------------------------------------+--------+--------+
I've checked the nova.conf, glance-registry.conf, glance-api.conf files .. all seems to be in order per the documentation ....
The only thing to me that seems odd is NOVA sends "v1" one requests to glance as opposed to the others sending "v2"
From glance-api.log:
2016-08-18 20:59:14.188 16900 INFO eventlet.wsgi.server [req-f1766a2b-aa06-4528-a917-b99edbbc3336 b7629dd96f98477cb006a2469dda8234 21a9f73fa5f34d4d81eac8122b13090a - - -] 192.168.22.49 - - [18/Aug/2016 20:59:14] "GET /v1/images/detail?is_public=none&limit=20 HTTP/1.1" 500 454 0.820971
2016-08-18 21:00:51.713 16900 ERROR glance.registry.client.v1.client [req-9a3d1026-422d-4d75-a4c6-e63e4543c253 b7629dd96f98477cb006a2469dda8234 21a9f73fa5f34d4d81eac8122b13090a - - -] Registry client request GET /images/detail raised ServerError
2016-08-18 21:00:51.713 16900 ERROR glance.registry.client.v1.client Traceback (most recent call last):
2016-08-18 21:00:51.713 16900 ERROR glance.registry.client.v1.client File "/usr/lib/python2.7/dist-packages/glance/registry/client/v1/client.py", line 123, in do_request
.
.
.
2016-08-18 21:00:51.719 16900 ERROR glance.common.wsgi File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 87, in wrapped
2016-08-18 21:00:51.719 16900 ERROR glance.common.wsgi return func(self, method, url, body, headers)
2016-08-18 21:00:51.719 16900 ERROR glance.common.wsgi File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 539, in _do_request
2016-08-18 21:00:51.719 16900 ERROR glance.common.wsgi raise exception.ServerError()
2016-08-18 21:00:51.719 16900 ERROR glance.common.wsgi ServerError: The request returned 500 Internal Server Error.
2016-08-18 21:00:51.719 16900 ERROR glance.common.wsgi
2016-08-18 21:00:51.734 16900 INFO eventlet.wsgi.server [req-9a3d1026-422d-4d75-a4c6-e63e4543c253 b7629dd96f98477cb006a2469dda8234 21a9f73fa5f34d4d81eac8122b13090a - - -] 192.168.22.49 - - [18/Aug/2016 21:00:51] "GET /v1/images/detail?is_public=none&limit=20 HTTP/1.1" 500 454 0.079381
Meanwhile with the other calls:
2016-08-19 16:26:15.246 16900 INFO eventlet.wsgi.server [req-df8bac94-579f-4586-bf6d-29633112378d b7629dd96f98477cb006a2469dda8234 21a9f73fa5f34d4d81eac8122b13090a - - -] 192.168.22.49 - - [19/Aug/2016 16:26:15] "GET /v2/schemas/image HTTP/1.1" 200 4356 0.012934
2016-08-19 16:27:53.399 16900 INFO eventlet.wsgi.server [req-ab13b330-3fb8-4a25-b3e1-d84ffe963718 b7629dd96f98477cb006a2469dda8234 21a9f73fa5f34d4d81eac8122b13090a - - -] 192.168.22.49 - - [19/Aug/2016 16:27:53] "GET /v2/images HTTP/1.1" 200 867 0.889816