neutron/neutron/agent
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
..
common Revert "Add ipset element and hashsize tunables" 2015-04-16 18:28:38 -07:00
dhcp Merge "Reload DHCP interface when its port is updated" 2015-03-29 16:57:50 +00:00
l3 Merge "Fix dynamic arp populate error for dvr routers" 2015-04-07 18:28:26 +00:00
linux Set IPset hash type to 'net' instead of 'ip' 2015-04-16 19:13:57 -07:00
metadata Allow metadata proxy running with nobody user/group 2015-04-06 18:31:37 +02:00
ovsdb Merge "Store and log correct exception info" 2015-04-05 05:43:37 +00:00
windows OVS agent support on Hyper-V 2015-03-25 13:48:33 -07:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
dhcp_agent.py Allow metadata proxy running with nobody user/group 2015-04-06 18:31:37 +02:00
firewall.py Add missing methods to NoopFirewallDriver 2014-09-28 22:16:57 +04:00
l2population_rpc.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00
l3_agent.py Allow metadata proxy running with nobody user/group 2015-04-06 18:31:37 +02:00
metadata_agent.py Allow metadata proxy running with nobody user/group 2015-04-06 18:31:37 +02:00
rpc.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00
securitygroups_rpc.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00