From 5c5102c23fdb0f1f2582467d10e4d4f654956dba Mon Sep 17 00:00:00 2001 From: Milind Changire Date: Tue, 12 Mar 2024 19:11:52 +0530 Subject: [PATCH] mgr/volumes: warn about active snap-schedules when volume is deleted Signed-off-by: Milind Changire --- src/pybind/mgr/volumes/fs/operations/volume.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/volumes/fs/operations/volume.py b/src/pybind/mgr/volumes/fs/operations/volume.py index b2574fd76d5..93844bce119 100644 --- a/src/pybind/mgr/volumes/fs/operations/volume.py +++ b/src/pybind/mgr/volumes/fs/operations/volume.py @@ -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]: -- 2.39.5