Bug 947535

Summary: nova commands fail with gnomekeyring IOError
Product: [Community] RDO Reporter: Eric Harney <eharney>
Component: python-novaclientAssignee: Jakub Ruzicka <jruzicka>
Status: CLOSED EOL QA Contact: yeylon <yeylon>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: apevec, bsettle, Jan.van.Eldik, jose.castro.leon, jruzicka, markmc, ndipanov, pbrady, p, rbowen, rbryant, srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-novaclient-2.13.0-1.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-23 21:47:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Eric Harney 2013-04-02 16:46:28 UTC
Description of problem:
nova commands fail with "ERROR:", adding --debug indicates problems with gnomekeyring.

Version-Release number of selected component (if applicable):
python-novaclient-2.11.1-2.fc19.noarch
(F18 w/ OpenStack Grizzly repo, following April 2 Test Day page)

How reproducible:
Happens repeatedly for this current setup.

Steps to Reproduce:
1.  Install w/ packstack on F18 (glance, cinder, nova, horizon, client -- no swift/nagios)
2.  Source keystonerc_admin as root user
3.  Run "nova list"

Additional info:
[root@localhost ~(keystone_admin)]# nova list
ERROR: 
[root@localhost ~(keystone_admin)]# nova --debug list
DEBUG (shell:739) 
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 736, in main
    OpenStackComputeShell().main(sys.argv[1:])
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 634, in main
    tenant_id, auth_token, management_url = (helper.tenant_id,
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 183, in tenant_id
    block = keyring.get_password('novaclient_auth', self._make_key())
  File "/usr/lib/python2.7/site-packages/keyring/core.py", line 34, in get_password
    return _keyring_backend.get_password(service_name, username)
  File "/usr/lib/python2.7/site-packages/keyring/backend.py", line 154, in get_password
    items = gnomekeyring.find_network_password_sync(username, service)
IOError
ERROR: 
[root@localhost ~(keystone_admin)]# rpm -qa \*nova\*
openstack-nova-scheduler-2013.1-0.11.rc1.fc19.noarch
openstack-nova-console-2013.1-0.11.rc1.fc19.noarch
openstack-nova-common-2013.1-0.11.rc1.fc19.noarch
openstack-nova-cert-2013.1-0.11.rc1.fc19.noarch
openstack-nova-compute-2013.1-0.11.rc1.fc19.noarch
openstack-nova-network-2013.1-0.11.rc1.fc19.noarch
openstack-nova-api-2013.1-0.11.rc1.fc19.noarch
python-novaclient-2.11.1-2.fc19.noarch
python-nova-2013.1-0.11.rc1.fc19.noarch
openstack-nova-conductor-2013.1-0.11.rc1.fc19.noarch
openstack-nova-novncproxy-0.4-5.fc19.noarch
[root@localhost ~(keystone_admin)]# ps ax | grep keyring
10683 pts/0    S+     0:00 grep --color=auto keyring
[root@localhost ~(keystone_admin)]# nova keypair-list
ERROR: 
[root@localhost ~(keystone_admin)]# nova image-list
ERROR:

Comment 1 Pádraig Brady 2013-04-02 17:15:55 UTC
This upstream fixes it:
https://review.openstack.org/#/c/25896/

Might be appropriate for stable too.

Comment 2 Jakub Ruzicka 2013-05-14 16:53:50 UTC
As this was filed against grizzly side repo, I changed Product to RDO.

This is fixed in 2.13.0 which is available in RDO.

Comment 4 Rich Bowen 2015-11-23 21:47:14 UTC
This is against an EOL'ed version. Also, earlier comment indicates that this is fixed.