<div dir="ltr">Hi Malani,<div><br></div><div style>Are you trying to run devstack with proxy set.</div><div style>You also need to set no_proxy.</div><div style>Please add the following entry in localrc file and execute stack.sh</div>
<div style><p class="" style>export no_proxy="localhost,127.0.0.1"</p><p class="" style><br></p><p class="" style>I had faced the same error you have mentioned and the problem was solved by setting no_proxy</p><p class="" style>
<br></p><p class="" style>Regards,</p><p class="" style>Sagar</p></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 21, 2013 at 11:29 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 lang="EN-US" link="blue" vlink="purple">
<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>
<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>
<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>
<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>

<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br></div>