[Murano] "Something went wrong" error when getting 'Deployments -> Show History' page without dashboard

Bug #1455519 reported by Anastasia Kuznetsova
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Invalid
Medium
MOS Murano
6.1.x
Won't Fix
Low
MOS Murano
7.0.x
Invalid
Low
MOS Murano

Bug Description

Steps to reproduce:
1. Create one user in admin tenant
2. Log in as new user
3. Create Murano environment
4. Add some applications to it and send it to deploy
5. Log in as another user from this tenant
6. Navigate to Murano > Application Catalog > Environments
7. Go to the deployed by first user environment
8. Click on "Deployment History" > "Show details"

Observed result:
Something went wrong!

An unexpected error has occurred. Try refreshing the page. If that doesn't help, contact your local administrator.

Here a traceback from dashboard log: http://paste.openstack.org/show/223846/

------------
In wizard done() method the special key is adding

        storage = attributes.setdefault('?', {}).setdefault(
            consts.DASHBOARD_ATTRS_KEY, {})
        storage['name'] = app_name

And in the environment/tables.py it's requested without checking

    _type = tables.Column(
        lambda datum: datum['?'][consts.DASHBOARD_ATTRS_KEY]['name'],
        verbose_name=_('Type'))

Need to add key check before accessing it

summary: - [Murano] "Something wnt wrong" error when user navigate to deployment
- history of environment that was deployed from another session
+ [Murano] "Something went wrong" error when user navigates to deployment
+ history of env that was deployed from another session
Changed in mos:
milestone: none → 7.0
status: New → Won't Fix
status: Won't Fix → Confirmed
importance: Undecided → Medium
Revision history for this message
Anastasia Kuznetsova (akuznetsova) wrote : Re: [Murano] "Something went wrong" error when user navigates to deployment history of env that was deployed from another session
summary: - [Murano] "Something went wrong" error when user navigates to deployment
- history of env that was deployed from another session
+ [Murano] "Something went wrong" error when getting 'Deployments -> Show
+ History' page without dashboard
description: updated
Revision history for this message
Ekaterina Chernova (efedorova) wrote :

Release-notes:

During application deplyemnts, msade directly throiugh API (nit from the UI), Deployments -> Show History page in Murano dashboard will be broken (only error is showing)

tags: added: release-notes
Revision history for this message
Ekaterina Chernova (efedorova) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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