-
Notifications
You must be signed in to change notification settings - Fork 39
Configure ABRT for QE workflow
Matěj Habrnál edited this page Feb 3, 2016
·
8 revisions
QE workflow requires send uReport to QE FAF server (creates a FAF report, if not exist), upload dump dir to FTP server and link the FAF report with uploaded dump dir
We have to configure following:
- set URL for sending uReports to QE FAF server
- Add an event notify to /etc/libreport/events.d/abrt_event.conf
- configure notify event to send uReport to QE FAF server
- configure notify event to upload dumpdir to FTP server
- configure reporter-ureport in notify event to link FAF report with uploaded dum pdir
- Set URL in '/etc/libreport/plugins/ureport.conf' (e.g. URL = qe.faf.server.com)
- Add event notify and configure it as shows example below
EVENT=notify
reporter-ureport # sends uReport to QE FAF
EC=$?
# See EXIT_STOP_EVENT_RUN in /usr/include/libreport/internal_libreport.h
if [ $EC -eq 70 ]; then
echo "Already reported problem:"
cat reported_to
exit 0
fi
if [ $EC -ne 0 ]; then
exit $EC
fi
# upload dump dir to FTP server
reporter-upload -u ftp://$URL_TO_FTP_SERVER || exit 1
# link FAF report with uploaded dump dir
reporter-ureport -A -r "upload" -L "URL" -T "url" || exit 1