Browse code

Set flavor id for Ironic's baremetal flavor

An existing trove bug prevents it from functioning when Nova flavors exist
with an id that is a UUID instead of an integer, causing Tempest failures.
This sets an integer ID when creating the baremetal flavor for Ironic's use.

Change-Id: Ic090f61a9a47421117dc86b640422f00f468112c
Related-bug: #1333852

Adam Gandelman authored on 2014/07/18 04:53:21
Showing 1 changed files
... ...
@@ -495,8 +495,12 @@ function enroll_vms {
495 495
     done < $IRONIC_VM_MACS_CSV_FILE
496 496
 
497 497
     # create the nova flavor
498
+    # NOTE(adam_g): Attempting to use an autogenerated UUID for flavor id here uncovered
499
+    # bug (LP: #1333852) in Trove.  This can be changed to use an auto flavor id when the
500
+    # bug is fixed in Juno.
498 501
     local adjusted_disk=$(($IRONIC_VM_SPECS_DISK - $IRONIC_VM_EPHEMERAL_DISK))
499
-    nova flavor-create --ephemeral $IRONIC_VM_EPHEMERAL_DISK baremetal auto $IRONIC_VM_SPECS_RAM $adjusted_disk $IRONIC_VM_SPECS_CPU
502
+    nova flavor-create --ephemeral $IRONIC_VM_EPHEMERAL_DISK baremetal 551 $IRONIC_VM_SPECS_RAM $adjusted_disk $IRONIC_VM_SPECS_CPU
503
+
500 504
     # TODO(lucasagomes): Remove the 'baremetal:deploy_kernel_id'
501 505
     # and 'baremetal:deploy_ramdisk_id' parameters
502 506
     # from the flavor after the completion of