Race between deleting last HA router and a new HA router API call

Bug #1533440 reported by LIU Yulong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Invalid
Undecided
LIU Yulong

Bug Description

During the delete of tenant last HA router, neutron will also delete the HA network which can be racy if a new HA router API call is coming concurrently.

Some known exceptions:
1. NetworkNotFound: (HA network not found when create HA router HA port)

2. IpAddressGenerationFailure: (HA port created failed due to the
   concurrently HA subnet deletion)

3. DBReferenceError(IntegrityError): (HA network was deleted by
   concurrently operation, e.g. deleting the last HA router)

4. HA Network Attribute Error
   http://paste.openstack.org/show/490140/

Consider using the Rally to do the following steps to reproduce the race exceptions:
1. Create 200+ tenant, each one has 2 or more user
2. Create ONLY 1 router for each tenant
3. Concurently do the following:
  (1) one user try to delete the LAST HA router
  (2) other user try to create some HA router

Changed in neutron:
assignee: nobody → LIU Yulong (dragon889)
status: New → In Progress
Revision history for this message
Miguel Angel Ajo (mangelajo) wrote :
tags: added: kilo-backport-potential liberty-backport-potential
LIU Yulong (dragon889)
tags: added: l3-ha
Revision history for this message
LIU Yulong (dragon889) wrote :
LIU Yulong (dragon889)
description: updated
description: updated
description: updated
LIU Yulong (dragon889)
description: updated
description: updated
description: updated
Revision history for this message
Ann Taraday (akamyshnikova) wrote :

@LIU Yulong (dragon889)
I filed a separate bug about IpAddressGenerationFailure as I didn't find one https://bugs.launchpad.net/neutron/+bug/1562887

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by LIU Yulong (<email address hidden>) on branch: master
Review: https://review.openstack.org/265682
Reason: See the alternate patch:
https://review.openstack.org/#/c/282876/

Revision history for this message
John Schwarz (jschwarz) wrote :

3 of the 4 original issues in the first post are now fixed, and the one that isn't is addressed by a separate bug report:

1. NetworkNotFound: fixed by the introduction of _create_ha_interfaces_and_ensure_network

2. IpAddressGenerationFailure: https://bugs.launchpad.net/neutron/+bug/1562887

3. DBReferenceError: Opened a separate bug, https://bugs.launchpad.net/neutron/+bug/1533460, and fixed by https://review.openstack.org/#/c/260303/

4. HA Network Attribute Error: fixed by the introduction of _create_ha_interfaces_and_ensure_network

I think this bug can be closed.

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
Jakub Libosvar (libosvar) wrote :

As per comment #5 - this bug was split into smaller pieces addressed by different bug numbers. Closing as Invalid per John's request.

Changed in neutron:
status: Fix Released → Invalid
Revision history for this message
John Schwarz (jschwarz) wrote :

The "_create_ha_interfaces_and_ensure_network" has been introduced in https://review.openstack.org/#/c/282876/ (forgot to link the original patch, sorry :))

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.