glance xenserver plugin doesn't always retry

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

Bug Description

The log on the dom0 will show something like this:

Feb 15 17:14:28 localhost glance: INFO Downloading http://10.x.y.z:9292/v1/images/437c0a22-2a92-448c-bd7b-124fe3976d7f
Feb 15 17:14:28 localhost glance: INFO Reading image data from http://10.x.y.z:9292/v1/images/437c0a22-2a92-448c-bd7b-124fe3976d7f
Feb 15 17:14:29 localhost glance: INFO Read 1441792 bytes from http://10.x.y.z:9292/v1/images/437c0a22-2a92-448c-bd7b-124fe3976d7f
Feb 15 17:14:29 localhost glance: ERROR Downloading http://10.x.y.z:9292/v1/images/437c0a22-2a92-448c-bd7b-124fe3976d7f attempt 1 error: 'tar -zx --directory=/var/run/sr-mount/10f0f335-43d4-edd2-7abe-bc1dca7f2ac7/tmp7lwYp4' returned non-zero exit code: retcode=2, stderr=' gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now '

and then this will be seen on the compute node:

(nova.rpc): TRACE: Failure: ['XENAPI_PLUGIN_FAILURE', 'download_vhd', 'BadStatusLine', '']

The glance plugin will attempt to reuse a urllib2 request on a connection in an unknown state. This can lead to a BadStatusLine error.

Changed in nova:
assignee: nobody → Johannes Erdfelt (johannes.erdfelt)
description: updated
description: updated
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/4207

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

Reviewed: https://review.openstack.org/4207
Committed: http://github.com/openstack/nova/commit/3a95d451edfa622b987cdc8f904cd00262f32cea
Submitter: Jenkins
Branch: master

commit 3a95d451edfa622b987cdc8f904cd00262f32cea
Author: Johannes Erdfelt <email address hidden>
Date: Wed Feb 15 17:38:05 2012 +0000

    Catch httplib.HTTPException as well

    Fixes bug 932927

    None of the httplib exceptions will get converted into urllib2 exceptions

    Change-Id: Iad72821fa1ed54fdb213b371223e94e183dec334

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