cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tall...@apache.org
Subject [48/60] [abbrv] git commit: updated refs/heads/marvin to 0e223d6
Date Tue, 08 Apr 2014 12:26:03 GMT
rbd: Add some more debugging while deleting a physical disk


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/6da087e6
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/6da087e6
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/6da087e6

Branch: refs/heads/marvin
Commit: 6da087e601d68a7dc4fdd70506ab54f387f8d2df
Parents: e97e65b
Author: Wido den Hollander <wido@widodh.nl>
Authored: Mon Apr 7 06:12:08 2014 +0200
Committer: Wido den Hollander <wido@widodh.nl>
Committed: Mon Apr 7 06:20:57 2014 +0200

----------------------------------------------------------------------
 .../com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6da087e6/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
index a85a64f..61d90e9 100644
--- a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
+++ b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
@@ -747,7 +747,7 @@ public class LibvirtStorageAdaptor implements StorageAdaptor {
          */
         if (pool.getType() == StoragePoolType.RBD) {
             try {
-                s_logger.info("Unprotecting and Removing RBD snapshots of image " + pool.getSourcePort()
+ "/" + uuid + " prior to removing the image");
+                s_logger.info("Unprotecting and Removing RBD snapshots of image " + pool.getSourceDir()
+ "/" + uuid + " prior to removing the image");
 
                 Rados r = new Rados(pool.getAuthUserName());
                 r.confSet("mon_host", pool.getSourceHost() + ":" + pool.getSourcePort());
@@ -759,9 +759,12 @@ public class LibvirtStorageAdaptor implements StorageAdaptor {
                 IoCTX io = r.ioCtxCreate(pool.getSourceDir());
                 Rbd rbd = new Rbd(io);
                 RbdImage image = rbd.open(uuid);
+                s_logger.debug("Fetching list of snapshots of RBD image " + pool.getSourceDir()
+ "/" + uuid);
                 List<RbdSnapInfo> snaps = image.snapList();
                 for (RbdSnapInfo snap : snaps) {
+                    s_logger.debug("Unprotecting snapshot " + pool.getSourceDir() + "/" +
uuid + "@" + snap.name);
                     image.snapUnprotect(snap.name);
+                    s_logger.debug("Removing snapshot " + pool.getSourceDir() + "/" + uuid
+ "@" + snap.name);
                     image.snapRemove(snap.name);
                 }
 


Mime
View raw message