[pve-devel] applied: [PATCH storage] fix #1252: rbd: delete snapshots when using krbd

Wolfgang Bumiller w.bumiller at proxmox.com
Tue Jan 17 11:14:20 CET 2017


---
Similar issue as with block_resize, except here we deleted the snapshot from
the VM config without deleting it from ceph => leaking.
 PVE/Storage/RBDPlugin.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm
index 0a31854..989a85e 100644
--- a/PVE/Storage/RBDPlugin.pm
+++ b/PVE/Storage/RBDPlugin.pm
@@ -635,7 +635,7 @@ sub volume_snapshot_rollback {
 sub volume_snapshot_delete {
     my ($class, $scfg, $storeid, $volname, $snap, $running) = @_;
 
-    return 1 if $running;
+    return 1 if $running && !$scfg->{krbd};
 
     $class->deactivate_volume($storeid, $scfg, $volname, $snap, {});
 
-- 
2.1.4





More information about the pve-devel mailing list