<div dir="ltr"><div><div><div><div><div><div><div><div>Hi,<br><br></div>I solved a problem. It seems problem was that I previously ran stack.sh that set up some passwords in MySQL for Keystone. When I re-run it, seems that I provided different password.<br>
<br></div>What I've done is following:<br><br></div>-Deleted devstack<br></div>-dropped all MySQL databases<br></div>-downloaded devstack again<br></div>-run stack.sh<br><br></div>and it is working for me now.<br><br>
</div>Hope might help you as well.<br><br>Best regards,<br>Dusan<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 21, 2013 at 5:59 PM, Bhandaru, Malini K <span dir="ltr"><<a href="mailto:malini.k.bhandaru@intel.com" target="_blank">malini.k.bhandaru@intel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Greetings Dusan!<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I am having similar issues and made no progress .. peeled the onion a bit.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hope somebody else can help us. I posted a request on devstack’ s launchpad site too.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>1)<span style="font:7.0pt "Times New Roman"">     
</span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">It helped making a copy of the sample localrc and placing in devstack home directory.<u></u><u></u></span></p>

<p><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>2)<span style="font:7.0pt "Times New Roman"">     
</span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">The devstack stack.sh script created a stack user but directories such as /etc/keystone /etc/glance etc
<u></u><u></u></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Were owned by root, so it helped to using chown to make them stack user writable (I just made them writable)<u></u><u></u></span></p>

<p><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>3)<span style="font:7.0pt "Times New Roman"">     
</span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I even did not get fancy such as configuring for a real database or turning swift on etc, just a plain SQLite type keystone backend.<u></u><u></u></span></p>

<p><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#e46c0a"><span>4)<span style="font:7.0pt "Times New Roman"">     
</span></span></span><u></u><span style="color:#e46c0a">The keystone service does not start up, thus the command to obtain it’s service id returns an empty string, and thus the below
 call fails saying it is missing the service-id argument.</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#e46c0a"><u></u><u></u></span></p><div class="im">
<p>KEYSTONE_SERVICE=<br>
+ keystone endpoint-create --region RegionOne --service_id --publicurl <a href="http://192.168.1.13:5000/v2.0" target="_blank">
http://192.168.1.13:5000/v2.0</a> --adminurl <a href="http://192.168.1.13:35357/v2.0" target="_blank">
http://192.168.1.13:35357/v2.0</a> --internalurl <a href="http://192.168.1.13:5000/v2.0" target="_blank">
http://192.168.1.13:5000/v2.0</a><br>
usage: keystone endpoint-create [--region <endpoint-region>] --service-id<br>
                                <service-id> [--publicurl <public-url>]<br>
                                [--adminurl <admin-url>]<br>
                                [--internalurl <internal-url>]<br>
keystone endpoint-create: error: argument --service-id/--service_id: expected one argument<u></u><u></u></p>
</div><p><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>5)<span style="font:7.0pt "Times New Roman"">     
</span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">And with no service up, no end point created, other requests such as user, tenant etc create fail, the avalance effect.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> openstack-bounces+malini.k.bhandaru=<a href="mailto:intel.com@lists.launchpad.net" target="_blank">intel.com@lists.launchpad.net</a> [mailto:<a href="mailto:openstack-bounces%2Bmalini.k.bhandaru" target="_blank">openstack-bounces+malini.k.bhandaru</a>=<a href="mailto:intel.com@lists.launchpad.net" target="_blank">intel.com@lists.launchpad.net</a>]
<b>On Behalf Of </b>Dusan Dordevic<br>
<b>Sent:</b> Sunday, January 20, 2013 7:36 AM<br>
<b>To:</b> <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
<b>Subject:</b> [Openstack] Problem running devstack / stack.sh<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I just downloaded fresh copy of devstack, and I am trying to run in on Ubuntu. 12.04. I do have stack.sh problem, it seems to me like something related to Keystone and database, but I cannot find the problem.
 Any idea what it might be ?<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Here is full error dump:<u></u><u></u></p>
</div>
<p class="MsoNormal">./stack.sh<br>
...<br>
+ export OS_SERVICE_ENDPOINT=<a href="http://192.168.1.13:35357/v2.0" target="_blank">http://192.168.1.13:35357/v2.0</a><br>
+ OS_SERVICE_ENDPOINT=<a href="http://192.168.1.13:35357/v2.0" target="_blank">http://192.168.1.13:35357/v2.0</a><br>
+ create_keystone_accounts<br>
++ keystone tenant-create --name admin<br>
++ grep ' id '<br>
++ get_field 2<br>
++ read data<br>
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\") None None", "code": 500,
 "title": "Internal Server Error"}}. (HTTP 500)<br>
+ ADMIN_TENANT=<br>
++ keystone user-create --name admin --pass sifra --email <a href="mailto:admin@example.com" target="_blank">
admin@example.com</a><br>
++ grep ' id '<br>
++ get_field 2<br>
++ read data<br>
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\") None None", "code": 500,
 "title": "Internal Server Error"}}. (HTTP 500)<br>
