When a resize is confirmed the instance does not belong to the source
compute any more. In the past the scheduler instance info is only
updated by the _sync_scheduler_instance_info periodic. This caused that
server boots with anti-affinity did not consider the source host.
But now at the end of the confirm_resize call the compute also updates
the scheduler about the move.
Change-Id: Ic50e72e289b56ac54720ad0b719ceeb32487b8c8
Closes-Bug: #1869050
(cherry picked from commit 738110db7492b1360f5f197e8ecafd69a3b141b4)
Reviewed: https:/ /review. opendev. org/728782 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=e8b3927c92d 29c74fd0c79b5a5 1b7a34e9d66236
Committed: https:/
Submitter: Zuul
Branch: stable/ussuri
commit e8b3927c92d29c7 4fd0c79b5a51b7a 34e9d66236
Author: Balazs Gibizer <email address hidden>
Date: Wed Mar 25 17:48:23 2020 +0100
Update scheduler instance info at confirm resize
When a resize is confirmed the instance does not belong to the source _instance_ info periodic. This caused that
compute any more. In the past the scheduler instance info is only
updated by the _sync_scheduler
server boots with anti-affinity did not consider the source host.
But now at the end of the confirm_resize call the compute also updates
the scheduler about the move.
Change-Id: Ic50e72e289b56a c54720ad0b719ce eb32487b8c8 60f5f197e8ecafd 69a3b141b4)
Closes-Bug: #1869050
(cherry picked from commit 738110db7492b13