diff --git a/server/src/com/cloud/storage/VolumeApiServiceImpl.java b/server/src/com/cloud/storage/VolumeApiServiceImpl.java index b2104ad6336..d50a1d08b03 100644 --- a/server/src/com/cloud/storage/VolumeApiServiceImpl.java +++ b/server/src/com/cloud/storage/VolumeApiServiceImpl.java @@ -1139,6 +1139,9 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic } catch (ConcurrentOperationException e) { s_logger.debug("move volume failed", e); throw new CloudRuntimeException("move volume failed", e); + } catch (StorageUnavailableException e) { + s_logger.debug("move volume failed", e); + throw new CloudRuntimeException("move volume failed", e); } } @@ -1344,7 +1347,11 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic if (liveMigrateVolume) { newVol = liveMigrateVolume(vol, destPool); } else { - newVol = _volumeMgr.migrateVolume(vol, destPool); + try { + newVol = _volumeMgr.migrateVolume(vol, destPool); + } catch (StorageUnavailableException e) { + s_logger.debug("Failed to migrate volume", e); + } } return newVol; }