Debian: Horizon 500 Internal Server Error in editcpufunctions

Bug #1993662 reported by Cristian Mondo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Cristian Mondo

Bug Description

Brief Description
-----------------

On the locked controller, selecting Edit CPU Assignments results in error

Severity
--------
standard

Steps to Reproduce
------------------
Login to Horizon
Navigate to Host Inventory page
Select the standby controller eg. controller-0
Lock the standby controller-0
View Host Details page, Select Processor tab
Select Edit CPU Assignment button

Expected Behavior
------------------
Expected CPU Assignment dialog to appear

Actual Behavior
----------------
Error results when selecting Edit CPU Assignment

see horizon.log
AttributeError: module 'utils' has no attribute 'restructure_host_cpu_data'

Reproducibility
---------------
yes

System Configuration
--------------------
Debian AIO-dx

Last Pass
---------
Test Phase: New Feature

Timestamp/Logs
--------------
Provide a snippet of logs if available and the timestamp when issue was seen.
Please indicate the unique identifier in the logs to highlight the problem.

Cristian Mondo (cmondo)
Changed in starlingx:
assignee: nobody → Cristian Mondo (cmondo)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to gui (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/gui/+/862149

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

Reviewed: https://review.opendev.org/c/starlingx/gui/+/862149
Committed: https://opendev.org/starlingx/gui/commit/1aa1aaf9970921552d26445e726d6bb5548db809
Submitter: "Zuul (22348)"
Branch: master

commit 1aa1aaf9970921552d26445e726d6bb5548db809
Author: Cristian Mondo <email address hidden>
Date: Thu Oct 20 11:26:40 2022 -0300

    Horizon returns an error when admin edit CPU Assignments

    The error occurs due to a bad reference of utils module, which is being
    loaded from another path, instead of being imported from the directory
    where the utils module is located.

    Updated the path reference to load utils module properly.

    Closes-Bug: 1993662

    Test Plan:
    - Edit CPU assignments on the controller that is locked.

    Signed-off-by: Cristian Mondo <email address hidden>
    Change-Id: I294c254eed361b3d66156d706145ea45793dbe74

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Medium
tags: added: stx.8.0 stx.gui
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.