mirror of https://github.com/apache/cloudstack.git
bug 5147: Adding the check to block create and destroy of system resources whilst the storage pool is in maintenance mode. This is based on checking if the pool is in UP state
This commit is contained in:
parent
d801ead9f9
commit
0ea1f370b8
|
|
@ -142,7 +142,12 @@ public abstract class AbstractStoragePoolAllocator extends AdapterBase implement
|
|||
return false;
|
||||
}
|
||||
|
||||
|
||||
//if pool is NOT in up state, return false
|
||||
if(!pool.getStatus().equals(com.cloud.host.Status.Up))//this is the pool status
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check that the pool type is correct
|
||||
if (!poolIsCorrectType(dskCh, pool, vm, offering)) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue