CLOUDSTACK-5737: ignore umount secondary storage failure during backup snapshot

This commit is contained in:
edison 2014-01-03 12:59:54 -08:00 committed by Anthony Xu
parent 6b7994512d
commit a8bfb3dd00
1 changed files with 7 additions and 2 deletions

View File

@ -812,8 +812,13 @@ public class KVMStorageProcessor implements StorageProcessor {
} catch (Exception ex) {
s_logger.debug("Failed to delete snapshots on primary", ex);
}
if (secondaryStoragePool != null) {
secondaryStoragePool.delete();
try {
if (secondaryStoragePool != null) {
secondaryStoragePool.delete();
}
} catch (Exception ex) {
s_logger.debug("Failed to delete secondary storage", ex);
}
}
}