]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
MLNX Agent: ensure removed ports get treated on resyncs
authorRoey Chen <roeyc@mellanox.com>
Tue, 20 May 2014 14:10:17 +0000 (17:10 +0300)
committerRoey Chen <chen.roey@gmail.com>
Mon, 11 Aug 2014 17:59:52 +0000 (17:59 +0000)
commit598e14cfdeb0162a7b1ef088f32076d063c55526
treea59f20bdbbdf873ad43021b87c3615b75385af14
parentfa5eb301dc83f15a30bc40344caca26183147f59
MLNX Agent: ensure removed ports get treated on resyncs

This patch ensures that removed ports will be cleaned up properly if exception
occurs in the daemon_loop.
It does the same for the mlnx-agent as was done for the lb-agent in
Ieada34ad315c0c29aa8462ebf041a448fde007b8.

Refactoring the daemon_loop and scan_ports in a way that -
If there's an exception, the ports that were flagged for cleaning will
be retreated in the following iteration,
unlike previous exception handling, where only existing ports
were treated in the following iteration.

Closes-Bug: 1287648
Change-Id: I3af505773aa3fdc0d17f2079ac1f1b3e93bb64a3
Signed-off-by: Roey Chen <roeyc@mellanox.com>
neutron/plugins/mlnx/agent/eswitch_neutron_agent.py
neutron/tests/unit/mlnx/test_mlnx_neutron_agent.py