neutron/neutron/tests/unit
Carl Baldwin 8ab6fd6d7e Clean out namespaces even if we don't delete namespaces
Even when we don't enable namespace deletion, we still want to run the
code that cleans out the namespaces so that the devices get unplugged,
etc.  Otherwise, routers deleted while the agent is down will continue
to operate as if they were never deleted.

The trade-off to consider here is that if there are many stale
namespaces this will slow down the restart of the L3 agent.  The best
option is to get namespace deletion working correctly.  However, where
that has not been worked out yet, this patch provides the cleaning
service for deleted routers.

Change-Id: Ic7b4608a23c4d9530f521d5faff3f8526200b92e
Closes-Bug: #1301042
Related-Bug: #1052535
2014-04-04 16:04:57 +00:00
..
agent Move test_ovs_lib to tests/unit/agent/linux 2014-03-28 13:58:19 -07:00
api Fix misleading error message about failed dhcp notifications 2014-03-17 16:32:44 -07:00
bigswitch Merge "Fix bug:range() is not same in py3.x and py2.x" 2014-03-22 05:22:24 +00:00
brocade Neutron network delete fails with brocade plugin 2013-09-24 01:32:00 +00:00
cisco Merge "Add missing parameters for port creation" 2014-03-31 08:11:15 +00:00
db UT: do not hide an original error in test resource ctxtmgr 2014-03-28 05:49:13 +00:00
embrane Remove individual cfg.CONF.resets from tests 2014-03-17 12:34:56 -04:00
extensions Fix H102, H103 Apache 2.0 license hacking check error 2013-08-08 12:46:18 +09:00
hyperv Merge "Add enable_security_group option" 2014-03-22 02:15:52 +00:00
ibm Remove individual cfg.CONF.resets from tests 2014-03-17 12:34:56 -04:00
linuxbridge Merge "Fix bug:range() is not same in py3.x and py2.x" 2014-03-22 05:22:24 +00:00
metaplugin Enable hacking H301 check 2014-04-01 13:10:14 -04:00
midonet options: consolidate options definitions 2014-02-24 13:25:11 +09:00
ml2 Merge "Fixing Arista CLI command" 2014-04-02 20:38:57 +00:00
mlnx Merge "Fix bug:range() is not same in py3.x and py2.x" 2014-03-22 05:22:24 +00:00
nec UT: do not hide an original error in test resource ctxtmgr 2014-03-28 05:49:13 +00:00
notifiers Only send notifications on uuid device_id's 2014-03-31 11:07:40 -07:00
nuage UT: do not hide an original error in test resource ctxtmgr 2014-03-28 05:49:13 +00:00
ofagent Correct OVS VXLAN version check 2014-03-24 17:14:39 +00:00
oneconvergence Add enable_security_group option 2014-03-21 00:50:15 +01:00
openvswitch Move test_ovs_lib to tests/unit/agent/linux 2014-03-28 13:58:19 -07:00
plumgrid Implements provider network support in PLUMgrid plugin 2014-02-19 23:23:17 -08:00
ryu Removes calls to mock.patch.stopall in unit tests 2014-03-12 04:17:11 +00:00
services Merge "Enable hacking H301 check" 2014-04-02 20:39:05 +00:00
vmware Merge "NSX: Fix pagination support" 2014-04-02 18:47:44 +00:00
__init__.py Update lockutils and fixture in openstack.common 2014-01-09 15:59:10 +04:00
_test_extension_portbindings.py ML2 binding:profile port attribute 2014-02-24 12:30:46 -05:00
_test_rootwrap_exec.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
database_stubs.py Use built-in print() instead of print statement 2013-09-21 07:30:33 -07:00
dummy_plugin.py Service Type Framework refactoring 2013-07-25 21:47:30 +04:00
extension_stubs.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
test_agent_config.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
test_agent_ext_plugin.py Remove individual cfg.CONF.resets from tests 2014-03-17 12:34:56 -04:00
test_agent_linux_utils.py Update License Headers to replace Nicira with VMware 2014-02-27 08:11:15 +00:00
test_agent_netns_cleanup.py Remove individual cfg.CONF.resets from tests 2014-03-17 12:34:56 -04:00
test_agent_ovs_cleanup.py Remove individual cfg.CONF.resets from tests 2014-03-17 12:34:56 -04:00
test_agent_rpc.py Add l2 population base classes 2013-09-12 01:06:51 +02:00
test_api_api_common.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
test_api_v2.py Merge "Remove individual cfg.CONF.resets from tests" 2014-03-19 17:37:37 +00:00
test_api_v2_extension.py Removes calls to mock.patch.stopall in unit tests 2014-03-12 04:17:11 +00:00
test_api_v2_resource.py replace rest of q_exc to n_exc in code base 2014-03-03 17:42:20 -08:00
test_attributes.py Allow CIDRs with non-zero masked portions 2014-03-18 19:07:12 -07:00
test_auth.py Return request-id in API response 2014-02-10 04:58:38 +09:00
test_common_log.py Make neutron.common.log.log print module path 2013-09-07 02:10:57 +09:00
test_common_utils.py replace rest of q_exc to n_exc in code base 2014-03-03 17:42:20 -08:00
test_config.py Utilizes assertIsNone and assertIsNotNone 2013-10-23 10:59:16 +08:00
test_db_migration.py Merge "add HEAD sentinel file that contains migration revision" 2014-03-21 05:54:29 +00:00
test_db_plugin.py Merge "Delete subnet fails if assoc port has IPs from another subnet" 2014-03-31 08:43:23 +00:00
test_db_rpc_base.py Avoid long transaction in plugin.delete_ports() 2014-03-16 00:19:51 +09:00
test_debug_commands.py Removes calls to mock.patch.stopall in unit tests 2014-03-12 04:17:11 +00:00
test_dhcp_agent.py Merge "Remove unnecessary call to get_dhcp_port from DeviceManager" 2014-03-23 00:34:44 +00:00
test_dhcp_scheduler.py Fix DetachedInstanceError for Agent instance 2014-02-27 14:48:11 +00:00
test_extension_allowedaddresspairs.py Remove plugin_name_v2 and extension_manager in test_config 2014-01-06 20:02:00 +09:00
test_extension_ext_gw_mode.py Update License Headers to replace Nicira with VMware 2014-02-27 08:11:15 +00:00
test_extension_ext_net.py Remove plugin_name_v2 and extension_manager in test_config 2014-01-06 20:02:00 +09:00
test_extension_extended_attribute.py Remove individual cfg.CONF.resets from tests 2014-03-17 12:34:56 -04:00
test_extension_extradhcpopts.py extra_dhcp_opt add checks for empty strings 2013-12-13 08:40:28 -07:00
test_extension_extraroute.py tests/unit: clean up notification driver 2014-03-20 11:42:59 +09:00
test_extension_firewall.py tests/service: consolidate setUp/tearDown logic 2014-02-25 10:33:56 +09:00
test_extension_pnet.py Remove individual cfg.CONF.resets from tests 2014-03-17 12:34:56 -04:00
test_extension_portsecurity.py Use "!=" instead of "is not" when comparing two values 2014-02-21 21:15:19 +09:00
test_extension_security_group.py UT: do not hide an original error in test resource ctxtmgr 2014-03-28 05:49:13 +00:00
test_extensions.py Added check on plugin.supported_extension_aliases 2013-11-19 12:51:21 -06:00
test_iptables_firewall.py Process ICMP type for iptables firewall 2014-03-17 15:06:21 +08:00
test_iptables_manager.py Removes calls to mock.patch.stopall in unit tests 2014-03-12 04:17:11 +00:00
test_ipv6.py Calculate stateless IPv6 address 2014-03-17 15:48:46 -04:00
test_l3_agent.py Clean out namespaces even if we don't delete namespaces 2014-04-04 16:04:57 +00:00
test_l3_plugin.py UT: do not hide an original error in test resource ctxtmgr 2014-03-28 05:49:13 +00:00
test_l3_schedulers.py UT: do not hide an original error in test resource ctxtmgr 2014-03-28 05:49:13 +00:00
test_legacy.py Kill 'Skipping unknown group key: firewall_driver' log trace 2014-03-13 12:46:06 -07:00
test_linux_daemon.py Merge "Change daemon Pidfile class to not use root_helper" 2013-09-19 21:21:12 +00:00
test_linux_dhcp.py Make dnsmasq aware of all names 2014-03-27 16:51:12 +01:00
test_linux_external_process.py Refactor netns.execute so that it is not necessary to check namespace 2014-03-04 16:13:44 +00:00
test_linux_interface.py Removes calls to mock.patch.stopall in unit tests 2014-03-12 04:17:11 +00:00
test_linux_ip_lib.py Merge "Add unit test for add_vxlan in test_linux_ip_lib" 2014-04-01 12:21:55 +00:00
test_metadata_agent.py Removes calls to mock.patch.stopall in unit tests 2014-03-12 04:17:11 +00:00
test_metadata_namespace_proxy.py Include proper Content-Type in the HTTP response headers 2014-02-25 15:56:43 +05:30
test_neutron_context.py Update License Headers to replace Nicira with VMware 2014-02-27 08:11:15 +00:00
test_neutron_manager.py Remove individual cfg.CONF.resets from tests 2014-03-17 12:34:56 -04:00
test_policy.py Use six.StringIO/BytesIO instead of StringIO.StringIO 2014-02-17 11:13:33 +08:00
test_post_mortem_debug.py Fix bug:range() is not same in py3.x and py2.x 2014-03-11 16:44:47 +08:00
test_provider_configuration.py replace rest of q_exc to n_exc in code base 2014-03-03 17:42:20 -08:00
test_quota_ext.py Remove individual cfg.CONF.resets from tests 2014-03-17 12:34:56 -04:00
test_routerserviceinsertion.py Remove individual cfg.CONF.resets from tests 2014-03-17 12:34:56 -04:00
test_security_groups_rpc.py Add enable_security_group option 2014-03-21 00:50:15 +01:00
test_servicetype.py Remove individual cfg.CONF.resets from tests 2014-03-17 12:34:56 -04:00
test_wsgi.py wsgi.run_server no longer used 2014-02-20 20:15:21 -08:00
testlib_api.py add portbinding host into vip port 2013-09-25 14:41:31 +08:00