<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
</head>
<body>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt"><font color="#000000" face="Tahoma" size="2">Ashutosh,<br>
<br>
<font size="2">my suggestion would be go through <font size="2">the documentation try to
<font size="2"><font size="2">understand</font> what each keystone command is doing. Just running a script and mailing to list for everything
<font size="2">is not a good idea.<br>
<br>
<font size="2">Sp<font size="2">en<font size="2">d sometime with <font size="2">document</font>, understand key concepts. just a su<font size="2">ggestion.<br>
<br>
</font></font></font></font></font></font></font></font></font>
<div style="font-family:Times New Roman; color:#000000; font-size:16px">
<hr tabindex="-1">
<div id="divRpF850824" style="direction:ltr"><font color="#000000" face="Tahoma" size="2"><b>From:</b> openstack-bounces+atul.jha=csscorp.com@lists.launchpad.net [openstack-bounces+atul.jha=csscorp.com@lists.launchpad.net] on behalf of Ashutosh Narayan [aashutoshnarayan@gmail.com]<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>
<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>
http://www.csscorp.com/common/email-disclaimer.php
</body>
</html>