Configure ABRT for QE workflow - abrt/libreport GitHub Wiki

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

  1. Create a new conf file in /etc/libreport/events.d/ (e.g. /etc/libreport/events.d/abrt_for_qe.conf)
  2. 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
  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:

reporter-ureport -A -u $URL_FAF -l "$ATTACHED_URL" -T "url" || exit 1
⚠️ **GitHub.com Fallback** ⚠️