Ask Your Question
0

No handlers could be found for logger "keystoneclient.client"

asked 2013-11-16 23:35:36 -0500

rony gravatar image

I was doing a test deployment on openstack following the link "http://docs.openstack.org/folsom/basic-install/content/basic-install_controller.html". The issue i am facing is; while trying to create a tenant it's failing with a keystoneclient.exception. Pasted below is a snippet form the logs. How do i go about fixing this? Unless i get this working i cannot proceed.

From logs: test@folsom-controller:~/devstack$ keystone --debug tenant-create --name=admin connect: (localhost, 35357) send: 'POST /v2.0/tenants HTTP/1.1\r\nHost: localhost:35357\r\nContent-Length: 67\r\nx-auth-token: test\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: python-keystoneclient\r\n\r\n{"tenant": {"enabled": true, "name": "admin", "description": null}}' reply: 'HTTP/1.1 500 Internal Server Error\r\n' header: Vary: X-Auth-Token header: Content-Type: application/json header: Date: Sun, 17 Nov 2013 05:26:47 GMT header: Transfer-Encoding: chunked No handlers could be found for logger "keystoneclient.client" Traceback (most recent call last): File "/usr/bin/keystone", line 9, in <module> load_entry_point('python-keystoneclient==0.1.3', 'console_scripts', 'keystone')() File "/usr/lib/python2.7/dist-packages/keystoneclient/shell.py", line 410, in main OpenStackIdentityShell().main(sys.argv[1:]) File "/usr/lib/python2.7/dist-packages/keystoneclient/shell.py", line 354, in main args.func(self.cs, args) File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/shell.py", line 126, in do_tenant_create enabled=utils.string_to_bool(args.enabled)) File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/tenants.py", line 83, in create return self._create('/tenants', params, "tenant") File "/usr/lib/python2.7/dist-packages/keystoneclient/base.py", line 82, in _create resp, body = self.api.post(url, body=body) File "/usr/lib/python2.7/dist-packages/keystoneclient/client.py", line 180, in post return self._cs_request(url, 'POST', *kwargs) File "/usr/lib/python2.7/dist-packages/keystoneclient/client.py", line 161, in _cs_request *kwargs) File "/usr/lib/python2.7/dist-packages/keystoneclient/client.py", line 141, in request raise exceptions.from_response(resp, body) keystoneclient.exceptions.ClientException: An unexpected error prevented the server from fulfilling your request. (ProgrammingError) (1146, "Table 'keystone.tenant' doesn't exist") 'INSERT INTO tenant (id, name, extra) VALUES (%s, %s, %s)' ('42419636238a429992254b3419ffa6e7', 'admin', '{"enabled": true, "description": null}') (HTTP 500) test@folsom-controller:~/devstack$</module>

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-11-19 23:35:11 -0500

unmesh-gurjar gravatar image

Looks like some database tables required by Keystone are missing. Try executing the command "keystone-manage db_sync", which should recreate the tables.

edit flag offensive delete link more

Comments

I tried that several times but to no avail. There is something wrong that doesn't allow the command to create the required tables.

rony gravatar imagerony ( 2013-11-21 23:20:42 -0500 )edit

Please provide the output (of keystone-manage db_sync command). Because, unless tables get created, you won't be able to proceed.

unmesh-gurjar gravatar imageunmesh-gurjar ( 2013-11-22 02:06:44 -0500 )edit

Thanks for staying with me on this. well the command doesn't print anything. It waits as if trying to do something and returns the prompt. Querying the db for the keystone tables doesn't return anything.

rony gravatar imagerony ( 2013-11-22 11:27:11 -0500 )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

Stats

Asked: 2013-11-16 23:35:36 -0500

Seen: 1,155 times

Last updated: Nov 19 '13