Planner should set the pool information in the destination for volumes that are not yet ready.

This commit is contained in:
Prachi Damle 2013-01-23 17:30:37 -08:00
parent 6088cbfe47
commit 057097d0e0

View File

@ -753,7 +753,9 @@ public class FirstFitPlanner extends PlannerBase implements DeploymentPlanner {
s_logger.debug("Planner need not allocate a pool for this volume since its READY"); s_logger.debug("Planner need not allocate a pool for this volume since its READY");
suitablePools.add(pool); suitablePools.add(pool);
suitableVolumeStoragePools.put(toBeCreated, suitablePools); suitableVolumeStoragePools.put(toBeCreated, suitablePools);
if (!(toBeCreated.getState() == Volume.State.Allocated || toBeCreated.getState() == Volume.State.Creating)) {
readyAndReusedVolumes.add(toBeCreated); readyAndReusedVolumes.add(toBeCreated);
}
continue; continue;
}else{ }else{
s_logger.debug("Pool of the volume does not fit the specified plan, need to reallocate a pool for this volume"); s_logger.debug("Pool of the volume does not fit the specified plan, need to reallocate a pool for this volume");