<div dir="ltr"><div>Yes I had executed keystone_manage db_sync. But looks like the script did not create the required tables.<br><br></div>As to why folsom: The documentation i found was related to folsom. Can you point me to a link for havanna, if you have?<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Nov 17, 2013 at 12:38 PM, Antonio Messina <span dir="ltr"><<a href="mailto:antonio.s.messina@gmail.com" target="_blank">antonio.s.messina@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Looks like the database has not been correctly populated with the needed tables.<br>
<br>
Did you run the command "keystone-manage db_sync" ?<br>
<br>
On a side note: is there any specific reason why you are installing<br>
Folsom instead of Havana?<br>
<br>
.a.<br>
<div><div class="h5"><br>
On Sun, Nov 17, 2013 at 6:47 AM, Krishanu Dhar <<a href="mailto:rony.kris@gmail.com">rony.kris@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I was doing a test deployment on openstack following the link<br>
> "<a href="http://docs.openstack.org/folsom/basic-install/content/basic-install_controller.html" target="_blank">http://docs.openstack.org/folsom/basic-install/content/basic-install_controller.html</a>"<br>
> and ran into a keystone client issue.<br>
><br>
> The issue is; while trying to create a tenant it's failing with a<br>
> keystoneclient.exception. How do i go about fixing this? Unless i get this<br>
> working i cannot proceed.<br>
><br>
><br>
> Pasted below is a snippet form the logs with debug option enabled.<br>
><br>
> test@folsom-controller:~/devstack$ keystone --debug tenant-create<br>
> --name=admin<br>
> connect: (localhost, 35357)<br>
> send: 'POST /v2.0/tenants HTTP/1.1\r\nHost:<br>
> localhost:35357\r\nContent-Length: 67\r\nx-auth-token: test\r\ncontent-type:<br>
> application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent:<br>
> python-keystoneclient\r\n\r\n{"tenant": {"enabled": true, "name": "admin",<br>
> "description": null}}'<br>
> reply: 'HTTP/1.1 500 Internal Server Error\r\n'<br>
> header: Vary: X-Auth-Token<br>
> header: Content-Type: application/json<br>
> header: Date: Sun, 17 Nov 2013 05:26:47 GMT<br>
> header: Transfer-Encoding: chunked<br>
> No handlers could be found for logger "keystoneclient.client"<br>
> Traceback (most recent call last):<br>
> File "/usr/bin/keystone", line 9, in <module><br>
> load_entry_point('python-keystoneclient==0.1.3', 'console_scripts',<br>
> 'keystone')()<br>
> File "/usr/lib/python2.7/dist-packages/keystoneclient/shell.py", line 410,<br>
> in main<br>
> OpenStackIdentityShell().main(sys.argv[1:])<br>
> File "/usr/lib/python2.7/dist-packages/keystoneclient/shell.py", line 354,<br>
> in main<br>
> args.func(self.cs, args)<br>
> File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/shell.py", line<br>
> 126, in do_tenant_create<br>
> enabled=utils.string_to_bool(args.enabled))<br>
> File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/tenants.py",<br>
> line 83, in create<br>
> return self._create('/tenants', params, "tenant")<br>
> File "/usr/lib/python2.7/dist-packages/keystoneclient/base.py", line 82,<br>
> in _create<br>
> resp, body = self.api.post(url, body=body)<br>
> File "/usr/lib/python2.7/dist-packages/keystoneclient/client.py", line<br>
> 180, in post<br>
> return self._cs_request(url, 'POST', **kwargs)<br>
> File "/usr/lib/python2.7/dist-packages/keystoneclient/client.py", line<br>
> 161, in _cs_request<br>
> **kwargs)<br>
> File "/usr/lib/python2.7/dist-packages/keystoneclient/client.py", line<br>
> 141, in request<br>
> raise exceptions.from_response(resp, body)<br>
> keystoneclient.exceptions.ClientException: An unexpected error prevented the<br>
> server from fulfilling your request. (ProgrammingError) (1146, "Table<br>
> 'keystone.tenant' doesn't exist") 'INSERT INTO tenant (id, name, extra)<br>
> VALUES (%s, %s, %s)' ('42419636238a429992254b3419ffa6e7', 'admin',<br>
> '{"enabled": true, "description": null}') (HTTP 500)<br>
><br>
> krish<br>
><br>
> --<br>
> Krishanu<br>
><br>
</div></div>> _______________________________________________<br>
> Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
> Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
> Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
<a href="mailto:antonio.s.messina@gmail.com">antonio.s.messina@gmail.com</a><br>
<a href="mailto:antonio.messina@uzh.ch">antonio.messina@uzh.ch</a> +41 (0)44 635 42 22<br>
GC3: Grid Computing Competence Center <a href="http://www.gc3.uzh.ch/" target="_blank">http://www.gc3.uzh.ch/</a><br>
University of Zurich<br>
Winterthurerstrasse 190<br>
CH-8057 Zurich Switzerland<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Krishanu
</div>