]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
ML2: Change port status only when it's bound to the host
authormathieu-rohon <mathieu.rohon@gmail.com>
Sat, 7 Mar 2015 12:30:49 +0000 (13:30 +0100)
committerKyle Mestery <mestery@mestery.com>
Mon, 20 Apr 2015 12:52:35 +0000 (12:52 +0000)
commitb339391bcb223c0f03d30f36dea47d13adb12c71
tree345d16e70cc6b0c812ff43bce71d8a4d0ddbb869
parent2add4e5ad4d12c817737d04ddb973b3aeeb25af3
ML2: Change port status only when it's bound to the host

Currently, nothing prevents the port status to be changed to BUILD
state when get_device_details() is sent by a host that doesn't own
the port.
In some cases the port might stay in BUILD state.
This could happen during a live-migration, or for multi-hosted ports
such as HA ports.
This commit allows the port status modification only if the port
is bound to the host that is asking for it.

Closes-Bug: #1439857
Closes-Bug: #1438040
Closes-Bug: #1416933

Change-Id: I9b3673f453abbafaaa4f78542fcfebe8dc93f2bb
(cherry picked from commit 9b53b82ce7dad551ebc0f02ff667d5345fb7e139)
neutron/plugins/ml2/rpc.py
neutron/tests/unit/plugins/ml2/test_rpc.py