From 2fa381d9dcd502b704f25f4327878e58daa7e9ce Mon Sep 17 00:00:00 2001 From: Marvin Frommhold Date: Wed, 18 Feb 2026 09:47:10 +0100 Subject: [PATCH 1/2] improve logging Signed-off-by: Marvin Frommhold --- .../k8s-node-distribution/k8s_node_distribution_check.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tests/kaas/k8s-node-distribution/k8s_node_distribution_check.py b/Tests/kaas/k8s-node-distribution/k8s_node_distribution_check.py index 038d8a67c..47907a8ec 100755 --- a/Tests/kaas/k8s-node-distribution/k8s_node_distribution_check.py +++ b/Tests/kaas/k8s-node-distribution/k8s_node_distribution_check.py @@ -149,7 +149,7 @@ def compare_labels(node_list, node_type="control"): try: label_data[key].append(node[key]) except KeyError: - raise LabelException(f"The label for {key.split('/')[1]}s doesn't seem to be set for all nodes.") + raise LabelException(f"The label for {key.split('/')[1]}s doesn't seem to be set for all {node_type} nodes.") for label in LABELS: if len(set(label_data[label])) <= 1: @@ -165,7 +165,8 @@ def compare_labels(node_list, node_type="control"): # # if node_type == "control": # raise DistributionException("The distribution of nodes described in the standard couldn't be detected.") - logger.warning("No node distribution could be detected for the worker nodes. " + if node_type == "worker": + logger.warning("No node distribution could be detected for the worker nodes. " "This produces only a warning, since it is just a recommendation.") From 7617c7118e29f3628a2205963ef596aac940db6d Mon Sep 17 00:00:00 2001 From: Marvin Frommhold Date: Thu, 5 Mar 2026 16:58:20 +0100 Subject: [PATCH 2/2] fix mistakes Signed-off-by: Marvin Frommhold --- .../kaas/k8s-node-distribution/k8s_node_distribution_check.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Tests/kaas/k8s-node-distribution/k8s_node_distribution_check.py b/Tests/kaas/k8s-node-distribution/k8s_node_distribution_check.py index 47907a8ec..f0a120117 100755 --- a/Tests/kaas/k8s-node-distribution/k8s_node_distribution_check.py +++ b/Tests/kaas/k8s-node-distribution/k8s_node_distribution_check.py @@ -165,8 +165,7 @@ def compare_labels(node_list, node_type="control"): # # if node_type == "control": # raise DistributionException("The distribution of nodes described in the standard couldn't be detected.") - if node_type == "worker": - logger.warning("No node distribution could be detected for the worker nodes. " + logger.warning(f"No node distribution could be detected for {node_type} nodes. " "This produces only a warning, since it is just a recommendation.")