<div dir="ltr">Wait .... The error is different from the beginning....<div><br></div><div><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:14px"><span style="font-size:10pt;font-family:Consolas;background-color:yellow">No handlers could be found for logger "keystoneclient.client"<u></u><u></u></span></p>
<p class="MsoNormal" style="font-family:arial,sans-serif;font-size:14px"><span style="font-size:10pt;font-family:Consolas;background-color:yellow">Could not find <font color="#ff0000">user</font>: admin (HTTP 404)</span></p>
<p class="MsoNormal" style="font-family:arial,sans-serif;font-size:14px"><span style="color:rgb(31,73,125);font-family:Consolas;font-size:10pt"><br></span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:14px">
<span style="color:rgb(31,73,125);font-family:Consolas;font-size:10pt">No handlers could be found for logger "keystoneclient.client"</span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:14px">
<span style="font-size:10pt;font-family:Consolas;color:rgb(31,73,125)">Could not find </span><span style="font-size:10pt;font-family:Consolas"><font color="#ff0000">tenant</font></span><span style="font-size:10pt;font-family:Consolas;color:rgb(31,73,125)">: admin (HTTP 404)</span></p>
<p class="MsoNormal" style="font-family:arial,sans-serif;font-size:14px"><span style="font-size:10pt;font-family:Consolas;color:rgb(31,73,125)"><br></span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:14px">
<span style="font-size:10pt;font-family:Consolas;color:rgb(31,73,125)"><br></span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:14px"><span style="font-size:10pt;font-family:Consolas;color:rgb(31,73,125)">Which means the uuid of user admin was passed. The problem is tenant should be uuid now. </span></p>
<p class="MsoNormal" style="font-family:arial,sans-serif;font-size:14px"><span style="font-size:10pt;font-family:Consolas;color:rgb(31,73,125)"><br></span></p><p class="MsoNormal" style="font-family:arial,sans-serif;font-size:14px">
<br></p></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div>+Hugo Kuo+</div><div>(+886) 935004793<br></div></div></div>
<br><br><div class="gmail_quote">2013/10/29 Dheerendra <span dir="ltr"><<a href="mailto:dheerendra.madhusudhana@gmail.com" target="_blank">dheerendra.madhusudhana@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div><div>Error what you are seeing is "admin" user not found(404 error).  This would mean that particular user is not available with keystone you are trying to work with or some end point is not availble.  I suggest you the following.<br>

<br></div>1. Create different user, tenant and role. Then try to configure 'user-role-add'<br></div>2. Your service_endpoint URL is <a href="http://controller:35357" target="_blank">http://controller:35357</a>. Ensure that "controller" is resolving to the correct IP address<br>

</div>3. If you have installed the havana release, you need to define environment variables as OS_SERVICE_TOKEN and OS_SERVICE_ENDPOINT. <br><br></div><div>Hope this helps.<span class="HOEnZb"><font color="#888888"><br></font></span></div>
<span class="HOEnZb"><font color="#888888"><div><br></div>-Dheerendra<br></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Oct 29, 2013 at 1:51 PM, Kuo Hugo <span dir="ltr"><<a href="mailto:tonytkdk@gmail.com" target="_blank">tonytkdk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Is it help by specifying --user=<span style="font-family:Consolas;font-size:13px">d1877fedeafa4672b332d4698f894d</span><span style="font-family:Consolas;font-size:13px">94 ?</span><div><span style="font-family:Consolas;font-size:13px"><br>


</span></div><div><span style="font-family:Consolas;font-size:13px"><br></span></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div>+Hugo Kuo+</div><div><a href="tel:%28%2B886%29%20935004793" value="+886935004793" target="_blank">(+886) 935004793</a><br>
</div></div></div>
<br><br><div class="gmail_quote">2013/10/29 Duan, Li-Gong (Gary@BCS-HST-SSTL) <span dir="ltr"><<a href="mailto:li-gong.duan@hp.com" target="_blank">li-gong.duan@hp.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div>






<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">Has anyone encountered “No handlers” error when executing “keystone user-role-add”?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">root@ubuntu:/var/lib/glance# keystone user-role-add --user=admin --tenant=admin --role=admin<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;background:yellow">No handlers could be found for logger "keystoneclient.client"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;background:yellow">Could not find user: admin (HTTP 404)</span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><u></u> <u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:10.0pt;font-family:Consolas">root@ubuntu:~# export SERVICE_TOKEN=64b4102eec95651658b2<u></u><u></u></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:10.0pt;font-family:Consolas">root@ubuntu:~# export SERVICE_ENDPOINT=<a href="http://controller:35357/v2.0" target="_blank">http://controller:35357/v2.0</a><u></u><u></u></span></p>



