keystone admin user creation failed (HTTP 500)
It is failing with the below error
[root@controller ~]# keystone user-create --name=admin --pass=paswo --email=abcd@em.com An unexpected error prevented the server from fulfilling your request. (HTTP 500)
Debug information is as below:
[root@controller ~]# keystone --debug user-create --name=admin --pass=paswo --email=abcd@em.com
DEBUG:keystoneclient.session:REQ: curl -i -X POST http://controller:35357/v2.0/users -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "X-Auth-Token: e89314d0e157ea9f07a2" -d '{"user": {"email": "abcd@em.com", "password": "paswo", "enabled": true, "name": "admin", "tenantId": null}}'
INFO:urllib3.connectionpool:Starting new HTTP connection (1): controller
DEBUG:urllib3.connectionpool:"POST /v2.0/users HTTP/1.1" 500 143
DEBUG:keystoneclient.session:RESP: [500] {'date': 'Thu, 26 Feb 2015 12:33:19 GMT', 'content-type': 'application/json', 'content-length': '143', 'vary': 'X-Auth-Token'}
RESP BODY: {"error": {"message": "An unexpected error prevented the server from fulfilling your request.", "code": 500, "title": "Internal Server Error"}}
DEBUG:keystoneclient.session:Request returned failure status: 500 An unexpected error prevented the server from fulfilling your request. (HTTP 500)
post the output of /var/log/keystone/keystone.log
Hi following is the response received:
-bash: /var/log/keystone/keystone.log: Permission denied and when I opened that file the error is as follows CRITICAL keystone [-] OperationalError: (OperationalError) (1045, "Access denied for user 'keystone'@'localhost' (using password: YES)") None None