neutron/neutron/tests/unit
Brian Haley 0325b98c54 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.

Related-Bug: #1439817
Related-Bug: #1444397
(based on commit a38b5df5cd)

Change-Id: I8177699b157cd3eac46e2f481f47b5d966c49b07
2015-05-08 11:00:20 +00:00
..
agent Configure IPv6 LLADDR only on master L3 HA instance 2015-02-10 13:40:00 -05:00
api Do not schedule network when creating reserved DHCP port 2014-07-30 07:42:20 +09:00
bigswitch Merge "BSN: Optimistic locking strategy for consistency" into stable/juno 2014-12-13 08:51:17 +00:00
brocade Remove auto-generation of db schema from models at startup 2014-08-15 17:21:17 -04:00
cisco CSCO:Tenants not to access unshared n/w profiles 2015-03-10 15:17:48 -07:00
db Moves the HA resource creations outside of transaction 2014-12-25 10:37:43 +02:00
embrane Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
extensions Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
hyperv Merge "Fixes Hyper-V 2008 R2 agent VLAN Settings issue" into stable/juno 2015-04-14 06:47:50 +00:00
ibm Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
linuxbridge Merge "Search in /sys/class/net for network devices" into stable/juno 2015-04-01 21:21:34 +00:00
metaplugin Refactor plugin setup helpers out of test.base 2014-08-25 14:44:27 +02:00
midonet Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
ml2 Merge "Catch PortNotFound and SubnetNotFound during network_delete" into stable/juno 2015-04-01 20:29:51 +00:00
mlnx Fix sleep function call 2014-11-04 11:44:52 +00:00
nec Set vif_details to reflect enable_security_group 2014-11-05 07:55:33 +00:00
notifiers fix event_send for re-assign floating ip 2014-11-12 07:57:43 -08:00
nuage Use dict_extend_functions to populate provider network attributes 2014-09-19 14:23:19 -07:00
ofagent ofagent: Fix port_dead 2015-03-20 14:17:52 +09:00
oneconvergence Auto allocate gateway_ip even for SLAAC subnets 2014-12-16 18:22:56 +00:00
opencontrail Skip IPv6 Tests in the OpenContrail plugin 2014-10-09 12:03:23 +02:00
openvswitch Make del_fdb_flow() idempotent 2015-03-04 14:21:27 +00:00
plumgrid Allow to add router interface to IPv6 SLAAC network 2014-11-10 09:29:52 +00:00
ryu Make SecurityGroupsRpcCallback a separate callback class 2014-08-30 10:19:42 +08:00
services remove openvswitch plugin 2014-10-01 21:16:27 -07:00
sriovnicagent Refresh rpc_backend values in unit tests to those from oslo.messaging 2014-08-22 11:02:25 +02:00
vmware NSX: Remove logic for creating chained logical switches 2015-01-15 02:54:09 -08:00
__init__.py Fix state_path in tests 2014-08-29 17:42:07 +03:00
_test_extension_portbindings.py Set vif_details to reflect enable_security_group 2014-11-05 07:55:33 +00:00
_test_rootwrap_exec.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
database_stubs.py Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09: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_agent_config.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_agent_ext_plugin.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_agent_linux_utils.py Make log level in linux.utils.execute configurable 2014-08-26 13:19:34 +04:00
test_agent_netns_cleanup.py Call config_parse in base test setup 2014-07-27 13:31:12 -07:00
test_agent_ovs_cleanup.py Call config_parse in base test setup 2014-07-27 13:31:12 -07:00
test_agent_rpc.py Fix AttributeError during startup of ovs agent in DVR mode 2015-01-23 09:38:11 -08:00
test_api_api_common.py Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
test_api_v2.py Merge "Eliminate OrderedDict from test_api_v2.py" 2014-09-27 15:04:49 +00:00
test_api_v2_extension.py Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
test_api_v2_resource.py Fix context.elevated 2014-11-25 11:20:34 +08:00
test_attributes.py attributes: Additional IP address validation 2015-03-05 20:59:54 +00:00
test_auth.py add auth token to context 2014-08-12 11:17:21 +09:00
test_basetestcase.py Prevent SystemExits when running tests 2014-09-01 15:05:16 -07:00
test_common_log.py Use method's logger in log decorator 2014-07-15 11:08:33 +02:00
test_common_utils.py Merge "Fix DVR to service DHCP Ports" 2014-09-16 13:26:05 +00:00
test_config.py Fix state_path in tests 2014-08-29 17:42:07 +03:00
test_db_migration.py Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
test_db_plugin.py Fix IP allocation for multiple slaac subnets 2015-01-22 12:07:13 +01:00
test_db_plugin_level.py Refactor plugin setup helpers out of test.base 2014-08-25 14:44:27 +02:00
test_debug_commands.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_dhcp_agent.py Teach DHCP Agent about DVR router interfaces 2014-12-05 13:04:48 +00:00
test_dhcp_rpc.py Fix KeyError in dhcp_rpc when plugin.port_update raise exception 2014-11-12 18:12:05 +05:30
test_dhcp_scheduler.py Remove auto-generation of db schema from models at startup 2014-08-15 17:21:17 -04:00
test_extension_allowedaddresspairs.py no quota for allowed address pair 2014-07-17 23:06:10 +08:00
test_extension_ext_gw_mode.py Allow reading a tenant router's external IP 2014-10-07 16:13:29 +00:00
test_extension_ext_net.py UTs: Disable auto deletion of ports/subnets/nets 2014-09-09 07:09:02 -07:00
test_extension_extended_attribute.py remove openvswitch plugin 2014-10-01 21:16:27 -07:00
test_extension_extradhcpopts.py Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
test_extension_extraroute.py Fix broken port query in Extraroute test case 2014-09-26 16:10:43 -07:00
test_extension_firewall.py Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
test_extension_pnet.py Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
test_extension_portsecurity.py UTs: Disable auto deletion of ports/subnets/nets 2014-09-09 07:09:02 -07:00
test_extension_security_group.py Convert all incoming protocol numbers to string 2014-11-25 10:56:32 -08:00
test_extensions.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_hacking.py Make sure we don't introduce oslo_* imports during backports 2015-02-11 13:51:40 +01:00
test_iptables_firewall.py Set IPset hash type to 'net' instead of 'ip' 2015-05-08 11:00:20 +00:00
test_iptables_manager.py Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
test_ipv6.py Fix IPv6 Subnet Slaac Check 2015-01-22 12:07:07 +01:00
test_l3_agent.py Merge "Improve exception handling in _process_router_update()" into stable/juno 2015-04-01 21:20:46 +00:00
test_l3_plugin.py Make prevent_l3_port_deletion handle missing port 2015-02-03 00:11:56 -08:00
test_l3_schedulers.py Return from check_ports_exist_on_l3agent if no subnet found 2015-04-09 16:10:33 -07:00
test_linux_daemon.py Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
test_linux_dhcp.py tests: confirm that _output_hosts_file does not log too often 2015-04-23 11:37:47 +02:00
test_linux_external_process.py Fix pid file location to avoid I->J changes that break metadata 2014-10-01 16:31:27 -07:00
test_linux_interface.py Correctly mock-out 'ip route...' calls in IPv6 test 2015-02-18 15:10:08 -07:00
test_linux_ip_lib.py Deletes floating ip related connection states 2014-09-23 21:48:06 +00:00
test_metadata_agent.py Merge "Rename workers to api_workers and simplify code" 2014-09-29 16:58:40 +00:00
test_metadata_namespace_proxy.py Fix 500 error on retrieving metadata by invalid URI 2014-09-18 12:03:08 -07:00
test_neutron_context.py add auth token to context 2014-08-12 11:17:21 +09:00
test_neutron_manager.py Refactor plugin setup helpers out of test.base 2014-08-25 14:44:27 +02:00
test_policy.py Merge "Forbid regular users to reset admin-only attrs to default values" 2014-09-25 03:58:57 +00:00
test_post_mortem_debug.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_provider_configuration.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_quota_ext.py remove linuxbridge plugin 2014-10-01 18:08:25 +00:00
test_routerserviceinsertion.py Refactor plugin setup helpers out of test.base 2014-08-25 14:44:27 +02:00
test_security_groups_rpc.py Set IPset hash type to 'net' instead of 'ip' 2015-05-08 11:00:20 +00:00
test_servicetype.py Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
test_wsgi.py Deal with PEP-0476 certificate chaining checking 2015-03-20 11:24:10 -04:00
testlib_api.py Delete DB records instead of tables to speedup UT 2014-09-17 09:05:49 -07:00
testlib_plugin.py Refactor plugin setup helpers out of test.base 2014-08-25 14:44:27 +02:00