mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-4651: Restarting management server when volume Snapshot is still in progress for root volume of a VM , then there is no way to restart VM since the startVM job is stuck forever since the volume is in "Snapshoting" state.
Change: -If no volume of the VM is usable, VM cannot be deployed or started. Atleast ROOT volume should always be in usable state to start up the VM
This commit is contained in:
parent
f3be68a833
commit
8dfd34cd7e
|
|
@ -1054,6 +1054,11 @@ public class DeploymentPlanningManagerImpl extends ManagerBase implements Deploy
|
|||
Map<Volume, List<StoragePool>> suitableVolumeStoragePools = new HashMap<Volume, List<StoragePool>>();
|
||||
List<Volume> readyAndReusedVolumes = new ArrayList<Volume>();
|
||||
|
||||
// There should be atleast the ROOT volume of the VM in usable state
|
||||
if (volumesTobeCreated.isEmpty()) {
|
||||
throw new CloudRuntimeException("Unable to create deployment, no usable volumes found for the VM");
|
||||
}
|
||||
|
||||
// for each volume find list of suitable storage pools by calling the
|
||||
// allocators
|
||||
for (VolumeVO toBeCreated : volumesTobeCreated) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue