freeipa/ipatests/azure/scripts/install-debuginfo-fedora.sh
Stanislav Levin d1b53ded8b Azure: Gather coredumps
Applications may crash.
If a crash happens on a remote system during CI run it's sometimes
very hard to understand the reason. The most important means to
analyze such is a stack trace. It's also very important to check
whether there was a core dump or not, even a test passed.

For Docker environment, the core dumps are collected by the host's
systemd-coredump, which knows nothing about such containers (for
now). To build an informative thread stack trace debuginfo packages
should be installed. But they can't be installed on the host OS
(ubuntu), That's why after all the tests completed an additional
container should be up and the host's core dumps and host's journal
should be passed into it.

Even if there weren't enough debuginfo packages at CI-runtime, the
core dump could be analyzed locally later.

Fixes: https://pagure.io/freeipa/issue/8251
Signed-off-by: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2020-04-08 11:27:45 +03:00

21 lines
393 B
Bash
Executable File

#!/bin/bash -eu
function install_debuginfo() {
dnf makecache ||:
dnf install -y \
${IPA_TESTS_REPO_PATH}/dist/rpms_debuginfo/*.rpm \
gdb
dnf debuginfo-install -y \
389-ds-base \
bind \
bind-dyndb-ldap \
certmonger \
gssproxy \
httpd \
krb5-server \
krb5-workstation \
samba \
sssd
}