[Openstack] Keystone: No handlers could be found

Kuo Hugo tonytkdk at gmail.com
Tue Oct 29 09:18:13 UTC 2013


Could not find tenant: admin (HTTP 404)

There's how I grant role to user in Grizzily:

keystone user-role-add --user-id $ADMIN_USER \
                       --role-id $ADMIN_ROLE \
                       --tenant-id $DEMO_TENANT


https://github.com/HugoKuo/keystone_install/blob/master/install_keystone.sh#L118

All values are in uuid instead of the name. I'm not sure if Havana can
specify values by *names* tho.

+Hugo Kuo+
(+886) 935004793


2013/10/29 Duan, Li-Gong (Gary at BCS-HST-SSTL) <li-gong.duan at hp.com>

>  Hi Hugo Kuo,****
>
> ** **
>
> Thanks for suggestion, but the same result occurs even if we specify user
> id:****
>
> -------------------****
>
> root at ubuntu:/var/log# keystone user-role-add
> --user=d1877fedeafa4672b332d4698f894d94 --tenant=admin --role=admin****
>
> No handlers could be found for logger "keystoneclient.client"****
>
> Could not find tenant: admin (HTTP 404)****
>
> ------------------****
>
> ** **
>
> Regards,****
>
> Gary****
>
> ** **
>
> *From:* Kuo Hugo [mailto:tonytkdk at gmail.com]
> *Sent:* Tuesday, October 29, 2013 4:22 PM
> *To:* Duan, Li-Gong (Gary at BCS-HST-SSTL)
> *Cc:* Openstack at lists.openstack.org
> *Subject:* Re: [Openstack] Keystone: No handlers could be found****
>
> ** **
>
> Is it help by specifying --user=d1877fedeafa4672b332d4698f894d94 ?****
>
> ** **
>
> ** **
>
>
> ****
>
> +Hugo Kuo+****
>
> (+886) 935004793****
>
> ** **
>
> 2013/10/29 Duan, Li-Gong (Gary at BCS-HST-SSTL) <li-gong.duan at hp.com>****
>
> Hi,****
>
>  ****
>
> Has anyone encountered “No handlers” error when executing “keystone
> user-role-add”?****
>
>  ****
>
> root at ubuntu:/var/lib/glance# keystone user-role-add --user=admin
> --tenant=admin --role=admin****
>
> No handlers could be found for logger "keystoneclient.client"****
>
> Could not find user: admin (HTTP 404)****
>
>  ****
>
> root at ubuntu:~# export SERVICE_TOKEN=64b4102eec95651658b2****
>
> root at ubuntu:~# export SERVICE_ENDPOINT=http://controller:35357/v2.0****
>
>  ****
>
>  ****
>
> I follows the below manual to configure keystone:****
>
>
> http://docs.openstack.org/havana/install-guide/install/apt/content/keystone-users.html
> ****
>
>  ****
>
>  ****
>
> ----------------------------****
>
> root at ubuntu:/var/lib/glance# keystone user-role-add --user=admin
> --tenant=admin --role=admin****
>
> No handlers could be found for logger "keystoneclient.client"****
>
> Could not find user: admin (HTTP 404)****
>
> root at ubuntu:/var/lib/glance# keystone --debug user-role-add --user=admin
> --tenant=admin --role=admin****
>
> connect: (controller, 35357)****
>
> 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'****
>
> reply: 'HTTP/1.1 404 Not Found\r\n'****
>
> header: Content-Type: application/json****
>
> header: Vary: X-Auth-Token****
>
> header: Date: Tue, 29 Oct 2013 15:47:35 GMT****
>
> header: Transfer-Encoding: chunked****
>
> No handlers could be found for logger "keystoneclient.client"****
>
> Traceback (most recent call last):****
>
>   File "/usr/bin/keystone", line 9, in <module>****
>
>     load_entry_point('python-keystoneclient==2012.1', 'console_scripts',
> 'keystone')()****
>
>   File "/usr/lib/python2.7/dist-packages/keystoneclient/shell.py", line
> 306, in main****
>
>     OpenStackIdentityShell().main(sys.argv[1:])****
>
>   File "/usr/lib/python2.7/dist-packages/keystoneclient/shell.py", line
> 266, in main****
>
>     args.func(self.cs, args)****
>
>   File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/shell.py",
> line 235, in do_user_role_add****
>
>     kc.roles.add_user_role(args.user, args.role, args.tenant_id)****
>
>   File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/roles.py",
> line 73, in add_user_role****
>
>     return self._update(route % params, None, "role")****
>
>   File "/usr/lib/python2.7/dist-packages/keystoneclient/base.py", line 94,
> in _update****
>
>     resp, body = methods[method](url, body=body)****
>
>   File "/usr/lib/python2.7/dist-packages/keystoneclient/client.py", line
> 172, in put****
>
>     return self._cs_request(url, 'PUT', **kwargs)****
>
>   File "/usr/lib/python2.7/dist-packages/keystoneclient/client.py", line
> 150, in _cs_request****
>
>     **kwargs)****
>
>   File "/usr/lib/python2.7/dist-packages/keystoneclient/client.py", line
> 130, in request****
>
>     raise exceptions.from_response(resp, body)****
>
> keystoneclient.exceptions.NotFound: Could not find user: admin (HTTP 404)*
> ***
>
> root at ubuntu:/var/lib/glance# keystone user-list****
>
>
> +----------------------------------+---------+---------------------+--------+
> ****
>
> |                id                | enabled |        email        |
> name  |****
>
>
> +----------------------------------+---------+---------------------+--------+
> ****
>
> | cde4a83ef91e4b4d8373417c5df1e96c | True    | glance at example.com  |
> glance |****
>
> | d1877fedeafa4672b332d4698f894d94 | True    | li-gong.duan at hp.com |
> admin  |****
>
>
> +----------------------------------+---------+---------------------+--------+
> ****
>
> root at ubuntu:/var/lib/glance# keystone role-list****
>
> +----------------------------------+-------+****
>
> |                id                |  name |****
>
> +----------------------------------+-------+****
>
> | ea4957e6be0d40658a5384015873fbe0 | admin |****
>
> +----------------------------------+-------+****
>
> root at ubuntu:/var/lib/glance# keystone tenant-list****
>
> +----------------------------------+---------+---------+****
>
> |                id                |   name  | enabled |****
>
> +----------------------------------+---------+---------+****
>
> | 0f93b77a88074dd48a9f4795b443d72d | service | True    |****
>
> | 22bce9d51bd34fd3a74baedb610f77c9 | admin   | True    |****
>
> +----------------------------------+---------+---------+****
>
> ---------------------****
>
>  ****
>
> Regards,****
>
> Gary****
>
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack****
>
> ** **
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20131029/8c486ae9/attachment.html>


More information about the Openstack mailing list