<div dir="ltr"><div>I tried the following,<br></div>1) Rebooted server and restarted all services: Keystone, Glance, Cinder<br><div><div>2) Disabled SSL in keystone config and restarted service<br><br>But still I get the 401 error. I am able to run Keystone and Glance commands successfully.<br>
It will really helpful if any one can give a hint to debug this further. <br><br>Thanks<br>Sreejith <br><br>cinder --debug list<br><br>REQ: curl -i <a href="http://localhost:5000/v2.0/tokens">http://localhost:5000/v2.0/tokens</a> -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-cinderclient" -d '{"auth": {"tenantName": "demo", "passwordCredentials": {"username": "admin", "password": "secrete"}}}'<br>
<br>RESP: [200] {'date': 'Fri, 07 Jun 2013 06:20:00 GMT', 'content-type': 'application/json', 'content-length': '2467', 'vary': 'X-Auth-Token'}<br>RESP BODY: {"access": {"token": {"issued_at": "2013-06-07T06:20:00.106371", "expires": "2013-06-08T06:20:00Z", "id": "ee3a054d267e4470a6b539acb9226604", "tenant": {"description": "Default Tenant", "enabled": true, "id": "38574792821d43d58bcecc7760149a90", "name": "demo"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "<a href="http://localhost:8774/v2/38574792821d43d58bcecc7760149a90">http://localhost:8774/v2/38574792821d43d58bcecc7760149a90</a>", "region": "RegionOne", "internalURL": "<a href="http://localhost:8774/v2/38574792821d43d58bcecc7760149a90">http://localhost:8774/v2/38574792821d43d58bcecc7760149a90</a>", "id": "3958d10ac48643f7812265cc48dabc2b", "publicURL": "<a href="http://localhost:8774/v2/38574792821d43d58bcecc7760149a90">http://localhost:8774/v2/38574792821d43d58bcecc7760149a90</a>"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "<a href="http://localhost:9292">http://localhost:9292</a>", "region": "RegionOne", "internalURL": "<a href="http://localhost:9292">http://localhost:9292</a>", "id": "3ca52129990d4cc39e9733cdcb3cf9b1", "publicURL": "<a href="http://localhost:9292">http://localhost:9292</a>"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "<a href="http://localhost:8776/v1/38574792821d43d58bcecc7760149a90">http://localhost:8776/v1/38574792821d43d58bcecc7760149a90</a>", "region": "RegionOne", "internalURL": "<a href="http://localhost:8776/v1/38574792821d43d58bcecc7760149a90">http://localhost:8776/v1/38574792821d43d58bcecc7760149a90</a>", "id": "58885f13d2794787b73e174386e1557b", "publicURL": "<a href="http://localhost:8776/v1/38574792821d43d58bcecc7760149a90">http://localhost:8776/v1/38574792821d43d58bcecc7760149a90</a>"}], "endpoints_links": [], "type": "volume", "name": "volume"}, {"endpoints": [{"adminURL": "<a href="http://localhost:8773/services/Admin">http://localhost:8773/services/Admin</a>", "region": "RegionOne", "internalURL": "<a href="http://localhost:8773/services/Cloud">http://localhost:8773/services/Cloud</a>", "id": "9aa14a6266ca44ad9091edfd1726ffe3", "publicURL": "<a href="http://localhost:8773/services/Cloud">http://localhost:8773/services/Cloud</a>"}], "endpoints_links": [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "<a href="http://localhost:8888/v1">http://localhost:8888/v1</a>", "region": "RegionOne", "internalURL": "<a href="http://localhost:8888/v1/AUTH_38574792821d43d58bcecc7760149a90">http://localhost:8888/v1/AUTH_38574792821d43d58bcecc7760149a90</a>", "id": "a832b7b4ee5c417e8657aa5e35b8c6f5", "publicURL": "<a href="http://localhost:8888/v1/AUTH_38574792821d43d58bcecc7760149a90">http://localhost:8888/v1/AUTH_38574792821d43d58bcecc7760149a90</a>"}], "endpoints_links": [], "type": "object-store", "name": "swift"}, {"endpoints": [{"adminURL": "<a href="http://localhost:35357/v2.0">http://localhost:35357/v2.0</a>", "region": "RegionOne", "internalURL": "<a href="http://localhost:5000/v2.0">http://localhost:5000/v2.0</a>", "id": "00996f2061524df898642b463b43a69e", "publicURL": "<a href="http://localhost:5000/v2.0">http://localhost:5000/v2.0</a>"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "bcc02d66f571431daff8fc1c89ebb869", "roles": [{"name": "_member_"}, {"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["9fe2ff9ee4384b1894a90878d3e92bab", "e880a3ec7a464240b5c6b9718f201a34"]}}}<br>
<br><br>REQ: curl -i <a href="http://localhost:8776/v1/38574792821d43d58bcecc7760149a90/volumes/detail">http://localhost:8776/v1/38574792821d43d58bcecc7760149a90/volumes/detail</a> -X GET -H "X-Auth-Project-Id: demo" -H "User-Agent: python-cinderclient" -H "Accept: application/json" -H "X-Auth-Token: ee3a054d267e4470a6b539acb9226604"<br>
<br>RESP: [401] {'date': 'Fri, 07 Jun 2013 06:20:00 GMT', 'content-length': '276', 'content-type': 'text/plain; charset=UTF-8', 'www-authenticate': "Keystone uri='<a href="http://127.0.0.1:35357">http://127.0.0.1:35357</a>'"}<br>
RESP BODY: 401 Unauthorized<br><div><div class="gmail_extra"><br></div><div class="gmail_extra"></div><div class="gmail_extra">Thanks<br>Sreejith<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 6, 2013 at 6:36 PM, Sreejith N <span dir="ltr"><<a href="mailto:sreejith.naarakathil@gmail.com" target="_blank">sreejith.naarakathil@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<br><div>           I am getting 'Unauthorized' response when trying to create a test volume with cinder. Looking at the traces, token request is authorized and successful. <br>
<br>In the second request the "user_id" is null. Is it normal? <br>
<br>$keystone user-list<br>+----------------------------------+--------+---------+-------+<br>|                id                |  name  | enabled | email |<br>+----------------------------------+--------+---------+-------+<br>

| bcc02d66f571431daff8fc1c89ebb869 | admin  |   True  |       |<br>| 614ff08b4f604dadbfb0f2bb66a5f0f4 |  ec2   |   True  |       |<br>| 0abdaa883e744cfcb6bc6d011cdc0b82 | glance |   True  |       |<br>| 73277295da634a13b21387bf60bfa634 |  nova  |   True  |       |<br>

| bd376af8d1a84a58ae98a378e32db29d | swift  |   True  |       |<br>+----------------------------------+--------+---------+-------+<br></div><div>Here should I also have a 'cinder' admin role user?<br><br></div><div>

I have verified cinder db connection with it's credentials. Any help or hint is greatly appreciated.<br></div><div><br></div><div>Thanks<br>Sreejith<br></div><div><div><div><br>$cinder --debug create --display_name test 1<br>

<br>REQ: curl -i <a href="http://localhost:5000/v2.0/tokens" target="_blank">http://localhost:5000/v2.0/tokens</a> -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-cinderclient" -d '{"auth": {"tenantName": "demo", "passwordCredentials": {"username": "admin", "password": "secrete"}}}'<br>

<br>RESP: [200] {'date': 'Thu, 06 Jun 2013 12:31:47 GMT', 'content-type': 'application/json', 'content-length': '6123', 'vary': 'X-Auth-Token'}<br>RESP BODY: {"access": {"token": {"issued_at": "2013-06-06T12:31:46.911604", "expires": "2013-06-07T12:31:46Z", "id": "MIIKyAYJKoZIhvcNAQcCoIIKuTCCCrUCAQExCTAHBgUrDgMCGjCCCaEGCSqGSIb3DQEHAaCCCZIEggmOeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wNi0wNlQxMjozMTo0Ni45MTE2MDQiLCAiZXhwaXJlcyI6ICIyMDEzLTA2LTA3VDEyOjMxOjQ2WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIkRlZmF1bHQgVGVuYW50IiwgImVuYWJsZWQiOiB0cnVlLCAiaWQiOiAiMzg1NzQ3OTI4MjFkNDNkNThiY2VjYzc3NjAxNDlhOTAiLCAibmFtZSI6ICJkZW1vIn19LCAic2VydmljZUNhdGFsb2ciOiBbeyJlbmRwb2ludHMiOiBbeyJhZG1pblVSTCI6ICJodHRwOi8vbG9jYWxob3N0Ojg3NzQvdjIvMzg1NzQ3OTI4MjFkNDNkNThiY2VjYzc3NjAxNDlhOTAiLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVST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mUiLCAiaW50ZXJuYWxVUkwiOiAiaHR0cDovL2xvY2FsaG9zdDo1MDAwL3YyLjAiLCAiaWQiOiAiMDA5OTZmMjA2MTUyNGRmODk4NjQyYjQ2M2I0M2E2OWUiLCAicHVibGljVVJMIjogImh0dHA6Ly9sb2NhbGhvc3Q6NTAwMC92Mi4wIn1dLCAiZW5kcG9pbnRzX2xpbmtzIjogW10sICJ0eXBlIjogImlkZW50aXR5IiwgIm5hbWUiOiAia2V5c3RvbmUifV0sICJ1c2VyIjogeyJ1c2VybmFtZSI6ICJhZG1pbiIsICJyb2xlc19saW5rcyI6IFtdLCAiaWQiOiAiYmNjMDJkNjZmNTcxNDMxZGFmZjhmYzFjODllYmI4NjkiLCAicm9sZXMiOiBbeyJuYW1lIjogIl9tZW1iZXJfIn0sIHsibmFtZSI6ICJhZG1pbiJ9XSwgIm5hbWUiOiAiYWRtaW4ifSwgIm1ldGFkYXRhIjogeyJpc19hZG1pbiI6IDAsICJyb2xlcyI6IFsiOWZlMmZmOWVlNDM4NGIxODk0YTkwODc4ZDNlOTJiYWIiLCAiZTg4MGEzZWM3YTQ2NDI0MGI1YzZiOTcxOGYyMDFhMzQiXX19fTGB-zCB-AIBATBcMFcxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIEwVVbnNldDEOMAwGA1UEBxMFVW5zZXQxDjAMBgNVBAoTBVVuc2V0MRgwFgYDVQQDEw93d3cuZXhhbXBsZS5jb20CAQEwBwYFKw4DAhowDQYJKoZIhvcNAQEBBQAEgYCDVHPvhw9F0qeKaRgo5cXbxh3Fy+584Achv-ooTi4XN-2LyZAxYnq6Xw0UJwplLIcxePpnJlZWalUWDxBV0NmQ50J5IEJc4ECmCtgXrgX3-wXovn8LHQvfGg0M8PpBmcj6UCyZ10YiW8yzeB8eWSEO2Ff0mplIi1MVP62iDGX+zw==", "tenant": {"description": "Default Tenant", "enabled": true, "id": "38574792821d43d58bcecc7760149a90", "name": "demo"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "<a href="http://localhost:8774/v2/38574792821d43d58bcecc7760149a90" target="_blank">http://localhost:8774/v2/38574792821d43d58bcecc7760149a90</a>", "region": "RegionOne", "internalURL": "<a href="http://localhost:8774/v2/38574792821d43d58bcecc7760149a90" target="_blank">http://localhost:8774/v2/38574792821d43d58bcecc7760149a90</a>", "id": "3958d10ac48643f7812265cc48dabc2b", "publicURL": "<a href="http://localhost:8774/v2/38574792821d43d58bcecc7760149a90" target="_blank">http://localhost:8774/v2/38574792821d43d58bcecc7760149a90</a>"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "<a href="http://localhost:9292" target="_blank">http://localhost:9292</a>", "region": "RegionOne", "internalURL": "<a href="http://localhost:9292" target="_blank">http://localhost:9292</a>", "id": "3ca52129990d4cc39e9733cdcb3cf9b1", "publicURL": "<a href="http://localhost:9292" target="_blank">http://localhost:9292</a>"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "<a href="http://localhost:8776/v1/38574792821d43d58bcecc7760149a90" target="_blank">http://localhost:8776/v1/38574792821d43d58bcecc7760149a90</a>", "region": "RegionOne", "internalURL": "<a href="http://localhost:8776/v1/38574792821d43d58bcecc7760149a90" target="_blank">http://localhost:8776/v1/38574792821d43d58bcecc7760149a90</a>", "id": "58885f13d2794787b73e174386e1557b", "publicURL": "<a href="http://localhost:8776/v1/38574792821d43d58bcecc7760149a90" target="_blank">http://localhost:8776/v1/38574792821d43d58bcecc7760149a90</a>"}], "endpoints_links": [], "type": "volume", "name": "volume"}, {"endpoints": [{"adminURL": "<a href="http://localhost:8773/services/Admin" target="_blank">http://localhost:8773/services/Admin</a>", "region": "RegionOne", "internalURL": "<a href="http://localhost:8773/services/Cloud" target="_blank">http://localhost:8773/services/Cloud</a>", "id": "9aa14a6266ca44ad9091edfd1726ffe3", "publicURL": "<a href="http://localhost:8773/services/Cloud" target="_blank">http://localhost:8773/services/Cloud</a>"}], "endpoints_links": [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "<a href="http://localhost:8888/v1" target="_blank">http://localhost:8888/v1</a>", "region": "RegionOne", "internalURL": "<a href="http://localhost:8888/v1/AUTH_38574792821d43d58bcecc7760149a90" target="_blank">http://localhost:8888/v1/AUTH_38574792821d43d58bcecc7760149a90</a>", "id": "a832b7b4ee5c417e8657aa5e35b8c6f5", "publicURL": "<a href="http://localhost:8888/v1/AUTH_38574792821d43d58bcecc7760149a90" target="_blank">http://localhost:8888/v1/AUTH_38574792821d43d58bcecc7760149a90</a>"}], "endpoints_links": [], "type": "object-store", "name": "swift"}, {"endpoints": [{"adminURL": "<a href="http://localhost:35357/v2.0" target="_blank">http://localhost:35357/v2.0</a>", "region": "RegionOne", "internalURL": "<a href="http://localhost:5000/v2.0" target="_blank">http://localhost:5000/v2.0</a>", "id": "00996f2061524df898642b463b43a69e", "publicURL": "<a href="http://localhost:5000/v2.0" target="_blank">http://localhost:5000/v2.0</a>"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "bcc02d66f571431daff8fc1c89ebb869", "roles": [{"name": "_member_"}, {"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["9fe2ff9ee4384b1894a90878d3e92bab", "e880a3ec7a464240b5c6b9718f201a34"]}}}<br>

<br><br>REQ: curl -i <a href="http://localhost:8776/v1/38574792821d43d58bcecc7760149a90/volumes" target="_blank">http://localhost:8776/v1/38574792821d43d58bcecc7760149a90/volumes</a> -X POST -H "X-Auth-Project-Id: demo" -H "User-Agent: python-cinderclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: MIIKyAYJKoZIhvcNAQcCoIIKuTCCCrUCAQExCTAHBgUrDgMCGjCCCaEGCSqGSIb3DQEHAaCCCZIEggmOeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wNi0wNlQxMjozMTo0Ni45MTE2MDQiLCAiZXhwaXJlcyI6ICIy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zAJBgNVBAYTAlVTMQ4wDAYDVQQIEwVVbnNldDEOMAwGA1UEBxMFVW5zZXQxDjAMBgNVBAoTBVVuc2V0MRgwFgYDVQQDEw93d3cuZXhhbXBsZS5jb20CAQEwBwYFKw4DAhowDQYJKoZIhvcNAQEBBQAEgYCDVHPvhw9F0qeKaRgo5cXbxh3Fy+584Achv-ooTi4XN-2LyZAxYnq6Xw0UJwplLIcxePpnJlZWalUWDxBV0NmQ50J5IEJc4ECmCtgXrgX3-wXovn8LHQvfGg0M8PpBmcj6UCyZ10YiW8yzeB8eWSEO2Ff0mplIi1MVP62iDGX+zw==" -d '{"volume": {"status": "creating", "availability_zone": null, "source_volid": null, "display_description": null, "snapshot_id": null, "user_id": null, "size": 1, "display_name": "test", "imageRef": null, "attach_status": "detached", "volume_type": null, "project_id": null, "metadata": {}}}'<br>

<br>RESP: [401] {'date': 'Thu, 06 Jun 2013 12:31:47 GMT', 'content-length': '276', 'content-type': 'text/plain; charset=UTF-8', 'www-authenticate': "Keystone uri='<a href="http://127.0.0.1:35357" target="_blank">http://127.0.0.1:35357</a>'"}<br>

RESP BODY: 401 Unauthorized<br><br>This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.<br>

<br> Authentication required  <br><br>Unauthorized, reauthenticating.<br></div></div></div></div><div class=""><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 5, 2013 at 5:57 PM, Sreejith N <span dir="ltr"><<a href="mailto:sreejith.naarakathil@gmail.com" target="_blank">sreejith.naarakathil@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>'keystone-manage db_sync' was failing to create the keystone tables. When I used root privileges, it succeeded and tenants, users and roles setup succeeded.<br>

<br></div>BR<span><font color="#888888"><br>Sreejith<br></font></span></div><div><div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 5, 2013 at 3:18 PM, Sreejith N <span dir="ltr"><<a href="mailto:sreejith.naarakathil@gmail.com" target="_blank">sreejith.naarakathil@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div dir="ltr"><div><div><div>I have the following line in keystone.conf:<br>connection = mysql://keystone:keystone@localhost/keystone<br>


<br></div>mysql> SHOW DATABASES;<br>+--------------------+<br>| Database           |<br>

+--------------------+<br>
| information_schema |<br>| keystone           |<br><br>mysql> select User from mysql.user;<br>+------------------+<br>
| User             |<br>+------------------+<br>| keystone         |<br><br>mysql> show grants for 'keystone'@'localhost';<br>+-----------------------------------------------------------------------------------------------------------------+<br>





| Grants for keystone@localhost                                                                                   |<br>+-----------------------------------------------------------------------------------------------------------------+<br>





| GRANT USAGE ON *.* TO 'keystone'@'localhost' IDENTIFIED BY PASSWORD '*936E8F7AB2E21B47F6C9A7E5D9FE14DBA2255E5A' |<br>| GRANT ALL PRIVILEGES ON `keystone`.* TO 'keystone'@'localhost'                                                  |<br>





+-----------------------------------------------------------------------------------------------------------------+<br><br></div>Also I verified the database connection with the keystone credentials. What else could go wrong?<br>




<div><br></div>Thanks<br></div>Sreejith<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div>On Wed, Jun 5, 2013 at 2:53 PM, K, Shanthakumar <span dir="ltr"><<a href="mailto:shanthakumar.k@hp.com" target="_blank">shanthakumar.k@hp.com</a>></span> wrote:<br>



</div><div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">Ensure you have provided the passwords correctly in the all the configuration file.<u></u><u></u></span></p>




<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">Its seems your keystone itself not working properly.<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">Thanks<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">Shanthakumar K<u></u><u></u></span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class=""><b><span style="font-size:10pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10pt;font-family:"Tahoma","sans-serif""> Openstack [mailto:<a href="mailto:openstack-bounces%2Bsk13" target="_blank">openstack-bounces+sk13</a>=<a href="mailto:hp.com@lists.launchpad.net" target="_blank">hp.com@lists.launchpad.net</a>]
<b>On Behalf Of </b>Sreejith N<br>
<b>Sent:</b> Wednesday, June 05, 2013 2:49 PM<br>
<b>To:</b> <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
<b>Subject:</b> [Openstack] Issue with OpenStack installation on Ubuntu 12.04 LTS<u></u><u></u></span></p><div><div>
<p class=""><u></u> <u></u></p>
<div>
<div>
<div>
<p class="">Hi,<u></u><u></u></p>
</div>
<div>
<p class="">         I am trying to setup Openstack in a single node architecture for evaluation. I am following the Openstack installation Guide for Ubuntu 12.04 LTS. I am getting the following error when trying to setup tenants, users and roles manually.<br>




<br>
OS: Ubuntu 12.04 LTS<br>
Model: Single node (For trying out OpenStack)<u></u><u></u></p>
</div>
<div>
<p class=""><u></u> <u></u></p>
</div>
<div>
<p class="">Error-1:<u></u><u></u></p>
</div>
<div>
<p class="">~$ keystone --debug tenant-create --name demo --description "Default Tenant"<br>
REQ: curl -i <a href="http://localhost:35357/v2.0/tenants" target="_blank">http://localhost:35357/v2.0/tenants</a> -X POST -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "X-Auth-Token: 012345SECRET99TOKEN012345"<br>




REQ BODY: {"tenant": {"enabled": true, "name": "demo", "description": "Default Tenant"}}<br>
<br>
RESP: [500] {'date': 'Wed, 05 Jun 2013 09:06:35 GMT', 'content-type': 'application/json', 'content-length': '401', 'vary': 'X-Auth-Token'}<br>
RESP BODY: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. (ProgrammingError) (1146, \"Table 'keystone.project' doesn't exist\") 'INSERT INTO project (id, name, domain_id, description, enabled, extra) VALUES (%s,
 %s, %s, %s, %s, %s)' ('9b7781a3a27c4ecaae86e0766999498c', 'demo', 'default', 'Default Tenant', 1, '{}')", "code": 500, "title": "Internal Server Error"}}<br>




<br>
Request returned failure status: 500<br>
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. (ProgrammingError) (1146, \"Table 'keystone.project' doesn't exist\") 'INSERT INTO project (id, name, domain_id, description,
 enabled, extra) VALUES (%s, %s, %s, %s, %s, %s)' ('9b7781a3a27c4ecaae86e0766999498c', 'demo', 'default', 'Default Tenant', 1, '{}')", "code": 500, "title": "Internal Server Error"}}. (HTTP 500)<u></u><u></u></p>




</div>
<div>
<p class=""><u></u> <u></u></p>
</div>
<div>
<p class="" style="margin-bottom:12pt">Error-2:<br>
~$ keystone user-list<br>
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. (ProgrammingError) (1146, \"Table 'keystone.user' doesn't exist\") 'SELECT
<a href="http://user.id" target="_blank">user.id</a> AS user_id, <a href="http://user.name" target="_blank">user.name</a> AS user_name, user.domain_id AS user_domain_id, user.password AS user_password, user.enabled AS user_enabled, user.extra AS user_extra
<a>\\nFROM</a> user' ()", "code": 500, "title": "Internal Server Error"}}. (HTTP 500)<u></u><u></u></p>
</div>
<p class="" style="margin-bottom:12pt">I am stuck here, any help or hint is greatly appreciated.<u></u><u></u></p>
</div>
<div>
<p class="">Thanks<u></u><u></u></p>
</div>
<div>
<p class="">Sreejith<u></u><u></u></p>
</div>
</div>
</div></div></div>
</div>

</blockquote></div></div></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div></div>