From f87eed5b79d0102c900af2543896d844c6eb9c35 Mon Sep 17 00:00:00 2001 From: Edison Su Date: Tue, 13 Aug 2013 15:16:23 -0700 Subject: [PATCH] fix compile --- server/src/com/cloud/storage/VolumeApiServiceImpl.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; }