Skip to content

Configure ABRT for QE workflow

Matěj Habrnál edited this page Feb 3, 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

We have to configure following:

  1. set URL for sending uReports to QE FAF server
  2. 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

Solution

  1. Set URL in '/etc/libreport/plugins/ureport.conf' (e.g. URL = qe.faf.server.com)
  2. 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

Clone this wiki locally