glance image-list is fine, but nova image-list has HTTP 500 error
Hi, all
I've configured HA Openstack Liberty with two controllers and compute/storage nodes with CEPH backend. OS installed everywhere is CentOS 7.1
Everything is fine, except one thing - the output from the "nova image-list" command throwing ClientException.
Seems that I have the same issue as described here https://ask.openstack.org/en/question/86111/glance-image-list-is-fine-but-nova-image-list-error/ (https://ask.openstack.org/en/question...) and here https://ask.openstack.org/en/question/88386/nova-cannot-get-ceph-image-in-liberty/ (https://ask.openstack.org/en/question...)
[root@vm-controller1 nova]# openstack image list
+--------------------------------------+--------+
| ID | Name |
+--------------------------------------+--------+
| 365a3e2b-7396-4c6d-a906-e59146ece2d4 | cirros |
+--------------------------------------+--------+
[root@vm-controller1 nova]# glance image-list
+--------------------------------------+--------+
| ID | Name |
+--------------------------------------+--------+
| 365a3e2b-7396-4c6d-a906-e59146ece2d4 | cirros |
+--------------------------------------+--------+
[root@vm-controller1 nova]# nova image-list
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-f0c22157-0d40-4ee7-b0be-4d9bca51f143)
Tried following:
1) On the Controller nodes: vi /etc/nova/nova.conf
[glance] api_servers = http://10.7.0.139:9292
2) On the Controller nodes: vi /etc/glance/glance-api.conf
[DEFAULT] registry_host = 10.7.0.139
3) On the Controller nodes: vi /etc/glance/glance-cache.conf
[DEFAULT] registry_host = 10.7.0.139
4) Double checked all passwords,
5) Changed keystone API from V2 to V3 as described here - http://www.cloudkb.net/how-to-change-keystone-api-v2-v3/ (http://www.cloudkb.net/how-to-change-...)
Nothing helped and error still persists. Output from the nova-api.log:
2016-02-25 17:48:53.265 6274 INFO nova.osapi_compute.wsgi.server [req-f4b90591-3408-40c1-8c3a-8f6ea29f530e b52d25c57f244c988f04aa6da43dd9f0 292b43fbdc014727a4ec3746f7a7239e - - -] 10.7.0.135 "GET /v2/ HTTP/1.1" status: 200 len: 583 time: 1.1227880
2016-02-25 17:48:53.764 6274 ERROR nova.api.openstack.extensions [req-f0c22157-0d40-4ee7-b0be-4d9bca51f143 b52d25c57f244c988f04aa6da43dd9f0 292b43fbdc014727a4ec3746f7a7239e - - -] Unexpected exception in API method
2016-02-25 17:48:53.764 6274 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2016-02-25 17:48:53.764 6274 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 478, in wrapped
2016-02-25 17:48:53.764 6274 ERROR nova.api.openstack.extensions return f(*args, **kwargs)
2016-02-25 17:48:53.764 6274 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/images.py", line 145, in detail
2016-02-25 17:48:53.764 6274 ERROR nova.api.openstack.extensions **page_params)
2016-02-25 17:48:53.764 6274 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/api.py", line 68, in get_all
2016-02-25 17:48:53.764 6274 ERROR nova.api.openstack.extensions return session.detail(context, **kwargs)
2016-02-25 17:48:53.764 6274 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 284, in detail
2016-02-25 17:48:53.764 6274 ERROR nova.api.openstack.extensions for image in images:
2016-02-25 17:48:53.764 6274 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/glanceclient/v1/images.py", line 254, in list
2016-02-25 17:48:53.764 6274 ERROR nova.api.openstack.extensions for image in paginate(params, return_request_id):
2016-02-25 17:48:53.764 6274 ERROR nova.api ...