From e3156632d8d29e120d979acbe35524dd6cf237e9 Mon Sep 17 00:00:00 2001 From: Bill Anastasiadis Date: Tue, 12 Nov 2024 12:08:08 +0100 Subject: [PATCH] Softfail prevalidation for 12sp5 --- lib/sles4sap_publiccloud.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/sles4sap_publiccloud.pm b/lib/sles4sap_publiccloud.pm index e701ff09b47a..4e828a00330c 100644 --- a/lib/sles4sap_publiccloud.pm +++ b/lib/sles4sap_publiccloud.pm @@ -33,6 +33,7 @@ use publiccloud::ssh_interactive 'select_host_console'; use publiccloud::instance; use sles4sap; use saputils; +use version_utils 'is_sle'; our @EXPORT = qw( run_cmd @@ -1274,6 +1275,11 @@ sub wait_for_cluster { if ($args{max_retries} <= 0) { record_info('NOT OK', "Cluster or DB data synchronization issue detected after retrying."); $self->display_full_status(); + # softfail because of bsc#1233026 - if fixed remove the 'if' condition AND the 'use version_utils' from this file + if (is_sle('=12-SP5') && $crm_output =~ /TimeoutError/) { + record_soft_failure("bsc#1233026 - Error occurred, see previous output: Proceeding despite failure."); + return; + } die "Cluster is not ready after specified retries."; } sleep($args{wait_time});