mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
bug 8993: throw exception if creating snapshot on primary storage fails it may be due to previous creation desn't finish
status 8993: resolved fixed
This commit is contained in:
parent
a41fb61ea4
commit
25d1a8dc4a
@ -388,7 +388,9 @@ public class SnapshotManagerImpl implements SnapshotManager, SnapshotService, Ma
|
||||
if (!backedUp) {
|
||||
throw new CloudRuntimeException("Created snapshot: " + snapshot + " on primary but failed to backup on secondary");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
throw new CloudRuntimeException("Failed to create snapshot: " + snapshot + " on primary storage");
|
||||
}
|
||||
} finally {
|
||||
// Cleanup jobs to do after the snapshot has been created; decrement resource count
|
||||
if (snapshot != null) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user