Ask Your Question
0

I can't create User on keyston

asked 2015-10-16 05:03:34 -0600

Lehoan gravatar image

Hi support Openstack. I have Problems when creating keyston user-create. I can't create user glance. You can see pic here http://www.upsieutoc.com/image/WY8m Plz, can you help me fix this problem.

thank you.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2015-10-16 20:30:31 -0600

Lehoan gravatar image

I can't create User on keyston

edit flag offensive delete link more
0

answered 2015-10-19 01:55:17 -0600

latest_release gravatar image

You may need to install the missing module wrapt with this command sudo pip install --upgrade wrapt then try to create the user again.

NOTE If you can you can just try to create users with python scripts. I find that to be easy than to run commandline.

edit flag offensive delete link more
0

answered 2015-10-19 02:20:13 -0600

dbaxps gravatar image

Follow http://docs.openstack.org/developer/p...

[root@CentOS71503Server ~]# python
Python 2.7.5 (default, Jun 24 2015, 00:41:19) 
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from keystoneclient.v2_0 import client
>>> token = '0fc451ccff92404380ab031b79d34c97'
>>> endpoint = 'http://192.168.1.112:35357/v2.0'
>>> keystone = client.Client(token=token, endpoint=endpoint)
>>> keystone.tenants.create(tenant_name="openstackDemo1",
... description="Default Tenant", enabled=True)
<Tenant {u'enabled': True, u'description': u'Default Tenant', u'name': u'openstackDemo1', u'id': u'd4785c133ae245989a65473cb3444466'}>
>>> tenants = keystone.tenants.list()
>>> my_tenant = [x for x in tenants if x.name=='openstackDemo1']
>>> keystone.tenants.list()
[<Tenant {u'enabled': True, u'description': u'default tenant', u'name': u'demo', u'id': u'248d19ccd0b94cf9b8fcc25f4f083c08'}>, <Tenant {u'enabled': True, u'description': u'admin tenant', u'name': u'admin', u'id': u'60e7adbdb1ff449185bb58ffb7f6cc9e'}>, <Tenant {u'enabled': True, u'description': u'Default Tenant', u'name': u'openstackDemo1', u'id': u'd4785c133ae245989a65473cb3444466'}>, <Tenant {u'enabled': True, u'description': u'Tenant for the openstack services', u'name': u'services', u'id': u'ea898b1113fb4b03875985918cf58a5a'}>]
>>> my_user = keystone.users.create(name=**"adminUser"**, password="secretword", 
... tenant_id="d4785c133ae245989a65473cb3444466" )
>>> keystone.users.list()
[<User {u'username': u'glance', u'id': u'059bd0799fd344d1966a41c87cc3d91d', u'enabled': True, u'name': u'glance', u'email': u'glance@localhost'}>, <User {u'username': u'neutron', u'id': u'3dd38230fe794a2cbae2ddc0d5258231', u'enabled': True, u'name': u'neutron', u'email': u'neutron@localhost'}>, <User {u'username': u'cinder', u'id': u'60d890ec924d458dabf1875520e0d304', u'enabled': True, u'name': u'cinder', u'email': u'cinder@localhost'}>, <User {u'username': u'demo', u'enabled': True, u'name': u'demo', u'id': u'8ba153fc5fe947e499edf0a802395f5e'}>, <User {u'username': u'swift', u'id': u'b6c10013dd4145e4af49d8a00651fbad', u'enabled': True, u'name': u'swift', u'email': u'swift@localhost'}>, <User {u'username': u'admin', u'id': u'c6c792b2f0824273be5d90dcca1f7701', u'enabled': True, u'name': u'admin', u'email': u'root@localhost'}>, <User {u'username': u'ceilometer', u'id': u'c9bf51bec9a744e9832046b255718ae4', u'enabled': True, u'name': u'ceilometer', u'email': u'ceilometer@localhost'}>, <User {u'username': u'adminUser', u'name': u'adminUser', u'enabled': True, u'tenantId': u'd4785c133ae245989a65473cb3444466', u'id': u'ec8ecc6006e74690b8c7b0d0c96511e0', u'email': None}>, <User {u'username': u'nova', u'id': u'fa7bb897eebb4dd59ddab5c43cab3119', u'enabled': True, u'name': u'nova', u'email': u'nova@localhost'}>]
>>>
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: 2015-10-16 05:03:06 -0600

Seen: 150 times

Last updated: Oct 19 '15