Region Config: Error in Horizon if select Project - Server Groups

Bug #1797639 reported by Wendy Mitchell
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Invalid
Medium
Pipo

Bug Description

Brief Description
-----------------
STX: Error in Horizon if select Project - Server Groups (eg, Region One)

Severity
--------
Standard

Steps to Reproduce
------------------
1. Login as admin (System Controller)
2. Select Region One from the drop list
and
3. Select Project Compute - Server Groups
http://<address>/project/server_groups/

Expected Behavior
------------------
No service catalog exceptions selecting Region
and no errors navigating to Server Groups in the Region

Actual Behavior
----------------
An error is displayed in Horizon after step 2. (server catalog exception)

step 3 - Horizon displays this error
Error: Invalid service catalog service: compute

see horizon
[ERROR] openstack_dashboard.api.rest.utils: HTTP exception with no status/code
and
[ERROR] horizon.tables.base: Error while checking action permissions.

2018-10-12 20:56:32,588 [INFO] openstack_auth.forms: Login successful for user "admin", remote address 128.224.141.73.
2018-10-12 20:56:32,769 [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": "qvw5Ei8N2W978RBGggqu505WcZYMoM7m", "password": "********"}] message:[None]
2018-10-12 20:56:46,716 [INFO] horizon.middleware.base: Access is not authorized, redirect to: /admin/inventory/
2018-10-12 20:56:48,106 [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:56:48,107 [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
2018-10-12 20:57:00,855 [WARNING] horizon.exceptions: Recoverable error: Invalid service catalog service: compute
2018-10-12 20:57:00,932 [ERROR] horizon.tables.base: Error while checking action permissions.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 1421, in _filter_action
    return action._allowed(request, datum) and row_matched
  File "/usr/lib/python2.7/site-packages/horizon/tables/actions.py", line 142, in _allowed
    return self.allowed(request, datum)
  File "/usr/lib/python2.7/site-packages/starlingx_dashboard/dashboards/project/server_groups/tables.py", line 88, in allowed
    if usages['server_groups']['available'] <= 0:
KeyError: 'available'
2018-10-12 20:57:00,934 [ERROR] horizon.tables.base: Error while checking action permissions.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 1421, in _filter_action
    return action._allowed(request, datum) and row_matched
  File "/usr/lib/python2.7/site-packages/horizon/tables/actions.py", line 142, in _allowed
    return self.allowed(request, datum)
  File "/usr/lib/python2.7/site-packages/starlingx_dashboard/dashboards/project/server_groups/tables.py", line 88, in allowed
    if usages['server_groups']['available'] <= 0:
KeyError: 'available'

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 region config. Doesn't gate stx.2018.10 as it's not a common config

Changed in starlingx:
assignee: nobody → Tyler Smith (tyler.smith)
importance: Undecided → Medium
status: New → Triaged
tags: added: stx.2019.03
summary: - Error in Horizon if select Project - Server Groups (in Region)
+ Region Config: Error in Horizon if select Project - Server Groups
Ghada Khalil (gkhalil)
Changed in starlingx:
assignee: Tyler Smith (tyler.smith) → Bruce Jones (brucej)
Bruce Jones (brucej)
Changed in starlingx:
assignee: Bruce Jones (brucej) → Eddie Ramirez (ediardo)
assignee: Eddie Ramirez (ediardo) → Bruce Jones (brucej)
Bruce Jones (brucej)
Changed in starlingx:
assignee: Bruce Jones (brucej) → Cesar Lara (clara1)
Ken Young (kenyis)
tags: added: stx.2019.05
removed: stx.2019.03
Pipo (tranzemc)
Changed in starlingx:
assignee: Cesar Lara (clara1) → Pipo (tranzemc)
Revision history for this message
Tyler Smith (tyler.smith) wrote :

It may not be worth investigating this issue at the moment. The service catalog exception should go away when we finish the rebase to stein, as we are getting rid of the auto-refresh feature (which i think is the cause), and the server group panel reporting the second exception is being replaced by the upstream angular panel (of which there is a different error being noticed which is having it's own launchpad created)

Revision history for this message
Pipo (tranzemc) wrote :

Based on Tyler's comment, I will close this bug as invalid for the recent changes.

Changed in starlingx:
status: Triaged → Incomplete
status: Incomplete → Invalid
Ken Young (kenyis)
tags: added: stx.2.0
removed: stx.2019.05
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.