Skip to content

Commit bca71ec

Browse files
author
Likitha Shetty
committed
CLOUDSTACK-6969. Data Volume Shrink operation failing with "Unexpected Exception".
1 parent 65ed25b commit bca71ec

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎server/src/com/cloud/storage/VolumeApiServiceImpl.java‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,12 +1046,17 @@ private VolumeVO orchestrateResizeVolume(long volumeId, long currentSize, long n
10461046
} else {
10471047
_resourceLimitMgr.decrementResourceCount(volume.getAccountId(), ResourceType.primary_storage, volume.isDisplayVolume(), new Long(currentSize - newSize));
10481048
}
1049+
return volume;
10491050
} catch (InterruptedException e) {
10501051
s_logger.warn("failed get resize volume result", e);
1052+
throw new CloudRuntimeException(e.getMessage());
10511053
} catch (ExecutionException e) {
10521054
s_logger.warn("failed get resize volume result", e);
1055+
throw new CloudRuntimeException(e.getMessage());
1056+
} catch (Exception e) {
1057+
s_logger.warn("failed get resize volume result", e);
1058+
throw new CloudRuntimeException(e.getMessage());
10531059
}
1054-
return volume;
10551060
}
10561061

10571062
@Override

0 commit comments

Comments
 (0)