bug 10611: MS puts primary storage into cancelmaintenace mode, then try to start VMs which were running on top of it, but failed because primary storage is in cancelmaintenace mode

fixed

status 10611: resolved fixed
This commit is contained in:
anthony 2011-07-07 16:07:11 -07:00
parent 80ede648e3
commit 01a04935aa
1 changed files with 2 additions and 6 deletions

View File

@ -2267,8 +2267,8 @@ public class StorageManagerImpl implements StorageManager, StorageService, Manag
primaryStorageId);
}
// set state to cancelmaintenance
primaryStorage.setStatus(StoragePoolStatus.CancelMaintenance);
// Change the storage state back to up
primaryStorage.setStatus(StoragePoolStatus.Up);
_storagePoolDao.update(primaryStorageId, primaryStorage);
txn.commit();
@ -2374,10 +2374,6 @@ public class StorageManagerImpl implements StorageManager, StorageService, Manag
throw new ExecutionException(msg);
}
// Change the storage state back to up
primaryStorage.setStatus(StoragePoolStatus.Up);
_storagePoolDao.update(primaryStorageId, primaryStorage);
return primaryStorage;
} catch (Exception e) {
setPoolStateToError(primaryStorage);