Ironic: Remove deprecated parameters
Ironic have updated some parameters to have a consistent name across drivers. This patch is updating devstack to stop using the pxe_deploy_{kernel, ramdisk} parameters which have been deprecated since early Kilo eliminating the deprecation warnings in the logs. WARNING ironic.drivers.modules.pxe [-] The "pxe_deploy_kernel" parameter is deprecated. Please update the node 267e42c8-df07-49f5-bc7f-48b566acb109 to use "deploy_kernel" instead. WARNING ironic.drivers.modules.pxe [-] The "pxe_deploy_ramdisk" parameter is deprecated. Please update the node 267e42c8-df07-49f5-bc7f-48b566acb109 to use "deploy_ramdisk" instead. Change-Id: I3dcf8df130efc0c2ea35695018bedba31bf0570c
This commit is contained in:
parent
5d5e997755
commit
73d24b2c1c
16
lib/ironic
16
lib/ironic
@ -569,14 +569,6 @@ function wait_for_nova_resources {
|
||||
function enroll_nodes {
|
||||
local chassis_id=$(ironic chassis-create -d "ironic test chassis" | grep " uuid " | get_field 2)
|
||||
|
||||
if [[ "$IRONIC_DEPLOY_DRIVER" == "pxe_ssh" ]] ; then
|
||||
local _IRONIC_DEPLOY_KERNEL_KEY=pxe_deploy_kernel
|
||||
local _IRONIC_DEPLOY_RAMDISK_KEY=pxe_deploy_ramdisk
|
||||
elif is_deployed_by_agent; then
|
||||
local _IRONIC_DEPLOY_KERNEL_KEY=deploy_kernel
|
||||
local _IRONIC_DEPLOY_RAMDISK_KEY=deploy_ramdisk
|
||||
fi
|
||||
|
||||
if ! is_ironic_hardware; then
|
||||
local ironic_node_cpu=$IRONIC_VM_SPECS_CPU
|
||||
local ironic_node_ram=$IRONIC_VM_SPECS_RAM
|
||||
@ -584,8 +576,8 @@ function enroll_nodes {
|
||||
local ironic_ephemeral_disk=$IRONIC_VM_EPHEMERAL_DISK
|
||||
local ironic_hwinfo_file=$IRONIC_VM_MACS_CSV_FILE
|
||||
local node_options="\
|
||||
-i $_IRONIC_DEPLOY_KERNEL_KEY=$IRONIC_DEPLOY_KERNEL_ID \
|
||||
-i $_IRONIC_DEPLOY_RAMDISK_KEY=$IRONIC_DEPLOY_RAMDISK_ID \
|
||||
-i deploy_kernel=$IRONIC_DEPLOY_KERNEL_ID \
|
||||
-i deploy_ramdisk=$IRONIC_DEPLOY_RAMDISK_ID \
|
||||
-i ssh_virt_type=$IRONIC_SSH_VIRT_TYPE \
|
||||
-i ssh_address=$IRONIC_VM_SSH_ADDRESS \
|
||||
-i ssh_port=$IRONIC_VM_SSH_PORT \
|
||||
@ -616,8 +608,8 @@ function enroll_nodes {
|
||||
# we create the bare metal flavor with minimum value
|
||||
local node_options="-i ipmi_address=$ipmi_address -i ipmi_password=$ironic_ipmi_passwd\
|
||||
-i ipmi_username=$ironic_ipmi_username"
|
||||
node_options+=" -i $_IRONIC_DEPLOY_KERNEL_KEY=$IRONIC_DEPLOY_KERNEL_ID"
|
||||
node_options+=" -i $_IRONIC_DEPLOY_RAMDISK_KEY=$IRONIC_DEPLOY_RAMDISK_ID"
|
||||
node_options+=" -i deploy_kernel=$IRONIC_DEPLOY_KERNEL_ID"
|
||||
node_options+=" -i deploy_ramdisk=$IRONIC_DEPLOY_RAMDISK_ID"
|
||||
fi
|
||||
|
||||
# First node created will be used for testing in ironic w/o glance
|
||||
|
Loading…
Reference in New Issue
Block a user