neutron/neutron/services/trunk
Slawek Kaplonski 366fae2d53 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:58:44 +00:00
..
drivers Wait before deleting trunk bridges for DPDK vhu 2020-04-03 21:11:16 +00:00
rpc Fix update of trunk subports during live migration 2021-02-11 08:58:44 +00:00
seg_types use trunk constants from neutron-lib 2019-04-23 13:54:11 -06:00
__init__.py Revisit support for trunk segmentation types 2016-09-02 15:37:09 +00:00
callbacks.py use callback payloads for PRECOMMIT_UPDATE events 2018-03-13 11:38:19 -06:00
exceptions.py Merge "Check MTU sanity of trunk port subports" 2016-09-05 16:36:27 +00:00
models.py use trunk constants from neutron-lib 2019-04-23 13:54:11 -06:00
plugin.py Optimize get_ports with trunk extension 2021-01-26 07:09:13 +00:00
rules.py Start enforcing E125 flake8 directive 2019-07-19 23:39:41 -04:00
utils.py use is_extension_supported from neutron-lib 2018-03-12 09:28:52 -06:00