Prestaged.iso install resumes to normal boot when the rootfs_device
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Shrikumar Sharma |
Bug Description
Brief Description
DC Debian - Prestaged.iso install resumes to normal boot when the rootfs_device does not match with the one defined in the prestaged.iso.
Severity
<Minor: System/Feature is usable with minor issue>
Steps to Reproduce
Generate a prestaged.iso, either using ks-setup or roots_device/
For example, we can use the ks-setup.cfg and the subcloud configuration bellow:
BOARD_VENDOR=$(cat /sys/devices/
BOARD_NAME=$(cat /sys/devices/
PRODUCT_NAME=$(cat /sys/devices/
wlog "BOARD_
wlog "PRODUCT_
if [[ ${PRODUCT_NAME} == *"ProLiant e910t"* ]]; then
rootfs_
elif [[ ${PRODUCT_NAME} == *"Proteus I_Mix"* ]]; then
rootfs_
elif [[ ${PRODUCT_NAME} == *"TRITON"* ]]; then
rootfs_
elif [[ ${PRODUCT_NAME} == *"PowerEdge XR11"* ]]; then
rootfs_
fi
boot_device=
wlog "rootfs_
wlog "boot_device=
subcloud_x disks:
software_version: 22.12
bootstrap_
bootstrap_address: 2620:10a:
bootstrap_
#bmc_address: 2620:10a:
bmc_address: 2620:10a:
bmc_username: sysadmin
#nexthop_gateway: 2620:10a:
##network_address: 2620:10a:
##network_mask: 64
##0 - Standard Controller, Serial Console
##1 - Standard Controller, Graphical Console
##2 - AIO, Serial Console
##3 - AIO, Graphical Console
##4 - AIO Low-latency, Serial Console
##5 - AIO Low-latency, Graphical Console
install_type: 3
console_type: tty0
#bootstrap_vlan: 103
rootfs_device: /dev/disk/
boot_device: /dev/disk/
wait_for_timeout: 3600
no_check_
Note: The disk path of the subcloud does not match with any confuguration we have on ks-setup.cfg
Expected Behavior
The prestaged.iso install should halt with a message saying that the roofs_device/
The boot console should remain active, then user can debug and collect the error logs.
Actual Behavior
The prestaged.iso install halts with a message saying that the inst_dev is invalid and immediately resumes the install to normal boot.
Reproducibility
100% reproducible
System Configuration
DC
Load info (eg: 2022-03-
SW_VERSION="22.12"
BUILD_TARGET="Host Installer"
BUILD_TYPE="Formal"
BUILD_ID=
SRC_BUILD_
BUILD_BY="jenkins"
BUILD_NUMBER="35"
BUILD_HOST=
BUILD_DATE=
Last Pass
new test scenario.
Timestamp/Logs
n/a
Alarms
n/a
Test Activity
Feature Testing
Workaround
n/a
Changed in starlingx: | |
assignee: | nobody → Shrikumar Sharma (ssharma3) |
Changed in starlingx: | |
status: | New → In Progress |
Changed in starlingx: | |
importance: | Undecided → Medium |
importance: | Medium → Low |
tags: | added: stx.8.0 stx.distcloud |
Reviewed: https:/ /review. opendev. org/c/starlingx /metal/ +/870552 /opendev. org/starlingx/ metal/commit/ ea1b8629e67dcf9 a047ad2175e9f72 0d7190205b
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit ea1b8629e67dcf9 a047ad2175e9f72 0d7190205b
Author: Shrikumar Sharma <email address hidden>
Date: Mon Jan 16 14:34:12 2023 +0000
Fix for detection of existing file system in the prestage process
During prestage with a prestage iso, the existing filesystem must
not be overwritten if an installation with an install_guid exists,
when the force_install parameter is not specified.
However, when logical volumes are used, the check for a valid
installation does not succeed, resulting in the installer
overwriting the existing installation.
This commit fixes this issue by inspecting the volume for an
installation. This commit also ensures that if an invalid storage
device is specified for root device, then a failure is reported
and the system breaks into a bash shell.
Test Plan:
PASS: Verify that the installer does not overwrite an existing
installation with an install_guid.
PASS: Verify that the installer reports an error and breaks into
a bash shell if an invalid storage device is specified for root
device.
Closes-Bug: 2002999
Change-Id: I1d4ef10ce741b9 8455c6546736744 8e05f37fd64
Signed-off-by: Shrikumar Sharma <email address hidden>