Horizon internal server error on Project create network and create subnet

Bug #1792152 reported by Wendy Mitchell
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
High
Eddie Ramirez

Bug Description

Title
-----------------
Project, Create Network and Create Subnet operations results in Internal Server Error

Brief Description
-----------------
In Horizon Project, Create Network and Create Subnet operations results in Internal Server Error

Severity
--------
Standard

Steps to Reproduce
------------------
1. As admin or tenant user
Log into Horizon
Navigate to Project - Network - Networks
Select "Create Network"

or alternatively select
Network - Network Topology - Graph tab "Create Network"

2. As admin or tenant user,
Log into Horizon
Navigate to Project - Network - Networks
Select one of the network and try to create a subnet
Subnets - "Create Subnet"

Expected Behavior
------------------
In previous releases "Create Network" would open the "Create Network" dialog (eg Network, Subnet, Subnet Details tabs)
In previous releases the "Create Subnet" would open the "Create Subnet" dialog (eg. Subnet, Subnet Details tabs))

Actual Behavior
----------------
Internal Server Error

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

System Configuration
--------------------
2 controller system

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

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

2018-09-11 17:30:27,343 [ERROR] horizon.workflows.base: Problem instantiating action class.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/horizon/workflows/base.py", line 396, in action
    context)
  File "/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/networks/workflows.py", line 79, in __init__
    if api.base.is_stx_region(request):
  File "/usr/share/openstack-dashboard/openstack_dashboard/api/base.py", line 391, in is_stx_region
    if not base.is_service_enabled(request, 'platform'):
NameError: global name 'base' is not defined
2018-09-11 17:30:27,344 [ERROR] django.request: Internal Server Error: /project/networks/create

2018-09-11 17:31:42,738 [ERROR] horizon.workflows.base: Problem instantiating action class.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/horizon/workflows/base.py", line 396, in action
    context)
  File "/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/networks/workflows.py", line 79, in __init__
    if api.base.is_stx_region(request):
  File "/usr/share/openstack-dashboard/openstack_dashboard/api/base.py", line 391, in is_stx_region
    if not base.is_service_enabled(request, 'platform'):
NameError: global name 'base' is not defined
2018-09-11 17:31:42,738 [ERROR] django.request: Internal Server Error: /project/network_topology/createnetwork

2018-09-11 17:43:35,031 [ERROR] horizon.workflows.base: Problem instantiating action class.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/horizon/workflows/base.py", line 396, in action
    context)
  File "/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/networks/workflows.py", line 395, in __init__
    if not api.base.is_stx_region(request):
  File "/usr/share/openstack-dashboard/openstack_dashboard/api/base.py", line 391, in is_stx_region
    if not base.is_service_enabled(request, 'platform'):
NameError: global name 'base' is not defined
2018-09-11 17:43:35,032 [ERROR] django.request: Internal Server Error: /project/networks/510779f0-895a-4060-b5af-bcde9d71f3c1/subnets/create

Revision history for this message
Frank Miller (sensfan22) wrote :

Tagged as stx.2018.10 since Horizon panel plug-ins in stx-gui is a 2018.10 deliverable.

tags: added: stx.2018.10
Changed in starlingx:
status: New → Triaged
Revision history for this message
Eddie Ramirez (ediardo) wrote :
Ghada Khalil (gkhalil)
tags: added: stx.gui
Dariush Eslimi (deslimi)
Changed in starlingx:
assignee: nobody → Eddie Ramirez (ediardo)
Revision history for this message
Eddie Ramirez (ediardo) wrote :

This change goes stx-horizon side.

PR: https://github.com/starlingx-staging/stx-horizon/pull/8

Revision history for this message
Dean Troyer (dtroyer) wrote :
Changed in starlingx:
status: Triaged → Fix Committed
Dariush Eslimi (deslimi)
Changed in starlingx:
importance: Undecided → High
Revision history for this message
Ghada Khalil (gkhalil) wrote :

Marking as Fix Released. The required commit is available in builds as of 2018-09-13

Changed in starlingx:
status: Fix Committed → 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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.