Skip to content

Instantly share code, notes, and snippets.

@mgagne
Created September 12, 2013 02:31
Show Gist options
  • Save mgagne/6532491 to your computer and use it in GitHub Desktop.
Save mgagne/6532491 to your computer and use it in GitHub Desktop.
diff --git a/cinder/volume/manager.py b/cinder/volume/manager.py
index f2be2d6..cfe5fe8 100644
--- a/cinder/volume/manager.py
+++ b/cinder/volume/manager.py
@@ -610,6 +610,11 @@ class VolumeManager(manager.SchedulerDependentManager):
"error: %(error)s") % {'volume_id': volume_id,
'error': ex})
raise exception.ImageCopyFailure(reason=ex)
+ except Exception as ex:
+ LOG.error(_("Failed to copy image to volume: %(volume_id)s, "
+ "error: %(error)s") % {'volume_id': volume_id,
+ 'error': ex})
+ raise exception.ImageCopyFailure(reason=ex)
LOG.info(_("Downloaded image %(image_id)s to %(volume_id)s "
"successfully.") % {'image_id': image_id,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment