neutron/neutron/tests
Ihar Hrachyshka 59b9735af1 tests: confirm that _output_hosts_file does not log too often
I3ad7864eeb2f959549ed356a1e34fa18804395cc didn't include any regression unit
tests to validate that the method won't ever log too often again,
reintroducing performance drop in later patches. It didn't play well
with stable backports of the fix, where context was lost when doing the
backport, that left the bug unfixed in stable/juno even though the patch
was merged there [1].

The patch adds an explicit note in the code that suggests not to add new
log messages inside the loop to avoid regression, and a unit test was
added to capture it.

Once the test is merged in master, it will be proposed for stable/juno
inclusion, with additional changes that would fix the regression again.

Conflicts:
	neutron/agent/linux/dhcp.py
	neutron/tests/unit/test_linux_dhcp.py

Local changes:
- remove LOG.debug messages that sneaked into the for loop with a
  backport.

Related-Bug: #1414218
Change-Id: I5d43021932d6a994638c348eda277dd8337cf041
(cherry picked from commit 3b74095a93)
2015-04-23 11:37:47 +02:00
..
etc Refresh rpc_backend values in unit tests to those from oslo.messaging 2014-08-22 11:02:25 +02:00
functional Default route missing for IPv6 subnets in HA Router 2015-03-05 15:12:07 +00:00
unit tests: confirm that _output_hosts_file does not log too often 2015-04-23 11:37:47 +02:00
var Allow combined certificate/key files for SSL 2014-04-13 09:22:23 +00:00
__init__.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
base.py Mock out all RPC calls with a fixture 2014-09-22 05:10:18 -07:00
fake_notifier.py Pass serializer to oslo.messaging Notifier 2014-06-20 14:58:28 +02:00
post_mortem_debug.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
tools.py Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00