]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Prevent full sync in dhcp_agent when possible
authorSudhakar Babu Gariganti <sudhakar-babu.gariganti@hp.com>
Fri, 11 Sep 2015 09:23:27 +0000 (14:53 +0530)
committerSudhakar Babu Gariganti <sudhakar-babu.gariganti@hp.com>
Tue, 15 Sep 2015 17:39:22 +0000 (23:09 +0530)
commit1ad6ac448067306fcf7ea562840e63fd257f0556
treec4092054593ab3f8467ab04adc04299992917f2d
parentcd4d88937462903057609e798fa18b171a566f44
Prevent full sync in dhcp_agent when possible

If an exception occurs in sync_state method, we try for a full sync
even in the case where we have fewer networks to resync for.

This turns out to be pretty costly in scaled environments.

This patch addresses the above behavior by resyncing only for the
eariler set of failed networks.

Closes-Bug: #1495592

Change-Id: I069e992b3b7814370d409236b6a3c81a25829cc1
neutron/agent/dhcp/agent.py
neutron/tests/unit/agent/dhcp/test_agent.py