neutron/neutron/tests/unit
Eugene Nikanorov 58e6bb5893 Fix race condition with firewall deletion
In some cases when firewall is created and then deleted in short
period of time, there could be a race condition of firewall status
changes. Agent may change firewall status from PENDING_DELETE to ACTIVE
because the agent has just set it up on the backend.
Delete request then is not properly served and firewall remains in ERROR
state and can't be deleted at all.

To fix this changing status from PENDING_DELETE is not allowed.
Deleting firewall in ERROR state is allowed.

Change-Id: Iec3cfcb1e03b33dda8e1f10ca51bd9b61fa8030d
Closes-Bug: #1328162
2014-06-10 07:55:40 +04:00
..
agent Merge "Default to setting secure mode on the integration bridge" 2014-06-10 03:39:21 +00:00
api Fix misleading error message about failed dhcp notifications 2014-03-17 16:32:44 -07:00
bigswitch Merge "BSN: Set hash header to empty instead of False" 2014-06-09 02:20:52 +00:00
brocade Neutron network delete fails with brocade plugin 2013-09-24 01:32:00 +00:00
cisco Remove unnecessary MagicMocks in cisco unit tests 2014-05-29 20:49:48 -07:00
db Merge "Unit test cases for quota_db.py" 2014-05-19 15:52:05 +00:00
embrane Remove individual cfg.CONF.resets from tests 2014-03-17 12:34:56 -04:00
extensions Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
hyperv Start an unstarted patch in the hyperv unit tests 2014-06-09 00:48:34 -07:00
ibm Merge "Fixes bugs for requests sent to SDN-VE controller" 2014-05-27 00:07:11 +00:00
linuxbridge Introduced transition RPC exception types 2014-06-09 16:42:47 +02:00
metaplugin Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
midonet Improve module-level mocks in midonet tests 2014-06-03 08:59:43 +00:00
ml2 Added RpcProxy class 2014-06-09 16:42:47 +02:00
mlnx Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
nec Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
notifiers Replace loopingcall in notifier with a delayed send 2014-04-22 16:22:02 +00:00
nuage Extraroute extension support for nuage plugin 2014-05-22 17:35:55 -07:00
ofagent Add an option to turn off DF for GRE and VXLAN tunnels 2014-06-08 13:52:59 -04:00
oneconvergence Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
openvswitch Merge "Default to setting secure mode on the integration bridge" 2014-06-10 03:39:21 +00:00
plumgrid Make allocation_pools attribute of subnet updateable by PUT 2014-06-09 19:40:37 +03:00
ryu Improve readability of MagicMock use in RYU test 2014-05-29 21:15:22 -07:00
services Fix race condition with firewall deletion 2014-06-10 07:55:40 +04:00
vmware Merge "NSX: bump http_timeout to 30 seconds" 2014-06-08 15:10:47 +00:00
__init__.py Update lockutils and fixture in openstack.common 2014-01-09 15:59:10 +04:00
_test_extension_portbindings.py Fix H302 violations in unit tests 2014-05-04 12:39:19 +02: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 Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
extension_stubs.py Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
test_agent_config.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
test_agent_ext_plugin.py Reschedule router if new external gateway is on other network 2014-04-10 15:24:14 +04:00
test_agent_linux_utils.py Make linux.utils.execute log error on return codes 2014-05-28 18:49:53 -07:00
test_agent_netns_cleanup.py fixes broken neutron-netns-cleanup 2014-04-02 13:37:24 +00: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 Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
test_api_v2_extension.py tests/unit: refactor reading neutron.conf.test 2014-05-01 11:20:18 +09: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 Merge "Fix _validate_mac_address method" 2014-04-08 06:05:09 +00: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 Common decorator for caching methods 2014-05-22 13:17:51 +02:00
test_config.py Utilizes assertIsNone and assertIsNotNone 2013-10-23 10:59:16 +08:00
test_db_migration.py Remove mock.patch.stop from tests that inherit from BaseTestCase 2014-04-10 11:40:56 +00:00
test_db_plugin.py Make allocation_pools attribute of subnet updateable by PUT 2014-06-09 19:40:37 +03: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 Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
test_dhcp_agent.py Introduced transition RPC exception types 2014-06-09 16:42:47 +02:00
test_dhcp_scheduler.py Fix DetachedInstanceError for Agent instance 2014-02-27 14:48:11 +00:00
test_extension_allowedaddresspairs.py Allowed Addresspairs: Removing check for overlap with fixed ips 2014-05-21 18:41:55 +00:00
test_extension_ext_gw_mode.py Remove mock.patch.stop from tests that inherit from BaseTestCase 2014-04-10 11:40:56 +00:00
test_extension_ext_net.py Fix for multiple misspelled words 2014-05-23 17:07:56 -07:00
test_extension_extended_attribute.py tests/unit: refactor reading neutron.conf.test 2014-05-01 11:20:18 +09: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 Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
test_extension_portsecurity.py Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
test_extension_security_group.py tests/unit: refactor reading neutron.conf.test 2014-05-01 11:20:18 +09:00
test_extensions.py Fix issubclass() hook behavior in PluginInterface 2014-05-12 21:59:12 +03:00
test_hacking.py Add missing translation support 2014-05-19 12:16:56 +02:00
test_iptables_firewall.py Allow DHCPv6 solicit from VM 2014-05-06 18:17:46 +08:00
test_iptables_manager.py Improve iptables_manager _modify_rules() method 2014-06-02 16:24:56 -04:00
test_ipv6.py Calculate stateless IPv6 address 2014-03-17 15:48:46 -04:00
test_l3_agent.py Merge "Install SNAT rules for ipv4 only" 2014-05-28 03:23:23 +00:00
test_l3_plugin.py Allow L3 base to handle extensions on router creation 2014-06-04 01:27:15 -07: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_linux_daemon.py Make pid file locking non-blocking 2014-05-21 13:29:01 -07:00
test_linux_dhcp.py Neutron does not follow the RFC 3442 spec for DHCP 2014-06-01 23:01:00 +02:00
test_linux_external_process.py Remove mock.patch.stop from tests that inherit from BaseTestCase 2014-04-10 11:40:56 +00:00
test_linux_interface.py Merge "Set onlink routes for all subnets on an external network" 2014-05-28 01:11:29 +00:00
test_linux_ip_lib.py ip-lib : use "ip neigh replace" instead of "ip neigh add" 2014-04-22 15:37:24 +02:00
test_metadata_agent.py Metadata agent caches networks for routers 2014-05-22 13:19:13 +02:00
test_metadata_namespace_proxy.py Remove mock.patch.stop from tests that inherit from BaseTestCase 2014-04-10 11:40:56 +00:00
test_neutron_context.py Remove mock.patch.stop from tests that inherit from BaseTestCase 2014-04-10 11:40:56 +00:00
test_neutron_manager.py Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
test_policy.py Perform policy checks only once on list responses 2014-05-06 03:52:29 -07:00
test_post_mortem_debug.py Fix H302 violations in unit tests 2014-05-04 12:39:19 +02: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 tests/unit: refactor reading neutron.conf.test 2014-05-01 11:20:18 +09:00
test_routerserviceinsertion.py tests/unit: refactor reading neutron.conf.test 2014-05-01 11:20:18 +09:00
test_security_groups_rpc.py Added RpcProxy class 2014-06-09 16:42:47 +02:00
test_servicetype.py Remove individual cfg.CONF.resets from tests 2014-03-17 12:34:56 -04:00
test_wsgi.py Fix H302 violations in db package and services 2014-04-22 15:31:00 +02:00
testlib_api.py add portbinding host into vip port 2013-09-25 14:41:31 +08:00