Instance would be affected by problems described in bug #1949808
and bug #1960412 when queued live migration is aborted.
This change adds functional test to reproduce problems with
placement allocations (record for aborted live migration is not
removed when queued live migration is aborted) and with Neutron port
bindings (INACTIVE port binding records for destination host are not
removed when queued live migration is aborted).
It looks like there are no other modifications introduced by Nova
control plane which should be reverted when queued live migration is
aborted.
This patch also changes libvirt and neutron fixtures:
- libvirt fixture was changed to support live migrations of
instances with regular ports: without this change
_update_vif_xml() complains about lack of address element in VIF's
XML.
- neutron fixture was changed to improve active port binding's
tracking during live migration: without this change port's
binding:host_id is not updated when activate_port_binding() is
called. As a result, list_ports() function returns empty list
when constants.BINDING_HOST_ID is used in search_opts, which is
the case for setup_networks_on_host() called with teardown=True.
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /836146 /opendev. org/openstack/ nova/commit/ 479b8db3ab07dd1 f50c029904cca17 f3a5708685
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/xena
commit 479b8db3ab07dd1 f50c029904cca17 f3a5708685
Author: Alexey Stupnikov <email address hidden>
Date: Sat Feb 19 21:38:44 2022 +0100
Add functional tests to reproduce bug #1960412
Instance would be affected by problems described in bug #1949808
and bug #1960412 when queued live migration is aborted.
This change adds functional test to reproduce problems with
placement allocations (record for aborted live migration is not
removed when queued live migration is aborted) and with Neutron port
bindings (INACTIVE port binding records for destination host are not
removed when queued live migration is aborted).
It looks like there are no other modifications introduced by Nova
control plane which should be reverted when queued live migration is
aborted.
This patch also changes libvirt and neutron fixtures:
- libvirt fixture was changed to support live migrations of update_ vif_xml( ) complains about lack of address element in VIF's host_id is not updated when activate_ port_binding( ) is BINDING_ HOST_ID is used in search_opts, which is on_host( ) called with teardown=True.
instances with regular ports: without this change
_
XML.
- neutron fixture was changed to improve active port binding's
tracking during live migration: without this change port's
binding:
called. As a result, list_ports() function returns empty list
when constants.
the case for setup_networks_
Related-bug: #1960412 c551f78eed66e4b 0b958b20c53 e68c14f4634775f 58abda15c2)
Related-bug: #1949808
Change-Id: I152581deb6e659
(cherry picked from commit 1ad287bf9a8f65c