mirror of https://github.com/apache/cloudstack.git
Add debugging to resizeVolume, to spit out state of volume if failure occurs due to state
This commit is contained in:
parent
0eb9967354
commit
d04452d9af
|
|
@ -706,7 +706,8 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
|
|||
}
|
||||
|
||||
if (volume.getState() != Volume.State.Ready && volume.getState() != Volume.State.Allocated) {
|
||||
throw new InvalidParameterValueException("Volume should be in ready or allocated state before attempting a resize");
|
||||
throw new InvalidParameterValueException("Volume should be in ready or allocated state before attempting a resize. "
|
||||
+ "Volume " + volume.getUuid() + " state is:" + volume.getState());
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue