You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Matěj Habrnál edited this page Feb 15, 2016
·
8 revisions
Configure ABRT for QE workflow
Task
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.
Solution
Create a new conf file in /etc/libreport/events.d/ (e.g. /etc/libreport/events.d/abrt_for_qe.conf)
Add event notify to the conf file with following content:
EVENT=notify
# uReport sending
URL_FAF=$URL_TO_QE_FAF_SERVER
reporter-ureport -u $URL_FAF # 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 -u $URL_FAF -A -r "upload" -L "URL" -T "url" || exit 1
Set variable $URL_TO_QE_FAF_SERVER and $URL_TO_FTP_SERVER to right URLs
Extension
In the case you want to attach another URL to the FAF report (e.g. URL to beaker task) just add following line to the conf file: