Skip to content

Commit

Permalink
Add softfailure for bug: 1221812
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyCai7 committed Jul 11, 2024
1 parent d0739f4 commit f33762e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lib/parallel_guest_migration_base.pm
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,10 @@ sub initialize_test_result {

$self->set_test_run_progress;
my @_guest_migration_test = split(/,/, get_var('GUEST_MIGRATION_TEST', ''));
# Remove 'virsh_live_native_p2p_manual_postcopy' if present and record a soft failure
if (is_sle('=15-sp6')) {
@_guest_migration_test = $self->filter_migration_tests(@_guest_migration_test);
}
my $_full_test_matrix = is_kvm_host ? $parallel_guest_migration_base::guest_migration_matrix{kvm} : $parallel_guest_migration_base::guest_migration_matrix{xen};
@_guest_migration_test = keys(%$_full_test_matrix) if (scalar @_guest_migration_test == 0);
my $_localip = get_required_var('LOCAL_IPADDR');
Expand Down Expand Up @@ -1750,6 +1754,26 @@ sub check_peer_test_run {
return $_peer_test_run_result;
}

=head2 filter_migration_tests
Filters migration tests based on specified criteria.
=cut

sub filter_migration_tests {
my ($self, @migration_tests) = @_;
my @guest_migration_test;

foreach my $migration_criteria (@migration_tests) {
if ($migration_criteria eq 'virsh_live_native_p2p_manual_postcopy') {
record_soft_failure('bsc#1221812 - qemu coredump when virsh migrate postcopy + virsh migrate-postcopy on sle15sp6 kvm host.');
} else {
push @guest_migration_test, $migration_criteria;
}
}
return @guest_migration_test;
}

=head2 post_fail_hook
Set TEST_RUN_RESULT to FAILED, create junit log and collect logs.
Expand Down
4 changes: 4 additions & 0 deletions tests/virt_autotest/parallel_guest_migration_destination.pm
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ sub guest_migration_test {

$self->set_test_run_progress;
my @guest_migration_test = split(/,/, get_var('GUEST_MIGRATION_TEST'));
# Remove 'virsh_live_native_p2p_manual_postcopy' if present and record a soft failure
if (is_sle('=15-sp6')) {
@guest_migration_test = $self->filter_migration_tests(@guest_migration_test);
}
my $full_test_matrix = is_kvm_host ? $parallel_guest_migration_base::guest_migration_matrix{kvm} : $parallel_guest_migration_base::guest_migration_matrix{xen};
@guest_migration_test = keys(%$full_test_matrix) if (scalar @guest_migration_test == 0);
my $localip = get_required_var('LOCAL_IPADDR');
Expand Down
4 changes: 4 additions & 0 deletions tests/virt_autotest/parallel_guest_migration_source.pm
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ sub guest_migration_test {

$self->set_test_run_progress;
my @guest_migration_test = split(/,/, get_var('GUEST_MIGRATION_TEST', ''));
# Remove 'virsh_live_native_p2p_manual_postcopy' if present and record a soft failure
if (is_sle('=15-sp6')) {
@guest_migration_test = $self->filter_migration_tests(@guest_migration_test);
}
my $full_test_matrix = is_kvm_host ? $parallel_guest_migration_base::guest_migration_matrix{kvm} : $parallel_guest_migration_base::guest_migration_matrix{xen};
@guest_migration_test = keys(%$full_test_matrix) if (scalar @guest_migration_test == 0);
my $localip = get_required_var('LOCAL_IPADDR');
Expand Down

0 comments on commit f33762e

Please sign in to comment.