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 5, 2024
1 parent b4f7333 commit b7c3f45
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
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(200);
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
3 changes: 3 additions & 0 deletions tests/sles4sap/ensa/netweaver_ensa2_cluster.pm
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ sub run {
wait_until_resources_started();
$self->sap_show_status_info(cluster => 1, netweaver => 1,
instance_id => $install_data->{instances}{$instance_type}{instance_id});
record_info("wait 60s");
$self->sap_show_status_info(cluster => 1, netweaver => 1,
instance_id => $install_data->{instances}{$instance_type}{instance_id});
}

1;
4 changes: 3 additions & 1 deletion tests/sles4sap/ensa/netweaver_ensa2_cluster_connector.pm
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ sub run {

assert_script_run("crm configure property maintenance-mode='false'");
crm_wait_for_maintenance(target_state => 'false');

# Ensure resource groups are started in correct place (physical hostname)
crm_check_resource_location(resource => "grp_$sap_sid\_$instance_type$instance_id", wait_for_target => $physical_hostname);
$self->sap_show_status_info(cluster => 1, netweaver => 1,
instance_id => $instance_id);
record_info("wait 60s");
$self->sap_show_status_info(cluster => 1, netweaver => 1,
instance_id => $instance_id);
}

1;
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 @@ -46,6 +46,7 @@ sub run {
$self->webmethod_checks($instance_id);
# Execute failover from ASCS instance
if ($instance_type eq 'ASCS') {
sleep 90;
record_info('Failover', "Executing 'HAFailoverToNode'. Failover from $physical_hostname to remote site");
$self->sapcontrol(webmethod => 'HAFailoverToNode', instance_id => $instance_id, additional_args => "\"\"");
}
Expand All @@ -61,6 +62,7 @@ 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 90;
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 b7c3f45

Please sign in to comment.