Murano dashboard exceptions: KeyError

Bug #1355270 reported by Timur Nurlygayanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
Critical
Sergey Murashov
5.0.x
Won't Fix
High
MOS Murano
5.1.x
Fix Released
Critical
Sergey Murashov

Bug Description

We have a bug in the latest backports and when we open service details we can see the traceback.

Steps To Reproduce:
1. Install OpenStack with Murano.
2. Deploy Murano environment with Telnet application.
3. After the deployment navigate to Environmnets -> select env and click on application name.

Observed Result:
Error on horizon dashboard, and we can see the following traceback in logs:

    [Mon Aug 11 15:37:47 2014] [error] DEBUG:muranodashboard.environments.api:Service::List
    [Mon Aug 11 15:37:47 2014] [error] DEBUG:muranodashboard.environments.api:Return service detail for a specified id
    [Mon Aug 11 15:37:47 2014] [error] ERROR:muranodashboard.middleware:Traceback (most recent call last):
    [Mon Aug 11 15:37:47 2014] [error] File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 115, in get_response
    [Mon Aug 11 15:37:47 2014] [error] response = callback(request, *callback_args, **callback_kwargs)
    [Mon Aug 11 15:37:47 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 38, in dec
    [Mon Aug 11 15:37:47 2014] [error] return view_func(request, *args, **kwargs)
    [Mon Aug 11 15:37:47 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 54, in dec
    [Mon Aug 11 15:37:47 2014] [error] return view_func(request, *args, **kwargs)
    [Mon Aug 11 15:37:47 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 38, in dec
    [Mon Aug 11 15:37:47 2014] [error] return view_func(request, *args, **kwargs)
    [Mon Aug 11 15:37:47 2014] [error] File "/usr/lib/python2.6/site-packages/django/views/generic/base.py", line 68, in view
    [Mon Aug 11 15:37:47 2014] [error] return self.dispatch(request, *args, **kwargs)
    [Mon Aug 11 15:37:47 2014] [error] File "/usr/lib/python2.6/site-packages/django/views/generic/base.py", line 86, in dispatch
    [Mon Aug 11 15:37:47 2014] [error] return handler(request, *args, **kwargs)
    [Mon Aug 11 15:37:47 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/tabs/views.py", line 71, in get
    [Mon Aug 11 15:37:47 2014] [error] context = self.get_context_data(**kwargs)
    [Mon Aug 11 15:37:47 2014] [error] File "/usr/lib/python2.6/site-packages/muranodashboard/environments/views.py", line 81, in get_context_data
    [Mon Aug 11 15:37:47 2014] [error] context = super(DetailServiceView, self).get_context_data(**kwargs)
    [Mon Aug 11 15:37:47 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/tabs/views.py", line 56, in get_context_data
    [Mon Aug 11 15:37:47 2014] [error] exceptions.handle(self.request)
    [Mon Aug 11 15:37:47 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/tabs/views.py", line 54, in get_context_data
    [Mon Aug 11 15:37:47 2014] [error] context["tab_group"].load_tab_data()
    [Mon Aug 11 15:37:47 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/tabs/base.py", line 122, in load_tab_data
    [Mon Aug 11 15:37:47 2014] [error] exceptions.handle(self.request)
    [Mon Aug 11 15:37:47 2014] [error] File "/usr/lib/python2.6/site-packages/horizon/tabs/base.py", line 119, in load_tab_data
    [Mon Aug 11 15:37:47 2014] [error] tab._data = tab.get_context_data(self.request)
    [Mon Aug 11 15:37:47 2014] [error] File "/usr/lib/python2.6/site-packages/muranodashboard/environments/tabs.py", line 51, in get_context_data
    [Mon Aug 11 15:37:47 2014] [error] ('Type', service_data['?'][consts.DASHBOARD_ATTRS_KEY]['name']),
    [Mon Aug 11 15:37:47 2014] [error] KeyError: '_26411a1861294160833743e45d0eaad9'
    [Mon Aug 11 15:37:47 2014] [error]

Tags: murano
Changed in mos:
assignee: nobody → MOS Murano (mos-murano)
Revision history for this message
Serg Melikyan (smelikyan) wrote :

I think we should mark this bug as won't fix for 5.0.1

Revision history for this message
Ekaterina Chernova (efedorova) wrote :
Download full text (3.2 KiB)

The actual error is Traceback (most recent call last):
  File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
    self.result = application(self.environ, self.start_response)
  File "/home/fervent/Projects/mos-dashboard/.venv/local/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 72, in __call__
    return self.application(environ, start_response)
  File "/home/fervent/Projects/mos-dashboard/.venv/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 255, in __call__
    response = self.get_response(request)
  File "/home/fervent/Projects/mos-dashboard/.venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 178, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/home/fervent/Projects/mos-dashboard/.venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/fervent/Projects/mos-dashboard/.venv/local/lib/python2.7/site-packages/horizon/decorators.py", line 38, in dec
    return view_func(request, *args, **kwargs)
  File "/home/fervent/Projects/mos-dashboard/.venv/local/lib/python2.7/site-packages/horizon/decorators.py", line 54, in dec
    return view_func(request, *args, **kwargs)
  File "/home/fervent/Projects/mos-dashboard/.venv/local/lib/python2.7/site-packages/horizon/decorators.py", line 38, in dec
    return view_func(request, *args, **kwargs)
  File "/home/fervent/Projects/mos-dashboard/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/fervent/Projects/mos-dashboard/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 86, in dispatch
    return handler(request, *args, **kwargs)
  File "/home/fervent/Projects/mos-dashboard/.venv/local/lib/python2.7/site-packages/horizon/tabs/views.py", line 71, in get
    context = self.get_context_data(**kwargs)
  File "/home/fervent/Projects/mos-dashboard/.venv/local/lib/python2.7/site-packages/horizon/tabs/views.py", line 56, in get_context_data
    exceptions.handle(self.request)
  File "/home/fervent/Projects/mos-dashboard/.venv/local/lib/python2.7/site-packages/horizon/tabs/views.py", line 54, in get_context_data
    context["tab_group"].load_tab_data()
  File "/home/fervent/Projects/mos-dashboard/.venv/local/lib/python2.7/site-packages/horizon/tabs/base.py", line 122, in load_tab_data
    exceptions.handle(self.request)
  File "/home/fervent/Projects/mos-dashboard/.venv/local/lib/python2.7/site-packages/horizon/tabs/base.py", line 119, in load_tab_data
    tab._data = tab.get_context_data(self.request)
  File "/home/fervent/Projects/mos-dashboard/muranodashboard/stats/tabs.py", line 39, in get_context_data
    stats = stm.get_all(request)
  File "/home/fervent/Projects/mos-dashboard/muranodashboard/stats/models.py", line 43, in get_all
    services = self.build_service_list(request, env)
  File "/home/fervent/Projects/mos-dashboard/muranodashboard/stats/models.py", line 82, in build_service_list
    serv_list = api.muranoclient(reque...

Read more...

Revision history for this message
OSCI Robot (oscirobot) wrote :

Package murano-dashboard has been built from changeset: http://gerrit.mirantis.com/20369
RPM Repository URL: http://osci-obs.vm.mirantis.net:82/centos-fuel-5.1-stable-20369/centos

Revision history for this message
OSCI Robot (oscirobot) wrote :

Package murano-dashboard has been built from changeset: http://gerrit.mirantis.com/20369
DEB Repository URL: http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-5.1-stable-20369/ubuntu

Revision history for this message
OSCI Robot (oscirobot) wrote :

Package murano-dashboard has been built from changeset: http://gerrit.mirantis.com/20370
DEB Repository URL: http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-5.0.1-stable-20370/ubuntu

Revision history for this message
OSCI Robot (oscirobot) wrote :

Package murano-dashboard has been built from changeset: http://gerrit.mirantis.com/20370
RPM Repository URL: http://osci-obs.vm.mirantis.net:82/centos-fuel-5.0.1-stable-20370/centos

Revision history for this message
Sergey Murashov (smurashov) wrote :

Can't reproduce it on iso:{"build_id": "2014-08-11_12-45-06", "mirantis": "yes", "build_number": "169", "ostf_sha": "09b6bccf7d476771ac859bb3c76c9ebec9da9e1f", "nailgun_sha": "04ada3cd7ef14f6741a05fd5d6690260f9198095", "production": "docker", "api": "1.0", "fuelmain_sha": "43374c706b4fdce28aeb4ef11e69a53f41646740", "astute_sha": "6db5f5031b74e67b92fcac1f7998eaa296d68025", "release": "5.0.1", "fuellib_sha": "a31dbac8fff9cf6bc4cd0d23459670e34b27a9ab"}

Revision history for this message
Sergey Murashov (smurashov) wrote :

Statistic page doesn't work on iso

Revision history for this message
Sergey Murashov (smurashov) wrote :

Steps to reproduce:
1. Install OS with murano
2. Create environment
3. Add service to env
4. Send environment to deploy
5. Navigate to statistics page

Actual result:
We can see error

Revision history for this message
Sergey Murashov (smurashov) wrote :

Kate's fix is works on 5.0.1, i will test it on iso:{"build_id": "2014-08-11_12-45-06", "mirantis": "yes", "build_number": "169", "ostf_sha": "09b6bccf7d476771ac859bb3c76c9ebec9da9e1f", "nailgun_sha": "04ada3cd7ef14f6741a05fd5d6690260f9198095", "production": "docker", "api": "1.0", "fuelmain_sha": "43374c706b4fdce28aeb4ef11e69a53f41646740", "astute_sha": "6db5f5031b74e67b92fcac1f7998eaa296d68025", "release": "5.0.1", "fuellib_sha": "a31dbac8fff9cf6bc4cd0d23459670e34b27a9ab"}

Centos+neutron GRE+ Murano, 1 controller, 1 compute

Revision history for this message
OSCI Robot (oscirobot) wrote :

Package murano-dashboard has been built from changeset: http://gerrit.mirantis.com/20369
RPM Repository URL: http://osci-obs.vm.mirantis.net:82/centos-fuel-5.1-stable-20369/centos

Revision history for this message
OSCI Robot (oscirobot) wrote :

Package murano-dashboard has been built from changeset: http://gerrit.mirantis.com/20369
DEB Repository URL: http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-5.1-stable-20369/ubuntu

Revision history for this message
OSCI Robot (oscirobot) wrote :

Package murano-dashboard has been built from changeset: http://gerrit.mirantis.com/20369
RPM Repository URL: http://osci-obs.vm.mirantis.net:82/centos-fuel-5.1-stable/centos

Revision history for this message
OSCI Robot (oscirobot) wrote :

Package murano-dashboard has been built from changeset: http://gerrit.mirantis.com/20369
DEB Repository URL: http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-5.1-stable/ubuntu

Changed in mos:
status: Fix Committed → Fix Released
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.