Error in resolution of name of common package list during prestage preparation

Bug #1962794 reported by Shrikumar Sharma
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Shrikumar Sharma

Bug Description

Brief Description
When the script "prestage-prepare-packages.sh" is invoked, it requires
two files for execution. The script is unable to locate the list of
packages in the current release because we use a regular expression to
search for the name instead of a prefix consisting of a specific id.

Severity
Critical

Steps to Reproduce
Install the script as a patch (along with the two data files) onto stx.6.0
based systemcontroller.

Expected Behavior
The script should be able to locate the files.

Actual Behavior
The script is unable to locate one of the files.

Reproducibility
100% reproducible

System Configuration
DC

Branch/Pull Time/Commit
load: 22.02_2022-02-19_20-00-05
Mar 2, 2022 master build

Last Pass
New test scenario.

Timestamp/Logs

Alarms{}
None

Test Activity
Integration Test

Workaround
None

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

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

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

Reviewed: https://review.opendev.org/c/starlingx/utilities/+/831623
Committed: https://opendev.org/starlingx/utilities/commit/8727c373bbdbd9b99187385154ad01562b48d9d7
Submitter: "Zuul (22348)"
Branch: master

commit 8727c373bbdbd9b99187385154ad01562b48d9d7
Author: Shrikumar Sharma <email address hidden>
Date: Wed Mar 2 17:16:26 2022 -0500

    List of packages in current release not found during prestage
    package preparation

    When the script prestage-prepare-packages.sh is run, it attempts
    to locate a file containing the names of packages and their
    checksums in a given release. The script would fail even if
    the file exists in /usr/local/share/pkg-list. The solution is
    to look for the exact file and not just for files ending in
    _packages_list.txt.

    Test Plan:
    PASS: Verify that the file is correctly resolved when the script
          is run and the file exists at /usr/local/share/pkg-list.

    Closes-Bug: 1962794
    Change-Id: I273b5d70e3b3877ee3a016c88dfd09f7b94be2eb
    Signed-off-by: Shrikumar Sharma <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Revision history for this message
Ghada Khalil (gkhalil) wrote :

screening: stx.7.0 / medium - related to new feature development: https://storyboard.openstack.org/#!/story/2009799

Changed in starlingx:
assignee: nobody → Shrikumar Sharma (ssharma3)
importance: Undecided → Medium
description: updated
tags: added: stx.7.0 stx.distcloud
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.