# Catching Bugs In Containers Miroslav Suchý [miroslav.suchy.cz/presentations/devconf18/abrt](http://miroslav.suchy.cz/presentations/devconf18/abrt)

Catching Bugs In Containers

using ABRT

# What is ABRT? ![What?](./what.jpg)
# What is ABRT? * since 2009 * catch crashes * notify users * allow to send reports * even automatic μReports * [retrace.fedoraproject.org](https://retrace.fedoraproject.org)

# abrt-cli list

id 40ca423776d953058dc4051a2a26e7082467fd84
reason:         repo_internalize_trigger(): packagekitd killed by SIGSEGV
time:           Wed Jan 24 12:19:46 2018
cmdline:        /usr/libexec/packagekitd
package:        PackageKit-1.1.8-1.fc27
uid:            0 (root)
count:          1
Directory:      /var/spool/abrt/ccpp-2018-01-24-12:19:46.128028-2201
Reported:       https://retrace.fedoraproject.org/faf/reports/bthash/e6010b47ab2ee69afa083ba86b5b90af6d8fbd59

id 7d0284936a07505bf6bff0af7d2206eaadfcddd0
reason:         kactivitymanagerd killed by SIGABRT
time:           Wed Jan 10 09:24:52 2018
cmdline:        /usr/bin/kactivitymanagerd start-daemon
package:        kactivitymanagerd-5.11.4-1.fc27
uid:            1000 (msuchy)
count:          1
Directory:      /var/spool/abrt/ccpp-2018-01-10-09:24:52.636766-2265
Reported:       https://retrace.fedoraproject.org/faf/reports/bthash/36dcc6ed7729e6072a101a56b0bcffcd898d73c3
![What?](./what.jpg)
### # dnf install will-crash commands: will_{segfault,abort,python_raise,...}
# Cockpit [Demo](https://localhost:9090) Logs -> Problems

![Privacy](./privacy.jpg)
# Private FAF docker run --name faf -dit abrt/faf-image:1.2.0
Alter `/etc/libreport/plugins/ureport.conf` URL = http://$container_IP/faf
Comprehensive guide: https://abrt.github.io/faf/container/2017/09/20/FAF-in-container/
[Report problems from unpackaged executables](https://abrt.github.io/faf/container/openshift/ureport/unpackaged/2017/11/01/report-unpackaged-problems/)
# Report problems to Kubernetes
[Node Problem Detector](https://github.com/kubernetes/node-problem-detector) [More info](https://abrt.github.io/abrt/kubernetes/node-problem-detector/2017/03/31/kubernetes-npd-adaptation/)
# ABRT in OpenShift oc create -f abrt-template.yaml oc new-app abrt-template oc new-app abrt-template -p PROJECT=your-project-name [More...](https://abrt.github.io/abrt/openshift/container/deploy/2017/11/24/ABRT-in-container/)
# Ansible We have roles for everybody: https://github.com/abrt?q=ansible
# Future * problems of interpreted languages from inside of container * integration into OpenShift/Kubernetes
# More? * Our blog: [https://abrt.github.io/](https://abrt.github.io/)
# Questions? Feedback: http://sched.co/DJVQ Slides: [miroslav.suchy.cz/presentations/devconf18/abrt](http://miroslav.suchy.cz/presentations/devconf18/abrt)