Skip to content

Commit

Permalink
Add workaround for bsc#1238152
Browse files Browse the repository at this point in the history
  • Loading branch information
BillAnastasiadis committed Feb 28, 2025
1 parent 578e422 commit 3900ce1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/sles4sap_publiccloud.pm
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,13 @@ sub wait_hana_node_up {
timeout => 5,
proceed_on_failure => 1);
return if ($out =~ m/running/);
if ($out =~ m/degraded/) {
my $failed_service = $instance->run_ssh_command(cmd => 'sudo systemctl --failed', timeout => 600, proceed_on_failure => 1);
if ($out =~ /degraded/ && $failed_service =~ /guestregister/) {
record_soft_failure('bsc#1238152 - Restart guestregister service');
$instance->run_ssh_command(cmd => "sudo systemctl restart guestregister.service", timeout => 600, proceed_on_failure => 1);
}
}
record_info("WAIT_FOR_SYSTEM", "System state: $out");
sleep 10;
}
Expand Down

0 comments on commit 3900ce1

Please sign in to comment.