mirror of https://github.com/apache/cloudstack.git
bug 7991: blocking cancelmaintenance if sp is in prepareformaintenance
status 7991: resolved fixed
This commit is contained in:
parent
474962be9d
commit
c312147c52
|
|
@ -2260,7 +2260,7 @@ public class StorageManagerImpl implements StorageManager, StorageService, Manag
|
|||
throw new ExecutionException(msg);
|
||||
}
|
||||
|
||||
if (primaryStorage.getStatus().equals(Status.Up)) {
|
||||
if (primaryStorage.getStatus().equals(Status.Up) || primaryStorage.getStatus().equals(Status.PrepareForMaintenance)) {
|
||||
throw new StorageUnavailableException("Primary storage with id " + primaryStorageId + " is not ready to complete migration, as the status is:" + primaryStorage.getStatus().toString(), primaryStorageId);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue