neutron/neutron/tests/unit
Kevin Benton a6b2c22dce 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
(cherry picked from commit a38b5df5cd)
2015-04-16 19:13:57 -07:00
..
agent Set IPset hash type to 'net' instead of 'ip' 2015-04-16 19:13:57 -07:00
api Moving VLAN Transparency support from core to extension 2015-04-08 08:35:13 -07:00
callbacks Add callbacks-based system to Neutron 2015-02-25 06:11:59 -08:00
cmd Reorganize unit test tree 2015-04-06 23:28:31 +00:00
common Reorganize unit test tree 2015-04-06 23:28:31 +00:00
db Merge "Revert "IPv6 SLAAC subnet create should update ports on net"" 2015-04-08 20:39:59 +00:00
debug Reorganize unit test tree 2015-04-06 23:28:31 +00:00
extensions Moving VLAN Transparency support from core to extension 2015-04-08 08:35:13 -07:00
hacking Migrate to oslo.log 2015-03-12 11:22:56 +01:00
ipam Reorganize unit test tree 2015-04-06 23:28:31 +00:00
notifiers Reorganize unit test tree 2015-04-06 23:28:31 +00:00
plugins Merge "Add simple ARP spoofing protection" 2015-04-09 01:21:53 +00:00
scheduler Return from check_ports_exist_on_l3agent if no subnet found 2015-04-07 14:03:19 +00:00
services Reorganize plugin test modules 2015-04-07 00:55:25 +00:00
tests Reorganize unit test tree 2015-04-06 23:28:31 +00:00
__init__.py oslo: migrate to namespace-less import paths 2015-02-05 15:09:32 +01:00
_test_extension_portbindings.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
database_stubs.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00
dummy_plugin.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
extension_stubs.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_auth.py oslo: migrate to namespace-less import paths 2015-02-05 15:09:32 +01:00
test_context.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
test_ipam.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
test_manager.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
test_policy.py Enable to apply policies to resources with special plural 2015-03-19 17:34:48 +09:00
test_wsgi.py Merge "Start metadata agent without trying to connect db" 2015-03-23 16:45:05 +00:00
testlib_api.py Simplify retargetable test framework 2015-03-31 20:13:04 +00:00