Follow-up patch for rescue mode devstack change

This patch addresses an issue from the PS30 of
I332223f187783fc06e19e62a886a8a7378c62cf2

Change-Id: I86c55ec8a2f2445616dbae44a4a9f0723eaffb0f
This commit is contained in:
Dao Cong Tien 2018-03-16 16:53:17 +07:00
parent 3f40629c10
commit 5f55422dcd

View File

@ -1775,6 +1775,12 @@ function enroll_nodes {
local interface_info local interface_info
common_node_options="\
--driver-info deploy_kernel=$IRONIC_DEPLOY_KERNEL_ID \
--driver-info deploy_ramdisk=$IRONIC_DEPLOY_RAMDISK_ID \
--driver-info rescue_kernel=$IRONIC_DEPLOY_KERNEL_ID \
--driver-info rescue_ramdisk=$IRONIC_DEPLOY_RAMDISK_ID"
if [[ "$IRONIC_IS_HARDWARE" == "False" ]]; then if [[ "$IRONIC_IS_HARDWARE" == "False" ]]; then
local ironic_node_cpu=$IRONIC_VM_SPECS_CPU local ironic_node_cpu=$IRONIC_VM_SPECS_CPU
local ironic_node_ram=$IRONIC_VM_SPECS_RAM local ironic_node_ram=$IRONIC_VM_SPECS_RAM
@ -1801,12 +1807,7 @@ function enroll_nodes {
--driver-info redfish_username=admin \ --driver-info redfish_username=admin \
--driver-info redfish_password=password" --driver-info redfish_password=password"
fi fi
node_options="\ node_options+=" $common_node_options"
$node_options \
--driver-info deploy_kernel=$IRONIC_DEPLOY_KERNEL_ID \
--driver-info deploy_ramdisk=$IRONIC_DEPLOY_RAMDISK_ID \
--driver-info rescue_kernel=$IRONIC_DEPLOY_KERNEL_ID \
--driver-info rescue_ramdisk=$IRONIC_DEPLOY_RAMDISK_ID"
else else
local ironic_node_cpu=$IRONIC_HW_NODE_CPU local ironic_node_cpu=$IRONIC_HW_NODE_CPU
@ -1880,10 +1881,7 @@ function enroll_nodes {
bmc_username=$(echo $hardware_info |awk '{print $3}') bmc_username=$(echo $hardware_info |awk '{print $3}')
local bmc_passwd local bmc_passwd
bmc_passwd=$(echo $hardware_info |awk '{print $4}') bmc_passwd=$(echo $hardware_info |awk '{print $4}')
local node_options="--driver-info deploy_kernel=$IRONIC_DEPLOY_KERNEL_ID" local node_options="$common_node_options"
node_options+=" --driver-info deploy_ramdisk=$IRONIC_DEPLOY_RAMDISK_ID"
node_options+=" --driver-info rescue_kernel=$IRONIC_DEPLOY_KERNEL_ID"
node_options+=" --driver-info rescue_ramdisk=$IRONIC_DEPLOY_RAMDISK_ID"
if is_deployed_by_ipmitool; then if is_deployed_by_ipmitool; then
node_options+=" --driver-info ipmi_address=$bmc_address \ node_options+=" --driver-info ipmi_address=$bmc_address \