CLOUDSTACK-4116: Volume operations fail: InvocationTargetException when

invoking RPC callback for command: createVolumeCallback
This commit is contained in:
Min Chen 2013-08-06 15:10:29 -07:00
parent 016fe3ecb8
commit 923c4fd60f
1 changed files with 2 additions and 2 deletions

View File

@ -502,7 +502,7 @@ public class KVMStorageProcessor implements StorageProcessor {
}
s_logger.debug("Completed backing up RBD snapshot " + snapshotName + " to " + snapFile.getAbsolutePath() + ". Bytes written: " + offset);
bos.close();
s_logger.debug("Attempting to remove snapshot RBD " + snapshotName + " from image " + snapshotDisk.getName());
image.snapRemove(snapshotName);
@ -813,7 +813,7 @@ public class KVMStorageProcessor implements StorageProcessor {
VolumeObjectTO newVol = new VolumeObjectTO();
newVol.setPath(vol.getName());
newVol.setSize(volume.getSize());
return new CreateObjectAnswer(newVol);
} catch (Exception e) {
s_logger.debug("Failed to create volume: " + e.toString());