From f0dd6894af777d53c6d158d0720ea1b189f065a7 Mon Sep 17 00:00:00 2001 From: vsaienko Date: Wed, 18 Nov 2015 10:12:34 +0200 Subject: [PATCH] Use autogenerated flavor id Fix to trove has been merged, and autogenerated flavor ID is available since Kilo. Related-Bug: #1333852 Change-Id: Ie4b3dd11a23fa5f91cf9ff22dd05f1afd0532cb4 --- lib/ironic | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/ironic b/lib/ironic index 016e639d03..294115cafe 100644 --- a/lib/ironic +++ b/lib/ironic @@ -652,13 +652,9 @@ function enroll_nodes { total_cpus=$((total_cpus+$ironic_node_cpu)) done < $ironic_hwinfo_file - # create the nova flavor - # NOTE(adam_g): Attempting to use an autogenerated UUID for flavor id here uncovered - # bug (LP: #1333852) in Trove. This can be changed to use an auto flavor id when the - # bug is fixed in Juno. local adjusted_disk adjusted_disk=$(($ironic_node_disk - $ironic_ephemeral_disk)) - nova flavor-create --ephemeral $ironic_ephemeral_disk baremetal 551 $ironic_node_ram $adjusted_disk $ironic_node_cpu + nova flavor-create --ephemeral $ironic_ephemeral_disk baremetal auto $ironic_node_ram $adjusted_disk $ironic_node_cpu nova flavor-key baremetal set "cpu_arch"="x86_64"