← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1292232] [NEW] BigSwitch plugin is prone to eventlet/mysql deadlocks

 

Public bug reported:

The current BigSwitch plugin performs REST calls inside of the
transactions making it prone to eventlet deadlocks on simultaneous
operations of the same type.

One operation will get the sql lock for update and then make it to the
rest call, which performs a socket operation causing eventlet to yield
to other threads. One of these threads then attempts to get the SQL lock
for update, which never yields back to the thread in the rest call that
has the lock. They are then stuck in a deadlock until the SQL lock times
out and the transaction fails.

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

** 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/1292232

Title:
  BigSwitch plugin is prone to eventlet/mysql deadlocks

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  The current BigSwitch plugin performs REST calls inside of the
  transactions making it prone to eventlet deadlocks on simultaneous
  operations of the same type.

  One operation will get the sql lock for update and then make it to the
  rest call, which performs a socket operation causing eventlet to yield
  to other threads. One of these threads then attempts to get the SQL
  lock for update, which never yields back to the thread in the rest
  call that has the lock. They are then stuck in a deadlock until the
  SQL lock times out and the transaction fails.

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


Follow ups

References