neutron/neutron/tests/unit/agent/linux
Kevin Benton a38b5df5cd Set IPset hash type to 'net' instead of 'ip'
The previous hash type was 'ip' and this caused a major
issue with the allowed address pairs extension since it
results in CIDRs being passed to ipset. When the hash type
is 'ip', a CIDR is completely enumerated into all of its
addresses so 10.100.0.0/16 results in ~65k entries. This
meant a single allowed_address_pairs entry could easily
exhaust an entire set.

This patch changes the hash type to 'net', which is designed
to handle a CIDRs as a single entry.

This patch also changes the names of the ipsets because
creating an ipset with different parameters will cause an
error and our ipset manager code isn't robust enough to handle
that at this time. There is another ongoing patch to fix
that but it won't be ready in time.[1]

The related bug was closed by increasing the set limit, which
did alleviate the problem. However, this change would also
address the issue because the gate tests run an allowed address
pairs extension test with the CIDR mentioned above.

1. I59e2e1c090cb95ee1bd14dbb53b6ff2c5e2713fd

Related-Bug: #1439817
Closes-Bug: #1444397
Change-Id: I8177699b157cd3eac46e2f481f47b5d966c49b07
2015-04-17 01:16:41 +00:00
..
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test_async_process.py Introduce ip address monitor 2015-03-03 20:06:14 -05:00
test_bridge_lib.py iptables firewall: add framework for iptables firewall functional test 2015-03-16 02:10:14 +08:00
test_daemon.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
test_dhcp.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
test_external_process.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
test_interface.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
test_ip_lib.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
test_ip_link_support.py Remove root_helper arg from sanity checks 2015-02-20 03:23:38 +00:00
test_ip_monitor.py Introduce ip address monitor 2015-03-03 20:06:14 -05:00
test_ipset_manager.py Set IPset hash type to 'net' instead of 'ip' 2015-04-17 01:16:41 +00:00
test_iptables_firewall.py Move iptables and ipset config registration into modules 2015-04-10 15:54:32 -04:00
test_iptables_manager.py Move iptables and ipset config registration into modules 2015-04-10 15:54:32 -04:00
test_keepalived.py Support Dual-Stack Gateway Ports on Neutron Routers 2015-03-27 23:37:58 -04:00
test_ovsdb_monitor.py Remove remaining uses of passing root_helper 2015-02-20 03:24:38 +00:00
test_polling.py OVS agent support on Hyper-V 2015-03-25 13:48:33 -07:00
test_utils.py Fix intermittent UT failures in test_utils 2015-04-07 16:40:47 -07:00