]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/volumes: warn about active snap-schedules when volume is deleted
authorMilind Changire <mchangir@redhat.com>
Tue, 12 Mar 2024 13:41:52 +0000 (19:11 +0530)
committerMilind Changire <mchangir@redhat.com>
Mon, 4 Nov 2024 16:09:43 +0000 (21:39 +0530)
Signed-off-by: Milind Changire <mchangir@redhat.com>
src/pybind/mgr/volumes/fs/operations/volume.py

index b2574fd76d5db2b19042377949339b98d8fd7a0c..93844bce119c99e149a15cf2089b804fa3d155c2 100644 (file)
@@ -133,7 +133,11 @@ def delete_volume(mgr, volname, metadata_pool, data_pools):
         r, outb, outs = remove_pool(mgr, data_pool)
         if r != 0:
             return r, outb, outs
-    result_str = "metadata pool: {0} data pool: {1} removed".format(metadata_pool, str(data_pools))
+    result_str = f"metadata pool: {metadata_pool} data pool: {str(data_pools)} removed.\n"
+    result_str += "If there are active snapshot schedules associated with this "
+    result_str += "volume, you might see EIO errors in the mgr logs or at the "
+    result_str += "snap-schedule command-line due to the missing volume. "
+    result_str += "However, these errors are transient and will get auto-resolved."
     return r, result_str, ""
 
 def rename_volume(mgr, volname: str, newvolname: str) -> Tuple[int, str, str]: