Browse code

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

Lucas Alvares Gomes authored on 2015/05/27 19:41:33
Showing 1 changed files
... ...
@@ -569,14 +569,6 @@ function wait_for_nova_resources {
569 569
 function enroll_nodes {
570 570
     local chassis_id=$(ironic chassis-create -d "ironic test chassis" | grep " uuid " | get_field 2)
571 571
 
572
-    if [[ "$IRONIC_DEPLOY_DRIVER" == "pxe_ssh" ]] ; then
573
-        local _IRONIC_DEPLOY_KERNEL_KEY=pxe_deploy_kernel
574
-        local _IRONIC_DEPLOY_RAMDISK_KEY=pxe_deploy_ramdisk
575
-    elif is_deployed_by_agent; then
576
-        local _IRONIC_DEPLOY_KERNEL_KEY=deploy_kernel
577
-        local _IRONIC_DEPLOY_RAMDISK_KEY=deploy_ramdisk
578
-    fi
579
-
580 572
     if ! is_ironic_hardware; then
581 573
         local ironic_node_cpu=$IRONIC_VM_SPECS_CPU
582 574
         local ironic_node_ram=$IRONIC_VM_SPECS_RAM
... ...
@@ -584,8 +576,8 @@ function enroll_nodes {
584 584
         local ironic_ephemeral_disk=$IRONIC_VM_EPHEMERAL_DISK
585 585
         local ironic_hwinfo_file=$IRONIC_VM_MACS_CSV_FILE
586 586
         local node_options="\
587
-            -i $_IRONIC_DEPLOY_KERNEL_KEY=$IRONIC_DEPLOY_KERNEL_ID \
588
-            -i $_IRONIC_DEPLOY_RAMDISK_KEY=$IRONIC_DEPLOY_RAMDISK_ID \
587
+            -i deploy_kernel=$IRONIC_DEPLOY_KERNEL_ID \
588
+            -i deploy_ramdisk=$IRONIC_DEPLOY_RAMDISK_ID \
589 589
             -i ssh_virt_type=$IRONIC_SSH_VIRT_TYPE \
590 590
             -i ssh_address=$IRONIC_VM_SSH_ADDRESS \
591 591
             -i ssh_port=$IRONIC_VM_SSH_PORT \
... ...
@@ -616,8 +608,8 @@ function enroll_nodes {
616 616
             # we create the bare metal flavor with minimum value
617 617
             local node_options="-i ipmi_address=$ipmi_address -i ipmi_password=$ironic_ipmi_passwd\
618 618
                 -i ipmi_username=$ironic_ipmi_username"
619
-            node_options+=" -i $_IRONIC_DEPLOY_KERNEL_KEY=$IRONIC_DEPLOY_KERNEL_ID"
620
-            node_options+=" -i $_IRONIC_DEPLOY_RAMDISK_KEY=$IRONIC_DEPLOY_RAMDISK_ID"
619
+            node_options+=" -i deploy_kernel=$IRONIC_DEPLOY_KERNEL_ID"
620
+            node_options+=" -i deploy_ramdisk=$IRONIC_DEPLOY_RAMDISK_ID"
621 621
         fi
622 622
 
623 623
         # First node created will be used for testing in ironic w/o glance