neutron/neutron/tests
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
..
api Merge "Add API tests for subnet-create with subnetpool" 2015-04-03 23:34:24 +00:00
common Define bridge/port fixtures for OVS/LinuxBridge/Veth backends 2015-04-01 15:01:06 +00:00
contrib Remove check for bash usage 2015-04-07 15:15:33 +00:00
etc Reorganize unit test tree 2015-04-06 23:28:31 +00:00
fullstack Remove neutron.tests.sub_base 2015-03-27 18:04:47 +00:00
functional Fix intermittent UT failures in test_utils 2015-04-07 16:40:47 -07:00
retargetable Moving VLAN Transparency support from core to extension 2015-04-08 08:35:13 -07:00
tempest Move orphaned api test - deux 2015-04-01 20:45:12 -07:00
unit Set IPset hash type to 'net' instead of 'ip' 2015-04-16 19:13:57 -07:00
var Allow combined certificate/key files for SSL 2014-04-13 09:22:23 +00:00
__init__.py Add eventlet monkey_patch helper 2015-03-24 08:44:00 -07:00
base.py Fix functional test using local timeout value 2015-04-03 01:18:15 +00:00
fake_notifier.py Pass serializer to oslo.messaging Notifier 2014-06-20 14:58:28 +02:00
post_mortem_debug.py Cleanup recent generalization in post mortem debugger 2014-12-04 15:28:11 +01:00
tools.py Fix common misspellings 2015-03-24 11:44:15 +01:00