<div dir="ltr">Let me know if it works for you by specifying uuid.  I'm going to go through the document that you provided for testing out. </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">Thanks for suggestion.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#1f497d">/var/log/keystone already exists and keystone.log had been created before.<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">and even if I change the mode into 777, the result still is the same.<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""> jj [mailto:<a href="mailto:menghuizhanguo@gmail.com" target="_blank">menghuizhanguo@gmail.com</a>]
<br>
<b>Sent:</b> Tuesday, October 29, 2013 4:25 PM<br>
<b>To:</b> Duan, Li-Gong (Gary@BCS-HST-SSTL); <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>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">make sure  /var/log/keystone exists
</span><br>
mkdir -p /var/log/keystone , maybe you have to pay attention to the dir mode bits.
<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial Narrow","sans-serif"">------------------ Original ------------------<u></u><u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="background:#efefef"><b><span style="font-size:9.0pt">From:
</span></b><span style="font-size:9.0pt"> "Duan, Li-Gong (<a href="mailto:Gary@BCS-HST-SSTL)%22;%3cli-gong.duan@hp.com" target="_blank">Gary@BCS-HST-SSTL)";<li-gong.duan@hp.com</a>>;</span><span style="font-size:9.0pt;font-family:"Times New Roman","serif""><u></u><u></u></span></p>

</div>
<div>
<p class="MsoNormal" style="background:#efefef"><b><span style="font-size:9.0pt">Date:
</span></b><span style="font-size:9.0pt"> Tue, Oct 29, 2013 03:57 PM<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#efefef"><b><span style="font-size:9.0pt">To:
</span></b><span style="font-size:9.0pt"> "<a href="mailto:Openstack@lists.openstack.org" target="_blank">Openstack@lists.openstack.org</a>"<<a href="mailto:Openstack@lists.openstack.org" target="_blank">Openstack@lists.openstack.org</a>>;
<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="background:#efefef"><b><span style="font-size:9.0pt">Subject:
</span></b><span style="font-size:9.0pt"> [Openstack] Keystone: No handlers could be found<u></u><u></u></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
</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></div></div>
</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">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>