← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2057698] [NEW] Concurrent routerroute update fails on deletion with AttributeError

 

Public bug reported:

When updating a router and providing a set of extra routes /
routerroutes that result in some routes being deleted, it might happen
that two workers fetch the routes at the same time and then both try to
delete the route. As the route is fetched before deletion, in one of the
two workers the get_object() will return None, on which delete() is
called, resulting in an AttributeError:

AttributeError: 'NoneType' object has no attribute 'delete'

The result is not fulfilled properly and a 500 is returned to the user.

This was observed on neutron yoga, though the same code (+ a breaking
test) seem to confirm this on current master.

** Affects: neutron
     Importance: Undecided
         Status: In Progress

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2057698

Title:
  Concurrent routerroute update fails on deletion with AttributeError

Status in neutron:
  In Progress

Bug description:
  When updating a router and providing a set of extra routes /
  routerroutes that result in some routes being deleted, it might happen
  that two workers fetch the routes at the same time and then both try
  to delete the route. As the route is fetched before deletion, in one
  of the two workers the get_object() will return None, on which
  delete() is called, resulting in an AttributeError:

  AttributeError: 'NoneType' object has no attribute 'delete'

  The result is not fulfilled properly and a 500 is returned to the
  user.

  This was observed on neutron yoga, though the same code (+ a breaking
  test) seem to confirm this on current master.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2057698/+subscriptions



Follow ups