Reject AZ changes during aggregate add / remove host
After this patch nova rejects the add host to aggregate API action
if the host has instances and the new aggregate for the host would
mean that these instances need to move from one AZ (even from the
default one) to another. Such AZ change is not implemented in nova
and currently leads to stuck instances.
Similarly nova will reject remove host from aggregate API action if the
host has instances and the aggregate removal would mean that the
instances need to change AZ.
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /918650 /opendev. org/openstack/ nova/commit/ 994358d582e8e8d 98a3e8e91ceb77a e354c1e275
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/2024.1
commit 994358d582e8e8d 98a3e8e91ceb77a e354c1e275
Author: Balazs Gibizer <email address hidden>
Date: Fri Dec 10 17:53:30 2021 +0100
Reject AZ changes during aggregate add / remove host
After this patch nova rejects the add host to aggregate API action
if the host has instances and the new aggregate for the host would
mean that these instances need to move from one AZ (even from the
default one) to another. Such AZ change is not implemented in nova
and currently leads to stuck instances.
Similarly nova will reject remove host from aggregate API action if the
host has instances and the aggregate removal would mean that the
instances need to change AZ.
Depends-On: https:/ /review. opendev. org/c/openstack /tempest/ +/821732
Change-Id: I19c4c6d34aa2cc 1f32d81e8c1a527 62fa3a18580 586087ea6c0c4e9 176f0aa3bc)
Closes-Bug: #1907775
(cherry picked from commit 3c0eadae0b9ec48