Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wicked: handle coredump of unknown source #18127

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion lib/wickedbase.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,16 @@ sub prepare_coredump {
assert_script_run("echo '$core_pattern' > /etc/sysctl.d/50-coredump.conf");
}

assert_script_run('[ -z "$(coredumpctl -1 --no-pager --no-legend)" ]');

my $core_dump = script_output('coredumpctl -q --no-pager --no-legend', proceed_on_failure => 1);
if (length($core_dump) != 0) {
if ($core_dump =~ m/wicked/) {
record_info("CORE DUMP", $core_dump, result => 'fail');
die("Wicked coredump found in before_test, cleanup your installation first!");
} else {
record_info("CORE DUMP", $core_dump, result => 'warn');
}
}
for my $pkg (qw(wicked-debuginfo wicked-debugsource)) {
if (script_run("zypper search $pkg") == 0) {
zypper_call("in --force -y --force-resolution $pkg");
Expand Down