Currently I’m trying to improve our CI pipelines to provide all debug logs and wanted to summarize so I don’t forget.
First of all, there’s foreman-debug which is delivered as a package both as RPMs and debs. This tries to collect all relevenant information and can upload to debugs.theforeman.org.
Then we have sosreport which is a generic project with many plugins. There is a Foreman plugin but its story is more complex.
Prior to version 3.7 it called
foreman-debug. However, it was marked as a RedHatPlugin which means it’s only executed on RH-based distros.
- CentOS 7.6 has 3.6-19.el7.centos
- Debian 9 has 3.3+git50-g3c0349b-2
- Debian 10 has 3.6-1
- Ubuntu 16.04 has 3.6-1 (via updates, base has 3.2+git276-g7da50d6-3ubuntu1)
- Ubuntu 18.04 has 3.6-1ubuntu0.18.04.2 (via updates, base has 3.5-1ubuntu3)
Since version 3.7 it integrated all foreman-debug functionality and reuses other plugins (apache, puppet) to avoid duplicating efforts.
Short story is that we can’t really rely on sosreport right now.