No retries in 'network_set_host' function

Bug #1422610 reported by Pavel Kholkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Pavel Kholkin

Bug Description

In nova 'network_set_host' function could happen db_exc.DBDeadlock or the function could return 0 rows updated. These cases mean that concurrent transactions try to update the same row. In these cases we should retry the transactions and try to fetch another row to update.

Pavel Kholkin (pkholkin)
Changed in nova:
assignee: nobody → Pavel Kholkin (pkholkin)
Changed in nova:
status: New → In Progress
Changed in nova:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/156326
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=f1935a55bc4e6189c1413556ec92257f92a384e4
Submitter: Jenkins
Branch: master

commit f1935a55bc4e6189c1413556ec92257f92a384e4
Author: pkholkin <email address hidden>
Date: Mon Feb 16 21:44:05 2015 +0400

    Added retries in 'network_set_host' function

    In concurrent transactions in 'network_set_host' function
    could happen a deadlock or returned rows_updated value
    could be equal to 0.

    In these cases we should retry the transaction to get
    another row and try to set the host again.

    Closes-Bug: #1422610

    Change-Id: I374b12e62f76810ffdb1e2d35af72a738ead5591

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