diff --git a/server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java b/server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java index 3c6460b7694..df09648edd2 100644 --- a/server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java +++ b/server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java @@ -1113,14 +1113,6 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic * This will be checked again at the hypervisor level where we can see * the actual disk size. */ - if (currentSize > newSize) { - VolumeVO vol = _volsDao.findById(cmd.getEntityId()); - if (vol != null && ImageFormat.QCOW2.equals(vol.getFormat()) && !Volume.State.Allocated.equals(volume.getState())) { - String message = "Unable to shrink volumes of type QCOW2"; - s_logger.warn(message); - throw new InvalidParameterValueException(message); - } - } if (currentSize > newSize && !shrinkOk) { throw new InvalidParameterValueException("Going from existing size of " + currentSize + " to size of " + newSize + " would shrink the volume." + "Need to sign off by supplying the shrinkok parameter with value of true."); @@ -1375,7 +1367,7 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic return volume; } catch (Exception e) { - throw new CloudRuntimeException("Couldn't resize volume: " + volume.getName() + ", " + e.getMessage(), e); + throw new CloudRuntimeException(String.format("Failed to resize volume operation of volume UUID: [%s] due to - %s", volume.getUuid(), e.getMessage()), e); } } diff --git a/ui/src/views/infra/HostInfo.vue b/ui/src/views/infra/HostInfo.vue index 2c9814307d7..e867956ca60 100644 --- a/ui/src/views/infra/HostInfo.vue +++ b/ui/src/views/infra/HostInfo.vue @@ -43,7 +43,7 @@ - +
{{ $t('label.hosttags') }}
@@ -51,7 +51,7 @@
- +
{{ $t('label.oscategoryid') }}
@@ -83,7 +83,7 @@
- +
{{ $t('label.hastate') }}
@@ -91,7 +91,7 @@
- +
{{ $t('label.haprovider') }}