← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1551958] [NEW] ML2 delete_network can loop infinitely if called in transaction

 

Public bug reported:

Both delete_network and delete_subnet in ML2 use a while True to
continuously attempt to delete a network or subnet. This logic is fine
assuming its DB lookups are fresh on each iteration to get the latest
state. However, it fails when these functions are called inside of
another transaction because its lookups will get stale data and continue
to loop over that data forever.

Thanks to Armando who spotted it:
http://paste.openstack.org/show/488834/

** Affects: neutron
     Importance: Undecided
     Assignee: Kevin Benton (kevinbenton)
         Status: In Progress

** Changed in: neutron
     Assignee: (unassigned) => Kevin Benton (kevinbenton)

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

Title:
  ML2 delete_network can loop infinitely if called in transaction

Status in neutron:
  In Progress

Bug description:
  Both delete_network and delete_subnet in ML2 use a while True to
  continuously attempt to delete a network or subnet. This logic is fine
  assuming its DB lookups are fresh on each iteration to get the latest
  state. However, it fails when these functions are called inside of
  another transaction because its lookups will get stale data and
  continue to loop over that data forever.

  Thanks to Armando who spotted it:
  http://paste.openstack.org/show/488834/

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


Follow ups