internal neutron server error on tempest VolumesActionsTest

Bug #1266537 reported by Eugene Nikanorov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Eugene Nikanorov
Tags: db ml2
Changed in neutron:
importance: Undecided → Medium
Revision history for this message
Salvatore Orlando (salvatore-orlando) wrote :

I've seen you've tagged this as ml2 - does it mean you've triaged it?

Revision history for this message
Eugene Nikanorov (enikanorov) wrote :

I've briefly looked at logs, the exception is thrown from ml2 plugin.

Revision history for this message
Eugene Nikanorov (enikanorov) wrote :

Apparently a race condition in ml2 plugin delete_port method.

Changed in neutron:
status: New → Confirmed
importance: Medium → High
Revision history for this message
Eugene Nikanorov (enikanorov) wrote :

Tempest logs indicate that there was just one attempt to delete a port from tempest via rest_client.
However neutron logs indicate that there was 2 incoming delete requests for the same port nearly at the same time.

I can't find the reason for that condition from the logs.

Anyway, the logic in ml2 delete_port is flawed.

tags: added: db
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/65951

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

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

commit d9bcd597c67900472709cd11604afe1616e0af4e
Author: Eugene Nikanorov <email address hidden>
Date: Thu Jan 9 13:23:02 2014 +0400

    Fix race condition on ml2 delete and update port methods

    Synchronize access to ports table when deleting and updating
    a port. Otherwise concurrent update/delete request for the same port
    may cause neutron server to throw an exception and return
    '500 Internal server error' for such requests.

    Change-Id: I868002643147ce6baace5671cffb38b4f5e66729
    Closes-Bug: #1266537

Changed in neutron:
status: In Progress → Fix Committed
Changed in neutron:
status: Fix Committed → In Progress
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/66670

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