Updates not being copied to proper location when creating bootloader iso
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Shrikumar Sharma |
Bug Description
Brief Description
Update RPMs are not being copied to the proper location when creating the bootloader iso. This is because the location has changed across releases and
the path has not been updated fully.
This causes an updated kickstart to be ignored and a default kickstart is
always used instead.
Severity
<Major: System/Feature is usable but degraded>
Steps to Reproduce
run any scenario that uses prestaged data generated for upgrade or reinstall.
For example
prestage subcloud for reinstall
reinstall subcloud
Expected Behavior
The correct kickstart is downloaded to the subcloud causing subcloud to install packages from prestaged content.
Actual Behavior
The default kickstart is downloaded to the subcloud causing subcloud to download
packages from the systemcontroller.
Reproducibility
issue is 100% reproducible
System Configuration
DC
Last Pass
new test scenario.
Timestamp logs
In the logs bellow you can see all the packages that were donwloaded from the subcloud6 (oam_ip: 2620:10A:
| bmc_ip: 2620:10a:
lighttpd-
Test Activity
Feature Testing
Workaround
none
Changed in starlingx: | |
status: | New → In Progress |
summary: |
- Reinstall prestaged subcloud: Packages are being downloaded instead of - being imported from local + Updates not being copied to proper location when creating bootloader iso |
Changed in starlingx: | |
assignee: | nobody → Shrikumar Sharma (ssharma3) |
description: | updated |
Changed in starlingx: | |
importance: | Undecided → Medium |
tags: | added: stx.7.0 stx.distcloud |
Reviewed: https:/ /review. opendev. org/c/starlingx /utilities/ +/832692 /opendev. org/starlingx/ utilities/ commit/ 468d465c69aae13 179d259c0fa527d 2b54b69e4f
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 468d465c69aae13 179d259c0fa527d 2b54b69e4f
Author: Shrikumar Sharma <email address hidden>
Date: Tue Mar 8 15:22:35 2022 -0500
Path to kickstart files does not exist
On newer releases, when gen-bootloader- iso.sh is executed, /www/pages/ feed/rel- ${ISO_VERSION} . It should /var/www/ pages/feed/ rel-${ISO_ VERSION} (where
it extracts the contents of the platform-kickstarts rpm
(if it was updated and provided as a patch) to
${WORKDIR}
actually extract it to
${WORKDIR}
${WORKDIR} is a temporary directory).
Since the path is incorrect, incorrect behaviour is
observed on the subcloud.
Test Plan:
PASS: Verify that the contents of platform-kickstarts rpm are
${WORKDIR} /var/www/ pages/feed/ rel-${ISO_ VERSION} .
extracted to
Closes-Bug: 1964271
Change-Id: Ibfc9e878a530c9 21437dcf9348427 e2e32a05344
Signed-off-by: Shrikumar Sharma <email address hidden>