Show environment in dashboard can be broken during deployment

Bug #1637539 reported by Margarita Shakhova on 2016-10-28
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Margarita Shakhova

Bug Description

Use case: the environment is deployed via Murano API request and if we do not use user-generated uuids for components in json data, i.e. part of json
"type" : "io.murano.resources.LinuxMuranoInstance"
missing "id" : <user generated uuid>

than environment view is broken during deployment:

(from horizon log):

  File "/usr/lib/python2.7/dist-packages/muranodashboard/environments/", line 190, in get_context_data
    d3_data = api.load_environment_data(self.request, environment_id)
  File "/usr/lib/python2.7/dist-packages/muranodashboard/environments/", line 373, in load_environment_data
    return topology.render_d3_data(request, environment)
  File "/usr/lib/python2.7/dist-packages/muranodashboard/environments/", line 288, in render_d3_data
   rec(service, None, service)
  File "/usr/lib/python2.7/dist-packages/muranodashboard/environments/", line 220, in rec
    rec(value, key, node_data)
  File "/usr/lib/python2.7/dist-packages/muranodashboard/environments/", line 203, in rec
    atomics.extend([('id', node_data['?']['id']),
KeyError: 'id'

The reason is that if id is not generated by user it is absent in session description and therefore unreachable for dashboard.

Changed in murano:
assignee: nobody → Margarita Shakhova (shakhova-margarita)
tags: added: dashboard
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers