Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1097869

Summary: Sahara dashboard does not show tabs
Product: Red Hat OpenStack Reporter: Luigi Toscano <ltoscano>
Component: python-django-saharaAssignee: Michael McCune <mimccune>
Status: CLOSED ERRATA QA Contact: Luigi Toscano <ltoscano>
Severity: high Docs Contact:
Priority: high    
Version: 5.0 (RHEL 7)CC: dnavale, jliberma, kroberts, matt, mimccune, mrunge, mruzicka, rhos-maint, sclewis, scohen, sgraf, tnovacik, trusnak, yeylon
Target Milestone: z3Keywords: TechPreview, ZStream
Target Release: 5.0 (RHEL 7)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-django-sahara-2014.1.2-2.el7ost Doc Type: Technology Preview
Doc Text:
With this update, python-django-sahara package has been updated. As a result, the menu, submenus for Data Processing (sahara) are displayed in the Red Hat theme.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-02 15:24:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Image of the current status
none
Image of the clean Sahara dashboard
none
preview RPM for this fix
none
Image of the working dashboard after the patch none

Description Luigi Toscano 2014-05-14 18:10:09 UTC
Description of problem:
python-sahara-dashboard installs a separate tab, at the same level of project, admin and settings. It is correctly shown, but the tabs which allows access to the various elements (Plugins, Jobs, etc) are not shown, thus making python-sahara-dashboard unusable.

Direct access to the dashboard section work, for example <site>/dashboard/sahara/plugins/ is loaded.

Version-Release number of selected component (if applicable):
python-django-horizon-2014.1-4.el7ost.noarch
python-django-sahara-2014.1.0-3.el7ost.noarch
redhat-access-plugin-openstack-5.0.0-2.el7ost.noarch

Comment 1 Luigi Toscano 2014-05-14 18:18:22 UTC
Created attachment 895563 [details]
Image of the current status

The attached image shows the current status.

Comment 2 Luigi Toscano 2014-05-14 18:19:43 UTC
Created attachment 895564 [details]
Image of the clean Sahara dashboard

Image of the clean dashboard.

Comment 3 Luigi Toscano 2014-05-14 18:21:51 UTC
The clean dashboard is available by forcibly (--nodeps) removing redhat-access-plugin-openstack and openstack-dashboard-theme, so I think it's style-related.

openstack-dashboard-theme-2014.1-4.el7ost.noarch

Comment 5 Dan Varga 2014-05-14 18:55:30 UTC
This is an issue with the openstack-dashboard-theme or python-django-sahara component(Panels not in a PanelGroup do not show up with openstack-dashboard-theme installed).  I remedied this in the redhat-access-plugin-openstack by adding a horizon.PanelGroup to my dashboard.py like so:

class ActionPanels(horizon.PanelGroup):
    slug = "redhat_access_plugin_openstack"
    name = _("Actions Panel")
    panels = ('search', 'log', 'support')


class Redhat_Access(horizon.Dashboard):
    name = _("Red Hat Access")
    slug = "redhat_access_plugin_openstack"
    panels = (ActionPanels,)
    default_panel = 'search'
    nav = False

horizon.register(Redhat_Access)

Comment 6 Tomas Rusnak 2014-05-22 13:22:40 UTC
I tried this with redhat-access-plugin-openstack.noarch-5.0.0-2.el7ost as described in comment #5. The code in dashboard.py is the same as in comment:

# cat /usr/share/openstack-dashboard/openstack_dashboard/dashboards/redhat_access_plugin_openstack/dashboard.py
from django.utils.translation import ugettext_lazy as _

import horizon

class ActionPanels(horizon.PanelGroup):
    slug = "redhat_access_plugin_openstack"
    name = _("Actions Panel")
    panels = ('search', 'log', 'support')


class Redhat_Access(horizon.Dashboard):
    name = _("Red Hat Access")
    slug = "redhat_access_plugin_openstack"
    panels = (ActionPanels,)
    default_panel = 'search'
    nav = False

horizon.register(Redhat_Access)

The sahara tabs are still not visible.

Comment 8 Michael McCune 2014-09-18 22:40:41 UTC
I've got a patch put together for this, I don't think we will be able to get an upstream change as this is very specific to the RHOS theme. Also, this package will become obsolete in Juno as the code has been merged into Horizon.

Comment 9 Matt Ruzicka 2014-10-08 18:55:30 UTC
Hi, would it be possible to get that patch as a hotfix so we can test it at a customer with Icehouse?

Comment 10 Michael McCune 2014-10-08 20:53:26 UTC
(In reply to Matt Ruzicka from comment #9)
> Hi, would it be possible to get that patch as a hotfix so we can test it at
> a customer with Icehouse?

hi Matt, as per our conversation i am attaching an rpm to test out. keep in mind that this has only gone through "works on my machine" validation ;)

Comment 11 Michael McCune 2014-10-08 20:54:43 UTC
Created attachment 945167 [details]
preview RPM for this fix

Comment 13 Matt Ruzicka 2014-10-28 16:53:38 UTC
To track this BZ since it spurred into an email thread, the customer installed this patch and it has been working well for them.  Would like to see if this can be added into the main distribution to ensure it persists over upgrades. Thanks.

Comment 17 Luigi Toscano 2014-11-14 15:31:20 UTC
The new package fixes the menu so that the menu submenus for the Data Processing entry are properly displayed and can be used to move between pages.

Verified on python-django-sahara-2014.1.2-2.el7ost.noarch.

Comment 18 Luigi Toscano 2014-11-14 15:33:09 UTC
Created attachment 957635 [details]
Image of the working dashboard after the patch

The working dashboard, python-django-sahara-2014.1.2-2, for reference.

Comment 21 errata-xmlrpc 2014-12-02 15:24:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2014-1935.html