From 57eb539203350e86aa5d9539b5846b6da97d5fdf Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Thu, 29 Jan 2026 11:38:45 +0100 Subject: [PATCH] node-proxy: narrow build_data exception handling and re-raise With this commit, it catches only KeyError, TypeError, and AttributeError in build_data() instead of Exception, and re-raise after logging so callers get the actual error. Fixes: https://tracker.ceph.com/issues/74749 Signed-off-by: Guillaume Abrioux --- src/ceph-node-proxy/ceph_node_proxy/redfishdellsystem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ceph-node-proxy/ceph_node_proxy/redfishdellsystem.py b/src/ceph-node-proxy/ceph_node_proxy/redfishdellsystem.py index 2c9eee9f0d1..7078ce384e3 100644 --- a/src/ceph-node-proxy/ceph_node_proxy/redfishdellsystem.py +++ b/src/ceph-node-proxy/ceph_node_proxy/redfishdellsystem.py @@ -46,9 +46,9 @@ class RedfishDellSystem(BaseRedfishSystem): member_id = d.get('MemberId') result[member_id] = {} result[member_id] = process_data(member_id, fields, d) - - except Exception as e: + except (KeyError, TypeError, AttributeError) as e: self.log.error(f"Can't build data: {e}") + raise return normalize_dict(result) def get_sn(self) -> str: -- 2.47.3