← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1200591] Re: virt xenapi driver does not retry upload_image on a socket error

 

The retry code does not check for this:

2014-04-19 00:37:39.354 13204 ERROR nova.compute.manager [req-e7e92354-6e42-4955-9519-08a65872372d XXXX YYYY]
                     [instance: 7a2b7c97-f793-4666-888d-430dXXXXXXX] Error: [Errno 104] Connection reset by peer

in xenapi/client/session.py:

    def _is_retryable_exception(self, exc, fn):
        _type, method, error = exc.details[:3]
        if error == 'RetryableError':
            LOG.debug(_("RetryableError, so retrying %(fn)s"), {'fn': fn},
                      exc_info=True)
            return True
        elif "signal" in method:
            LOG.debug(_("Error due to a signal, retrying %(fn)s"), {'fn': fn},
                      exc_info=True)
            return True
        else:
            return False

** Changed in: nova
       Status: Invalid => Triaged

** Changed in: nova
     Assignee: Sridevi Koushik (sridevik) => (unassigned)

** Changed in: nova
   Importance: Low => Medium

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1200591

Title:
  virt xenapi driver does not retry upload_image on a socket error

Status in OpenStack Compute (Nova):
  Triaged

Bug description:
  As of now only XenAPI failures are retried in the upload_image method (for the glance_num_retries ).
  We need to retry on "error: [Errno 104] Connection reset by peer".

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1200591/+subscriptions