Skip to content

Commit f87eed5

Browse files
committed
fix compile
1 parent 3eb34d0 commit f87eed5

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,6 +1139,9 @@ public Volume attachVolumeToVM(AttachVolumeCmd command) {
11391139
} catch (ConcurrentOperationException e) {
11401140
s_logger.debug("move volume failed", e);
11411141
throw new CloudRuntimeException("move volume failed", e);
1142+
} catch (StorageUnavailableException e) {
1143+
s_logger.debug("move volume failed", e);
1144+
throw new CloudRuntimeException("move volume failed", e);
11421145
}
11431146
}
11441147

@@ -1344,7 +1347,11 @@ public Volume migrateVolume(MigrateVolumeCmd cmd) {
13441347
if (liveMigrateVolume) {
13451348
newVol = liveMigrateVolume(vol, destPool);
13461349
} else {
1347-
newVol = _volumeMgr.migrateVolume(vol, destPool);
1350+
try {
1351+
newVol = _volumeMgr.migrateVolume(vol, destPool);
1352+
} catch (StorageUnavailableException e) {
1353+
s_logger.debug("Failed to migrate volume", e);
1354+
}
13481355
}
13491356
return newVol;
13501357
}

0 commit comments

Comments
 (0)