Unable to create a subcloud due I/O operation on closed file

Bug #2055446 reported by Hugo Nicodemos Brito
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
High
Hugo Nicodemos Brito

Bug Description

Brief Description
-----------------
When the user tries to add a subcloud to the system controller an error occurs: ERROR (app) I/O operation on closed file

Severity
--------
<Critical: System/Feature is not usable due to the defect>

Steps to Reproduce
------------------
Execute: dcmanager subcloud add --bootstrap-values <config_file>

Expected Behavior
------------------
Subcloud created successfully

Actual Behavior
----------------
ERROR (app) I/O operation on closed file

Reproducibility
---------------
<Reproducible>

System Configuration
--------------------
All configurations

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

Last Pass
---------
NA

Timestamp/Logs
--------------
NA

Test Activity
-------------
NA

Workaround
----------
NA

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to distcloud-client (master)
Changed in starlingx:
status: New → In Progress
Revision history for this message
Ghada Khalil (gkhalil) wrote :
Changed in starlingx:
importance: Undecided → High
tags: added: stx.dist
tags: added: stx.9.0 stx.distcloud
removed: stx.dist
Ghada Khalil (gkhalil)
Changed in starlingx:
assignee: nobody → Hugo Nicodemos Brito (hbrito)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to distcloud-client (master)

Reviewed: https://review.opendev.org/c/starlingx/distcloud-client/+/910653
Committed: https://opendev.org/starlingx/distcloud-client/commit/d847780a4d179485bc76f57e56951ce380eae26a
Submitter: "Zuul (22348)"
Branch: master

commit d847780a4d179485bc76f57e56951ce380eae26a
Author: Hugo Brito <email address hidden>
Date: Thu Feb 29 14:25:49 2024 -0300

    Fix subcloud fields update

    This commit addresses the issue encountered when updating the
    subcloud fields directly with a file introduced by [1]. This
    caused issues because the file would be closed, making the content
    inaccessible. Now, we update the fields using the file content.

    An intermittent error, introduced by [2], was fixed in the
    test_prestage_with_subcloud_id test.

    [1]: https://review.opendev.org/c/starlingx/distcloud-client/+/909454
    [2]: https://review.opendev.org/c/starlingx/distcloud-client/+/909975

    Test Plan:
    PASS: Create a subcloud
    PASS: Update a subcloud
    PASS: Create a subcloud backup
    PASS: Subcloud deploy create
    PASS: Subcloud deploy upload

    Closes-bug: 2055446

    Change-Id: Ib8b831353dba9d073131eb1c12ccd57513c63e7f
    Signed-off-by: Hugo Brito <email address hidden>

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