neutron/neutron
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
..
agent Clean up code for bug1511311 2015-12-17 10:05:50 -05:00
api Add check that list of agents is not empty in _get_enabled_agents 2015-12-16 17:56:31 +03:00
callbacks Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
cmd Merge "Add Guru Meditation Reports support to Neutron services" 2015-12-10 02:59:36 +00:00
common Merge "Add explicit address family to AddressScope" 2015-12-16 03:45:32 +00:00
core_extensions Forbid attaching rules if policy isn't accessible 2015-08-12 09:52:33 +00:00
db Catch known exceptions during deleting last HA router 2015-12-18 16:39:27 +08:00
debug Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
extensions Merge "Use a joined relationship for AZ info on networks" 2015-12-16 07:21:03 +00:00
hacking HACKING: fix edge case with log hints 2015-12-02 06:52:25 -08:00
ipam Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
locale Imported Translations from Zanata 2015-11-29 06:23:53 +00:00
notifiers Add option for nova endpoint type 2015-12-10 08:40:36 +00:00
objects Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
openstack Last sync from oslo-incubator 2015-11-13 14:09:52 +00:00
pecan_wsgi Added CORS support to Neutron 2015-12-09 05:53:59 -08:00
plugins Merge "Batch db segment retrieval" 2015-12-15 18:51:27 +00:00
quota ML2: Add tests to validate quota usage tracking 2015-12-09 15:17:23 -08:00
scheduler Tune _get_candidates for faster scheduling in dvr 2015-12-15 09:54:38 -08:00
server Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
services Removing adv svcs dependencies on neutron 2015-12-11 12:18:14 +00:00
tests Catch known exceptions during deleting last HA router 2015-12-18 16:39:27 +08:00
__init__.py Deprecate _ builtin translation function 2015-12-06 19:39:20 +09:00
_i18n.py Move i18n to _i18n, as per oslo_i18n guidelines 2015-12-01 19:29:10 -07:00
auth.py Consume ConfigurableMiddleware from oslo_middleware 2015-10-08 17:59:43 +00:00
context.py Removed a pile of debtcollector removals from neutron.context 2015-10-06 18:28:40 +02:00
i18n.py Move i18n to _i18n, as per oslo_i18n guidelines 2015-12-01 19:29:10 -07:00
manager.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
neutron_plugin_base_v2.py Fix misspelled word in docstring 2015-11-20 17:08:47 +00:00
opts.py Use keystoneauth instead of keystoneclient 2015-12-06 15:09:42 +00:00
policy.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
service.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
version.py
worker.py Add support for PluginWorker and Process creation notification 2015-09-03 06:40:50 +00:00
wsgi.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00