commit f54cba053556a43d51ccd895cdf8232c51210299
Author: LIU Yulong <email address hidden>
Date: Tue Dec 8 14:13:44 2015 +0800
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.
Reviewed: https:/ /review. openstack. org/254586 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=f54cba05355 6a43d51ccd895cd f8232c51210299
Committed: https:/
Submitter: Jenkins
Branch: master
commit f54cba053556a43 d51ccd895cdf823 2c51210299
Author: LIU Yulong <email address hidden>
Date: Tue Dec 8 14:13:44 2015 +0800
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: I8cda00c1e7caff c4dfb20a817a11c 60736855bb5
Closes-Bug: #1523780
Related-Bug: #1367157