murano-dashboard package is broken by wrong dashboard.py placement

Bug #1578630 reported by Paul Karikh
18
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Status tracked in 10.0.x
10.0.x
Invalid
Undecided
Unassigned
9.x
Fix Released
Critical
MOS Packaging Team

Bug Description

If user deploys MOS with Murano dashboard, it will not be able to get into Horizon because of `NotRegistered: The default panel "environments" is not registered.`

I found file /usr/share/openstack-dashboard/dashboard.py with the following content:

# Copyright (c) 2013 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

from django.conf import settings
from django.utils.translation import ugettext_lazy as _
import horizon

# Load the api rest services into Horizon
import muranodashboard.api.rest # noqa
from muranodashboard import exceptions
# prevent pyflakes from fail
assert exceptions

class DeployPanels(horizon.PanelGroup):
    slug = "deployment_group"
    name = _("Application Catalog")
    panels = ("environments", "catalog")

class ManagePanels(horizon.PanelGroup):
    slug = "manage_metadata"
    name = _("Manage")
    panels = ("images", "packages", "categories")

class Murano(horizon.Dashboard):
    name = getattr(settings, 'MURANO_DASHBOARD_NAME', _("Murano"))
    slug = "murano"
    panels = (DeployPanels, ManagePanels)
    default_panel = "environments"
    supports_tenants = True

horizon.register(Murano)

It looks like this file should be in another place since it is very similar to https://github.com/openstack/murano-dashboard/blob/master/muranodashboard/dashboard.py

After I removed this file, Horizon worked properly.

MOS 9.0 ISO 281.

Paul Karikh (pkarikh)
Changed in mos:
assignee: nobody → MOS Packaging Team (mos-packaging)
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack-build/murano-dashboard-build (9.0/mitaka)

Fix proposed to branch: 9.0/mitaka
Change author: Igor Yozhikov <email address hidden>
Review: https://review.fuel-infra.org/20360

Changed in mos:
status: New → In Progress
Igor Marnat (imarnat)
Changed in mos:
importance: Undecided → High
Changed in mos:
milestone: none → 9.0
importance: High → Critical
tags: added: area-murano blocker-for-qa murano
Paul Karikh (pkarikh)
description: updated
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

Should we fix it for MOS 10.0 as well?

Revision history for this message
Victor Ryzhenkin (vryzhenkin) wrote :

Not sure. This bug is in package. So, for 10.0 we will have a brand new packages.

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack-build/murano-dashboard-build (9.0/mitaka)

Reviewed: https://review.fuel-infra.org/20360
Submitter: Pkgs Jenkins <email address hidden>
Branch: 9.0/mitaka

Commit: 9cf6ccf5ca5973ff6576dcda874cfefda87b019d
Author: Igor Yozhikov <email address hidden>
Date: Thu May 5 13:38:00 2016

Disable files addition during build

Change-Id: I41c4e83921739c2bd4383d9ac0807eb89cf26e15
Closes-Bug: #1578630

Revision history for this message
Alex Kholkin (akholkin) wrote :

Verified on #289 ISO
MOS 9.0

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.