Skip to content

Commit 29c3d63

Browse files
committed
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
1 parent a672e02 commit 29c3d63

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/ironic

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,12 @@ function enroll_vms {
495495
done < $IRONIC_VM_MACS_CSV_FILE
496496

497497
# 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.
498501
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+
500504
# TODO(lucasagomes): Remove the 'baremetal:deploy_kernel_id'
501505
# and 'baremetal:deploy_ramdisk_id' parameters
502506
# from the flavor after the completion of

0 commit comments

Comments
 (0)