NSX: Deadlock can occur in sync code

Bug #1278991 reported by Aaron Rosen
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Aaron Rosen
Havana
Fix Released
High
Aaron Rosen

Bug Description

The sync code that syncs the operational status to the db calls out to nsx within a db transaction which can cause deadlock if another request comes in and eventlet context switches it.

Aaron Rosen (arosen)
Changed in neutron:
assignee: nobody → Aaron Rosen (arosen)
importance: Undecided → High
tags: added: nicira
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/72723

Changed in neutron:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/72723
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=d59d5a1c72c2324b857225680f5578d381a2ec73
Submitter: Jenkins
Branch: master

commit d59d5a1c72c2324b857225680f5578d381a2ec73
Author: Aaron Rosen <email address hidden>
Date: Tue Feb 11 10:16:37 2014 -0800

    NSX: Fix possible deadlock in sync code

    This patch removes the call to nsx from within the db transcation
    which can cause deadlock if another request comes in during this time.

    Change-Id: If16b53a77997bccfdff2554dead26f42e23eaec9
    Closes-bug: #1278991

Changed in neutron:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/havana)

Fix proposed to branch: stable/havana
Review: https://review.openstack.org/73728

Aaron Rosen (arosen)
tags: added: havana-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/73835

Revision history for this message
Thierry Carrez (ttx) wrote :
Changed in neutron:
milestone: none → icehouse-3
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/havana)

Fix proposed to branch: stable/havana
Review: https://review.openstack.org/82928

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/havana)

Reviewed: https://review.openstack.org/73728
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=7f2c41ff4588f93289cd3dd1e53774874a4d941d
Submitter: Jenkins
Branch: stable/havana

commit 7f2c41ff4588f93289cd3dd1e53774874a4d941d
Author: Aaron Rosen <email address hidden>
Date: Tue Feb 11 10:16:37 2014 -0800

    NSX: Fix possible deadlock in sync code

    This patch removes the call to nsx from within the db transcation
    which can cause deadlock if another request comes in during this time.

    Closes-bug: #1278991
    Change-Id: If16b53a77997bccfdff2554dead26f42e23eaec9
    (cherry picked from commit d59d5a1c72c2324b857225680f5578d381a2ec73)

Thierry Carrez (ttx)
Changed in neutron:
milestone: icehouse-3 → 2014.1
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.