I will give value to your suggestion. Thanks<br><br><div class="gmail_quote">On Fri, Mar 1, 2013 at 12:21 PM, Atul Jha <span dir="ltr"><<a href="mailto:Atul.Jha@csscorp.com" target="_blank">Atul.Jha@csscorp.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma"><font color="#000000" face="Tahoma">Ashutosh,<br>
<br>
<font>my suggestion would be go through <font>the documentation try to
<font><font>understand</font> what each keystone command is doing. Just running a script and mailing to list for everything
<font>is not a good idea.<br>
<br>
<font>Sp<font>en<font>d sometime with <font>document</font>, understand key concepts. just a su<font>ggestion.<br>
<br>
</font></font></font></font></font></font></font></font></font>
<div style="font-size:16px;font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> openstack-bounces+atul.jha=<a href="mailto:csscorp.com@lists.launchpad.net" target="_blank">csscorp.com@lists.launchpad.net</a> [openstack-bounces+atul.jha=<a href="mailto:csscorp.com@lists.launchpad.net" target="_blank">csscorp.com@lists.launchpad.net</a>] on behalf of Ashutosh Narayan [<a href="mailto:aashutoshnarayan@gmail.com" target="_blank">aashutoshnarayan@gmail.com</a>]<br>

<b>Sent:</b> Friday, March 01, 2013 12:14 PM<br>
<b>To:</b> OpenStack<br>
<b>Subject:</b> [Openstack] Error while executing sample_data.sh script<br>
</font><br>
</div><div><div class="h5">
<div></div>
<div>
<div>Hi folks,</div>
<div><br>
</div>
<div>When I run the sample_data.sh script mentioned at the <a href="http://docs.openstack.org/folsom/openstack-compute/install/yum/content/scripted-keystone-setup.html" target="_blank">
link</a> I get the following errors :</div>
<div><br>
</div>
<div><font color="#333399">Conflict occurred attempting to store user. (IntegrityError) (1062, "Duplicate entry 'admin' for key 'name'") (HTTP 409)</font></div>
<div><font color="#333399">Conflict occurred attempting to store role. (IntegrityError) (1062, "Duplicate entry 'admin' for key 'name'") (HTTP 409)</font></div>
<div><font color="#333399">usage: keystone user-role-add --user-id <user-id> --role-id <role-id></font></div>
<div><font color="#333399">                              [--tenant-id <tenant-id>]</font></div>
<div><font color="#333399">keystone user-role-add: error: argument --user-id/--user_id: expected one argument</font></div>
<div><font color="#333399">Conflict occurred attempting to store tenant. (IntegrityError) (1062, "Duplicate entry 'service' for key 'name'") (HTTP 409)</font></div>
<div><font color="#333399">Conflict occurred attempting to store user. (IntegrityError) (1062, "Duplicate entry 'glance' for key 'name'") (HTTP 409)</font></div>
<div><font color="#333399">usage: keystone user-role-add --user-id <user-id> --role-id <role-id></font></div>
<div><font color="#333399">                              [--tenant-id <tenant-id>]</font></div>
<div><font color="#333399">keystone user-role-add: error: argument --user-id/--user_id: expected one argument</font></div>
<div><font color="#333399">usage: keystone user-create --name <user-name> [--tenant-id <tenant-id>]</font></div>
<div><font color="#333399">                            [--pass <pass>] [--email <email>]</font></div>
<div><font color="#333399">                            [--enabled <true|false>]</font></div>
<div><font color="#333399">keystone user-create: error: argument --tenant-id: expected one argument</font></div>
<div><font color="#333399">usage: keystone user-role-add --user-id <user-id> --role-id <role-id></font></div>
<div><font color="#333399">                              [--tenant-id <tenant-id>]</font></div>
<div><font color="#333399">keystone user-role-add: error: argument --user-id/--user_id: expected one argument</font></div>
<div><font color="#333399">usage: keystone user-create --name <user-name> [--tenant-id <tenant-id>]</font></div>
<div><font color="#333399">                            [--pass <pass>] [--email <email>]</font></div>
<div><font color="#333399">                            [--enabled <true|false>]</font></div>
<div><font color="#333399">keystone user-create: error: argument --tenant-id: expected one argument</font></div>
<div><font color="#333399">usage: keystone user-role-add --user-id <user-id> --role-id <role-id></font></div>
<div><font color="#333399">                              [--tenant-id <tenant-id>]</font></div>
<div><font color="#333399">keystone user-role-add: error: argument --user-id/--user_id: expected one argument</font></div>
<div><font color="#333399">usage: keystone user-create --name <user-name> [--tenant-id <tenant-id>]</font></div>
<div><font color="#333399">                            [--pass <pass>] [--email <email>]</font></div>
<div><font color="#333399">                            [--enabled <true|false>]</font></div>
<div><font color="#333399">keystone user-create: error: argument --tenant-id: expected one argument</font></div>
<div><font color="#333399">usage: keystone user-role-add --user-id <user-id> --role-id <role-id></font></div>
<div><font color="#333399">                              [--tenant-id <tenant-id>]</font></div>
<div><font color="#333399">keystone user-role-add: error: argument --user-id/--user_id: expected one argument</font></div>
<div><font color="#333399">+-------------+---------------------------------------+</font></div>
<div><font color="#333399">|   Property  |                 Value                 |</font></div>
<div><font color="#333399">+-------------+---------------------------------------+</font></div>
<div><font color="#333399">|   adminurl  |  http://localhost:$(admin_port)s/v2.0 |</font></div>
<div><font color="#333399">|      id     |    626ff3533c7e452e8850a94e4d30309f   |</font></div>
<div><font color="#333399">| internalurl | http://localhost:$(public_port)s/v2.0 |</font></div>
<div><font color="#333399">|  publicurl  | http://localhost:$(public_port)s/v2.0 |</font></div>
<div><font color="#333399">|    region   |               RegionOne               |</font></div>
<div><font color="#333399">|  service_id |    1fe65f54d1714d369f7b8975de89d41d   |</font></div>
<div><font color="#333399">+-------------+---------------------------------------+</font></div>
<div><font color="#333399">+-------------+------------------------------------------------------+</font></div>
<div><font color="#333399">|   Property  |                        Value                         |</font></div>
<div><font color="#333399">+-------------+------------------------------------------------------+</font></div>
<div><font color="#333399">|   adminurl  | http://localhost:$(compute_port)s/v1.1/$(tenant_id)s |</font></div>
<div><font color="#333399">|      id     |           64206e8f1b6148a0b63870c5fd333887           |</font></div>
<div><font color="#333399">| internalurl | http://localhost:$(compute_port)s/v1.1/$(tenant_id)s |</font></div>
<div><font color="#333399">|  publicurl  | http://localhost:$(compute_port)s/v1.1/$(tenant_id)s |</font></div>
<div><font color="#333399">|    region   |                      RegionOne                       |</font></div>
<div><font color="#333399">|  service_id |           1c4096b5d6874d9cb9a51757ea86bbb0           |</font></div>
<div><font color="#333399">+-------------+------------------------------------------------------+</font></div>
<div><font color="#333399">+-------------+----------------------------------------+</font></div>
<div><font color="#333399">|   Property  |                 Value                  |</font></div>
<div><font color="#333399">+-------------+----------------------------------------+</font></div>
<div><font color="#333399">|   adminurl  | <a href="http://localhost:8776/v1/$(tenant_id)s" target="_blank">
http://localhost:8776/v1/$(tenant_id)s</a> |</font></div>
<div><font color="#333399">|      id     |    8d2f5fb8fad341a19a88f1f092906425    |</font></div>
<div><font color="#333399">| internalurl | <a href="http://localhost:8776/v1/$(tenant_id)s" target="_blank">
http://localhost:8776/v1/$(tenant_id)s</a> |</font></div>
<div><font color="#333399">|  publicurl  | <a href="http://localhost:8776/v1/$(tenant_id)s" target="_blank">
http://localhost:8776/v1/$(tenant_id)s</a> |</font></div>
<div><font color="#333399">|    region   |               RegionOne                |</font></div>
<div><font color="#333399">|  service_id |    c50cce67fb7f44f888558112381240bf    |</font></div>
<div><font color="#333399">+-------------+----------------------------------------+</font></div>
<div><font color="#333399">+-------------+----------------------------------+</font></div>
<div><font color="#333399">|   Property  |              Value               |</font></div>
<div><font color="#333399">+-------------+----------------------------------+</font></div>
<div><font color="#333399">|   adminurl  |      <a href="http://localhost:9292" target="_blank">http://localhost:9292</a>       |</font></div>
<div><font color="#333399">|      id     | 00e787b8451d4fab8ba60aac52595973 |</font></div>
<div><font color="#333399">| internalurl |      <a href="http://localhost:9292" target="_blank">http://localhost:9292</a>       |</font></div>
<div><font color="#333399">|  publicurl  |      <a href="http://localhost:9292" target="_blank">http://localhost:9292</a>       |</font></div>
<div><font color="#333399">|    region   |            RegionOne             |</font></div>
<div><font color="#333399">|  service_id | 6c7dc42db1e04179ac94224ae4bd3b8f |</font></div>
<div><font color="#333399">+-------------+----------------------------------+</font></div>
<div><font color="#333399">+-------------+--------------------------------------+</font></div>
<div><font color="#333399">|   Property  |                Value                 |</font></div>
<div><font color="#333399">+-------------+--------------------------------------+</font></div>
<div><font color="#333399">|   adminurl  | <a href="http://localhost:8773/services/Admin" target="_blank">
http://localhost:8773/services/Admin</a> |</font></div>
<div><font color="#333399">|      id     |   03122808c74a464d88843590321b68b0   |</font></div>
<div><font color="#333399">| internalurl | <a href="http://localhost:8773/services/Cloud" target="_blank">
http://localhost:8773/services/Cloud</a> |</font></div>
<div><font color="#333399">|  publicurl  | <a href="http://localhost:8773/services/Cloud" target="_blank">
http://localhost:8773/services/Cloud</a> |</font></div>
<div><font color="#333399">|    region   |              RegionOne               |</font></div>
<div><font color="#333399">|  service_id |   16999e4dea034186ba8dbb5c1b468098   |</font></div>
<div><font color="#333399">+-------------+--------------------------------------+</font></div>
<div><font color="#333399">+-------------+---------------------------------------------+</font></div>
<div><font color="#333399">|   Property  |                    Value                    |</font></div>
<div><font color="#333399">+-------------+---------------------------------------------+</font></div>
<div><font color="#333399">|   adminurl  |           <a href="http://localhost:8888/v1" target="_blank">
http://localhost:8888/v1</a>          |</font></div>
<div><font color="#333399">|      id     |       ed608665392c4f018d5c04b5a2e9eb61      |</font></div>
<div><font color="#333399">| internalurl | <a href="http://localhost:8888/v1/AUTH_$(tenant_id)s" target="_blank">
http://localhost:8888/v1/AUTH_$(tenant_id)s</a> |</font></div>
<div><font color="#333399">|  publicurl  | <a href="http://localhost:8888/v1/AUTH_$(tenant_id)s" target="_blank">
http://localhost:8888/v1/AUTH_$(tenant_id)s</a> |</font></div>
<div><font color="#333399">|    region   |                  RegionOne                  |</font></div>
<div><font color="#333399">|  service_id |       11d44fabe1d14c3d861a86456220d1ef      |</font></div>
<div><font color="#333399">+-------------+---------------------------------------------+</font></div>
<div><font color="#333399">'Client' object has no attribute 'auth_tenant_id'</font></div>
<div><font color="#333399"><br>
</font></div>
<div>Where am I going wrong ? I have changed the admin password to what I </div>
<div>set when following the previous documents.</div>
<div>Do I need to modify anything apart from this in the script ?</div>
<div><br>
</div>
<div>Thank you,</div>
-- <br>
Ashutosh Narayan<br>
<br>
<a href="http://ashutoshn.wordpress.com/" target="_blank">http://ashutoshn.wordpress.com/</a><br>
<br>
</div>
</div></div></div>
</div>
<a href="http://www.csscorp.com/common/email-disclaimer.php" target="_blank">http://www.csscorp.com/common/email-disclaimer.php</a>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br>Ashutosh Narayan<br><br><a href="http://ashutoshn.wordpress.com/" target="_blank">http://ashutoshn.wordpress.com/</a><br><br>