1011fd8a1a
The current maintenance 'reinstall' handling requires a host to be booted and online in order to perform a reinstall by asking the mtcClient to wipe the disks and self reboot thereby forcing a network boot and reinstall. This re-install process is problematic for hosts that don't install properly and never come online or on new system installs where the existing boot image on disk is still valid ; local disk as the first boot device. Getting around these issues prior to this update requires manual BIOS intervention to force-select a network boot. This update continues to support the online-wipedisk method for hosts that are not BMC provisioned and adds offline reinstall support through IPMI commands for hosts that are BMC provisioned. For hosts that have the BMC provisioned, the re-install handler will wait up to 10 minutes for maintenance to to establish connectivity to the BMC if it has not already. Then it will issue a devboot pxe IPMI command to tell the BMC to boot from the network on the 'next' reset and then maintenance proceeds to reset that host by a second IPMI command. This way the host will boot from the network and perform a local install even if the current image on disk is valid. No manual BIOS actions required. This update requires a small system inventory update to relax the online requirement for BMC provisioned hosts so that the reinstall to proceed. That update depends on this. This update also does some minor cleanup in the unused mtcAgent test head to fix a static analysis error. Test Plan: With BMC Test Cases: Success ---------------------------- PASS: Verify install requiring power on with valid image on disk ; pass case PASS: Verify install while powered on but offline with invalid image on disk ; pass case PASS: Verify install while powered on but offline with valid image on disk ; pass case PASS: Verify install with UEFI boot PASS: Verify BMC Reinstall on Dell (720) PASS: Verify BMC Reinstall on WC PASS: Verify BMC Reinstall on HP (hp380) PEND: Verify BMC Reinstall on SM PEND: Verify BMC Reinstall on WP COND: Verify install Secure boot - 430 1-2 fails With BMC Test Cases: Failure --------------------------- PASS: Verify reinstall handling during install during online wait ; restarts the install PASS: Verify reinstall handling during install before online wait ; no install interruption PASS: Verify BMC not accessible at ReInstall start ; recovery PASS: Verify BMC not accessible at ReInstall start ; timeout PASS: Verify BMC accessibility loss over Install process PASS: Verify netboot request failure handling ; no/bad response ; max retry PASS: Verify reset request failure handling ; no retries PASS: Verify BMC de-provisioning over install ; failure handling PASS: Verify BMC re-provisioning over install ; BMC initially not accessible PASS: Verify BMC re-provisioning over install ; BMC initially accessible PASS: Verify install requiring power on but gets power-on receive failure PASS: Verify install requiring power on but gets power-on request failure No BMC Test Cases: Success -------------------------- PASS: Verify install when host is powered on and online No BMC Test Cases: Failure -------------------------- PASS: Verify reinstall action handling during reinstall ; no install interruption PASS: Verify install when host is powered off ; install fails PASS: Verify install when host is powered on and offline ; install fails Regression: ----------- PASS: Verify host reset PASS: Verify host power-off PASS: Verify host power-on PASS: Verify host sensor model and monitoring Change-Id: Ic8c8232167c570e4f75c0bbe1604697966157184 Story: 2005650 Task: 30935 Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com> |
||
---|---|---|
.. | ||
common | ||
daemon | ||
.gitignore | ||
LICENSE | ||
Makefile |