Missing router tab in Horizon Openstack Newton

Bug #1671785 reported by Viggo Ahl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Akihiro Motoki

Bug Description

In Horizon, when clicking on the admin | System Information.

In the apache2.error log the following message appear

[Fri Mar 10 09:18:35.676770 2017] [wsgi:error] [pid 23173:tid 139844567475968] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/tables/base.py", line 1500, in render_row_actions
[Fri Mar 10 09:18:35.676772 2017] [wsgi:error] [pid 23173:tid 139844567475968] bound_actions = self.get_row_actions(datum)
[Fri Mar 10 09:18:35.676774 2017] [wsgi:error] [pid 23173:tid 139844567475968] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/tables/base.py", line 1452, in get_row_actions
[Fri Mar 10 09:18:35.676777 2017] [wsgi:error] [pid 23173:tid 139844567475968] bound_action.bound_url = bound_action.get_link_url(datum)
[Fri Mar 10 09:18:35.676779 2017] [wsgi:error] [pid 23173:tid 139844567475968] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/info/tables.py", line 188, in get_link_url
[Fri Mar 10 09:18:35.676781 2017] [wsgi:error] [pid 23173:tid 139844567475968] args=(obj_id,))
[Fri Mar 10 09:18:35.676783 2017] [wsgi:error] [pid 23173:tid 139844567475968] File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 571, in reverse
[Fri Mar 10 09:18:35.676785 2017] [wsgi:error] [pid 23173:tid 139844567475968] (key, ':'.join(resolved_path)))
[Fri Mar 10 09:18:35.676786 2017] [wsgi:error] [pid 23173:tid 139844567475968] TemplateSyntaxError: u'routers' is not a registered namespace inside 'horizon:admin'

Also there is no choose in the admin tab: Router. Which seems to be missing.

The installation is Openstack Newton on Ubuntu 16.04 LTS.

Revision history for this message
Akihiro Motoki (amotoki) wrote :

Do you set enable_router to False in your local_settings.py?

Changed in horizon:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Akihiro Motoki (amotoki) wrote :

I confirmed this with the master branch too when I set enable_router to False.
enable_router=False is a valid setting and this is better to be fixed.

Akihiro Motoki (amotoki)
Changed in horizon:
assignee: nobody → Akihiro Motoki (amotoki)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/444769

Changed in horizon:
status: Confirmed → In Progress
Changed in horizon:
milestone: none → pike-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/444769
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=f54c52418bdae0403353447d688b77be15e8a044
Submitter: Jenkins
Branch: master

commit f54c52418bdae0403353447d688b77be15e8a044
Author: Akihiro Motoki <email address hidden>
Date: Mon Mar 13 08:51:54 2017 +0000

    Do not try to show L3 agent action when enable_router is False

    When enable_router settings is False, 'routers' panel is not
    registered and URL resolver of L3 agent action in the network
    agent table will result in a failure.
    As a result, System Information panel cannot be displayed.

    This commit adds a check whether the router panel is enabled or not.

    Change-Id: I67aba79f61870b093d4c1d9c7527003704483d50
    Closes-Bug: #1671785

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/444824

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/ocata)

Reviewed: https://review.openstack.org/444824
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=8ce86d4b23c3165b296bac7e9c84226111adee4c
Submitter: Jenkins
Branch: stable/ocata

commit 8ce86d4b23c3165b296bac7e9c84226111adee4c
Author: Akihiro Motoki <email address hidden>
Date: Mon Mar 13 08:51:54 2017 +0000

    Do not try to show L3 agent action when enable_router is False

    When enable_router settings is False, 'routers' panel is not
    registered and URL resolver of L3 agent action in the network
    agent table will result in a failure.
    As a result, System Information panel cannot be displayed.

    This commit adds a check whether the router panel is enabled or not.

    Change-Id: I67aba79f61870b093d4c1d9c7527003704483d50
    Closes-Bug: #1671785
    (cherry picked from commit f54c52418bdae0403353447d688b77be15e8a044)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 12.0.0.0b1

This issue was fixed in the openstack/horizon 12.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 11.0.2

This issue was fixed in the openstack/horizon 11.0.2 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.