Fix to trove has been merged, and autogenerated flavor ID
is available since Kilo.
Related-Bug: #1333852
Change-Id: Ie4b3dd11a23fa5f91cf9ff22dd05f1afd0532cb4
| ... | ... |
@@ -652,13 +652,9 @@ function enroll_nodes {
|
| 652 | 652 |
total_cpus=$((total_cpus+$ironic_node_cpu)) |
| 653 | 653 |
done < $ironic_hwinfo_file |
| 654 | 654 |
|
| 655 |
- # create the nova flavor |
|
| 656 |
- # NOTE(adam_g): Attempting to use an autogenerated UUID for flavor id here uncovered |
|
| 657 |
- # bug (LP: #1333852) in Trove. This can be changed to use an auto flavor id when the |
|
| 658 |
- # bug is fixed in Juno. |
|
| 659 | 655 |
local adjusted_disk |
| 660 | 656 |
adjusted_disk=$(($ironic_node_disk - $ironic_ephemeral_disk)) |
| 661 |
- nova flavor-create --ephemeral $ironic_ephemeral_disk baremetal 551 $ironic_node_ram $adjusted_disk $ironic_node_cpu |
|
| 657 |
+ nova flavor-create --ephemeral $ironic_ephemeral_disk baremetal auto $ironic_node_ram $adjusted_disk $ironic_node_cpu |
|
| 662 | 658 |
|
| 663 | 659 |
nova flavor-key baremetal set "cpu_arch"="x86_64" |
| 664 | 660 |
|