]> git-server-git.apps.pok.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>
Thu, 26 Dec 2024 15:55:52 +0000 (21:25 +0530)
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit 5c5102c23fdb0f1f2582467d10e4d4f654956dba)

src/pybind/mgr/volumes/fs/operations/volume.py

index 0bf42827161eb513f5f4c917e747c691670decbe..0ff15c5478be91c404a14c046b37a8d6c8471c5b 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]: