Ask Your Question
0

not able to create a user using openstack

asked 2016-10-16 16:05:10 -0500

ankits gravatar image

updated 2016-10-20 18:47:58 -0500

on trying to create a identity service with openstack command i am getting following error.

 **keystone exception: argument of type 'OSC_Config' is not iterable argument of type 'OSC_Config' is not iterable**

Environment variable set :

export OS_IDENTITY_API_VERSION=3

export OS_TOKEN=64a1e51288c588600323

export OS_URL=http://controller:35357/v3

root@ubuntuprod-3:~# openstack service create   --name keystone --description --debug "OpenStack Identity" identity
WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils
START with options: [u'service', u'create', u'--name', u'keystone', u'--description', u'--debug', u'OpenStack Identity', u'identity']
options: Namespace(access_key='', access_secret='***', access_token='***', access_token_endpoint='', access_token_type='', aodh_endpoint='', auth_type='', auth_url='', authorization_code='', cacert=None, cert='', client_id='', client_secret='***', cloud='', consumer_key='', consumer_secret='***', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, discovery_endpoint='', domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', 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', passcode='', 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': False, 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 250, in run
    self.initialize_app(remainder)

  File "/usr/local/lib/python2.7/dist-packages/openstackclient/shell.py", line 133, 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 250, in run
    self.initialize_app(remainder)

  File "/usr/local/lib/python2.7/dist-packages/openstackclient ...
(more)
edit retag flag offensive close merge delete

Comments

Is anyone facing the similar issue with latest installation over mitaka for openstack client. Any help here.

ankits gravatar imageankits ( 2016-10-17 03:57:45 -0500 )edit

you are not creating a user but a service. To create the initial keystone DB entries, you need to use the admin token as explained in http://docs.openstack.org/mitaka/inst.... Is that what you do? I certainly have no such problems with Mitaka.

Bernd Bausch gravatar imageBernd Bausch ( 2016-10-17 05:15:11 -0500 )edit

@Bernd Bausch

I did exactly the same.

below is my env output:

OS_IDENTITY_API_VERSION=3 OS_TOKEN=64a1e51288c588600323 OS_URL=http://controller:35357/v3

I am getting below error on using openstack service create command : argument of type 'OSC_Config' is not iterable

ankits gravatar imageankits ( 2016-10-17 05:50:39 -0500 )edit

@Bernd Bausch

I did exactly the same please see the below output in answer.

ankits gravatar imageankits ( 2016-10-17 05:51:40 -0500 )edit

Which distro RDO , Fuel or whichever ?

dbaxps gravatar imagedbaxps ( 2016-10-17 13:21:01 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-10-17 05:49:45 -0500

ankits gravatar image

updated 2016-10-17 13:55:05 -0500

@Bernd Bausch

I did exactly the same.

below is my env output: OS_IDENTITY_API_VERSION=3 OS_TOKEN=64a1e51288c588600323 OS_URL=http://controller:35357/v3

I am getting below output :

root@ubuntuprod-3:/opt/stack# openstack service create --name keystone --description "OpenStack Identity" identity

WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils

argument of type 'OSC_Config' is not iterable

I am missing something ?

Pasting the full output.

root@ubuntuprod-3:/opt/stack# openstack service create --debug --name keystone --description "OpenStack Identity" identity

WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils START with options: [u'service', u'create', u'--debug', u'--name', u'keystone', u'--description', u'OpenStack Identity', u'identity']

options: Namespace(access_key='', access_secret='', access_token='', access_token_endpoint='', access_token_type='', aodh_endpoint='', auth_type='', auth_url='', authorization_code='', cacert=None, cert='', client_id='', client_secret='', cloud='', consumer_key='', consumer_secret='', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, discovery_endpoint='', domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', 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', passcode='', 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': False, 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 250, in run self.initialize_app(remainder)

File "/usr/local/lib/python2.7/dist-packages/openstackclient/shell.py", line 133, 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 ... (more)

edit flag offensive delete link more
0

answered 2016-10-28 07:58:13 -0500

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

Stats

Asked: 2016-10-16 13:26:23 -0500

Seen: 450 times

Last updated: Oct 20 '16