Failed to list volumes in latest devstack environment

Bug #1742052 reported by jiaopengju
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
New
Undecided
Zhao Chao

Bug Description

Steps to reproduce the bug in the latest devstack environment.

1. source devstack/openrc admin admin
2. cinder list

ERROR: 'Namespace' object has no attribute 'os_domain_id'

cinder --debug list
Traceback (most recent call last):
  File "/opt/stack/python-cinderclient/cinderclient/shell.py", line 988, in main
    for item in sys.argv[1:]])
  File "/opt/stack/python-cinderclient/cinderclient/shell.py", line 665, in main
    self.options)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/loading/cli.py", line 102, in load_from_argparse_arguments
    return plugin.load_from_options_getter(_getter, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/loading/base.py", line 182, in load_from_options_getter
    val = getter(opt)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/loading/cli.py", line 100, in _getter
    return getattr(namespace, 'os_%s' % opt.dest)
AttributeError: 'Namespace' object has no attribute 'os_domain_id'
DEBUG:cinderclient.shell:'Namespace' object has no attribute 'os_domain_id'
Traceback (most recent call last):
  File "/opt/stack/python-cinderclient/cinderclient/shell.py", line 988, in main
    for item in sys.argv[1:]])
  File "/opt/stack/python-cinderclient/cinderclient/shell.py", line 665, in main
    self.options)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/loading/cli.py", line 102, in load_from_argparse_arguments
    return plugin.load_from_options_getter(_getter, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/loading/base.py", line 182, in load_from_options_getter
    val = getter(opt)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/loading/cli.py", line 100, in _getter
    return getattr(namespace, 'os_%s' % opt.dest)
AttributeError: 'Namespace' object has no attribute 'os_domain_id'
ERROR: 'Namespace' object has no attribute 'os_domain_id'

At the same time, 'nova list', 'glance image-list' and 'openstack volume list' run correctly.

It seems ptyhon-cinderclient can not use password as OS_AUTH_TYPE, after runing command 'export OS_AUTH_TYPE=keystone', 'cinder list' works ok, but 'nova list', 'glance image-list' and 'openstack volume list' failed with 'The plugin keystone could not be found'.

Zhao Chao (zhaochao1984)
Changed in cinder:
assignee: nobody → Zhao Chao (zhaochao1984)
status: New → In Progress
Eric Harney (eharney)
Changed in cinder:
status: In Progress → New
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.