From: Avan Thakkar Date: Thu, 30 Oct 2025 14:10:22 +0000 (+0530) Subject: mgr/volumes: remove unnecessary log error lines from earmark handling X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=51c78dc33f5321e948c66ded2aa2d58ebdf8ddf4;p=ceph.git 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) --- diff --git a/src/python-common/ceph/fs/earmarking.py b/src/python-common/ceph/fs/earmarking.py index f4fd4ddf96c..24fed783ced 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