Ask Your Question
2

OpenStack Kilo nova image-list HTTP 500 but glance works

asked 2015-08-21 08:59:33 -0500

stryker gravatar image

updated 2015-08-21 09:49:25 -0500

smaffulli gravatar image

Hi,

I have seen there have been quite a few questions with regards to this error / fault, however, none of them seem to help me in any way.

I'm installing OpenStack Kilo on Ubuntu 14.04.3 LTS.

When running "nova image-list" outputs the following:

nova image-list
ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-af55cd26-ff4c-473b-a0c0-77170c2f7672)

Where as "glance image-list" outputs as you'd expect.

I have set debug and verbose to true on glance-api.conf, glance-registry.conf and nova.conf. However, I am unable to find anything myself.

nova-api.log:

2015-08-21 13:44:07.242 3803 DEBUG keystoneclient.session [-] REQ: curl -g -i -X GET http://controller1.local:35357/v3/auth/tokens -H "X-Subject-Token: {SHA1}bd6100882575edf494364f279bdc560a17f8bf17" -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}a7426a3961fbe56825a3eb0591fbd36898cd55a0" _http_log_request /usr/lib/python2.7/dist-packages/keystoneclient/session.py:195
2015-08-21 13:44:07.279 3803 DEBUG keystoneclient.session [-] RESP: [200] content-length: 2320 x-subject-token: {SHA1}bd6100882575edf494364f279bdc560a17f8bf17 vary: X-Auth-Token keep-alive: timeout=5, max=100 server: Apache/2.4.7 (Ubuntu) connection: Keep-Alive date: Fri, 21 Aug 2015 13:44:07 GMT x-openstack-request-id: req-24ba7708-65c3-458d-8732-5d83433194f1 content-type: application/json x-distribution: Ubuntu 
RESP BODY: {"token": {"methods": ["password"], "roles": [{"id": "0f9fff04a78f421b86b081e2e9ab7cc3", "name": "admin"}], "expires_at": "2015-08-21T14:44:07.232196Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "1722f24100534db4a8965603789e45aa", "name": "admin"}, "catalog": "<removed>", "extras": {}, "user": {"domain": {"id": "default", "name": "Default"}, "id": "b57b02f6e7f34fc083f650b4bc7c0535", "name": "admin"}, "audit_ids": ["3vga4k0VT16P2dzFHd9O6A"], "issued_at": "2015-08-21T13:44:07.232244Z"}}
 _http_log_response /usr/lib/python2.7/dist-packages/keystoneclient/session.py:223
2015-08-21 13:44:07.281 3803 DEBUG nova.api.openstack.wsgi [req-af55cd26-ff4c-473b-a0c0-77170c2f7672 b57b02f6e7f34fc083f650b4bc7c0535 1722f24100534db4a8965603789e45aa - - -] Calling method '<bound method Controller.detail of <nova.api.openstack.compute.images.Controller object at 0x7f2b61b0b410>>' _process_stack /usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py:783
2015-08-21 13:44:07.434 3803 ERROR nova.api.openstack [req-af55cd26-ff4c-473b-a0c0-77170c2f7672 b57b02f6e7f34fc083f650b4bc7c0535 1722f24100534db4a8965603789e45aa - - -] Caught error: HTTPInternalServerError (HTTP 500)
2015-08-21 13:44:07.434 3803 TRACE nova.api.openstack Traceback (most recent call last):
2015-08-21 13:44:07.434 3803 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 125, in __call__
2015-08-21 13:44:07.434 3803 TRACE nova.api.openstack     return req.get_response(self.application)
2015-08-21 13:44:07.434 3803 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1320, in send
2015-08-21 13:44:07.434 3803 TRACE nova.api.openstack     application, catch_exc_info=False)
2015-08-21 13:44:07.434 3803 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1284, in call_application
2015-08-21 13:44:07.434 3803 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
2015-08-21 13:44:07.434 3803 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2015-08-21 13:44:07.434 3803 TRACE nova.api.openstack     return resp(environ, start_response)
2015-08-21 13:44:07.434 3803 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/keystonemiddleware/auth_token/__init__.py", line 634, in ...
(more)
edit retag flag offensive close merge delete

Comments

I have exact same issue. Have you got the answer?

Allen Liu gravatar imageAllen Liu ( 2015-10-20 09:43:41 -0500 )edit

3 answers

Sort by ยป oldest newest most voted
0

answered 2015-08-23 15:30:33 -0500

billy gravatar image

could you paste nova.conf config file here also to conform whether glance user role added in to admin tenant

edit flag offensive delete link more
0

answered 2015-08-22 01:48:19 -0500

RyanYMT gravatar image

HTTP 500, looks like one end cannot talk to another end which is nova and glance in this case. From log, nova has no problem reaching keystone.

  1. Are you setting glance and nova controller on separate hosts ?
  2. Have you set 'host' option under [glance] in nova.conf correctly ?
  3. It's saying non authenticated. Is flavor in glance-api and glance-registry configs set correctly ?
edit flag offensive delete link more
0

answered 2016-04-23 12:54:46 -0500

genious.c123@gmail.com gravatar image

updated 2016-04-23 12:56:10 -0500

Try this one : (login with " source keystonerc_admin" )

[root@openstack-vm ~]# nova image-list ERROR (CommandError): You must provide a username or user id via --os-username, --os-user-id, env[OS_USERNAME] or env[OS_USER_ID] [root@openstack-vm ~]# [root@openstack-vm ~]# source keystonerc_admin [root@openstack-vm ~(keystone_admin)]# nova image-list +--------------------------------------+--------+--------+--------+ | ID | Name | Status | Server | +--------------------------------------+--------+--------+--------+ | 42672133-7c7b-4692-b505-37af5bee78b1 | cirros | ACTIVE | | +--------------------------------------+--------+--------+--------+ [root@openstack-vm ~(keystone_admin)]#

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

3 followers

Stats

Asked: 2015-08-21 08:59:33 -0500

Seen: 1,170 times

Last updated: Apr 23 '16