Distributed Cloud: Error in Horizon if system controller Active Alarms action from Cloud Overview page

Bug #1797637 reported by Wendy Mitchell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Won't Fix
Low
Tyler Smith

Bug Description

Brief Description
-----------------
STX: Error in Horizon if system controller Active Alarms action from Cloud Overview page

Severity
--------
Standard

Steps to Reproduce
------------------
***Login as admin (if you are logged in log out then back in)
Select Project (as System controller)
Click on Compute from the left panel (Viewing DC_admin "Cloud Overview" page)
Select 'Alarm, & Event Details' action - to view admin Region One's 'Active Alarms (in Fault_management page)

http://<address>/admin/fault_management/

Expected Behavior
------------------
View Fault_management page without horizon errors

Actual Behavior
----------------
An error is displayed prior to displaying the Fault Management page (for admin RegionOne)
see errors in Horizon

2018-10-12 20:23:50,705 [INFO] openstack_auth.forms: Login successful for user "admin", remote address 128.224.141.73.
2018-10-12 20:23:50,884 [INFO] horizon.operation_log: [admin e08421a805194cc8a7a55ba606a71f80] [admin d218215ed916437b8bc98d8fders:[{"fake_email": "", "username": "admin", "fake_password": "********", "region": "http://controller:5000/v3", "csrfmiddlewarjO", "password": "********"}] message:[None]
2018-10-12 20:24:54,644 [ERROR] django.request: Internal Server Error: /admin/fault_management/banner/
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 52, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 84, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 52, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 84, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 71, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 89, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 158, in get
    context = self.get_context_data(**kwargs)
  File "/usr/lib/python2.7/site-packages/starlingx_dashboard/dashboards/admin/fault_management/views.py", line 147, in get_context_data
    summaries = self.get_subcloud_data()
  File "/usr/lib/python2.7/site-packages/starlingx_dashboard/dashboards/admin/fault_management/views.py", line 175, in get_subcloud_data
    return dc_manager.alarm_summary_list(self.request)
  File "/usr/lib/python2.7/site-packages/starlingx_dashboard/api/dc_manager.py", line 42, in alarm_summary_list
    summaries = dcmanagerclient(request).alarm_manager.list_alarms()
  File "/usr/lib/python2.7/site-packages/horizon/utils/memoized.py", line 88, in wrapped
    value = cache[key] = func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/starlingx_dashboard/api/dc_manager.py", line 29, in dcmanagerclient
    endpoint = base.url_for(request, 'dcmanager', 'adminURL')
  File "/usr/share/openstack-dashboard/openstack_dashboard/api/base.py", line 352, in url_for
    raise exceptions.ServiceCatalogException(service_type)
ServiceCatalogException: Invalid service catalog service: dcmanager

2018-10-12 20:48:36,266 [INFO] openstack_auth.forms: Login successful for user "admin", remote address 128.224.141.73.
2018-10-12 20:48:36,583 [INFO] horizon.operation_log: [admin e08421a805194cc8a7a55ba606a71f80] [admin d218215ed916437b8bc98d8fdf94e0c3] [POST /auth/login/ 302] parameters:[{"fake_email": "", "username": "admin", "fake_password": "********", "region": "http://controller:5000/v3", "csrfmiddlewaretoken": "dRbtKvykWZNsxpvgmvMvfVDnMY2vrBCf", "password": "********"}] message:[None]
2018-10-12 20:48:46,940 [ERROR] openstack_dashboard.api.rest.utils: HTTP exception with no status/code
Traceback (most recent call last):
  File "/usr/share/openstack-dashboard/openstack_dashboard/api/rest/utils.py", line 128, in _wrapped
    data = function(self, request, *args, **kw)
  File "/usr/lib/python2.7/site-packages/starlingx_dashboard/api/rest/dc_manager.py", line 75, in get
    result = dc_manager.subcloud_list(request)
  File "/usr/lib/python2.7/site-packages/starlingx_dashboard/api/dc_manager.py", line 56, in subcloud_list
    subclouds = dcmanagerclient(request).subcloud_manager.list_subclouds()
  File "/usr/lib/python2.7/site-packages/horizon/utils/memoized.py", line 88, in wrapped
    value = cache[key] = func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/starlingx_dashboard/api/dc_manager.py", line 29, in dcmanagerclient
    endpoint = base.url_for(request, 'dcmanager', 'adminURL')
  File "/usr/share/openstack-dashboard/openstack_dashboard/api/base.py", line 352, in url_for
    raise exceptions.ServiceCatalogException(service_type)
ServiceCatalogException: Invalid service catalog service: dcmanager
2018-10-12 20:48:46,940 [ERROR] openstack_dashboard.api.rest.utils: HTTP exception with no status/code
Traceback (most recent call last):
  File "/usr/share/openstack-dashboard/openstack_dashboard/api/rest/utils.py", line 128, in _wrapped
    data = function(self, request, *args, **kw)
  File "/usr/lib/python2.7/site-packages/starlingx_dashboard/api/rest/dc_manager.py", line 96, in get
    result = dc_manager.alarm_summary_list(request)
  File "/usr/lib/python2.7/site-packages/starlingx_dashboard/api/dc_manager.py", line 42, in alarm_summary_list
    summaries = dcmanagerclient(request).alarm_manager.list_alarms()
  File "/usr/lib/python2.7/site-packages/horizon/utils/memoized.py", line 88, in wrapped
    value = cache[key] = func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/starlingx_dashboard/api/dc_manager.py", line 29, in dcmanagerclient
    endpoint = base.url_for(request, 'dcmanager', 'adminURL')
  File "/usr/share/openstack-dashboard/openstack_dashboard/api/base.py", line 352, in url_for
    raise exceptions.ServiceCatalogException(service_type)
ServiceCatalogException: Invalid service catalog service: dcmanager

Reproducibility
---------------
Reproducible

System Configuration
--------------------
DC System Controller

Branch/Pull Time/Commit
-----------------------
Master as of: 2018-10-08_01-52-01

Timestamp/Logs
--------------
see horizon.log time inline

Ghada Khalil (gkhalil)
tags: added: stx.gui
Revision history for this message
Ghada Khalil (gkhalil) wrote :

Targeting stx.2019.03 - horizon issue with distributed cloud. Doesn't gate stx.2018.10 as it's not a common config

Changed in starlingx:
importance: Undecided → Medium
assignee: nobody → Tyler Smith (tyler.smith)
status: New → Triaged
tags: added: stx.2019.03
Ghada Khalil (gkhalil)
summary: - Error in Horizon if system controller Active Alarms action from Cloud
- Overview page
+ Distributed Cloud: Error in Horizon if system controller Active Alarms
+ action from Cloud Overview page
Ghada Khalil (gkhalil)
tags: added: stx.distcloud
Ken Young (kenyis)
tags: added: stx.2019.05
removed: stx.2019.03
Ken Young (kenyis)
tags: added: stx.2.0
removed: stx.2019.05
Ghada Khalil (gkhalil)
tags: added: stx.retestneeded
Bill Zvonar (billzvonar)
tags: added: stx.3.0
removed: stx.2.0
Revision history for this message
Ghada Khalil (gkhalil) wrote :

There are significant changes required to support Distributed Cloud in stx due to the containerized environment. Based on discussion with the Distributed Cloud PL, Dariush Eslimi, we agreed to close old Distributed Cloud bugs as Won't Fix. A full test cycle will be needed to verify the new implementation and new bugs can be opened for the issues reported then.

Changed in starlingx:
importance: Medium → Low
status: Triaged → Won't Fix
tags: removed: stx.3.0
Revision history for this message
Wendy Mitchell (wmitchellwr) wrote :

closing per wont fix decision above

tags: removed: stx.retestneeded
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.