Ask Your Question
0

glance image-list is fine, but nova image-list has HTTP 500 error

asked 2016-02-25 09:10:18 -0500

Sola gravatar image

updated 2016-02-26 01:55:28 -0500

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 ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2016-02-26 03:29:52 -0500

raimonbosch gravatar image

Have you checked out that all nova services are up and running on your controller? Check on /var/log/nova for possible extra errors. Or run "nova service-list".

edit flag offensive delete link more

Comments

Hi,

Of course, everything is up and no errors in logs, except above I've mentioned.

Sola gravatar imageSola ( 2016-02-26 04:16:57 -0500 )edit

I am struggling with nova service-list I get the following error ERROR (ClientException): Unknown Error (HTTP 500)

acatenac gravatar imageacatenac ( 2016-03-09 14:46:03 -0500 )edit
0

answered 2016-02-26 04:43:04 -0500

Sola gravatar image

updated 2016-02-26 05:42:10 -0500

Seems that I've found a some kind of workaround of this issue. Just comment out this setting:

vi /etc/glance/glance-registry.conf

[paste_deploy]

# flavor = keystone

And voilà :)

openstack image list
    +--------------------------------------+--------+
    | ID                                   | Name   |
    +--------------------------------------+--------+
    | 365a3e2b-7396-4c6d-a906-e59146ece2d4 | cirros |
    +--------------------------------------+--------+
glance image-list
    +--------------------------------------+--------+
    | ID                                   | Name   |
    +--------------------------------------+--------+
    | 365a3e2b-7396-4c6d-a906-e59146ece2d4 | cirros |
    +--------------------------------------+--------+
nova image-list
    +--------------------------------------+--------+--------+--------+
    | ID                                   | Name   | Status | Server |
    +--------------------------------------+--------+--------+--------+
    | 365a3e2b-7396-4c6d-a906-e59146ece2d4 | cirros | ACTIVE |        |
    +--------------------------------------+--------+--------+--------+
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-02-25 09:07:29 -0500

Seen: 947 times

Last updated: Feb 26 '16