Browse code

Merge "add the kernel/ramdisk id to driver_info"

Jenkins authored on 2014/12/12 01:16:21
Showing 1 changed files
... ...
@@ -566,10 +566,8 @@ function enroll_nodes {
566 566
             # we create the bare metal flavor with minimum value
567 567
             local node_options="-i ipmi_address=$ipmi_address -i ipmi_password=$ironic_ipmi_passwd\
568 568
                 -i ipmi_username=$ironic_ipmi_username"
569
-            if is_deployed_by_agent; then
570
-                node_options+=" -i $_IRONIC_DEPLOY_KERNEL_KEY=$IRONIC_DEPLOY_KERNEL_ID"
571
-                node_options+=" -i $_IRONIC_DEPLOY_RAMDISK_KEY=$IRONIC_DEPLOY_RAMDISK_ID"
572
-            fi
569
+            node_options+=" -i $_IRONIC_DEPLOY_KERNEL_KEY=$IRONIC_DEPLOY_KERNEL_ID"
570
+            node_options+=" -i $_IRONIC_DEPLOY_RAMDISK_KEY=$IRONIC_DEPLOY_RAMDISK_ID"
573 571
         fi
574 572
 
575 573
         local node_id=$(ironic node-create --chassis_uuid $chassis_id \
... ...
@@ -593,11 +591,7 @@ function enroll_nodes {
593 593
     local adjusted_disk=$(($ironic_node_disk - $ironic_ephemeral_disk))
594 594
     nova flavor-create --ephemeral $ironic_ephemeral_disk baremetal 551 $ironic_node_ram $adjusted_disk $ironic_node_cpu
595 595
 
596
-    # TODO(lucasagomes): Remove the 'baremetal:deploy_kernel_id'
597
-    # and 'baremetal:deploy_ramdisk_id' parameters
598
-    # from the flavor after the completion of
599
-    # https://blueprints.launchpad.net/ironic/+spec/add-node-instance-info
600
-    nova flavor-key baremetal set "cpu_arch"="x86_64" "baremetal:deploy_kernel_id"="$IRONIC_DEPLOY_KERNEL_ID" "baremetal:deploy_ramdisk_id"="$IRONIC_DEPLOY_RAMDISK_ID"
596
+    nova flavor-key baremetal set "cpu_arch"="x86_64"
601 597
 
602 598
     if [ "$VIRT_DRIVER" == "ironic" ]; then
603 599
         wait_for_nova_resources $total_nodes