fixes the one pod per account bug

This commit is contained in:
Alex Huang 2010-12-08 10:59:20 -08:00
parent 06a8bdb8e6
commit e9ba29d807
1 changed files with 6 additions and 1 deletions

View File

@ -1272,7 +1272,12 @@ public class UserVmManagerImpl implements UserVmManager {
throw rae;
}
poolid = _storageMgr.createUserVM(account, vm, template, dc, pod.first(), offering, diskOffering, avoids);
poolid = 0;
try {
poolid = _storageMgr.createUserVM(account, vm, template, dc, pod.first(), offering, diskOffering, avoids);
} catch (Exception e) {
s_logger.warn("Caught exception on creation but will retry.", e);
}
if ( poolid != 0) {
break;
}