software deploy precheck command fails for patch releases

Bug #2065844 reported by Joseph Vazhappilly
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Joseph Vazhappilly

Bug Description

Brief Description
-----------------
For patch releases the command 'software deploy precheck starlingx-24.03.1' fails to run with exception in /var/log/software.log

Severity
--------
Major

Steps to Reproduce
------------------
Upload a patch and execute precheck on the patch
software upload ./inservice-patch-24.03.1.patch
software deploy precheck starlingx-24.03.1

Expected Behavior
------------------
Software precheck should report the status of precheck

Actual Behavior
----------------
Software precheck fails with exception

Reproducibility
---------------
100

System Configuration
--------------------
NA

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

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

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

Test Activity
-------------
Developer Testing

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to update (master)

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

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

Reviewed: https://review.opendev.org/c/starlingx/update/+/919815
Committed: https://opendev.org/starlingx/update/commit/ecdf5f489072ebe7cb8417c387edcc2814e6dcc8
Submitter: "Zuul (22348)"
Branch: master

commit ecdf5f489072ebe7cb8417c387edcc2814e6dcc8
Author: Joseph Vazhappilly <email address hidden>
Date: Thu May 16 04:39:57 2024 -0400

    Fix software deploy precheck failure for patches

    The patch release may not contain deploy-precheck script and will
    cause failure when run 'software deploy precheck <patch release>'.
    This change will skip precheck in case of patches if script is not
    available.

    Test Plan:
    PASS: Upload a patch without 'deploy-precheck' and execute precheck
          (Eg. $ software upload ./inservice-patch-24.03.1.patch
               $ software deploy precheck starlingx-24.03.1)

    Closes-Bug: 2065844

    Change-Id: I8c6d3d8285e5690c6130ab33772d447d746c7130
    Signed-off-by: Joseph Vazhappilly <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Medium
tags: added: stx.10.0 stx.update
Changed in starlingx:
assignee: nobody → Joseph Vazhappilly (jvazhapp)
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.