Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Facing problem in adding horizon dashboard

am trying to create a new dashboard but whenever I do so, I get no changes in the OpenStack dashboard, and the dashboard doesn't get added to it.

from django.utils.translation import ugettext_lazy as_ import horizon

class BasePanelGroup(horizon.Dashboard): name = _("Overview") slug = "overview" panels = ("hypervisors",)

class Chargeback(horizon.Dashboard): name = _("Chargeback") slug = "chargeback" panels = ('BasePanelGroup',) default_panel = 'hypervisor' permissions = ('openstack.roles.admin',)

horizon.register(chargeback)

From this link I have even tried to add the file _50_chargeback.py with the given details in it and now my existing OpenStack dashboard doesn't show up.

Facing problem in adding horizon dashboard

am trying to create a new dashboard but whenever I do so, I get no changes in the OpenStack dashboard, and the dashboard doesn't get added to it.

from django.utils.translation import ugettext_lazy as_ import horizon

class BasePanelGroup(horizon.Dashboard): name = _("Overview") slug = "overview" panels = ("hypervisors",)

class Chargeback(horizon.Dashboard): name = _("Chargeback") slug = "chargeback" panels = ('BasePanelGroup',) default_panel = 'hypervisor' permissions = ('openstack.roles.admin',)

horizon.register(chargeback)

From this link I have even tried to add the file _50_chargeback.py with the given details in it and now my existing OpenStack dashboard doesn't show up.

Facing problem in adding horizon dashboard

am trying to create a new dashboard but whenever I do so, I get no changes in the OpenStack dashboard, and the dashboard doesn't get added to it.

from django.utils.translation import ugettext_lazy as_
import horizon

horizon

class BasePanelGroup(horizon.Dashboard): name = _("Overview") slug = "overview" panels = ("hypervisors",)

("hypervisors",)

class Chargeback(horizon.Dashboard): name = _("Chargeback") slug = "chargeback" panels = ('BasePanelGroup',) default_panel = 'hypervisor' permissions = ('openstack.roles.admin',)

('openstack.roles.admin',)

horizon.register(chargeback)

horizon.register(chargeback)

From this link I have even tried to add the file _50_chargeback.py _50_chargeback.py with the given details in it and now my existing OpenStack dashboard doesn't show up.