Horizon Edit Device action fails with error global name 'stx_api' is not defined

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

Bug Description

Brief Description
-----------------
STX Horizon: Horizon Edit Device action fails with error global name 'stx_api' is not defined

Severity
--------
Standard

Steps to Reproduce
------------------
1. Log into Horizon
2. Navigate to Host Inventory
3. Devices
4. The Devices are listed. Select Edit Action
5. Attempt to update the config of the device from the Edit Device dialog.

Expected Behavior
------------------
Not expecting errors on Save action in Edit Device dialog

Actual Behavior
----------------
In step 5 the updates in the Edit Device dialog do not work and result in error
Error: Failed to update device "pci_0000_00_11_0" (global name 'stx_api' is not defined).

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

System Configuration
--------------------
2 node

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

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

2018-09-13 20:00:59,566 [WARNING] horizon.exceptions: Recoverable error: global name 'stx_api' is not defined
2018-09-13 20:00:59,568 [INFO] horizon.operation_log: [admin ba5cf23f48594e9f9808d0a2535011a1] [admin 50b29e136c38454c9cac4e919ffc1df9] [POST /admin/inventory/2/devices/456529fc-1653-4893-be01-de906eaef755/update/ 200] parameters:[{"name": "pci_0000_00_11_0", "enabled": "on", "device_name": "C610/X99 series chipset SPSR", "pciaddr": "0000:00:11.0", "host_id": "2", "csrfmiddlewaretoken": "4Q2RxXgVC4aJfHJl4WdRVWS3P3TtYbPW", "uuid": "456529fc-1653-4893-be01-de906eaef755"}] message:[error: Failed to update device "pci_0000_00_11_0" (global name 'stx_api' is not defined).]
2018-09-13 20:01:28,938 [WARNING] horizon.exceptions: Recoverable error: global name 'stx_api' is not defined
2018-09-13 20:01:28,940 [INFO] horizon.operation_log: [admin ba5cf23f48594e9f9808d0a2535011a1] [admin 50b29e136c38454c9cac4e919ffc1df9] [POST /admin/inventory/2/devices/456529fc-1653-4893-be01-de906eaef755/update/ 200] parameters:[{"uuid": "456529fc-1653-4893-be01-de906eaef755", "device_name": "C610/X99 series chipset SPSR", "pciaddr": "0000:00:11.0", "host_id": "2", "csrfmiddlewaretoken": "4Q2RxXgVC4aJfHJl4WdRVWS3P3TtYbPW", "name": "pci_0000_00_11_0s"}] message:[error: Failed to update device "pci_0000_00_11_0s" (global name 'stx_api' is not defined).]

Ghada Khalil (gkhalil)
tags: added: stx.gui
Ghada Khalil (gkhalil)
tags: added: stx.2018.10
Changed in starlingx:
importance: Undecided → High
Changed in starlingx:
assignee: nobody → Kristine Bujold (kbujold)
status: New → In Progress
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/603495

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to stx-gui (master)

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

commit 93a902bb46f12c5ac08626a8bf31f998f6ee41d4
Author: Kristine Bujold <email address hidden>
Date: Tue Sep 18 16:56:31 2018 -0400

    Fix bug in the starlingx_dashboard api import

    Closes-Bug: 1792461

    Change-Id: Ie9c8a6f6d97f88e31df698fed1584d0bb8fde791
    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.