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/compute/manager.py due to
I933687891abef4878de09481937d576ce5899511 is a stable only patch
nova/tests/unit/compute/test_compute_mgr.py due to
35ce77835bb271bad3c18eaf22146edac3a42ea0 is missing from stable/rocky
Change-Id: Ic50e72e289b56ac54720ad0b719ceeb32487b8c8
Closes-Bug: #1869050
(cherry picked from commit 738110db7492b1360f5f197e8ecafd69a3b141b4)
(cherry picked from commit e8b3927c92d29c74fd0c79b5a51b7a34e9d66236)
(cherry picked from commit e34b375a6161b15d92beba64fa281f40634ffeab)
(cherry picked from commit e1116ee3b776ec84e4ce7d6ac9346fa0d43269b5)
Reviewed: https:/ /review. opendev. org/730344 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=abe04f048c4 32fed5726af8244 bb055e6e44657e
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit abe04f048c432fe d5726af8244bb05 5e6e44657e
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: compute/ manager. py due to 1abef4878de0948 1937d576ce58995 11 is a stable only patch tests/unit/ compute/ test_compute_ mgr.py due to bb271bad3c18eaf 22146edac3a42ea 0 is missing from stable/rocky
nova/
I93368789
nova/
35ce77835
Change-Id: Ic50e72e289b56a c54720ad0b719ce eb32487b8c8 60f5f197e8ecafd 69a3b141b4) 4fd0c79b5a51b7a 34e9d66236) d92beba64fa281f 40634ffeab) 4e4ce7d6ac9346f a0d43269b5)
Closes-Bug: #1869050
(cherry picked from commit 738110db7492b13
(cherry picked from commit e8b3927c92d29c7
(cherry picked from commit e34b375a6161b15
(cherry picked from commit e1116ee3b776ec8