mirror of https://github.com/apache/cloudstack.git
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:
parent
4bb85cd7f9
commit
44c73fdcef
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue