Subcloud pre-install failure due to a missing file under feed directory (package_checksums)

Bug #1976378 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

Subcloud pre-install failure due to a missing file under feed directory

Severity

<Critical: System/Feature is not usable after the defect>

Steps to Reproduce

Add a subcloud in a DC system

Expected Behavior

The subcloud should be installed successfully

Actual Behavior

The subcloud install fails at "pre-install" step

Reproducibility

100% reproducible

System Configuration

DC

Load info (eg: 2022-03-10_20-00-07)

load 22.06_2022-05-25_20-00-07

Last Pass

Load: 22.06_2022-05-17_01-09-58

Timestamp/Logs

2022-05-27 03:25:44.936 118332 INFO dcmanager.manager.subcloud_manager [-] Preparing remote install of subcloud4
2022-05-27 03:25:44.985 118332 INFO dccommon.subcloud_install [-] Prepare for subcloud4 remote install
2022-05-27 03:25:44.985 118332 INFO dccommon.subcloud_install [-] Setting input_iso to load vault path /opt/dc-vault/loads/22.06/bootimage.iso
2022-05-27 03:25:44.986 118332 INFO dccommon.subcloud_install [-] Downloaded file:///opt/dc-vault/loads/22.06/bootimage.iso to /opt/dc-vault/loads/22.06/bootimage.iso
2022-05-27 03:25:54.860 118332 ERROR dcmanager.manager.subcloud_manager [-] [Errno 2] No such file or directory: '/var/www/pages/feed/rel-22.06/package_checksums': IOError: [Errno 2] No such file or directory: '/var/www/pages/feed/rel-22.06/package_checksums'
2022-05-27 03:25:54.860 118332 ERROR dcmanager.manager.subcloud_manager Traceback (most recent call last):
2022-05-27 03:25:54.860 118332 ERROR dcmanager.manager.subcloud_manager File "/usr/lib/python2.7/site-packages/dcmanager/manager/subcloud_manager.py", line 715, in run_deploy
2022-05-27 03:25:54.860 118332 ERROR dcmanager.manager.subcloud_manager payload['install_values'])
2022-05-27 03:25:54.860 118332 ERROR dcmanager.manager.subcloud_manager File "/usr/lib/python2.7/site-packages/dccommon/subcloud_install.py", line 454, in prep
2022-05-27 03:25:54.860 118332 ERROR dcmanager.manager.subcloud_manager shutil.copy(pkg_file_src, pkg_file_dest)
2022-05-27 03:25:54.860 118332 ERROR dcmanager.manager.subcloud_manager File "/usr/lib64/python2.7/shutil.py", line 119, in copy
2022-05-27 03:25:54.860 118332 ERROR dcmanager.manager.subcloud_manager copyfile(src, dst)
2022-05-27 03:25:54.860 118332 ERROR dcmanager.manager.subcloud_manager File "/usr/lib64/python2.7/shutil.py", line 82, in copyfile
2022-05-27 03:25:54.860 118332 ERROR dcmanager.manager.subcloud_manager with open(src, 'rb') as fsrc:
2022-05-27 03:25:54.860 118332 ERROR dcmanager.manager.subcloud_manager IOError: [Errno 2] No such file or directory: '/var/www/pages/feed/rel-22.06/package_checksums'

Test Activity

Feature Testing

Workaround

?

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

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

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

Reviewed: https://review.opendev.org/c/starlingx/distcloud/+/844061
Committed: https://opendev.org/starlingx/distcloud/commit/4ab7d35873483a0152eb0b0caeab500fdb1c013d
Submitter: "Zuul (22348)"
Branch: master

commit 4ab7d35873483a0152eb0b0caeab500fdb1c013d
Author: Shrikumar Sharma <email address hidden>
Date: Tue May 31 09:58:13 2022 -0400

    Subcloud pre-install failure due to a missing file

    When system controller is installed via pxeboot from a server
    that does not have the package_checksum file, then subcloud
    install will fail.

    This issue has been resolved by extracting the file from
    bootimage.iso in /opt/dc-vault/rel-id/, and copying it to
    the relevant locations.

    Test Plan:
    PASS: Verify that the file is copied to the correct location
          when running dcmanager subcloud add.

    PASS: Verify that package_checksum file is only extracted once.

    Closes-Bug: 1976378

    Change-Id: Ib6ad37ce486a4c711772d0b5aeae7276cc758deb
    Signed-off-by: Shrikumar Sharma <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
assignee: nobody → Shrikumar Sharma (ssharma3)
importance: Undecided → Medium
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.