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:
abhishek 2010-09-07 11:08:38 -07:00
parent d801ead9f9
commit 0ea1f370b8
1 changed files with 6 additions and 1 deletions

View File

@ -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;