Brief Description
---------------------------------------------------------------------------------------------
Kernel and initrd patching works today for an existing installed system.
The issue is that because the /var/pxeboot/rel-xx.xx and /var/www/pages/feed/rel-xx.xx dirs which contain the kernel/initrd images used to do system node installs are not provisioned by ostree automatically but rather by the kickstart, any kernel/initrd patch changes need to be synced to these directories before we allow any host re-installs or new installs so they get the patch current images.
Thus, after patching of a controller, we need a script to run which syncs the kernel/initrd images from /boot to the /var/pxeboot/rel-xx.xx and feed dir before we install new nodes or re-install any existing nodes so that they get the patch current kernel/initrd images.
Severity
---------------------------------------------------------------------------------------------
Minor
Steps to Reproduce
---------------------------------------------------------------------------------------------
Apply and install a kernel patch
Expected Behavior
---------------------------------------------------------------------------------------------
The kernel and intrd images should be synced to /boot to the /var/pxeboot/rel-xx.xx and feed dir before we install new nodes or re-install any existing nodes
Actual Behavior
---------------------------------------------------------------------------------------------
The kernel and intrd images are not synced to /boot to the /var/pxeboot/rel-xx.xx and feed dir before we install new nodes or re-install any existing nodes
Reproducibility
---------------------------------------------------------------------------------------------
100% reproducible
System Configuration
---------------------------------------------------------------------------------------------
All
Load info (eg: 2022-03-10_20-00-07)
---------------------------------------------------------------------------------------------
27th Oct, 2022
Last Pass
---------------------------------------------------------------------------------------------
New test scenario.
Timestamp/Logs
---------------------------------------------------------------------------------------------
N/A
Alarms
---------------------------------------------------------------------------------------------
N/A
Test Activity
---------------------------------------------------------------------------------------------
Developer Testing
Workaround
---------------------------------------------------------------------------------------------
Manually copy it
Change abandoned by "Jessica Castelino <email address hidden>" on branch: master /review. opendev. org/c/starlingx /update/ +/864063 d/pxeboot_ feed.sh) . Since kernel patches are always RR, this script will run on host-unlock and we don't need additional changes within patch-agent for it.
Review: https:/
Reason: The script that patching was supposed to run as a part of this commit, is run during reboot (/etc/init.