CLOUDSTACK-5430: NPE can be thrown in disconnectPhysicalDiskViaVmSpec in

certain failure scenarios. This can only be triggered if other bugs allow
pools to be deleted while VMs are using them.
This commit is contained in:
Marcus Sorensen 2014-01-08 09:39:19 -07:00
parent 4bb85cd7f9
commit 44c73fdcef
1 changed files with 5 additions and 0 deletions

View File

@ -178,6 +178,11 @@ public class KVMStoragePoolManager {
KVMStoragePool pool = getStoragePool(store.getPoolType(), store.getUuid());
if (pool == null) {
s_logger.error("Pool " + store.getUuid() + " of type " + store.getPoolType() + " was not found, skipping disconnect logic");
continue;
}
StorageAdaptor adaptor = getStorageAdaptor(pool.getType());
// if a disk fails to disconnect, still try to disconnect remaining