xenapi: glance download can hang if interupted

Bug #1251650 reported by John Garbutt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
John Garbutt

Bug Description

We have seen cases where a server has got stuck building during the glance download.

Looks like the download process just hangs.

Tags: xenserver
Revision history for this message
John Garbutt (johngarbutt) wrote :

Most likely cause seems to be loosing the connection to glance, then the script locks up.

It sounds a lot like what is described here:
http://docs.python.org/3.1/howto/urllib2.html#sockets-and-layers

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

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

Reviewed: https://review.openstack.org/56622
Committed: http://github.com/openstack/nova/commit/89b0d540d5f98945600139bd2a05656b68fac81a
Submitter: Jenkins
Branch: master

commit 89b0d540d5f98945600139bd2a05656b68fac81a
Author: John Garbutt <email address hidden>
Date: Fri Nov 15 14:46:38 2013 +0000

    xenapi: stop hang during glance download

    It seems there are cases when the server gets stuck in a building state
    because the download from glance fails, but the nova-compute doesn't
    find out.

    After some code inspect, a likely cause seems to related to having no
    socket timeout inside urllib2 when we download the image from glance. A
    workaround for this issue is to configure the default socket timeout as
    described here:
    http://docs.python.org/3.1/howto/urllib2.html#sockets-and-layers

    Fixes bug 1251650
    Change-Id: I8b34d95d3524f3825b28e61cbbb59290653d3711

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