Skip to content

Commit 6eaaa78

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Set flavor id for Ironic's baremetal flavor"
2 parents f948548 + 29c3d63 commit 6eaaa78

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
@@ -497,8 +497,12 @@ function enroll_vms {
497497
done < $IRONIC_VM_MACS_CSV_FILE
498498

499499
# create the nova flavor
500+
# NOTE(adam_g): Attempting to use an autogenerated UUID for flavor id here uncovered
501+
# bug (LP: #1333852) in Trove. This can be changed to use an auto flavor id when the
502+
# bug is fixed in Juno.
500503
local adjusted_disk=$(($IRONIC_VM_SPECS_DISK - $IRONIC_VM_EPHEMERAL_DISK))
501-
nova flavor-create --ephemeral $IRONIC_VM_EPHEMERAL_DISK baremetal auto $IRONIC_VM_SPECS_RAM $adjusted_disk $IRONIC_VM_SPECS_CPU
504+
nova flavor-create --ephemeral $IRONIC_VM_EPHEMERAL_DISK baremetal 551 $IRONIC_VM_SPECS_RAM $adjusted_disk $IRONIC_VM_SPECS_CPU
505+
502506
# TODO(lucasagomes): Remove the 'baremetal:deploy_kernel_id'
503507
# and 'baremetal:deploy_ramdisk_id' parameters
504508
# from the flavor after the completion of

0 commit comments

Comments
 (0)