Public bug reported: I started installing OpenStack Liberty release using virtual machines with Ubuntu 14.04 (for controller and compute as described in Liberty installation guide), the installed services before I started getting the exception are keystone, glance and compute, one of the commands suggested in the installation guide to verify nova installation is "nova image-list" (The last command in Verify operation section for nova), but when I run "nova image-list" I got the following message:
# 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.HTTPUnauthorized'> (HTTP 500) (Request-ID: req-c910e363-0ba5-4159-b5cd-f0d471387a79) For nova-api logs, the logged lines are as follows: 2016-03-03 14:44:04.055 2848 INFO nova.osapi_compute.wsgi.server [req-33493148-71af-47e4-8f28-8214877c3221 45065ecf46d84026a8dc482be5df7394 efe669657d19466c9280a96df4699bf2 - - -] 10.10.10.11 "GET /v2/ HTTP/1.1" status: 200 len: 572 time: 0.1457450 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions [req-c910e363-0ba5-4159-b5cd-f0d471387a79 45065ecf46d84026a8dc482be5df7394 efe669657d19466c9280a96df4699bf2 - - -] Unexpected exception in API method 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions Traceback (most recent call last): 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/extensions.py", line 478, in wrapped 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions return f(*args, **kwargs) 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/images.py", line 145, in detail 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions **page_params) 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/api.py", line 68, in get_all 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions return session.detail(context, **kwargs) 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 284, in detail 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions for image in images: 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 254, in list 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions for image in paginate(params, return_request_id): 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 238, in paginate 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions images, resp = self._list(url, "images") 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 63, in _list 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions resp, body = self.client.get(url) 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 280, in get 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions return self._request('GET', url, **kwargs) 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 272, in _request 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions resp, body_iter = self._handle_response(resp) 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 93, in _handle_response 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions raise exc.from_response(resp, resp.content) 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions HTTPUnauthorized: 401 Unauthorized: Authentication required (HTTP 401) 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions 2016-03-03 14:44:06.388 2848 INFO nova.api.openstack.wsgi [req-c910e363-0ba5-4159-b5cd-f0d471387a79 45065ecf46d84026a8dc482be5df7394 efe669657d19466c9280a96df4699bf2 - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. <class 'glanceclient.exc.HTTPUnauthorized'> 2016-03-03 14:44:06.391 2848 INFO nova.osapi_compute.wsgi.server [req-c910e363-0ba5-4159-b5cd-f0d471387a79 45065ecf46d84026a8dc482be5df7394 efe669657d19466c9280a96df4699bf2 - - -] 10.10.10.11 "GET /v2/efe669657d19466c9280a96df4699bf2/images/detail HTTP/1.1" status: 500 len: 438 time: 1.6221261 ** Affects: nova Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1552736 Title: nova image-list command exception (glanceclient.exc.HTTPUnauthorized) Status in OpenStack Compute (nova): New Bug description: I started installing OpenStack Liberty release using virtual machines with Ubuntu 14.04 (for controller and compute as described in Liberty installation guide), the installed services before I started getting the exception are keystone, glance and compute, one of the commands suggested in the installation guide to verify nova installation is "nova image-list" (The last command in Verify operation section for nova), but when I run "nova image-list" I got the following message: # 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.HTTPUnauthorized'> (HTTP 500) (Request-ID: req-c910e363-0ba5-4159-b5cd-f0d471387a79) For nova-api logs, the logged lines are as follows: 2016-03-03 14:44:04.055 2848 INFO nova.osapi_compute.wsgi.server [req-33493148-71af-47e4-8f28-8214877c3221 45065ecf46d84026a8dc482be5df7394 efe669657d19466c9280a96df4699bf2 - - -] 10.10.10.11 "GET /v2/ HTTP/1.1" status: 200 len: 572 time: 0.1457450 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions [req-c910e363-0ba5-4159-b5cd-f0d471387a79 45065ecf46d84026a8dc482be5df7394 efe669657d19466c9280a96df4699bf2 - - -] Unexpected exception in API method 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions Traceback (most recent call last): 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/extensions.py", line 478, in wrapped 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions return f(*args, **kwargs) 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/images.py", line 145, in detail 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions **page_params) 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/api.py", line 68, in get_all 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions return session.detail(context, **kwargs) 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 284, in detail 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions for image in images: 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 254, in list 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions for image in paginate(params, return_request_id): 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 238, in paginate 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions images, resp = self._list(url, "images") 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 63, in _list 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions resp, body = self.client.get(url) 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 280, in get 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions return self._request('GET', url, **kwargs) 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 272, in _request 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions resp, body_iter = self._handle_response(resp) 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 93, in _handle_response 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions raise exc.from_response(resp, resp.content) 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions HTTPUnauthorized: 401 Unauthorized: Authentication required (HTTP 401) 2016-03-03 14:44:06.368 2848 ERROR nova.api.openstack.extensions 2016-03-03 14:44:06.388 2848 INFO nova.api.openstack.wsgi [req-c910e363-0ba5-4159-b5cd-f0d471387a79 45065ecf46d84026a8dc482be5df7394 efe669657d19466c9280a96df4699bf2 - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. <class 'glanceclient.exc.HTTPUnauthorized'> 2016-03-03 14:44:06.391 2848 INFO nova.osapi_compute.wsgi.server [req-c910e363-0ba5-4159-b5cd-f0d471387a79 45065ecf46d84026a8dc482be5df7394 efe669657d19466c9280a96df4699bf2 - - -] 10.10.10.11 "GET /v2/efe669657d19466c9280a96df4699bf2/images/detail HTTP/1.1" status: 500 len: 438 time: 1.6221261 To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1552736/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp