Ask Your Question
0

openstack --help command throwing error "argument of type 'OSC_Config' is not iterable"

asked 2016-10-18 09:46:17 -0600

ankits gravatar image

updated 2016-10-18 09:48:27 -0600

On my ubuntu host after installing the openstack client and on firing the command openstack --help error is thrown.

error "argument of type 'OSC_Config' is not iterable"

This is happening with Mitaka on ubuntu trusty(14.04) This is happening all the openstack command. full debug info

 openstack --help --debug
WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils. This warning is caused by an out-of-date import in /usr/local/lib/python2.7/dist-packages/zaqarclient/queues/cli.py

START with options: [u'--help', u'--debug']
options: Namespace(access_token_endpoint='', access_token_type='', aodh_endpoint='', auth_type='', auth_url='', authorization_code='', cacert=None, cert='', client_id='', client_secret='***', cloud='', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=True, domain_id='', domain_name='', endpoint='', identity_provider='', insecure=None, inspector_api_version='1', inspector_url=None, interface='', key='', log_file=None, old_profile=None, openid_scope='', os_application_catalog_api_version='1', os_baremetal_api_version='1.6', os_beta_command=False, os_clustering_api_version='1', os_compute_api_version='', os_data_processing_api_version='1.1', os_data_processing_url='', os_dns_api_version='2', os_identity_api_version='3', os_image_api_version='', os_key_manager_api_version='1', os_network_api_version='', os_object_api_version='', os_orchestration_api_version='1', os_policy_api_version='1', os_project_id=None, os_project_name=None, os_queues_api_version='1.1', os_search_api_version='1', os_volume_api_version='', os_workflow_api_version='2', password='***', profile=None, project_domain_id='', project_domain_name='', project_id='', project_name='', protocol='', redirect_uri='', region_name='', roles='', timing=False, token='***', trust_id='', url='http://controller:35357/v3', user_domain_id='', user_domain_name='', user_id='', username='', verbose_level=3, verify=None)
Auth plugin token_endpoint selected
auth_config_hook(): {'auth_type': 'token_endpoint', 'beta_command': False, u'compute_api_version': u'2', u'orchestration_api_version': '1', u'database_api_version': u'1.0', 'data_processing_api_version': '1.1', 'inspector_api_version': '1', 'policy_api_version': '1', u'network_api_version': u'2', u'image_format': u'qcow2', u'image_api_version': u'2', 'clustering_api_version': '1', 'verify': True, 'application_catalog_api_version': '1', u'dns_api_version': '2', u'object_store_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': '1.6', 'queues_api_version': '1.1', 'auth': {'token': '***', 'project_domain_id': 'default'}, 'default_domain': 'default', 'debug': True, u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, 'timing': False, 'search_api_version': '1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': True, u'identity_api_version': '3', 'workflow_api_version': '2', u'volume_api_version': u'2', 'url': 'http://controller:35357/v3', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'interface': None, u'disable_vendor_agent': {}}
Deferring keystone exception: argument of type 'OSC_Config' is not iterable
argument of type 'OSC_Config' is not iterable
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 210, in run
    self.initialize_app(remainder)
  File "/opt/stack/python-openstackclient/openstackclient/shell.py", line 135, in initialize_app
    super(OpenStackShell, self).initialize_app(argv)
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/shell.py", line 395, in initialize_app
    argparse=self.options,
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/cli/client_config.py", line 168, in get_one_cloud
    **kwargs
  File "/usr/local/lib/python2.7/dist-packages/os_client_config/config.py", line 950, in get_one_cloud
    raise e
TypeError: argument of type 'OSC_Config' is not iterable
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/shell.py", line 135, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 210, in run
    self.initialize_app(remainder)
  File "/opt/stack/python-openstackclient/openstackclient/shell.py", line 135, in initialize_app
    super(OpenStackShell, self).initialize_app(argv)
  File "/usr/local/lib/python2 ...
(more)
edit retag flag offensive close merge delete

Comments

is anybody facing this. Deeply appreciate any help.

ankits gravatar imageankits ( 2016-10-18 11:14:45 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-10-28 07:54:51 -0600

vicbitter gravatar image

I resolved the issue by running the following command:

sudo pip install --upgrade python-openstackclient

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-10-18 09:46:17 -0600

Seen: 382 times

Last updated: Oct 18 '16