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 neutron fixture:
- 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.
NOTE. There is no need to change libvirt fixture because original
problem with lack of address element is no longer there (I also
removed related note from commit message itself). NeutronFixture
class is defined in different place instable/wallaby, but code
staus the same.
Related-bug: #1960412
Related-bug: #1949808
Change-Id: I152581deb6e659c551f78eed66e4b0b958b20c53
(cherry picked from commit 1ad287bf9a8f65ce68c14f4634775f58abda15c2)
(cherry picked from commit 479b8db3ab07dd1f50c029904cca17f3a5708685)
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /841760 /opendev. org/openstack/ nova/commit/ 3d698040a17f399 54fe095502dafb2 b193120243
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit 3d698040a17f399 54fe095502dafb2 b193120243
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 neutron fixture:
- neutron fixture was changed to improve active port binding'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.
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_
Conflicts: fixtures/ libvirt. py fixtures/ neutron. py
- nova/tests/
- nova/tests/
NOTE. There is no need to change libvirt fixture because original
problem with lack of address element is no longer there (I also
removed related note from commit message itself). NeutronFixture
class is defined in different place instable/wallaby, but code
staus the same.
Related-bug: #1960412 c551f78eed66e4b 0b958b20c53 e68c14f4634775f 58abda15c2) f50c029904cca17 f3a5708685)
Related-bug: #1949808
Change-Id: I152581deb6e659
(cherry picked from commit 1ad287bf9a8f65c
(cherry picked from commit 479b8db3ab07dd1