<div dir="ltr"><div><div>Malini,<br><br></div>Hope this helps. I added this to my localrc to get a single node work behind a intel proxy.<br><br>HOST_IP = localhost<br>SERVICE_HOST = $HOST_IP<br>IMAGE_HOST = $HOST_IP<br></div>
IDENTITY_HOST = $HOST_IP<div><br></div><div class="gmail_extra">If you want to run a multi node devstack setup, you have to turn off all proxy envs.<br><br><div class="gmail_quote">On Tue, Jan 22, 2013 at 3:41 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: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)">Sagar, thank you for the suggestion. It did not help however
</span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">(I already had in my .bashrc file ..)</span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">export no_proxy=localhost,*.local,.<a href="http://intel.com" target="_blank">intel.com</a>,<a href="http://127.0.0.0/8,143.183.0.0/16,172.16.0" target="_blank">127.0.0.0/8,143.183.0.0/16,172.16.0</a></span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"> </span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">Mysql is installed, shows it has a keystone database and keystone tables such as user and end point.</span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">I cross checked mysql root password and that in the localrc file match.</span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"> </span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">But keymanage-all still spins !!</span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"> </span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">Would appreciate any other suggestions.</span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">Regards</span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">Malini</span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"> </span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"> </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""> Sagar Nikam [mailto:<a href="mailto:sagar.r.nikam@gmail.com" target="_blank">sagar.r.nikam@gmail.com</a>]
<br>
<b>Sent:</b> Monday, January 21, 2013 9:30 PM<br>
<b>To:</b> Bhandaru, Malini K<br>
<b>Cc:</b> Dusan Dordevic; OpenStack Development Mailing List; <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
<b>Subject:</b> Re: [Openstack] Problem running devstack / stack.sh</span></p><div><div>
<p class=""> </p>
<div>
<p class="">Hi Malani,</p>
<div>
<p class=""> </p>
</div>
<div>
<p class="">Are you trying to run devstack with proxy set.</p>
</div>
<div>
<p class="">You also need to set no_proxy.</p>
</div>
<div>
<p class="">Please add the following entry in localrc file and execute stack.sh</p>
</div>
<div>
<p class="">export no_proxy="localhost,127.0.0.1"</p>
<p class=""> </p>
<p class="">I had faced the same error you have mentioned and the problem was solved by setting no_proxy</p>
<p class=""> </p>
<p class="">Regards,</p>
<p class="">Sagar</p>
</div>
</div>
<div>
<p class="" style="margin-bottom:12pt"> </p>
<div>
<p class="">On Mon, Jan 21, 2013 at 11:29 PM, Bhandaru, Malini K <<a href="mailto:malini.k.bhandaru@intel.com" target="_blank">malini.k.bhandaru@intel.com</a>> wrote:</p>
<div>
<div>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"> </span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">Greetings Dusan!</span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"> </span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">I am having similar issues and made no progress .. peeled the onion a bit.</span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">Hope somebody else can help us. I posted a request on devstack’ s launchpad site too.</span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"> </span></p>
<p><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">1)</span><span style="font-size:7pt;color:rgb(31,73,125)">
</span><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">It helped making a copy of the sample localrc and placing in devstack home directory.</span></p>
<p><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">2)</span><span style="font-size:7pt;color:rgb(31,73,125)">
</span><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">The devstack stack.sh script created a stack user but directories such as /etc/keystone /etc/glance etc
</span></p>
<p><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">Were owned by root, so it helped to using chown to make them stack user writable (I just made them writable)</span></p>
<p><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">3)</span><span style="font-size:7pt;color:rgb(31,73,125)">
</span><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">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.</span></p>
<p><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(228,108,10)">4)</span><span style="font-size:7pt;color:rgb(228,108,10)">
</span><span style="color:rgb(228,108,10)">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></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</p>
<p><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">5)</span><span style="font-size:7pt;color:rgb(31,73,125)">
</span><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)">And with no service up, no end point created, other requests such as user, tenant etc create fail, the avalance effect.</span></p>
<p class=""><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"> </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-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</span></p>
<p class=""> </p>
<div>
<div>
<div>
<div>
<p class="" style="margin-bottom:12pt">Hi,</p>
</div>
<p class="" style="margin-bottom:12pt">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 ?</p>
</div>
<p class="" style="margin-bottom:12pt">Here is full error dump:</p>
</div>
<p class="">./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</p>
</div>
</div>
</div>
<p class="" style="margin-bottom:12pt"><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" target="_blank">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></p>
</div>
<p class=""> </p>
</div>
</div></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" target="_blank">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><br clear="all"><br>-- <br><div><b>Intel SSG/SSD/SOTC/PRC/CITT</b></div>
<div>880 Zixing Road, Zizhu Science Park, Minhang District, Shanghai, 200241,
China<br></div>
<div><a href="tel:%2B862161166500" value="+862161166500" target="_blank">+862161166500</a></div>
</div></div>