commit 842641c9b0b8f60d0e19b38ad1180078e9c4330c
Author: John Garbutt <email address hidden>
Date: Wed Oct 18 17:05:43 2017 +0100
Keep updating allocations for Ironic
When ironic updates the instance.flavor to require the new custom
resource class, we really need the allocations to get updated. Easiest
way to do that is to make the resource tracker keep updating allocations
for the ironic virt driver. This can be dropped once the transition to
custom resource classes is complete.
If we were not to claim the extra resources, placement will pick nodes
that already have instances running on them when you boot an instance
with a flavor that only requests the custom resource class. This should
be what all ironic flavors do, before the upgrade to queens is
performed.
Closes-Bug: #1724589
Change-Id: Ibbf65a8d817d359786abcdffa6358089ed1107f6
(cherry picked from commit 5c2b8675e3e13e32b23681153f226de93bb99628)
Reviewed: https:/ /review. openstack. org/513198 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=842641c9b0b 8f60d0e19b38ad1 180078e9c4330c
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 842641c9b0b8f60 d0e19b38ad11800 78e9c4330c
Author: John Garbutt <email address hidden>
Date: Wed Oct 18 17:05:43 2017 +0100
Keep updating allocations for Ironic
When ironic updates the instance.flavor to require the new custom
resource class, we really need the allocations to get updated. Easiest
way to do that is to make the resource tracker keep updating allocations
for the ironic virt driver. This can be dropped once the transition to
custom resource classes is complete.
If we were not to claim the extra resources, placement will pick nodes
that already have instances running on them when you boot an instance
with a flavor that only requests the custom resource class. This should
be what all ironic flavors do, before the upgrade to queens is
performed.
Closes-Bug: #1724589
Change-Id: Ibbf65a8d817d35 9786abcdffa6358 089ed1107f6 2b23681153f226d e93bb99628)
(cherry picked from commit 5c2b8675e3e13e3