When DVR scheduling in live-migration, the current implementation in DVR
serviceable ports checking on host performs a "contains" operation of
sub-string match which checks the wrong port binding profile for host
(i.e. compute-1 will also match compute-10).
Add quotes to force an exact match of the host name in the port binding
profile dictionary to address this issue.
Reviewed: https:/ /review. openstack. org/575858 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=18a2f9bf074 d5335e9917dc792 754bc37176f498
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 18a2f9bf074d533 5e9917dc792754b c37176f498
Author: Kailun Qin <email address hidden>
Date: Tue Jun 12 10:22:32 2018 +0800
Fix DVR scheduling checks wrong profile for host
When DVR scheduling in live-migration, the current implementation in DVR
serviceable ports checking on host performs a "contains" operation of
sub-string match which checks the wrong port binding profile for host
(i.e. compute-1 will also match compute-10).
Add quotes to force an exact match of the host name in the port binding
profile dictionary to address this issue.
Closes-Bug: #1776255 8a7cce1b8da2a5f 21ac6b38c57 2aab90bf7338d93 1d64ae524e)
Change-Id: I0d2bd9b9ff0aa5
Signed-off-by: Kailun Qin <email address hidden>
(cherry picked from commit e35634526173716