From 781c6a699324040fef468a4451808dd7dd033737 Mon Sep 17 00:00:00 2001 From: Riccardo Pittau Date: Mon, 15 Dec 2025 15:49:36 +0100 Subject: [PATCH] Update git submodules * Update ironic-prometheus-exporter from branch 'master' to 3cc462dee2ae3ad3d702a6c59b9142ceaf4e9b1f - Fix handling of unknown metric keys in ironic parser The category_registry function used separate 'if' statements to check for different key prefixes (ironic.api, ironic.drivers.modules, ironic.conductor). When a key didn't match any prefix, the formatted_key variable from the previous loop iteration would be reused, causing metrics to be created with incorrect names and incomplete labels. Changed the if/if/if structure to if/elif/elif/else to ensure: - Keys are processed by exactly one branch - Unknown keys are explicitly skipped with a debug log message - No accidental reuse of stale formatted_key values Also updated test expectations to remove the bogus metric that was created by this bug, and added a unit test to verify unknown keys are properly skipped. Assisted-By: Claude Sonnet 4.5 Change-Id: Iadca6941906783259ff7af0564a092d67f11b156 Signed-off-by: Riccardo Pittau --- ironic-prometheus-exporter | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ironic-prometheus-exporter b/ironic-prometheus-exporter index ca97a0b0fa..3cc462dee2 160000 --- a/ironic-prometheus-exporter +++ b/ironic-prometheus-exporter @@ -1 +1 @@ -Subproject commit ca97a0b0fa592fef01d9e2fa71a37031adae83ff +Subproject commit 3cc462dee2ae3ad3d702a6c59b9142ceaf4e9b1f