neutron/neutron/db
LIU Yulong f54cba0535 Catch known exceptions during deleting last HA router
In some scenarios, for instance rally test create_and_delete_routers,
it will get some exceptions, such as the network in use exception,
during the router deleting api call, but actually the router has
been deleted. There has race between HA router create and delete,
if set more api and rpc worker race raises exception more frequently.
Because the inconsistent error message was not useful for user,
this patch will catch those know exceptions ObjectDeletedError,
NetworkInUse when user delete last HA router.

At the same time, when user create the first HA router, but because
of the failure of HA network creation, the router will be deleted,
then the deleting HA network will raise AttributeError, this patch
also move HA network deleting procedure under ha_network exist check
block.

Change-Id: I8cda00c1e7caffc4dfb20a817a11c60736855bb5
Closes-Bug: #1523780
Related-Bug: #1367157
2015-12-18 16:39:27 +08:00
..
availability_zone Use a joined relationship for AZ info on networks 2015-12-14 14:45:30 -08:00
metering Reuse constants defined in attributes 2015-12-04 05:14:55 +00:00
migration Add explicit address family to AddressScope 2015-12-14 11:02:27 -08:00
qos qos: Delete bw limit rule when policy is deleted 2015-08-20 14:01:41 +00:00
quota Reuse constants defined in attributes 2015-12-04 05:14:55 +00:00
__init__.py Update License Headers to replace Nicira with VMware 2014-02-27 08:11:15 +00:00
address_scope_db.py Add explicit address family to AddressScope 2015-12-14 11:02:27 -08:00
agents_db.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
agentschedulers_db.py Use a joined relationship for AZ info on networks 2015-12-14 14:45:30 -08:00
allowedaddresspairs_db.py Fix duplicate entry catch for allowed address pairs 2015-07-10 18:55:58 +08:00
api.py Move retries out of ML2 plugin 2015-10-14 00:46:22 -07:00
common_db_mixin.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
db_base_plugin_common.py Separate rbac calculation from _make_network_dict 2015-12-14 19:09:20 +00:00
db_base_plugin_v2.py Add explicit address family to AddressScope 2015-12-14 11:02:27 -08:00
dvr_mac_db.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
external_net_db.py ml2: remove stale _filter_nets_l3 in get_networks 2015-01-20 15:13:20 -08:00
extradhcpopt_db.py Enable specific extra_dhcp_opt to be left blank 2015-10-15 14:16:17 +03:00
extraroute_db.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
flavors_db.py Reuse constants defined in attributes 2015-12-04 05:14:55 +00:00
ipam_backend_mixin.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
ipam_non_pluggable_backend.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
ipam_pluggable_backend.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
l3_agentschedulers_db.py Merge "Use _ from neutron._i18n" 2015-12-07 03:12:08 +00:00
l3_attrs_db.py Add availability_zone support for router 2015-12-04 12:32:42 +09:00
l3_db.py Remove unused parameter from _update_router_db method 2015-12-16 16:58:47 +04:00
l3_dvr_db.py Remove unused parameter from _update_router_db method 2015-12-16 16:58:47 +04:00
l3_dvrscheduler_db.py DVR: handle dvr serviceable port's host change 2015-12-14 17:33:36 +00:00
l3_gwmode_db.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
l3_hamode_db.py Catch known exceptions during deleting last HA router 2015-12-18 16:39:27 +08:00
l3_hascheduler_db.py Add availability_zone support for router 2015-12-04 12:32:42 +09:00
model_base.py Make Neutron resources reference standard attr table 2015-11-23 07:41:26 -08:00
models_v2.py Use a joined relationship for AZ info on networks 2015-12-14 14:45:30 -08:00
netmtu_db.py Move network MTU from core REST API to extension API 2015-04-02 12:48:56 -04:00
portbindings_base.py Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
portbindings_db.py Remove unnecessary 'IN vs ==' sql query branches 2015-03-21 09:39:06 -07:00
portsecurity_db.py Add utility function for checking trusted port 2015-09-14 10:41:54 +00:00
portsecurity_db_common.py portsecurity_db_common: Access db columns in a consistent way 2015-07-06 11:22:18 +09:00
quota_db.py Create packages for quota modules 2015-07-28 11:55:01 -07:00
rbac_db_mixin.py Fix use of fields argument in get_rbac_policies 2015-11-19 20:45:28 -08:00
rbac_db_models.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
securitygroups_db.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
securitygroups_rpc_base.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
servicetype_db.py Force service provider relationships to load 2015-12-10 01:26:51 -06:00
sqlalchemyutils.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
vlantransparent_db.py Moving VLAN Transparency support from core to extension 2015-04-08 08:35:13 -07:00