Queens: NoneType object has no attribute auth_url

Bug #1797885 reported by Arunas Grigalionis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
senlin-dashboard
New
Undecided
Unassigned

Bug Description

when trying to use senlin dashboard, it produce warning:
WARNING horizon.exceptions Recoverable error: 'NoneType' object has no attribute 'auth_url'

When trying create something (for example create node), it produce this stack trace:
ERROR django.request Internal Server Error: /dashboard/cluster/nodes/create/
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 52, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 113, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 88, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/generic/edit.py", line 174, in get
    return self.render_to_response(self.get_context_data())
  File "/usr/lib/python2.7/site-packages/horizon/forms/views.py", line 141, in get_context_data
    context = super(ModalFormView, self).get_context_data(**kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/forms/views.py", line 74, in get_context_data
    context = super(ModalFormMixin, self).get_context_data(**kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/forms/views.py", line 55, in get_context_data
    context = super(ModalBackdropMixin, self).get_context_data(**kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/generic/edit.py", line 93, in get_context_data
    kwargs['form'] = self.get_form()
  File "/usr/lib/python2.7/site-packages/horizon/forms/views.py", line 176, in get_form
    return form_class(self.request, **self.get_form_kwargs())
  File "/usr/lib/python2.7/site-packages/senlin_dashboard/cluster/nodes/forms.py", line 67, in __init__
    profiles = senlin.profile_list(request)[0]
  File "/usr/lib/python2.7/site-packages/senlin_dashboard/api/senlin.py", line 228, in profile_list
    profiles_iter = senlinclient(request).profiles(**params)
  File "/usr/lib/python2.7/site-packages/horizon/utils/memoized.py", line 95, in wrapped
    value = cache[key] = func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/senlin_dashboard/api/senlin.py", line 90, in senlinclient
    return senlin_client.Client(**kwargs)
  File "/usr/lib/python2.7/site-packages/senlinclient/v1/client.py", line 23, in __init__
    **kwargs)
  File "/usr/lib/python2.7/site-packages/senlinclient/plugin.py", line 43, in create_connection
    return connection.Connection(profile=prof, user_agent=user_agent, **kwargs)
  File "/usr/lib/python2.7/site-packages/openstack/connection.py", line 278, in __init__
    profile, authenticator, **kwargs)
  File "/usr/lib/python2.7/site-packages/openstack/profile.py", line 50, in _get_config_from_profile
    name = urllib.parse.urlparse(authenticator.auth_url).hostname
AttributeError: 'NoneType' object has no attribute 'auth_url'

Tags: 0.8.0 queens
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.