stx-gui has invalid imports

Bug #1789479 reported by Kristine Bujold
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
High
Kristine Bujold

Bug Description

Brief Description
-----------------

Some refactoring was done in stx-gui and some imports are not correct.

Traceback (most recent call last):
  File "/usr/lib64/python2.7/wsgiref/handlers.py", line 85, in run
    self.result = application(self.environ, self.start_response)
  File "/usr/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 170, in __call__
    self.load_middleware()
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 52, in load_middleware
    mw_instance = mw_class()
  File "/usr/lib/python2.7/site-packages/django/middleware/locale.py", line 24, in __init__
    for url_pattern in get_resolver(None).url_patterns:
  File "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py", line 401, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py", line 395, in urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/share/openstack-dashboard/openstack_dashboard/urls.py", line 38, in <module>
    url(r'', include(horizon.urls)),
  File "/usr/lib/python2.7/site-packages/django/conf/urls/__init__.py", line 34, in include
    patterns = getattr(urlconf_module, 'urlpatterns', urlconf_module)
  File "/usr/lib/python2.7/site-packages/django/utils/functional.py", line 225, in inner
    self._setup()
  File "/usr/lib/python2.7/site-packages/django/utils/functional.py", line 376, in _setup
    self._wrapped = self._setupfunc()
  File "/usr/lib/python2.7/site-packages/horizon/base.py", line 833, in url_patterns
    return self._urls()[0]
  File "/usr/lib/python2.7/site-packages/horizon/base.py", line 867, in _urls
    include(dash._decorated_urls)))
  File "/usr/lib/python2.7/site-packages/horizon/base.py", line 544, in _decorated_urls
    include(panel._decorated_urls)))
  File "/usr/lib/python2.7/site-packages/horizon/base.py", line 318, in _decorated_urls
    urlpatterns = self._get_default_urlpatterns()
  File "/usr/lib/python2.7/site-packages/horizon/base.py", line 120, in _get_default_urlpatterns
    urls_mod = import_module('.urls', package_string)
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/lib/python2.7/site-packages/starlingx_dashboard/dashboards/admin/host_topology/urls.py", line 10, in <module>
    from starlingx_dashboard.dashboards.admin.host_topology import views
  File "/usr/lib/python2.7/site-packages/starlingx_dashboard/dashboards/admin/host_topology/views.py", line 26, in <module>
    from starlingx_dashboard.dashboards.admin.host_topology import\
  File "/usr/lib/python2.7/site-packages/starlingx_dashboard/dashboards/admin/host_topology/tabs.py", line 19, in <module>
    from starlingx_dashboard.dashboards.admin.inventory import \
  File "/usr/lib/python2.7/site-packages/starlingx_dashboard/dashboards/admin/inventory/tabs.py", line 26, in <module>
    from starlingx_dashboard.dashboards.admin.inventory.memorys import \
ImportError: No module named memorys

Steps to Reproduce
------------------

Expected Behavior
------------------

Actual Behavior
----------------
This caused Horizon to not be able to launch.

Reproducibility
---------------
Always

System Configuration
--------------------
Any using stx-gui

Timestamp/Logs
--------------
NA

description: updated
Ghada Khalil (gkhalil)
tags: added: stx.gui
Changed in starlingx:
assignee: nobody → Kristine Bujold (kbujold)
importance: Undecided → High
tags: added: stx.2018.10
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to stx-gui (master)

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

Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to stx-gui (master)

Reviewed: https://review.openstack.org/597215
Committed: https://git.openstack.org/cgit/openstack/stx-gui/commit/?id=af152b3ff6cc926b2c8913076e444ef1b36535bf
Submitter: Zuul
Branch: master

commit af152b3ff6cc926b2c8913076e444ef1b36535bf
Author: Kristine Bujold <email address hidden>
Date: Tue Aug 28 15:12:15 2018 -0400

    Wrong import file location for memories

    Fix the import location for memories. Some refactoring was done in
    stx-gui and some imports are not correct. This causes Horizon to
    not be able to launch.

    Closes-Bug: 1789479

    Change-Id: I3908bfa11129c4324b15ce770b89bc29e80aa289
    Signed-off-by: Kristine Bujold <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ken Young (kenyis)
tags: added: stx.1.0
removed: stx.2018.10
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.