nova credentials fails when using cached token in keyring
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 | a3d198538d4b4fb
| name | myadmin |
| roles | [{u'name': u'admin'}] |
| roles_links | [] |
| username | myadmin |
+------
+------
| Token | Value |
+------
| expires | 2012-08-
| id | 077eb814f047404
| tenant | {u'enabled': True, u'id': u'9bec454755c64
+------
affects: | nova → python-novaclient |
Changed in python-novaclient: | |
status: | Confirmed → Fix Committed |
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 ------- -----+- ------- ------- ------- ------- -----+ ------- -----+- ------- ------- ------- ------- -----+ c87c1469ac6ebff e9 | ------- -----+- ------- ------- ------- ------- -----+ ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- + ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- + 22T15:03: 49Z | 59966fd9d93e361 7a | d42a6d55157064d d26c', u'name': u'MyTenant', u'description': None} | ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- +
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 | a3d198538d4b4fb
| name | myadmin |
| roles | [{u'name': u'admin'}] |
| roles_links | [] |
| username | myadmin |
+------
+------
| Token | Value |
+------
| expires | 2012-08-
| id | 7716e1a942664a1
| tenant | {u'enabled': True, u'id': u'9bec454755c64
+------