1a6fd50e2c
This update modifies the miniboot kickstart so rpm Packages repodata and patches are fetched from the system controller only once during a Redfish subcloud install. The existing packages mirror operation done in the %post phase is moved to the %pre phase. However, since the in-service feed dir does not exist at that time, the fetched content is staged to /mnt/install/repo as /mnt/install/repo/Packages /mnt/install/repo/repodata /mnt/install/repo/patches The %post phase fetch code that was moved is replaced with code that positions the %pre fetched content to the local filesystem here: # feed directory /var/www/pages/feed/rel-xx.xx/Packages /var/www/pages/feed/rel-xx.xx/repodata # updates directory /var/www/pages/updates/rel-xx.xx/Packages /var/www/pages/updates/rel-xx.xx/repodata # patching directory /opt/patching/packages /opt/patching/metadata The miniboot kickstart is updated with a detailed description of the various staging/prestaging install options along with logging enhancements that show the source and destination flow of packages, repodata and patches in the installation process. Also modified kickstart to ensure that Prestaged Content takes precedence over prestaged ISO. Both of which take precedence over Staged Install. Moved Prestaged content check to %pre stage som that the next priority install option can be taken rather than a belated install failure. Test Plan PASS: Verify single packages pull over subcloud controller-0 install PASS: Verify with both UEFI and BIOS across various servers PASS: Verify end-to-end subcloud installs (60+) Packages PASS: Verify install time is shorter PASS: Compare feed directory before/after install PASS: Compare package/repodata data transfer before/after install Patch Handling PASS: Compare patched content before/after installed subcloud PASS: Verify patched updates are mirrored and auto applied PASS: Verify patches can be applied and remove after install PASS: Verify patch handling for both prestaged iso committed patches as well as non-committed patches. PASS: Verify patch handling when installing subclouds from a system controller that has committed patches for all 3 install cases. Failure Handling PASS: Verify staging feed failure leads to installation failure ; parity behavior PASS: Verify handling of failed lighttpd during packages download PASS: Verify report_post_failure change handling Robustness PASS: Verify install to wiped disk PASS: Verify reinstall of same controller PASS: Verify expected lighttpd traffic logs PASS: Verify success path logs PASS: Verify install case logs show the install source/destination PASS: Verify failure path error handling and messages Prestaging Cases: PASS: Verify prestaged ISO end-to-end install (25+) PASS: Verify Prestaged Content install is priority 1 PASS: Verify Prestaged ISO install is priority 2 PASS: Verify Staged install is priority 3 PASS: Verify cascade of priority handling due to errors PASS: Verify patches fetch from SC for Prestaged content install PASS: Verify patches fetch from SC for Prestaged ISO install PASS: Verify Prestaged Content Install with and without valid and invalid prestaged images PASS: Verify Prestaged ISO install with and without prestaged valid and invalid prestaged images PASS: Verify Prestaged ISO check failure leads to Prestaged Content Install PASS: Verify Prestaged ISO check failure leads to Staged Install with incomplete prestaged content PASS: Verify Prestaged ISO check failure leads to Staged install if prestaged repodata or Packages dir is not present or empty Change-Id: I54ff9f7570d77efbb860904094adc5b6b8a3bf8d Closes-Bug: 1971157 Signed-off-by: emacdona <eric.macdonald@windriver.com> |
||
---|---|---|
.. | ||
kickstarts | ||
upgrades | ||
centos-ks-gen.pl | ||
centos.syslinux.cfg | ||
filter_out_from_controller | ||
filter_out_from_prestaging | ||
filter_out_from_smallsystem | ||
filter_out_from_smallsystem_lowlatency | ||
filter_out_from_storage | ||
filter_out_from_worker | ||
filter_out_from_worker_lowlatency | ||
grub.cfg | ||
pkg-list.pl | ||
platform_comps.py | ||
pxeboot_grub.cfg | ||
pxeboot_setup.sh | ||
pxeboot.cfg |