<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">I follows the below manual to configure keystone:<u></u><u></u></span></p>
<p class="MsoNormal"><a href="http://docs.openstack.org/havana/install-guide/install/apt/content/keystone-users.html" target="_blank">http://docs.openstack.org/havana/install-guide/install/apt/content/keystone-users.html</a><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>



<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">----------------------------<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">root@ubuntu:/var/lib/glance# keystone user-role-add --user=admin --tenant=admin --role=admin<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;background:yellow">No handlers could be found for logger "keystoneclient.client"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;background:yellow">Could not find user: admin (HTTP 404)</span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">root@ubuntu:/var/lib/glance# keystone --debug user-role-add --user=admin --tenant=admin --role=admin<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">connect: (controller, 35357)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">send: 'PUT /v2.0/tenants/admin/users/admin/roles/OS-KSADM/admin HTTP/1.1\r\nHost: controller:35357\r\nContent-Length: 4\r\nx-auth-token: 64b4102eec95651658b2\r\ncontent-type: application/json\r\naccept-encoding:
 gzip, deflate\r\nuser-agent: python-keystoneclient\r\n\r\nnull'<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">reply: 'HTTP/1.1 404 Not Found\r\n'<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">header: Content-Type: application/json<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">header: Vary: X-Auth-Token<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">header: Date: Tue, 29 Oct 2013 15:47:35 GMT<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">header: Transfer-Encoding: chunked<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">No handlers could be found for logger "keystoneclient.client"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">Traceback (most recent call last):<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">  File "/usr/bin/keystone", line 9, in <module><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">    load_entry_point('python-keystoneclient==2012.1', 'console_scripts', 'keystone')()<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">  File "/usr/lib/python2.7/dist-packages/keystoneclient/shell.py", line 306, in main<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">    OpenStackIdentityShell().main(sys.argv[1:])<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">  File "/usr/lib/python2.7/dist-packages/keystoneclient/shell.py", line 266, in main<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">    args.func(self.cs, args)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">  File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/shell.py", line 235, in do_user_role_add<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">    kc.roles.add_user_role(args.user, args.role, args.tenant_id)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">  File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/roles.py", line 73, in add_user_role<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">    return self._update(route % params, None, "role")<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">  File "/usr/lib/python2.7/dist-packages/keystoneclient/base.py", line 94, in _update<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">    resp, body = methods[method](url, body=body)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">  File "/usr/lib/python2.7/dist-packages/keystoneclient/client.py", line 172, in put<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">    return self._cs_request(url, 'PUT', **kwargs)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">  File "/usr/lib/python2.7/dist-packages/keystoneclient/client.py", line 150, in _cs_request<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">    **kwargs)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">  File "/usr/lib/python2.7/dist-packages/keystoneclient/client.py", line 130, in request<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">    raise exceptions.from_response(resp, body)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">keystoneclient.exceptions.NotFound: Could not find user: admin (HTTP 404)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">root@ubuntu:/var/lib/glance# keystone user-list<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">+----------------------------------+---------+---------------------+--------+<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">|                id                | enabled |        email        |  name  |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">+----------------------------------+---------+---------------------+--------+<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">| cde4a83ef91e4b4d8373417c5df1e96c | True    | <a href="mailto:glance@example.com" target="_blank">glance@example.com</a>  | glance |<u></u><u></u></span></p>



<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">| d1877fedeafa4672b332d4698f894d94 | True    | <a href="mailto:li-gong.duan@hp.com" target="_blank">li-gong.duan@hp.com</a> | admin  |<u></u><u></u></span></p>



<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">+----------------------------------+---------+---------------------+--------+<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">root@ubuntu:/var/lib/glance# keystone role-list<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">+----------------------------------+-------+<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">|                id                |  name |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">+----------------------------------+-------+<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">| ea4957e6be0d40658a5384015873fbe0 | admin |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">+----------------------------------+-------+<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">root@ubuntu:/var/lib/glance# keystone tenant-list<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">+----------------------------------+---------+---------+<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">|                id                |   name  | enabled |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">+----------------------------------+---------+---------+<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">| 0f93b77a88074dd48a9f4795b443d72d | service | True    |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">| 22bce9d51bd34fd3a74baedb610f77c9 | admin   | True    |<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">+----------------------------------+---------+---------+<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">---------------------<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">Gary<u></u><u></u></span></p>
</div>
</div>

<br></div></div>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>