Skip to content

Commit

Permalink
Fix ENSA2 failing on 12sp5 during failover
Browse files Browse the repository at this point in the history
TEAM-9261 - [ENSA2]Investigate ENSA2 failing on 12sp5 during failover
  • Loading branch information
lilyeyes committed Jun 6, 2024
1 parent b4f7333 commit 0ae6d5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hacluster.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1394,7 +1394,7 @@ B<timeout> Override default timeout value
sub crm_check_resource_location {
my (%args) = @_;
my $wait_for_target = $args{wait_for_target} // 0;
my $timeout = $args{timeout} // bmwqemu::scale_timeout(120);
my $timeout = $args{timeout} // bmwqemu::scale_timeout(180);
my $cmd = join(' ', "crm resource status", $args{resource}, "| grep 'resource $args{resource} is'"); # Grep to avoid random kernel message appearing in script_output
my $out;
my $current_location;
Expand Down
2 changes: 2 additions & 0 deletions tests/sles4sap/ensa/netweaver_ensa2_web_methods.pm
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ sub run {
$self->webmethod_checks($instance_id);
# Execute failover from ASCS instance - this will return resources to original host
if ($instance_type eq 'ASCS') {
sleep 300;
record_info "sleep 300s";
record_info('Failover', "Executing 'HAFailoverToNode'. Failover from $physical_hostname to remote site");
$self->sapcontrol(webmethod => 'HAFailoverToNode', instance_id => $instance_id, additional_args => "\"\"");
}
Expand Down

0 comments on commit 0ae6d5e

Please sign in to comment.