Created
September 12, 2013 02:31
-
-
Save mgagne/6532491 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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