Skip to content

Commit

Permalink
Don't swallow snapshot exceptions.
Browse files Browse the repository at this point in the history
Fixes bug 949471

This raise is needed so that calling code can be notified to teardown
the failed snapshot.

Change-Id: I25a78e36b4bdb4ca52f1f999168a750dde134056
  • Loading branch information
rconradharris committed Mar 8, 2012
1 parent 70f0ea5 commit 4d7f428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nova/virt/xenapi/vmops.py
Expand Up @@ -696,7 +696,7 @@ def _create_snapshot(self, instance):
except self.XenAPI.Failure, exc:
LOG.error(_("Unable to Snapshot instance %(instance_uuid)s: "
"%(exc)s") % locals())
return
raise

def _migrate_vhd(self, instance, vdi_uuid, dest, sr_path):
instance_id = instance['id']
Expand Down

0 comments on commit 4d7f428

Please sign in to comment.