yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #29224
[Bug 1430615] [NEW] Duplicate panels in custom panel group causes KeyError
Public bug reported:
If there are two panels configured with the same name in a custom plugin
panel group, a KeyError is thrown. Under
horizon/openstack_dashboard/local/enabled/, configure a new panel group
in a file named _50_foo.py with these contents:
PANEL_GROUP = 'foo'
PANEL_GROUP_NAME = 'Foo'
PANEL_GROUP_DASHBOARD = 'admin'
Also create files named _55_bar.py and _60_bar.py, each with these
contents:
PANEL_DASHBOARD = 'admin'
PANEL = 'bar'
PANEL_GROUP = 'foo'
ADD_PANEL = 'dashboards.admin.overview.panel.Overview'
Restart the server and load Horizon in a web browser, which results in:
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/base.py" in get_panel_groups
467. registered.pop(panel.__class__)
Exception Type: KeyError at /admin/
Exception Value: <class 'dashboards.admin.overview.panel.Overview'
** Affects: horizon
Importance: Undecided
Assignee: Janet Yu (jwy)
Status: New
** Changed in: horizon
Assignee: (unassigned) => Janet Yu (jwy)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1430615
Title:
Duplicate panels in custom panel group causes KeyError
Status in OpenStack Dashboard (Horizon):
New
Bug description:
If there are two panels configured with the same name in a custom
plugin panel group, a KeyError is thrown. Under
horizon/openstack_dashboard/local/enabled/, configure a new panel
group in a file named _50_foo.py with these contents:
PANEL_GROUP = 'foo'
PANEL_GROUP_NAME = 'Foo'
PANEL_GROUP_DASHBOARD = 'admin'
Also create files named _55_bar.py and _60_bar.py, each with these
contents:
PANEL_DASHBOARD = 'admin'
PANEL = 'bar'
PANEL_GROUP = 'foo'
ADD_PANEL = 'dashboards.admin.overview.panel.Overview'
Restart the server and load Horizon in a web browser, which results
in:
File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/base.py" in get_panel_groups
467. registered.pop(panel.__class__)
Exception Type: KeyError at /admin/
Exception Value: <class 'dashboards.admin.overview.panel.Overview'
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1430615/+subscriptions
Follow ups
References