yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #15487
[Bug 1328737] Re: login doesn't work if domain != Default and user role=admin
This is a known issue.
The problem is all the OpenStack services does not support Keystone V3
at all. There is work on the way driven by Keystone to get other
services to start adopting V3.
There is nothing we can do but wait till other services are ready.
** Changed in: horizon
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1328737
Title:
login doesn't work if domain != Default and user role=admin
Status in OpenStack Dashboard (Horizon):
Invalid
Bug description:
prereq: multi region env, identity v3
- Create a domain=Pepsi under the admin > identity panel
- a Default project will be created automatically
- create a user named PepsiAdmin with role=admin and password=pepsi
- logout and login with the user created above you will receive an error message (see error log below)
put in some debug statements in _authenticate_keystone definition in /usr/lib/python2.6/site-packages/neutronclient/client.py:
# Make sure we follow redirects when trying to reach Keystone
tmp_follow_all_redirects = self.follow_all_redirects
self.follow_all_redirects = True
try:
temp = json.dumps(body)
print "AUTH BODY = %s" %temp <==
print "TOKEN_URL = %s" %token_url <==
resp, resp_body = self._cs_request(token_url, "POST",
body=json.dumps(body),
content_type="application/json")
finally:
self.follow_all_redirects = tmp_follow_all_redirects
status_code = self.get_status_code(resp)
if status_code != 200:
raise exceptions.Unauthorized(message=resp_body)
prints out info as null:
[Tue Jun 10 15:17:26 2014] [error] DEBUG:urllib3.connectionpool:"GET /v2/234327b8a35141a4b30eb5fec6acf935/limits HTTP/1.1" 200 431
[Tue Jun 10 15:17:27 2014] [error] AUTH BODY = {"auth": {"tenantName": null, "passwordCredentials": {"username": null, "password": null}}}
[Tue Jun 10 15:17:27 2014] [error] TOKEN_URL = http://172.17.57.101:5000/v3/tokens
================
error log:
[Tue Jun 10 14:57:56 2014] [error] Login successful for user "PepsiAdmin".
[Tue Jun 10 14:57:57 2014] [error] Internal Server Error: /admin/
[Tue Jun 10 14:57:57 2014] [error] Traceback (most recent call last):
[Tue Jun 10 14:57:57 2014] [error] File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 114, in get_response
[Tue Jun 10 14:57:57 2014] [error] response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Tue Jun 10 14:57:57 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 38, in dec
[Tue Jun 10 14:57:57 2014] [error] return view_func(request, *args, **kwargs)
[Tue Jun 10 14:57:57 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 86, in dec
[Tue Jun 10 14:57:57 2014] [error] return view_func(request, *args, **kwargs)
[Tue Jun 10 14:57:57 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 54, in dec
[Tue Jun 10 14:57:57 2014] [error] return view_func(request, *args, **kwargs)
[Tue Jun 10 14:57:57 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 38, in dec
[Tue Jun 10 14:57:57 2014] [error] return view_func(request, *args, **kwargs)
[Tue Jun 10 14:57:57 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 86, in dec
[Tue Jun 10 14:57:57 2014] [error] return view_func(request, *args, **kwargs)
[Tue Jun 10 14:57:57 2014] [error] File "/usr/lib/python2.6/site-packages/django/views/generic/base.py", line 69, in view
[Tue Jun 10 14:57:57 2014] [error] return self.dispatch(request, *args, **kwargs)
[Tue Jun 10 14:57:57 2014] [error] File "/usr/lib/python2.6/site-packages/django/views/generic/base.py", line 87, in dispatch
[Tue Jun 10 14:57:57 2014] [error] return handler(request, *args, **kwargs)
[Tue Jun 10 14:57:57 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/views.py", line 154, in get
[Tue Jun 10 14:57:57 2014] [error] handled = self.construct_tables()
[Tue Jun 10 14:57:57 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/views.py", line 145, in construct_tables
[Tue Jun 10 14:57:57 2014] [error] handled = self.handle_table(table)
[Tue Jun 10 14:57:57 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/views.py", line 118, in handle_table
[Tue Jun 10 14:57:57 2014] [error] data = self._get_data_dict()
[Tue Jun 10 14:57:57 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/views.py", line 181, in _get_data_dict
[Tue Jun 10 14:57:57 2014] [error] self._data = {self.table_class._meta.name: self.get_data()}
[Tue Jun 10 14:57:57 2014] [error] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/overview/views.py", line 60, in get_data
[Tue Jun 10 14:57:57 2014] [error] data = super(GlobalOverview, self).get_data()
[Tue Jun 10 14:57:57 2014] [error] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/views.py", line 44, in get_data
[Tue Jun 10 14:57:57 2014] [error] self.usage.get_limits()
[Tue Jun 10 14:57:57 2014] [error] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/base.py", line 193, in get_limits
[Tue Jun 10 14:57:57 2014] [error] self.get_neutron_limits()
[Tue Jun 10 14:57:57 2014] [error] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/base.py", line 151, in get_neutron_limits
[Tue Jun 10 14:57:57 2014] [error] api.neutron.is_security_group_extension_supported(self.request)
[Tue Jun 10 14:57:57 2014] [error] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/neutron.py", line 861, in is_security_group_extension_supported
[Tue Jun 10 14:57:57 2014] [error] return is_extension_supported(request, 'security-group')
[Tue Jun 10 14:57:57 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/utils/memoized.py", line 90, in wrapped
[Tue Jun 10 14:57:57 2014] [error] value = cache[key] = func(*args, **kwargs)
[Tue Jun 10 14:57:57 2014] [error] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/neutron.py", line 841, in is_extension_supported
[Tue Jun 10 14:57:57 2014] [error] extensions = list_extensions(request)
[Tue Jun 10 14:57:57 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/utils/memoized.py", line 90, in wrapped
[Tue Jun 10 14:57:57 2014] [error] value = cache[key] = func(*args, **kwargs)
[Tue Jun 10 14:57:57 2014] [error] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/neutron.py", line 832, in list_extensions
[Tue Jun 10 14:57:57 2014] [error] extensions_list = neutronclient(request).list_extensions()
[Tue Jun 10 14:57:57 2014] [error] File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 111, in with_params
[Tue Jun 10 14:57:57 2014] [error] ret = self.function(instance, *args, **kwargs)
[Tue Jun 10 14:57:57 2014] [error] File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 294, in list_extensions
[Tue Jun 10 14:57:57 2014] [error] return self.get(self.extensions_path, params=_params)
[Tue Jun 10 14:57:57 2014] [error] File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 1236, in get
[Tue Jun 10 14:57:57 2014] [error] headers=headers, params=params)
[Tue Jun 10 14:57:57 2014] [error] File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 1221, in retry_request
[Tue Jun 10 14:57:57 2014] [error] headers=headers, params=params)
[Tue Jun 10 14:57:57 2014] [error] File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 1156, in do_request
[Tue Jun 10 14:57:57 2014] [error] resp, replybody = self.httpclient.do_request(action, method, body=body)
[Tue Jun 10 14:57:57 2014] [error] File "/usr/lib/python2.6/site-packages/neutronclient/client.py", line 213, in do_request
[Tue Jun 10 14:57:57 2014] [error] self.authenticate()
[Tue Jun 10 14:57:57 2014] [error] File "/usr/lib/python2.6/site-packages/neutronclient/client.py", line 279, in authenticate
[Tue Jun 10 14:57:57 2014] [error] self._authenticate_keystone()
[Tue Jun 10 14:57:57 2014] [error] File "/usr/lib/python2.6/site-packages/neutronclient/client.py", line 260, in _authenticate_keystone
[Tue Jun 10 14:57:57 2014] [error] raise exceptions.Unauthorized(message=resp_body)
[Tue Jun 10 14:57:57 2014] [error] Unauthorized: {"error": {"message": "The resource could not be found.", "code": 404, "title": "Not Found"}}
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1328737/+subscriptions
References