You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.error(" For ROOT volume resize VM should be in Power Off state.");
2321
-
thrownewInvalidParameterValueException("VM current state is : " + userVm.getPowerState() + ". But VM should be in " + VirtualMachine.PowerState.PowerOff + " state.");
2319
+
if (Volume.Type.ROOT.equals(volume.getVolumeType())
logger.error(" For ROOT volume resize VM should be in Power Off state.");
2401
-
thrownewInvalidParameterValueException("VM current state is : " + userVm.getPowerState() + ". But VM should be in " + VirtualMachine.PowerState.PowerOff + " state.");
2401
+
if (Volume.Type.ROOT.equals(volume.getVolumeType())
2402
+
&& !State.Stopped.equals(userVm.getState())
2403
+
&& hypervisorType == HypervisorType.VMware) {
2404
+
logger.error("For ROOT volume resize VM should be in Stopped state.");
2405
+
thrownewInvalidParameterValueException("VM current state is : " + userVm.getState() + ". But VM should be in " + State.Stopped + " state.");
0 commit comments