Log data migration script output when script failed

Bug #1989742 reported by Bin Qian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Bin Qian

Bug Description

this is an enhancement for logging stdout/stderr from data migration scripts on failure, especially for shell scripts. error output could be the best debug info to indicate the failure.

Bin Qian (bqian20)
Changed in starlingx:
assignee: nobody → Bin Qian (bqian20)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to config (master)

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

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

Reviewed: https://review.opendev.org/c/starlingx/config/+/857934
Committed: https://opendev.org/starlingx/config/commit/b6cc163bc617c8d41b090268b5f0abc9ac114d9e
Submitter: "Zuul (22348)"
Branch: master

commit b6cc163bc617c8d41b090268b5f0abc9ac114d9e
Author: Bin Qian <email address hidden>
Date: Thu Sep 15 14:41:54 2022 +0000

    Log data migration script output when failure

    Capture script stdout and stderr. Log outputs when script fails.
    Do not log exception unless script cannot run.

    Closes-bug: 1989742

    TCs:
        1. No log for execution succeed
        2. script output is logged when script fails
        3. exception is logged when script not executed (e.g, file not
           found, etc)

    Signed-off-by: Bin Qian <email address hidden>
    Change-Id: I9c5e01e0937db02624f8c4b9bff5ccb2fae73249

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