mirror of https://github.com/apache/cloudstack.git
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:
parent
80ede648e3
commit
01a04935aa
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue