Ask Your Question

While creating user in keystone i got the error __init__() got an unexpected keyword argument 'print_empty' in openstack icehouse

asked 2014-04-23 07:35:13 -0600

saravanakumar gravatar image

updated 2014-04-23 07:37:12 -0600

I am trying to create user in keystone openstack icehouse, i got the followiing error .

keystone user-create --name='admin' --pass=********

__init__() got an unexpected keyword argument 'print_empty'

edit retag flag offensive close merge delete


need more information on this issue, could you paste the output of debug info by issue the following cmd?

keystone --debug user-create --name='admin' --pass=********
9lives gravatar image9lives ( 2014-04-23 09:13:23 -0600 )edit

Please find the below output of the command

keystone --debug user-create --name='admin' --pass=* DEBUG:keystoneclient.session:REQ: curl -i -X POST http://saravana-pc:35357/v2.0/users -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "X-Auth-Token: 1f5b4fb5e01463881ad0" -d '{"user": {"email": "" , "password": " * ", "enabled": true, "name": "admin", "tenantId": null}}' INFO:urllib3.connectionpool:Starting new HTTP connection (1): saravana-pc DEBUG:urllib3.connectionpool:Setting read timeout to 600.0 DEBUG:urllib3.connectionpool:"POST /v2.0/users HTTP/1.1" 200 148 DEBUG:keystoneclient.session:RESP: [200] CaseInsensitiveDict({'date': 'Wed, 23 Apr 2014 14:17:43 GMT', 'vary': 'X-Auth-Token', 'content-length': '148', 'content-type': 'application/json', 'x-distribution': 'Ubuntu'}) RESP BODY: {"user": {"username": "admin", "name": "admin", "enabled": true, "email": "" , "id": "c135ed83de6d43808191d457a61aed85"}}

__init__() got an unexpected keyword argument 'print_empty'

saravanakumar gravatar imagesaravanakumar ( 2014-04-23 09:22:25 -0600 )edit

ok, it seemed still not enough, could you paste the keystone.conf and the keystone.log as well for debugging? The keystone.conf is in the /etc/keystone while the keysonte.log is in /var/log/keystone.

9lives gravatar image9lives ( 2014-04-23 09:42:15 -0600 )edit

Please find pastebin link, which has keystone.conf and keystone-all.log

saravanakumar gravatar imagesaravanakumar ( 2014-04-23 09:57:03 -0600 )edit

Is your keystone DB correctly initialized? Which guide are you using? If not, try reading step 5.

If you already initialized the DB, do you have the same error with other users, let's say using:

 keystone --debug user-create --name='debug-test' --pass='debug' --email=''
Antonio G. gravatar imageAntonio G. ( 2014-04-23 10:09:07 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-04-25 18:44:50 -0600

9lives gravatar image

well i am not sure. could u try to create same user again and check if there is error or warning in keystone-all.log saying that the user is already in db?if this is the case this might mean a potential bug for icehouse keystone client. You can report one in .

edit flag offensive delete link more


Yes i am getting duplicate entry error in mysql, I have raised a bug, Please find the url.

saravanakumar gravatar imagesaravanakumar ( 2014-04-28 06:01:57 -0600 )edit

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


Asked: 2014-04-23 07:35:13 -0600

Seen: 1,228 times

Last updated: Apr 28 '14