neutron/neutron/agent
Henry Gessau 9e3111250b Predictable iptables chains output order
This fixes the iptables unit tests that break with a randomized PYTHONHASHSEED
(see the bug report).

The chains for iptables are stored as sets to avoid duplicates. When they are
output by iptables_manager their order can therefore be unpredictable. This was
found hash seed 1016732220.

To fix this we:
 - Sort the chains output by iptables_manager
 - Update the unit tests to check for sorted chains

When multiple tables are processed, they can be processed in any order or
dumped in any order. Found with hash seed 3728666619.

To fix this we:
 - Traverse the tables in sorted order for dumping
 - Fix tests to allow for tables to be processed in any order

Note: There are several other unrelated unit tests that also break with a
randomized PYTHONHASHSEED, but they are not addressed here. They will be
addressed in separate patches.

Partial-bug: #1348818

Change-Id: Ic3f4cd85316c9fc2e78bc7f5e900cfac87baf39d
2014-08-26 16:38:59 -04:00
..
common Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
linux Predictable iptables chains output order 2014-08-26 16:38:59 -04:00
metadata Fix 404 error fetching metadata when using DVR 2014-08-12 12:26:31 -07:00
__init__.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
dhcp_agent.py Merge "Log exceptions inside spawned functions" 2014-08-26 09:03:18 +00:00
firewall.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
l2population_rpc.py l2pop: get_agent_ports: Don't yield (None, {}) 2014-08-14 08:35:31 +09:00
l3_agent.py Merge "ext-gw update on dvr router improperly handled by l3-agent" 2014-08-26 09:05:15 +00:00
netns_cleanup_util.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
ovs_cleanup_util.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
rpc.py Remove redundant topic from rpc calls 2014-08-05 10:14:20 +00:00
securitygroups_rpc.py Remove redundant topic from rpc calls 2014-08-05 10:14:20 +00:00