adding more logging for the corner case

This commit is contained in:
abhishek 2011-01-11 12:14:13 -08:00
parent 95756802e3
commit 8995a0afb6
1 changed files with 1 additions and 0 deletions

View File

@ -2654,6 +2654,7 @@ public class StorageManagerImpl implements StorageManager, StorageService, Manag
if (state == Volume.State.Ready) {
if(vol.getPoolId() == null) {
s_logger.warn("Found volume:"+vol.getId()+" with no storage pool associated with it");
throw new StorageUnavailableException("Volume " + vol + " has no storage pool associated with it, and the pool id associated with it is:", vol.getPoolId());
}