Verify operation in Installation Guide

Bug #1556181 reported by ngenibre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Invalid
Undecided
Unassigned

Bug Description

[root@chavloli001 ~]# 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-72954e6b-8014-4706-9b9a-d3ad549c9354)
[root@chavloli001 ~]# openstack endpoint list
+----------------------------------+-----------+--------------+--------------+---------+-----------+------------------------------------------+
| ID | Region | Service Name | Service Type | Enabled | Interface | URL |
+----------------------------------+-----------+--------------+--------------+---------+-----------+------------------------------------------+
| 053bd155c98c4a3ab993b0be67a9d36a | RegionOne | nova | compute | True | admin | http://chavloli001:8774/v2/%(tenant_id)s |
| 0d186f3a895a4eee9823b4103f724b27 | RegionOne | glance | image | True | admin | http://chavloli001:9292 |
| 1e4f174327654bde9e883a66d3287c65 | RegionOne | nova | compute | True | internal | http://chavloli001:8774/v2/%(tenant_id)s |
| 2f8fcc2efc59476493d08ad5998e600a | RegionOne | glance | image | True | public | http://chavloli001:9292 |
| 6ad67724747a4842b8c3c9c4439cc680 | RegionOne | keystone | identity | True | admin | http://chavloli001:35357/v2.0 |
| 7895884a79a7427d8445246603748c72 | RegionOne | glance | image | True | internal | http://chavloli001:9292 |
| ad1a9b4e7c324081a5b100809fe3db94 | RegionOne | keystone | identity | True | public | http://chavloli001:5000/v2.0 |
| c192b877a2484b509c020b9482bafe80 | RegionOne | nova | compute | True | public | http://chavloli001:8774/v2/%(tenant_id)s |
| e43f20bc0a4648aba6b0bc1ce6d40c53 | RegionOne | keystone | identity | True | internal | http://chavloli001:5000/v2.0 |
+----------------------------------+-----------+--------------+--------------+---------+-----------+------------------------------------------+

Following the documentation and nova image-list will not work. I'm guessing you need to switch to keystone API v3 in order to get nova image-list working:

https://ask.openstack.org/en/question/86111/glance-image-list-is-fine-but-nova-image-list-error/

Nicolas

-----------------------------------
Release: 0.1 on 2016-03-10 18:15
SHA: 6e63f5a384c4ee887e349bd3daf81080dd1fcb46
Source: http://git.openstack.org/cgit/openstack/openstack-manuals/tree/doc/install-guide/source/nova-verify.rst
URL: http://docs.openstack.org/liberty/install-guide-rdo/nova-verify.html

Revision history for this message
ngenibre (leosum) wrote :
Download full text (4.1 KiB)

output of nova-api logs:

2016-03-11 11:14:36.473 19261 INFO nova.osapi_compute.wsgi.server [req-888b9029-31b6-4273-9321-d7e322e5f09e bf168041f9c5446b81bca4d737f547e7 a86464f29aac4ec5848fb481e6362fcb - - -] 10.123.35.173 "GET /v2/ HTTP/1.1" status: 200 len: 573 time: 0.0317960
2016-03-11 11:14:36.680 19261 ERROR nova.api.openstack.extensions [req-8163730d-c0c4-4dec-9d55-e69442e0888e bf168041f9c5446b81bca4d737f547e7 a86464f29aac4ec5848fb481e6362fcb - - -] Unexpected exception in API method
2016-03-11 11:14:36.680 19261 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2016-03-11 11:14:36.680 19261 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 478, in wrapped
2016-03-11 11:14:36.680 19261 ERROR nova.api.openstack.extensions return f(*args, **kwargs)
2016-03-11 11:14:36.680 19261 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/images.py", line 145, in detail
2016-03-11 11:14:36.680 19261 ERROR nova.api.openstack.extensions **page_params)
2016-03-11 11:14:36.680 19261 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/api.py", line 68, in get_all
2016-03-11 11:14:36.680 19261 ERROR nova.api.openstack.extensions return session.detail(context, **kwargs)
2016-03-11 11:14:36.680 19261 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 284, in detail
2016-03-11 11:14:36.680 19261 ERROR nova.api.openstack.extensions for image in images:
2016-03-11 11:14:36.680 19261 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/glanceclient/v1/images.py", line 254, in list
2016-03-11 11:14:36.680 19261 ERROR nova.api.openstack.extensions for image in paginate(params, return_request_id):
2016-03-11 11:14:36.680 19261 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/glanceclient/v1/images.py", line 238, in paginate
2016-03-11 11:14:36.680 19261 ERROR nova.api.openstack.extensions images, resp = self._list(url, "images")
2016-03-11 11:14:36.680 19261 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/glanceclient/v1/images.py", line 63, in _list
2016-03-11 11:14:36.680 19261 ERROR nova.api.openstack.extensions resp, body = self.client.get(url)
2016-03-11 11:14:36.680 19261 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 280, in get
2016-03-11 11:14:36.680 19261 ERROR nova.api.openstack.extensions return self._request('GET', url, **kwargs)
2016-03-11 11:14:36.680 19261 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 272, in _request
2016-03-11 11:14:36.680 19261 ERROR nova.api.openstack.extensions resp, body_iter = self._handle_response(resp)
2016-03-11 11:14:36.680 19261 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/glanceclient/common/http.py", line 93, in _handle_response
2016-03-11 11:14:36.680 19261 ERROR nova.api.openstack.extensions raise exc.from_respo...

Read more...

Revision history for this message
ngenibre (leosum) wrote :

The issue is with setting up the flavor in the registry and api configuration. After commenting the flavor = keystone ( http://docs.openstack.org/developer/glance/authentication.html) it worked.

Please update the documentation.

Revision history for this message
Matt Kassawara (ionosphere80) wrote :
Changed in openstack-manuals:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.