Error-out the migrations (cold and live) whenever the
anti-affinity policy is violated. This addresses
violations when multiple concurrent migrations are
requested.
Added detection on:
- prep_resize
- check_can_live_migration_destination
- pre_live_migration
The improved method of detection now locks based on group_id
and considers other migrations in-progress as well.
Closes-bug: #1821755
Change-Id: I32e6214568bb57f7613ddeba2c2c46da0320fabc
(cherry picked from commit 33c8af1f8c46c9c37fcc28fb3409fbd3a78ae39f)
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /794328 /opendev. org/openstack/ nova/commit/ 8b62a4ec9bf617d fb2da046c25a9f7 6b33516508
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit 8b62a4ec9bf617d fb2da046c25a9f7 6b33516508
Author: Rodrigo Barbieri <email address hidden>
Date: Wed Mar 31 11:06:49 2021 -0300
Error anti-affinity violation on migrations
Error-out the migrations (cold and live) whenever the
anti-affinity policy is violated. This addresses
violations when multiple concurrent migrations are
requested.
Added detection on: live_migration_ destination
- prep_resize
- check_can_
- pre_live_migration
The improved method of detection now locks based on group_id
and considers other migrations in-progress as well.
Closes-bug: #1821755 f7613ddeba2c2c4 6da0320fabc 37fcc28fb3409fb d3a78ae39f)
Change-Id: I32e6214568bb57
(cherry picked from commit 33c8af1f8c46c9c