nova credentials fails when using cached token in keyring

Bug #1039572 reported by Byron McCollum
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
High
Joe Gordon

Bug Description

Version: Folsom F3

root@compute:~# nova credentials
Please input your password for the keyring
ERROR: 'HTTPClient' object has no attribute 'service_catalog'
root@compute:~# nova --no_cache credentials
+------------------+----------------------------------+
| User Credentials | Value |
+------------------+----------------------------------+
| id | a3d198538d4b4fbc87c1469ac6ebffe9 |
| name | myadmin |
| roles | [{u'name': u'admin'}] |
| roles_links | [] |
| username | myadmin |
+------------------+----------------------------------+
+---------+------------------------------------------------------------------------------------------------------------+
| Token | Value |
+---------+------------------------------------------------------------------------------------------------------------+
| expires | 2012-08-22T14:50:57Z |
| id | 077eb814f0474041a06221a0529d1cd1 |
| tenant | {u'enabled': True, u'id': u'9bec454755c64d42a6d55157064dd26c', u'name': u'MyTenant', u'description': None} |
+---------+------------------------------------------------------------------------------------------------------------+

affects: nova → python-novaclient
Revision history for this message
Byron McCollum (byron-mccollum) wrote :

It seems that after the token has expired, a new token is never fetched and stored in the keyring. Removing the keyring and trying again succeeds.

root@compute:~# rm crypted_pass.cfg
root@compute:~# nova credentials
Please set a password for your new keyring
Password (again):
Please input your password for the keyring
+------------------+----------------------------------+
| User Credentials | Value |
+------------------+----------------------------------+
| id | a3d198538d4b4fbc87c1469ac6ebffe9 |
| name | myadmin |
| roles | [{u'name': u'admin'}] |
| roles_links | [] |
| username | myadmin |
+------------------+----------------------------------+
+---------+------------------------------------------------------------------------------------------------------------+
| Token | Value |
+---------+------------------------------------------------------------------------------------------------------------+
| expires | 2012-08-22T15:03:49Z |
| id | 7716e1a942664a159966fd9d93e3617a |
| tenant | {u'enabled': True, u'id': u'9bec454755c64d42a6d55157064dd26c', u'name': u'MyTenant', u'description': None} |
+---------+------------------------------------------------------------------------------------------------------------+

Revision history for this message
Joe Gordon (jogo) wrote :

There is an abandoned patch forthis https://review.openstack.org/#/c/35526/

Changed in python-novaclient:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Joe Gordon (jogo) wrote :
Changed in python-novaclient:
assignee: nobody → Joe Gordon (jogo)
melanie witt (melwitt)
Changed in python-novaclient:
status: Confirmed → Fix Committed
Revision history for this message
melanie witt (melwitt) wrote :

novaclient 2.16.0 released on 2/26/2014

Changed in python-novaclient:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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