<div dir="ltr"><span style="color:rgb(31,73,125);font-family:Consolas;font-size:13px"><br>Could not find tenant: admin (HTTP 404)</span><br><div><span style="color:rgb(31,73,125);font-family:Consolas;font-size:13px"><br></span></div>
<div><font color="#1f497d" face="Consolas">There's how I grant role to user in Grizzily: </font></div><div><font color="#1f497d" face="Consolas"><br></font></div><div><pre style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:18px">
<div class="" id="LC118" style="padding-left:10px;background-color:rgb(255,255,204)">keystone user-role-add --user-id <span class="" style="color:rgb(0,128,128)">$ADMIN_USER</span> <span class="" style="color:rgb(221,17,68)">\</span></div>
<div class="" id="LC119" style="padding-left:10px"> --role-id <span class="" style="color:rgb(0,128,128)">$ADMIN_ROLE</span> <span class="" style="color:rgb(221,17,68)">\</span></div><div class="" id="LC120" style="padding-left:10px">
--tenant-id <span class="" style="color:rgb(0,128,128)">$DEMO_TENANT</span></div></pre></div><div><font color="#1f497d" face="Consolas"><br></font></div><div><span style="color:rgb(31,73,125);font-family:Consolas"><a href="https://github.com/HugoKuo/keystone_install/blob/master/install_keystone.sh#L118">https://github.com/HugoKuo/keystone_install/blob/master/install_keystone.sh#L118</a></span><br>
</div><div><span style="color:rgb(31,73,125);font-family:Consolas"><br></span></div><div><font color="#1f497d" face="Consolas">All values are in uuid instead of the name. I'm not sure if Havana can specify values by *names* tho. </font></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 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 lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">Hi Hugo Kuo,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">Thanks for suggestion, but the same result occurs even if we specify user id:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">-------------------<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">root@ubuntu:/var/log# keystone user-role-add --user=d1877fedeafa4672b332d4698f894d94 --tenant=admin --role=admin<u></u><u></u></span></p>
<div class="im">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">No handlers could be found for logger "keystoneclient.client"<u></u><u></u></span></p>
</div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">Could not find tenant: admin (HTTP 404)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">------------------<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">Gary<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;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""> Kuo Hugo [mailto:<a href="mailto:tonytkdk@gmail.com" target="_blank">tonytkdk@gmail.com</a>]
<br>
<b>Sent:</b> Tuesday, October 29, 2013 4:22 PM<br>
<b>To:</b> Duan, Li-Gong (Gary@BCS-HST-SSTL)<br>
<b>Cc:</b> <a href="mailto:Openstack@lists.openstack.org" target="_blank">Openstack@lists.openstack.org</a><br>
<b>Subject:</b> Re: [Openstack] Keystone: No handlers could be found<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Is it help by specifying --user=<span style="font-size:10.0pt;font-family:Consolas">d1877fedeafa4672b332d4698f894d94 ?</span><u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">+Hugo Kuo+<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="tel:%28%2B886%29%20935004793" value="+886935004793" target="_blank">(+886) 935004793</a><u></u><u></u></p>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal">2013/10/29 Duan, Li-Gong (Gary@BCS-HST-SSTL) <<a href="mailto:li-gong.duan@hp.com" target="_blank">li-gong.duan@hp.com</a>><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">Hi,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"> </span><u></u><u></u></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”?</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"> </span><u></u><u></u></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</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;background:yellow">No handlers could be found for logger "keystoneclient.client"</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;background:yellow">Could not find user: admin (HTTP 404)</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"> </span><u></u><u></u></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:10.0pt;font-family:Consolas">root@ubuntu:~# export SERVICE_TOKEN=64b4102eec95651658b2</span><u></u><u></u></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></span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">I follows the below manual to configure keystone:</span><u></u><u></u></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><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">----------------------------</span><u></u><u></u></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</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;background:yellow">No handlers could be found for logger "keystoneclient.client"</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;background:yellow">Could not find user: admin (HTTP 404)</span><u></u><u></u></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</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">connect: (controller, 35357)</span><u></u><u></u></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'</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">reply: 'HTTP/1.1 404 Not Found\r\n'</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">header: Content-Type: application/json</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">header: Vary: X-Auth-Token</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">header: Date: Tue, 29 Oct 2013 15:47:35 GMT</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">header: Transfer-Encoding: chunked</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">No handlers could be found for logger "keystoneclient.client"</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">Traceback (most recent call last):</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"> File "/usr/bin/keystone", line 9, in <module></span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"> load_entry_point('python-keystoneclient==2012.1', 'console_scripts', 'keystone')()</span><u></u><u></u></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</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"> OpenStackIdentityShell().main(sys.argv[1:])</span><u></u><u></u></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</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"> args.func(self.cs, args)</span><u></u><u></u></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</span><u></u><u></u></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)</span><u></u><u></u></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</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"> return self._update(route % params, None, "role")</span><u></u><u></u></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</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"> resp, body = methods[method](url, body=body)</span><u></u><u></u></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</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"> return self._cs_request(url, 'PUT', **kwargs)</span><u></u><u></u></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</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"> **kwargs)</span><u></u><u></u></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</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"> raise exceptions.from_response(resp, body)</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">keystoneclient.exceptions.NotFound: Could not find user: admin (HTTP 404)</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">root@ubuntu:/var/lib/glance# keystone user-list</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">+----------------------------------+---------+---------------------+--------+</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">| id | enabled | email | name |</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">+----------------------------------+---------+---------------------+--------+</span><u></u><u></u></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 |</span><u></u><u></u></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 |</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">+----------------------------------+---------+---------------------+--------+</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">root@ubuntu:/var/lib/glance# keystone role-list</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">+----------------------------------+-------+</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">| id | name |</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">+----------------------------------+-------+</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">| ea4957e6be0d40658a5384015873fbe0 | admin |</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">+----------------------------------+-------+</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">root@ubuntu:/var/lib/glance# keystone tenant-list</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">+----------------------------------+---------+---------+</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">| id | name | enabled |</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">+----------------------------------+---------+---------+</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">| 0f93b77a88074dd48a9f4795b443d72d | service | True |</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">| 22bce9d51bd34fd3a74baedb610f77c9 | admin | True |</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">+----------------------------------+---------+---------+</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">---------------------</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">Regards,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas">Gary</span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><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><u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>
</blockquote></div><br></div>