kvm: Add more debugging information when a volume is deleted.

There was no clear reference of libvirt being instructed to remove
the volume
This commit is contained in:
Wido den Hollander 2014-04-10 14:33:49 +02:00
parent 26746feb39
commit 4ba688f07d
1 changed files with 4 additions and 0 deletions

View File

@ -774,6 +774,9 @@ public class LibvirtStorageAdaptor implements StorageAdaptor {
rbd.close(image);
r.ioCtxDestroy(io);
s_logger.debug("Succesfully unprotected and removed any snapshots of " + pool.getSourceDir() + "/" + uuid +
" Continuing to remove the RBD image");
} catch (RadosException e) {
throw new CloudRuntimeException(e.toString());
} catch (RbdException e) {
@ -784,6 +787,7 @@ public class LibvirtStorageAdaptor implements StorageAdaptor {
LibvirtStoragePool libvirtPool = (LibvirtStoragePool)pool;
try {
StorageVol vol = getVolume(libvirtPool.getPool(), uuid);
s_logger.debug("Instructing libvirt to remove volume " + uuid + " from pool " + pool.getUuid());
deleteVol(libvirtPool, vol);
vol.free();
return true;