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.
Conflicts: nova/tests/unit/compute/test_compute_mgr.py
due to Ib50b6b02208f5bd2972de8a6f8f685c19745514c and Ia6d8a7909081b0b856bd7e290e234af7e42a2b38 are missing from stable/stein
Change-Id: Ic50e72e289b56ac54720ad0b719ceeb32487b8c8
Closes-Bug: #1869050
(cherry picked from commit 738110db7492b1360f5f197e8ecafd69a3b141b4)
(cherry picked from commit e8b3927c92d29c74fd0c79b5a51b7a34e9d66236)
(cherry picked from commit e34b375a6161b15d92beba64fa281f40634ffeab)
Reviewed: https:/ /review. opendev. org/729538 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=e1116ee3b77 6ec84e4ce7d6ac9 346fa0d43269b5
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit e1116ee3b776ec8 4e4ce7d6ac9346f a0d43269b5
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.
Conflicts:
nova/ tests/unit/ compute/ test_compute_ mgr.py d2972de8a6f8f68 5c19745514c and
Ia6d8a790908 1b0b856bd7e290e 234af7e42a2b38 are missing from
stable/ stein
due to Ib50b6b02208f5b
Change-Id: Ic50e72e289b56a c54720ad0b719ce eb32487b8c8 60f5f197e8ecafd 69a3b141b4) 4fd0c79b5a51b7a 34e9d66236) d92beba64fa281f 40634ffeab)
Closes-Bug: #1869050
(cherry picked from commit 738110db7492b13
(cherry picked from commit e8b3927c92d29c7
(cherry picked from commit e34b375a6161b15