Horizon: Error viewing System Information page on system with https

Bug #1794373 reported by Wendy Mitchell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Bin Qian

Bug Description

STX Horizon: Error viewing System Information page on system with https

Brief Description
-----------------
Failure to navigate to Admin -> System -> System Information horizon where https is enabled (BadStatusLine error)

Severity
--------
Major: Unable to view System Information content

Steps to Reproduce
------------------
Login as admin in Horizon (where https has been enabled)
Navigate to Admin - system information

Expected Behavior
------------------
Navigation and display of System Information page

Actual Behavior
----------------
Internal Server Error prevents navigation on Horizon

Reproducibility
---------------
reproduce where https enabled

System Configuration
--------------------
Storage system with 3 computes.

Branch/Pull Time/Commit
-----------------------

Timestamp/Logs
--------------
horizon.log

2018-09-25 20:49:29,662 [ERROR] django.request: Internal Server Error: /admin/info/
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/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/horizon/tabs/views.py", line 140, in get
    context = self.get_context_data(**kwargs)
  File "/usr/share/openstack-dashboard/openstack_dashboard/dashboards/admin/info/views.py", line 35, in get_context_data
    context = super(IndexView, self).get_context_data(**kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/tables/views.py", line 107, in get_context_data
    context = super(MultiTableMixin, self).get_context_data(**kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/tabs/views.py", line 55, in get_context_data
    exceptions.handle(self.request)
  File "/usr/lib/python2.7/site-packages/horizon/exceptions.py", line 364, in handle
    six.reraise(exc_type, exc_value, exc_traceback)
  File "/usr/lib/python2.7/site-packages/horizon/tabs/views.py", line 53, in get_context_data
    context["tab_group"].load_tab_data()
  File "/usr/lib/python2.7/site-packages/horizon/tabs/base.py", line 127, in load_tab_data
    exceptions.handle(self.request)
  File "/usr/lib/python2.7/site-packages/horizon/exceptions.py", line 364, in handle
    six.reraise(exc_type, exc_value, exc_traceback)
  File "/usr/lib/python2.7/site-packages/horizon/tabs/base.py", line 124, in load_tab_data
    tab._data = tab.get_context_data(self.request)
  File "/usr/lib/python2.7/site-packages/horizon/tabs/base.py", line 481, in get_context_data
    self.load_table_data()
  File "/usr/lib/python2.7/site-packages/horizon/tabs/base.py", line 462, in load_table_data
    table.data = data_func()
  File "/usr/share/openstack-dashboard/openstack_dashboard/dashboards/admin/info/tabs.py", line 196, in get_controller_services_data
    nodes = iservice.sm_nodes_list(self.tab_group.request)
  File "/usr/share/openstack-dashboard/openstack_dashboard/api/iservice.py", line 52, in sm_nodes_list
    nodes = sm_client(request).sm_nodes.list()
  File "/usr/lib/python2.7/site-packages/sm_client/v1/sm_nodes.py", line 41, in list
    return self._list(self._path(), "nodes")
  File "/usr/lib/python2.7/site-packages/sm_client/common/base.py", line 60, in _list
    resp, body = self.api.json_request('GET', url)
  File "/usr/lib/python2.7/site-packages/sm_client/common/http.py", line 201, in json_request
    resp, body_iter = self._http_request(url, method, **kwargs)
  File "/usr/lib/python2.7/site-packages/sm_client/common/http.py", line 159, in _http_request
    resp = conn.getresponse()
  File "/usr/lib64/python2.7/httplib.py", line 1113, in getresponse
    response.begin()
  File "/usr/lib64/python2.7/httplib.py", line 444, in begin
    version, status, reason = self._read_status()
  File "/usr/lib64/python2.7/httplib.py", line 408, in _read_status
    raise BadStatusLine(line)
BadStatusLine: ''
2018-09-25 20:49:29,768 [WARNING] django.request: Not Found: /favicon.ico
2018-09-25 20:49:29,781 [WARNING] django.request: Not Found: /favicon.ico

Tags: stx.1.0 stx.ha
Revision history for this message
Ghada Khalil (gkhalil) wrote :

Targeting stx.2018.10 as this issue was introduced by the SM API de-coupling

Changed in starlingx:
importance: Undecided → Medium
status: New → Triaged
assignee: nobody → Bin Qian (bqian20)
tags: added: stx.2018.10 stx.ha
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to stx-config (master)

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

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

Reviewed: https://review.openstack.org/605506
Committed: https://git.openstack.org/cgit/openstack/stx-config/commit/?id=e36c57fd77ee10977fe1ae523eab9382e24b70e0
Submitter: Zuul
Branch: master

commit e36c57fd77ee10977fe1ae523eab9382e24b70e0
Author: Bin Qian <email address hidden>
Date: Wed Sep 26 14:42:26 2018 -0400

    Horizon: Error viewing system information page with https

    When system is configured with https, the sm-api internal endpoint
    is incorrectly configured with https in haproxy.

    Closes-Bug: #1794373

    Change-Id: I0d2bc14dc5b2ac89b0720e8bddd6fb63348f3afd
    Signed-off-by: Bin Qian <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.