Project panels (like Networks panel) can't be actually disabled
Bug #1321865 reported by
Pavel A.
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
I'm trying to disable the Networks panel for project dashboard. Putting like:
PANEL = 'networks'
PANEL_DASHBOARD = 'project'
PANEL_GROUP = 'network'
REMOVE_PANEL = True
to local/enabled works perfect but after that the networks panel under Admin panel group got broken.
Django Version: 1.4.5
Exception Type: TemplateSyntaxError
Exception Value:
project/
Exception Location: /usr/lib/
Python Executable: /usr/bin/python
Though, the same works with images panel in spite there are also references to project like :
from openstack_
Changed in horizon: | |
status: | New → Triaged |
importance: | Undecided → Medium |
milestone: | none → juno-3 |
tags: | removed: neutron |
Changed in horizon: | |
milestone: | juno-3 → juno-rc1 |
Changed in horizon: | |
assignee: | nobody → Nikunj Aggarwal (nikunj2512) |
Changed in horizon: | |
milestone: | juno-rc1 → kilo-1 |
Changed in horizon: | |
milestone: | kilo-1 → kilo-2 |
Changed in horizon: | |
milestone: | kilo-2 → kilo-3 |
Changed in horizon: | |
milestone: | kilo-3 → kilo-rc1 |
Changed in horizon: | |
milestone: | kilo-rc1 → liberty-1 |
tags: | added: kilo-rc-potential |
tags: | removed: kilo-rc-potential |
Changed in horizon: | |
milestone: | liberty-1 → liberty-2 |
Changed in horizon: | |
milestone: | liberty-2 → liberty-3 |
Changed in horizon: | |
milestone: | liberty-3 → liberty-rc1 |
Changed in horizon: | |
milestone: | liberty-rc1 → next |
Changed in horizon: | |
assignee: | Nikunj Aggarwal (nikunj2512) → nobody |
Changed in horizon: | |
assignee: | nobody → anusha (anusha) |
status: | Triaged → In Progress |
Changed in horizon: | |
status: | In Progress → Confirmed |
assignee: | anusha (anusha) → nobody |
To post a comment you must log in.
The bug occurs because admin network tables use a template from project dashboard but the template in the project network panel is not properly configured due to disabling the networking panel. [1][2] The easiest way to fix it seems to redefine get_subnet in admin/networks/ tables. py.
We have the similar situation in get_ips and get_size in admin/instances /tables. py.
[1] http:// git.openstack. org/cgit/ openstack/ horizon/ tree/openstack_ dashboard/ dashboards/ admin/networks/ tables. py#n86 git.openstack. org/cgit/ openstack/ horizon/ tree/openstack_ dashboard/ dashboards/ project/ networks/ tables. py#n109
[2] http://