]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
_bind_devices query only existing ports
authorrossella <rsblendido@suse.com>
Wed, 26 Aug 2015 16:06:25 +0000 (16:06 +0000)
committerrossella <rsblendido@suse.com>
Fri, 4 Sep 2015 16:32:36 +0000 (16:32 +0000)
commit1b25e30800c869dacca58afa6b8bf92f4cf9d377
tree11f7ff5dd05accf696a71342f952c889c5858e0c
parentf4e980f7d5608b594e64d5ab78c594d61a664955
_bind_devices query only existing ports

If a port is deleted right before _bind_devices is called,
get_ports_attributes will throw an exception since the row
corresponding to the port doesn't exist in the OVS DB.
Avoid that setting if_exists to True. The port will be
processed as deleted by the agent in the following iteration.

Change-Id: Ia6590d76f8683e6cba562cde3c39b051549f6c04
Closes-bug: #1489014
neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_neutron_agent.py