Both allocation healing steps calls the placement API. This patch pulls
out the placement updating code to a single place. To do that it change
the healing steps to only generate / update the allocation individually
and then at the end of the healing there will be a single placement
update with this allocation.
This will help us to include the port related allocation into the instance
allocation by modifying a single place in the code.
Reviewed: https:/ /review. opendev. org/655459 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=e2866609bbb 4e70e2b781a80ec c1ad0bccf93813
Committed: https:/
Submitter: Zuul
Branch: master
commit e2866609bbb4e70 e2b781a80ecc1ad 0bccf93813
Author: Balazs Gibizer <email address hidden>
Date: Wed Apr 24 13:02:01 2019 +0200
pull out put_allocation call from _heal_*
Both allocation healing steps calls the placement API. This patch pulls
out the placement updating code to a single place. To do that it change
the healing steps to only generate / update the allocation individually
and then at the end of the healing there will be a single placement
update with this allocation.
This will help us to include the port related allocation into the instance
allocation by modifying a single place in the code.
Related-Bug: #1819923
Change-Id: I0e9f9a488141da 599c10af8cabb4f 6a5d111104f