ADD_INSTALLED_APPS in _80_nfv.py file

Bug #1660960 reported by Yimeng
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
tacker
Fix Released
Critical
yong sheng gong

Bug Description

For the file "tacker_horizon/enabled/_80_nfv.py", in "ADD_INSTALLED_APPS", the first item "tacker_horizon" should be removed. Otherwise it will cause problem of Horizon in loading related plugins. For example, the "Image" and "Instance" tab doesn't work correctly.

Revision history for this message
bharaththiruveedula (bharath-ves) wrote :

Hi @Yimeng, that's correct I agree with you. And the horizon workflows are also not working properly. But I couldn't get the reason why 'tacker_horizon' is throwing tha error.

tags: added: low-hanging-fruit
tags: added: tacker-horizon
Revision history for this message
Alessandro Delfino (alessandro.delfino) wrote :

Hi, also our devstack install was affected by this bug, after we added Tacker.

I confirm that the proposed workaround of removing "tacker_horizon" in "tacker_horizon/enabled/_80_nfv.py" makes the Images interface working again.

Changed in tacker:
importance: Undecided → Critical
milestone: none → ocata-3
Revision history for this message
dharmendra (dharmendra-kushwaha) wrote :

I suspect we are getting this issue after https://review.openstack.org/#/c/418173/

Revision history for this message
dharmendra (dharmendra-kushwaha) wrote :

2017-02-08 12:52:05.637534
2017-02-08 12:52:06.185652 Internal Server Error: /dashboard/i18n/js/horizon+openstack_dashboard+mistraldashboard+tacker_horizon+tacker_horizon.openstack_dashboard.dashboards.nfv/
2017-02-08 12:52:06.185686 Traceback (most recent call last):
2017-02-08 12:52:06.185693 File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
2017-02-08 12:52:06.185697 response = wrapped_callback(request, *callback_args, **callback_kwargs)
2017-02-08 12:52:06.185701 File "/usr/local/lib/python2.7/dist-packages/django/views/i18n.py", line 315, in javascript_catalog
2017-02-08 12:52:06.185706 catalog, plural = get_javascript_catalog(locale, domain, packages)
2017-02-08 12:52:06.185710 File "/usr/local/lib/python2.7/dist-packages/django/views/i18n.py", line 207, in get_javascript_catalog
2017-02-08 12:52:06.185714 path = os.path.join(os.path.dirname(upath(p.__file__)), 'locale')
2017-02-08 12:52:06.185719 AttributeError: 'module' object has no attribute '__file__'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tacker-horizon (master)

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

Changed in tacker:
assignee: nobody → yong sheng gong (gongysh)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tacker-horizon (master)

Reviewed: https://review.openstack.org/432157
Committed: https://git.openstack.org/cgit/openstack/tacker-horizon/commit/?id=07718c5cc6887dfc78aa03d24b88cb2e84eb54ba
Submitter: Jenkins
Branch: master

commit 07718c5cc6887dfc78aa03d24b88cb2e84eb54ba
Author: gong yong sheng <gong.yongsheng@99cloud.net>
Date: Fri Feb 10 07:29:46 2017 +0000

    Remove tacker-horizon to make this JS path right

    tacker_horizon in /dashboard/i18n/js/horizon+openstack_dashboard+
    mistraldashboard+tacker_horizon+tacker_horizon.openstack_dashboard.
    dashboards.nfv/ is causing the file not found bug.

    Remove it from _80_nfv.py will get the right path.

    Change-Id: I1cbc5a0cadfb1e9a6dd87250c1d7d440c99f8c74
    Closes-bug: 1660960

Changed in tacker:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tacker-horizon 0.7.0

This issue was fixed in the openstack/tacker-horizon 0.7.0 release.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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