app detail gives AttributeError

Bug #1633857 reported by zhurong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Solum
Fix Released
Undecided
zhurong

Bug Description

If the app doesn't have app attribute, the app detail will gives the error:
Traceback (most recent call last):
  File "/opt/openstack/horizon/.venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/opt/openstack/horizon/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/opt/openstack/horizon/horizon/decorators.py", line 52, in dec
    return view_func(request, *args, **kwargs)
  File "/opt/openstack/horizon/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/opt/openstack/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 71, in view
    return self.dispatch(request, *args, **kwargs)
  File "/opt/openstack/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 89, in dispatch
    return handler(request, *args, **kwargs)
  File "/opt/openstack/horizon/horizon/tabs/views.py", line 71, in get
    context = self.get_context_data(**kwargs)
  File "/opt/openstack/solum-dashboard/solumdashboard/applications/views.py", line 103, in get_context_data
    context = super(DetailView, self).get_context_data(**kwargs)
  File "/opt/openstack/horizon/horizon/tabs/views.py", line 56, in get_context_data
    exceptions.handle(self.request)
  File "/opt/openstack/horizon/horizon/exceptions.py", line 354, in handle
    six.reraise(exc_type, exc_value, exc_traceback)
  File "/opt/openstack/horizon/horizon/tabs/views.py", line 54, in get_context_data
    context["tab_group"].load_tab_data()
  File "/opt/openstack/horizon/horizon/tabs/base.py", line 128, in load_tab_data
    exceptions.handle(self.request)
  File "/opt/openstack/horizon/horizon/exceptions.py", line 354, in handle
    six.reraise(exc_type, exc_value, exc_traceback)
  File "/opt/openstack/horizon/horizon/tabs/base.py", line 125, in load_tab_data
    tab._data = tab.get_context_data(self.request)
  File "/opt/openstack/solum-dashboard/solumdashboard/applications/tabs.py", line 39, in get_context_data
    if app.scale_config.get(app.name, ''):
AttributeError: 'NoneType' object has no attribute 'get'

zhurong (zhu-rong)
Changed in solum:
assignee: nobody → zhurong (zhu-rong)
Revision history for this message
Devdatta Kulkarni (devdatta-kulkarni) wrote :

If you have stack trace for the error, can you add that to the bug description?

zhurong (zhu-rong)
description: updated
zhurong (zhu-rong)
Changed in solum:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/solum-dashboard 2.0.0

This issue was fixed in the openstack/solum-dashboard 2.0.0 release.

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.