DB lock wait timeout is possible for metaplugin

Bug #1267291 reported by Itsuro Oda
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Itsuro Oda

Bug Description

There are some places that a target plugin's method is called in
'with context.session.begin(subtransaction=True)'.
This causes 'lock wait timeout' error potentially.
--- error is like:
OperationalError: (OperationalError) (1205, 'Lock wait timeout exceeded; try restarting transaction') ...snip
---

For example say ml2 is target plugin. Ml2's mechanism drivers separates precommit and postcommit
method so that 'lock wait timeout' error does not occur.
But it is meaningless if ml2 is used under metaplugin.

Itsuro Oda (oda-g)
Changed in neutron:
assignee: nobody → Itsuro Oda (oda-g)
Revision history for this message
yong sheng gong (gongysh) wrote :

Is there someone still using metaplugin since we have ml2?

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/79534

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/79534
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=df315513efe62667220562dd2edb5401b15ab2ba
Submitter: Jenkins
Branch: master

commit df315513efe62667220562dd2edb5401b15ab2ba
Author: Itsuro Oda <email address hidden>
Date: Wed Feb 5 10:12:26 2014 +0900

    Call target plugin out of DB transaction in the Metaplugin

    Previously, there are cases that a target plugin is called
    within a DB transaction in the metaplugin. This possibly causes
    "DB lock timeout" error since a target plugin may take a long
    time (ex. communicate to a controller).

    Change-Id: Ie2971bfae1fecc97086b58cd943c321feb0aba04
    Closes-Bug: #1267291

Changed in neutron:
status: In Progress → Fix Committed
Akihiro Motoki (amotoki)
Changed in neutron:
milestone: none → icehouse-rc1
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: icehouse-rc1 → 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.