+ ADMIN_USER=<br>
++ keystone role-create --name admin<br>
++ grep ' id '<br>
++ get_field 2<br>
++ read data<br>
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\") None None", "code": 500,
 "title": "Internal Server Error"}}. (HTTP 500)<br>
+ ADMIN_ROLE=<br>
+ keystone user-role-add --user_id --role_id --tenant_id<br>
usage: keystone user-role-add --user-id <user-id> --role-id <role-id><br>
                              [--tenant-id <tenant-id>]<br>
keystone user-role-add: error: argument --user-id/--user_id: expected one argument<br>
++ keystone tenant-create --name service<br>
++ grep ' id '<br>
++ get_field 2<br>
++ read data<br>
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\") None None", "code": 500,
 "title": "Internal Server Error"}}. (HTTP 500)<br>
+ SERVICE_TENANT=<br>
++ keystone role-create --name=Member<br>
++ grep ' id '<br>
++ get_field 2<br>
++ read data<br>
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\") None None", "code": 500,
 "title": "Internal Server Error"}}. (HTTP 500)<br>
+ MEMBER_ROLE=<br>
++ keystone role-create --name=anotherrole<br>
++ grep ' id '<br>
++ get_field 2<br>
++ read data<br>
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\") None None", "code": 500,
 "title": "Internal Server Error"}}. (HTTP 500)<br>
+ ANOTHER_ROLE=<br>
++ keystone tenant-create --name=invisible_to_admin<br>
++ grep ' id '<br>
++ get_field 2<br>
++ read data<br>
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\") None None", "code": 500,
 "title": "Internal Server Error"}}. (HTTP 500)<br>
+ INVIS_TENANT=<br>
++ keystone tenant-create --name=demo<br>
++ grep ' id '<br>
++ get_field 2<br>
++ read data<br>
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\") None None", "code": 500,
 "title": "Internal Server Error"}}. (HTTP 500)<br>
+ DEMO_TENANT=<br>
++ keystone user-create --name demo --pass sifra --email <a href="mailto:demo@example.com" target="_blank">
demo@example.com</a><br>
++ grep ' id '<br>
++ get_field 2<br>
++ read data<br>
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\") None None", "code": 500,
 "title": "Internal Server Error"}}. (HTTP 500)<br>
+ DEMO_USER=<br>
+ keystone user-role-add --user_id --role_id --tenant_id<br>
usage: keystone user-role-add --user-id <user-id> --role-id <role-id><br>
                              [--tenant-id <tenant-id>]<br>
keystone user-role-add: error: argument --user-id/--user_id: expected one argument<br>
+ keystone user-role-add --user_id --role_id --tenant_id<br>
usage: keystone user-role-add --user-id <user-id> --role-id <role-id><br>
                              [--tenant-id <tenant-id>]<br>
keystone user-role-add: error: argument --user-id/--user_id: expected one argument<br>
+ keystone user-role-add --user_id --role_id --tenant_id<br>
usage: keystone user-role-add --user-id <user-id> --role-id <role-id><br>
                              [--tenant-id <tenant-id>]<br>
keystone user-role-add: error: argument --user-id/--user_id: expected one argument<br>
+ keystone user-role-add --user_id --role_id --tenant_id<br>
usage: keystone user-role-add --user-id <user-id> --role-id <role-id><br>
                              [--tenant-id <tenant-id>]<br>
keystone user-role-add: error: argument --user-id/--user_id: expected one argument<br>
+ [[ sql = \s\q\l ]]<br>
++ keystone service-create --name keystone --type identity --description 'Keystone Identity Service'<br>
++ grep ' id '<br>
++ get_field 2<br>
++ read data<br>
Unable to communicate with identity service: {"error": {"message": "An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, \"Access denied for user 'root'@'localhost' (using password: YES)\") None None", "code": 500,
 "title": "Internal Server Error"}}. (HTTP 500)<br>
+ KEYSTONE_SERVICE=<br>
+ keystone endpoint-create --region RegionOne --service_id --publicurl <a href="http://192.168.1.13:5000/v2.0" target="_blank">
http://192.168.1.13:5000/v2.0</a> --adminurl <a href="http://192.168.1.13:35357/v2.0" target="_blank">
http://192.168.1.13:35357/v2.0</a> --internalurl <a href="http://192.168.1.13:5000/v2.0" target="_blank">
http://192.168.1.13:5000/v2.0</a><br>
usage: keystone endpoint-create [--region <endpoint-region>] --service-id<br>
                                <service-id> [--publicurl <public-url>]<br>
                                [--adminurl <admin-url>]<br>
                                [--internalurl <internal-url>]<br>
keystone endpoint-create: error: argument --service-id/--service_id: expected one argument<br>
++ failed<br>
++ local r=2<br>
+++ jobs -p<br>
++ kill<br>
++ set +o xtrace<u></u><u></u></p>
</div>
</div></div></div>
</div>

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