From 51c78dc33f5321e948c66ded2aa2d58ebdf8ddf4 Mon Sep 17 00:00:00 2001 From: Avan Thakkar Date: Thu, 30 Oct 2025 19:40:22 +0530 Subject: [PATCH] mgr/volumes: remove unnecessary log error lines from earmark handling Removed log error lines in earmark handling since the raised EarmarkException already covers the case. The exception is harmless and results in the earmark being set to an empty string, so additional error logging is unnecessary. Signed-off-by: Avan Thakkar (cherry picked from commit 1f86c9b1e74985372db42412943c719f12906523) --- src/python-common/ceph/fs/earmarking.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/python-common/ceph/fs/earmarking.py b/src/python-common/ceph/fs/earmarking.py index f4fd4ddf96c5..24fed783ced0 100644 --- a/src/python-common/ceph/fs/earmarking.py +++ b/src/python-common/ceph/fs/earmarking.py @@ -78,10 +78,8 @@ class CephFSVolumeEarmarking: log.info(f"No earmark set for the path while {action}. Returning empty result.") return '' else: - log.error(f"Error {action} earmark: {e}") raise EarmarkException(-e.errno, e.strerror) from e else: - log.error(f"Unexpected error {action} earmark: {e}") raise EarmarkException(errno.EFAULT, f"Unexpected error {action} earmark: {e}") from e @staticmethod -- 2.47.3