Confusing error relating to quantum auth configuration

Bug #1052495 reported by Endre Karlson
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Oleg Bondarev

Bug Description

When nova.network.quantumv2._get_auth_token fails it gives an error like:

2012-09-18 15:27:06 DEBUG nova.network.quantumv2.api [-] get_instance_nw_info() for test from (pid=46409) _get_instance_nw_info /usr/lib/python2.7/dist-packages/nova/network/quantumv2/api.py:178
2012-09-18 15:27:06 ERROR nova.network.quantumv2 [-] _get_auth_token() failed
2012-09-18 15:27:06 TRACE nova.network.quantumv2 Traceback (most recent call last):
2012-09-18 15:27:06 TRACE nova.network.quantumv2 File "/usr/lib/python2.7/dist-packages/nova/network/quantumv2/__init__.py", line 38, in _get_auth_token
2012-09-18 15:27:06 TRACE nova.network.quantumv2 httpclient.authenticate()
2012-09-18 15:27:06 TRACE nova.network.quantumv2 File "/usr/lib/python2.7/dist-packages/quantumclient/client.py", line 209, in authenticate
2012-09-18 15:27:06 TRACE nova.network.quantumv2 def get_status_code(self, response):
2012-09-18 15:27:06 TRACE nova.network.quantumv2 File "/usr/lib/python2.7/dist-packages/quantumclient/client.py", line 176, in _extract_service_catalog
2012-09-18 15:27:06 TRACE nova.network.quantumv2 endpoint_type='adminURL')
2012-09-18 15:27:06 TRACE nova.network.quantumv2 File "/usr/lib/python2.7/dist-packages/quantumclient/client.py", line 176, in _extract_service_catalog
2012-09-18 15:27:06 TRACE nova.network.quantumv2 endpoint_type='adminURL')
2012-09-18 15:27:06 TRACE nova.network.quantumv2 File "/usr/lib/python2.7/bdb.py", line 48, in trace_dispatch
2012-09-18 15:27:06 TRACE nova.network.quantumv2 return self.dispatch_line(frame)
2012-09-18 15:27:06 TRACE nova.network.quantumv2 File "/usr/lib/python2.7/bdb.py", line 67, in dispatch_line
2012-09-18 15:27:06 TRACE nova.network.quantumv2 if self.quitting: raise BdbQuit
2012-09-18 15:27:06 TRACE nova.network.quantumv2 BdbQuit
2012-09-18 15:27:06 TRACE nova.network.quantumv2

Could this be changed into something more useful that gives the operator / person trying to figure out the error more of a clue to the error ? Like a Human Readable error?

I had a error where I had quantum_admin_tenant instead of quantum_admin_tenant_name which made me think that I was missing a endpoint in KS.

Changed in nova:
status: New → Confirmed
importance: Undecided → Medium
Changed in nova:
assignee: nobody → Oleg Bondarev (obondarev)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/25382

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/25382
Committed: http://github.com/openstack/nova/commit/2e30d22ad8b6e35cfffed6a883bf959009707d73
Submitter: Jenkins
Branch: master

commit 2e30d22ad8b6e35cfffed6a883bf959009707d73
Author: Oleg Bondarev <email address hidden>
Date: Tue Mar 26 16:37:28 2013 +0400

    Make more readable error msg on quantum client authentication failure

    Fixes bug 1052495

    Change-Id: Ia53d1f1db2b2b720509f29ae70b419f6cfabae17

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → havana-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-1 → 2013.2
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.