]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/volumes: remove unnecessary log error lines from earmark handling
authorAvan Thakkar <athakkar@redhat.com>
Thu, 30 Oct 2025 14:10:22 +0000 (19:40 +0530)
committerAvan Thakkar <athakkar@redhat.com>
Tue, 20 Jan 2026 12:53:57 +0000 (18:23 +0530)
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 <athakkar@redhat.com>
(cherry picked from commit 1f86c9b1e74985372db42412943c719f12906523)

src/python-common/ceph/fs/earmarking.py

index f4fd4ddf96c50264cc4db86bb37463300904263e..24fed783ced08eccf2fa70ce3912520d8f625029 100644 (file)
@@ -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