neutron/neutron/tests/unit/services/trunk
Slawek Kaplonski 961575beae Fix update of trunk subports during live migration
During the live migration trunk subports where updated only based
on the "host_id" field. But when rpc message to update subports
is send trunk's port is still bound to the old host and has
"migrating_to" field in binding:profile set to the new host.
Because of that binding:host_id for the subport's port wasn't updated
proberly and port was set to DOWN on the new host.
That could even cause connectivity break if L2population is used in the
cloud.

This patch fixes that by updating subport's binding:host_id field based
on the migrating_to field if that is available and not empty.

Closes-Bug: #1914747
Change-Id: I98e55242d381ada642ca0729e9aefdea7628c945
(cherry picked from commit e05101c8ac)
2021-02-11 08:55:30 +00:00
..
drivers Fix neutron tests 2020-05-14 19:13:21 +02:00
rpc Fix update of trunk subports during live migration 2021-02-11 08:55:30 +00:00
seg_types Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
__init__.py Data models for vlan-aware-vms 2016-04-24 19:41:54 -07:00
fakes.py Revisit support for trunk segmentation types 2016-09-02 15:37:09 +00:00
test_plugin.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_rules.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_utils.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00