Need better error message when nova fails to connect to memcache

Bug #1715785 reported by Philip Choi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
Low
Stephen Finucane

Bug Description

Was trying to troubleshoot a nova-consoleauth token authentication issue and found that it didn't provide enough information to pinpoint a memcache connection issue. I think it will benefit everyone if we can slightly improve the cache_utils.py code if we can add some verbosity there, for example like stating connection failure to memcache or key looksup failure.

Here is an example of nova-consoleauth.log, it just mentioned about token checks failure but didn't mention any potential cause about it.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2017-09-08 01:55:50.789 45899 INFO nova.consoleauth.manager [req-920d262b-6008-401c-bf4f-97f2a4d6e8df 4c5cfa26e24440dab733fa62d35e510d d8e10a9adc8c430aae6b1465eed37c10 - - -] Received Token: 59b8e706-f93c-437e-8a9a-1f00f2be0b17, {'instance_uuid': u'7d0e17e1-262f-4791-a0cd-bc593830f383', 'access_url': u'https://10.207.255.30:6082/spice_auto.html?token=59b8e706-f93c-437e-8a9a-1f00f2be0b17', 'token': u'59b8e706-f93c-437e-8a9a-1f00f2be0b17', 'last_activity_at': 1504835750.693094, 'internal_access_path': None, 'console_type': u'spice-html5', 'host': u'10.207.255.21', 'port': u'5901'}
2017-09-08 01:56:01.647 45899 INFO nova.consoleauth.manager [req-87741322-646d-4b1c-8b8e-f68c1e1ad89e - - - - -] Checking Token: 59b8e706-f93c-437e-8a9a-1f00f2be0b17, False
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

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/501928

Changed in nova:
assignee: nobody → Philip Choi (phchoi)
status: New → In Progress
Revision history for this message
Philip Choi (phchoi) wrote :

https://review.openstack.org/#/c/501928/ Proposing something like this, will this help?

Philip Choi (phchoi)
description: updated
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Stephen Finucane (<email address hidden>) on branch: master
Review: https://review.opendev.org/501928

Changed in nova:
assignee: Philip Choi (phchoi) → Stephen Finucane (stephenfinucane)
Changed in nova:
importance: Undecided → Low
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.