From 6ad2262d465dbe3b6daac23039a06ad57e6b434c Mon Sep 17 00:00:00 2001 From: Luca Miccini Date: Fri, 4 Oct 2024 12:25:31 +0200 Subject: [PATCH] Catch case where all the faulty computes are dumping In case all the stale_computes are kdumping we want to make sure the check_kdump function returns an empty list, otherwise they may be evacuated without waiting the dump to be collected. Co-authored-by: Antonio Romito --- templates/instanceha/bin/instanceha.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/instanceha/bin/instanceha.py b/templates/instanceha/bin/instanceha.py index 94760c9d..c98c206d 100755 --- a/templates/instanceha/bin/instanceha.py +++ b/templates/instanceha/bin/instanceha.py @@ -443,6 +443,8 @@ def _check_kdump(stale_services): if broken_computes: stale_services = [service for service in stale_services if service.host in broken_computes] + else: + stale_services = [] return stale_services