Add debugging to resizeVolume, to spit out state of volume if failure occurs due to state

This commit is contained in:
Marcus Sorensen 2014-03-10 10:01:27 -06:00
parent 0eb9967354
commit d04452d9af
1 changed files with 2 additions and 1 deletions

View File

@ -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());
}
/*