]> 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>
Fri, 17 Apr 2015 13:13:38 +0000 (13:13 +0000)
commit9b53b82ce7dad551ebc0f02ff667d5345fb7e139
treed1e102db034695de0bbaf78e882ca96d4208a90c
parentc48ba4c7b0c7d56fb29b5fe2a9856dbf3f08a7c9
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
neutron/plugins/ml2/rpc.py
neutron/tests/unit/plugins/ml2/test_rpc.py