manila-ui not working with devstack manila plugin

Bug #1570033 reported by Matt Dorn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Medium
Victoria Martinez de la Cruz
manila-ui
Fix Released
Medium
Victoria Martinez de la Cruz

Bug Description

It appears that manila-ui is broken in recent devstack master.

$ cat local.conf
[[local|localrc]]
ADMIN_PASSWORD=password
DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
enable_plugin manila https://github.com/openstack/manila

after stacking, navigating to dashboard shows 500 Internal Server Error.

Horizon:
016-04-13 17:45:50.973321 mod_wsgi (pid=26839): Target WSGI script '/opt/stack/horizon/openstack_dashboard/wsgi/django.wsgi'
 cannot be loaded as Python module.
2016-04-13 17:45:50.973363 mod_wsgi (pid=26839): Exception occurred processing WSGI script '/opt/stack/horizon/openstack_dash
board/wsgi/django.wsgi'.
2016-04-13 17:45:50.973384 Traceback (most recent call last):
2016-04-13 17:45:50.973405 File "/opt/stack/horizon/openstack_dashboard/wsgi/django.wsgi", line 14, in <module>
2016-04-13 17:45:50.973611 application = get_wsgi_application()
2016-04-13 17:45:50.973637 File "/usr/local/lib/python2.7/dist-packages/django/core/wsgi.py", line 14, in get_wsgi_applicat
ion
2016-04-13 17:45:50.973669 django.setup()
2016-04-13 17:45:50.973754 File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 18, in setup
2016-04-13 17:45:50.973824 apps.populate(settings.INSTALLED_APPS)
2016-04-13 17:45:50.973842 File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 78, in populate
2016-04-13 17:45:50.973862 raise RuntimeError("populate() isn't reentrant")
2016-04-13 17:45:50.973928 RuntimeError: populate() isn't reentrant
2016-04-13 17:45:52.651351 mod_wsgi (pid=26841): Target WSGI script '/opt/stack/horizon/openstack_dashboard/wsgi/django.wsgi'
 cannot be loaded as Python module.
2016-04-13 17:45:52.651523 mod_wsgi (pid=26841): Exception occurred processing WSGI script '/opt/stack/horizon/openstack_dash
board/wsgi/django.wsgi'.
2016-04-13 17:45:52.651602 Traceback (most recent call last):
2016-04-13 17:45:52.651673 File "/opt/stack/horizon/openstack_dashboard/wsgi/django.wsgi", line 14, in <module>
2016-04-13 17:45:52.651793 application = get_wsgi_application()
2016-04-13 17:45:52.651856 File "/usr/local/lib/python2.7/dist-packages/django/core/wsgi.py", line 14, in get_wsgi_applicat
ion
2016-04-13 17:45:52.651950 django.setup()
2016-04-13 17:45:52.652010 File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 18, in setup
2016-04-13 17:45:52.652102 apps.populate(settings.INSTALLED_APPS)
2016-04-13 17:45:52.652164 File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 85, in populate
2016-04-13 17:45:52.652377 app_config = AppConfig.create(entry)
2016-04-13 17:45:52.652441 File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", line 112, in create
2016-04-13 17:45:52.652581 mod = import_module(mod_path)
2016-04-13 17:45:52.652641 File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
2016-04-13 17:45:52.652743 __import__(name)
2016-04-13 17:45:52.652814 ImportError: No module named manila_ui.dashboards

Revision history for this message
Valeriy Ponomaryov (vponomaryov) wrote :

It cannot be "Manila UI" bug. Because failure is in "Manila" project related code.

Changed in manila-ui:
status: New → Invalid
Changed in manila-ui:
status: Invalid → Confirmed
Changed in manila:
status: New → Confirmed
Changed in manila-ui:
assignee: nobody → Victoria Martinez de la Cruz (vkmc)
Changed in manila:
assignee: nobody → Victoria Martinez de la Cruz (vkmc)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

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

Changed in manila:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila-ui (master)

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

Changed in manila-ui:
status: Confirmed → In Progress
Changed in manila:
importance: Undecided → Medium
Changed in manila-ui:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila-ui (master)

Reviewed: https://review.openstack.org/388859
Committed: https://git.openstack.org/cgit/openstack/manila-ui/commit/?id=457249be7ab3849b3479b96077a411ca37c37a95
Submitter: Jenkins
Branch: master

commit 457249be7ab3849b3479b96077a411ca37c37a95
Author: Victoria Martinez de la Cruz <email address hidden>
Date: Wed Oct 19 15:28:58 2016 -0300

    Adds Manila-UI Devstack plugin

    Manila-UI was being deployed if Manila plugin was enabled.
    This is not the most advisable thing since counting on an UI
    is not neccesary for the majority of the cases when contributing
    code to Manila. This patch-set adds the posibility of deploying
    the UI on demand by enabling it as a plugin for Devstack as follows:

    enable_plugin manila-ui https://github.com/openstack/manila-ui

    Change-Id: Id564e4ea6b675aa197ae377aa7a756e1bd0625b6
    Closes-Bug: #1570033
    Implements BP add-devstack-plugin

Changed in manila-ui:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.openstack.org/388855
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=4d36064cbaf83751a496fcf32c9e1ca0ec3e9176
Submitter: Jenkins
Branch: master

commit 4d36064cbaf83751a496fcf32c9e1ca0ec3e9176
Author: Victoria Martinez de la Cruz <email address hidden>
Date: Wed Oct 19 15:23:58 2016 -0300

    Decouple Manila UI from Manila Devstack plugin

    Whereas the bug report associated to this fix is about
    Manila UI not working, this fix addresses more than this.

    On the first place, it decouples Manila UI from Manila Devstack
    plugin. This is a desired change since not every Manila user
    needs to work with the UI, and it doesn't make sense to have
    Manila UI bits on the Manila code if we can place all Manila UI
    related code on the Manila UI repo and, in this case,
    Manila UI Devstack plugin. This patch-set removes all the traces
    of Manila UI setup from the Manila Devstack plugin.
    Manila UI Devstack plugin was added in 457249be7ab3849b3479b96077a411ca37c37a95.

    And, secondly, it fixes Manila UI deploy with Devstack. Enabling
    manila-ui plugin on Devstack properly sets the UI component for
    Manila.

    Change-Id: I7a3372371e25c69d3df6d395c703a6412750effd
    Closes-Bug: #1570033

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

This issue was fixed in the openstack/manila 4.0.0.0b2 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila-ui 2.6.0

This issue was fixed in the openstack/manila-ui 2.6.0 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.