Add retry on upload_vhd in xapi glance plugin

Bug #1134493 reported by Nicholas Kuechler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Nicholas Kuechler

Bug Description

Add a retry in the xapi glance plugin to handle transient issues when uploading the vhd.

An example issue we're seeing is a connection timeout:

['XENAPI_PLUGIN_FAILURE', 'upload_vhd', 'error', "(110, 'Connection timed out')"]

To work around transient issues such as a connection timeout, I think the glance plugin should retry the upload a small number of times before outright failing.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
assignee: nobody → Nicholas Kuechler (nicholaskuechler)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/23093
Committed: http://github.com/openstack/nova/commit/2db1a0f62b797acdb8506e7e36fbced0828dd796
Submitter: Jenkins
Branch: master

commit 2db1a0f62b797acdb8506e7e36fbced0828dd796
Author: Nicholas Kuechler <email address hidden>
Date: Wed Feb 27 10:02:33 2013 -0600

    Adds retry on upload_vhd for xapi glance plugin

    Add a retry for the xapi glance plugin to handle transient issues
    when uploading the vhd.

    An example issue we're seeing is a connection timeout:

    ['XENAPI_PLUGIN_FAILURE', 'upload_vhd', 'error',
      "(110, 'Connection timed out')"]

    To work around transient issues such as a connection timeout, we
    should retry based on glance_num_retries before outright failing.

    Change-Id: Ice6fdd3dd39ef40e5997d69209aaafa66bff5d6e
    Fixes: bug #1134493

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