aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [ovirt] Collect engine tunables and domain information.Jake Hunsaker2015-05-151-0/+3
| | | | | | | | | | | | | Currently sos does not capture engine-config values or domain information. We should capture both of these as the tunables can help in troubleshooting. Similarly the domain information can help track AD/IPA issues. These can currently be dug out from the DB dump, however having them in a plaintext file makes checking these much faster and easier, and a DB is not always available. Signed-off-by: Jake Hunsaker <jhunsake@redhat.com> Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [cluster] enable crm_report password scrubbingShane Bradley2015-05-111-3/+11
| | | | | | | | | | | | | | | | | | Default to specifying a password pattern of 'passw.*' when calling the crm_report script. This causes matching strings to be elided from the report data. Since this scrubbing can affect the use of pacemaker state machine snapshots for debugging the behaviour is controlled by a new option that defaults to enabled: cluster.crm_scrub This can be used to obtain an sosreport containing virgin crm_report data with no password scrubbing: # sosreport -k cluster.crm_scrub=False Signed-off-by: Shane Bradley <sbradley@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [libvirt] Collect XML files from /var/run/libvirtJake Hunsaker2015-05-101-6/+8
| | | | | | | | | oVirt and OpenStack drop XML files under /var/run/libvirt/ not /etc/libvirt. The libvirt plugin should collect the XML files dropped there as well, not just /etc/libvirt. Signed-off-by: Jake Hunsaker <jhunsake@redhat.com> Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [openstack] New Openstack Trove (DBaaS) plugin.Lee Yarwood2015-05-101-0/+74
| | | | | | | https://wiki.openstack.org/wiki/Trove Signed-off-by: Lee Yarwood <lyarwood@redhat.com> Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [systemd] Enable the plugin for Debian and UbuntuLouis Bouchard2015-05-101-2/+2
| | | | | Signed-off-by: Louis Bouchard <louis.bouchard@canonical.com> Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [landscape] 15.01 moves logs files to landscape-serverBryan Quigley2015-05-051-1/+6
| | | | | | | | | | | Landscape Dedicated Server (LDS) 15.01 and newer logs are now located in /var/log/landscape-server. They were previously in only /var/log/landscape. Also limited to log_size now. Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com> Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [mysql] Collect log fileShane Bradley2015-04-271-0/+2
| | | | | | | | | | | | | | | When MariaDB is run under Pacemaker an OCF resource agent is used to start and stop the database. This configuration also overrides the log paths used for the database. In particular the mysqld.log is present at '/var/log/mysqld.log'. Collect both paths as we do not currently detect whether we are running with an OCF agent or stand-alone. Fixes: #554 Signed-off-by: Shane Bradley <sbradley@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [openshift] Obfuscate only DNS plugin credential valuestiwillia@redhat.com2015-04-171-3/+3
| | | | | | Obfuscate only the value, not the entire directive and value pair. Signed-off-by: Timothy Williams <tiwillia@redhat.com>
* [tuned] Collect additional configurations files and profiles.Shane Bradley2015-04-161-0/+4
| | | | | | Collect additional configurations files and profiles for tuned. Signed-off-by: Shane Bradley <sbradley@redhat.com>
* [openvswitch] Capture additional output for OVS bridges.Lee Yarwood2015-04-081-0/+8
| | | | | | | This includes `dump-flows` and `fdb/show` output useful for debugging Openstack tenant and L3 networking issues. Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
* [rabbitmq] Add list_policies output for the default virtual host.Lee Yarwood2015-04-081-0/+1
| | | | | | | | | | Useful for ensuring that highly available queues are enabled [1]. [1] https://www.rabbitmq.com/ha.html Resolves #541. Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
* [apparmor] Capture AppArmor profiles and statusBryan Quigley2015-04-011-1/+9
| | | | | | | | | | | | | | | | | Captures /etc/apparmor.d for profiles Excludes /cache - because it's not config. Excludes libvirt/libvirt because it can grow quite large and the TEMPLATE file should usually be enough. Excludes abstractions because they are usually not modified and are large. For both libvirt and abstractions capture an ls just to be sure permissions are correct. Captures apparmor_status to get the effective profiles. Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com> Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [unity] new plugin to collect unity-support-statusBryan Quigley2015-03-301-0/+33
| | | | | | | | This plugin is for Ubuntu's Unity DE and just collects 3d support information similar to a simplified glxinfo. Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com> Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [x11] Add xrandr and glxinfo outputBryan Quigley2015-03-301-0/+4
| | | | | | | | | | Adds xrandr --verbose Adds glxinfo output Closes: #482 Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com> Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [satellite] remove explicit gathering of Tomcat infoPavel Moravec2015-03-272-4/+2
| | | | | | Resolves #413. Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [juju] add generate-bundle optionJorge Niedbalski2015-03-261-0/+7
| | | | | | | | Add a 'generate-bundle' switch to optionally collect a YAML bundle of the current environment using juju-deployerizer. Signed-off-by: Jorge Niedbalski <jnr@metaklass.org> Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [logs] Remove passwords from rsyslogBryan Quigley2015-03-261-1/+12
| | | | | | | | | | | | | Specifically this removes passwords from the following patterns $ActionLibdbiPassword <removes rest of line> pwd=<removes rest of line> Closes #525 Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com> Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [openshift] Obfuscate DNS plugin credentialstiwillia@redhat.com2015-03-261-0/+15
| | | | | | DNS management plugins store credentials in their configuration files. Adding filters to scrub these configuration files. Signed-off-by: Timothy Williams <tiwillia@redhat.com>
* [manageiq] New plugin for ManageIQPep Turró Mauri2015-03-261-0/+116
| | | | | | | | | | | | This plugin collects configuration and logs for the ManageIQ virtualization management and autiomation platform. ManageIQ is the upstream project for Red Hat CloudForms. You can get more information about ManageIQ at: http://www.manageiq.org/ Signed-off-by: Pep Turró Mauri <pep@redhat.com>
* [networking] fix pep8 complaintsBryn M. Reeves2015-03-171-1/+1
| | | | | | | Had fixed this in the working tree but not added it to the commit; need to improve the hook scripts to check for that and complain. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [networking] re-add 'ip addr' with a root symlinkBryn M. Reeves2015-03-171-0/+1
| | | | | | | Commit e320ca8 accidentally deleted collection of "ip -o addr" and the root "ip_addr" symlink: put it back. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [cluster] crm_report fails to run because dir already existsShane Bradley2015-03-111-1/+1
| | | | | | | | | Do not create directory for the destination path used by crm_report. Resolves: rhbz#1200526 Signed-off-by: Shane Bradley <sbradley@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [cluster] add a couple pcs commands to the cluster pluginShane Bradley2015-03-111-1/+4
| | | | | | | | There are 3 pcs commands added to cluster plugin to get information about the status of pacemaker cluster. Signed-off-by: Shane Bradley <sbradley@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [cluster] add luci to packages for standalone luci serversShane Bradley2015-03-111-0/+1
| | | | | | | | | | | | A host with only luci package installed would not collect luci logs because the cluster plugin would not run since none of the packages were found. This patch adds luci to the package set required for the plugin to run. Resolves: rhbz#1171186 Signed-off-by: Shane Bradley <sbradley@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [cluster] remove some files and commands that are no longer neededShane Bradley2015-03-111-27/+39
| | | | | | | | | | | | | | | Removed some of the files and commands that are no longer needed on RHEL6+. In addition, the gfs_lockdump option did not capture gfs2 lock dumps. The option is now called gfs2_lockdump and will mount the /sys/kernel/debug directory and the gfs2 lockdumps will be copied from that mount point. In addition added a couple files that are needed for pacemaker/dlm. Resolves: rhbz#1083656 Signed-off-by: Shane Bradley <sbradley@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [block] don't use parted human readable outputShane Bradley2015-03-091-1/+1
| | | | | | | | | | Changed the parted command to return data in sectors units instead of human readable form. Fixes #471. Signed-off-by: Shane Bradley <sbradley@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [openshift] collect additional config filesPep Turró Mauri2015-03-091-6/+30
| | | | | | | | | | | Collect additional node web routing configuration files from the rewrite and vhost frontends, and node district information. Fixes RHBZ#1166874 Fixes: #327. Signed-off-by: Pep Turró Mauri <pep@redhat.com>
* [activemq] Honour all_logs and get config on RHELPep Turró Mauri2015-03-091-3/+28
| | | | | | | | | | | | | | | Get only current log file by default, allowing full dir collection via the all_logs option. Add a Red Hat version of the plugin that collects the two main configuration files for activemq. Also enable that plugin in the OpenShift profile. Related: RHBZ#1165878 Fixes: #457. Signed-off-by: Pep Turró Mauri <pep@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* Revert "[libvirt] add 'virsh capabilities' output"Bryn M. Reeves2015-03-061-2/+0
| | | | This reverts commit 4bf2fe4724f71c8b8827afbc2e0771500aaf93ad.
* [libvirt] add 'virsh capabilities' outputBryn M. Reeves2015-03-041-0/+2
| | | | | | Capture the host capabilities XML dump from libvirt. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [logs] Implement all-logs, limits and small fixes.Bryan Quigley2015-03-041-10/+16
| | | | | | | | | | | | | | | | | | | | | | Implement all logs option to collect everything in /var/log. Add size limits around all key log files. When not doing all logs capture ls output showing everything in /var/log. This will help with realizing when sosreport has missed some other file. mail* was dropped because it seems to be covered for the most commom case by mail.* in sendmail plugin. kern* was changed to capture kern.log and kern.log.1. syslog.1 is now captured. Closes LP: 1356211 Captures /etc/rsyslog.d directory. Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com> Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [networking] test nmcli status before using outputBryn M. Reeves2015-03-031-2/+2
| | | | | | | | | | | | | | | | | The networking module assumes that nmcli commands succeed if the results object is not None; this is not valid and will lead to errors in subsequent commands if the call returned an error message instead of the expected content: [plugin:networking] collecting output of 'nmcli con show conf 'Error: nmcli (0.9.10.0) and NetworkManager (unknown) versions don't match. Force execution using --nocheck, but the results are unpredictable.'' Traceback (most recent call last): File "/usr/sbin/sosreport", line 25, in <module> main(sys.argv[1:]) File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1459, in main sos.execute() ValueError: No closing quotation Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [apport] Move apport logging to apport pluginBryan Quigley2015-03-022-2/+9
| | | | | | | | Apport logging was in the logs plugin previously. Also added "all logs" support so it could collect more than it previously did. Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com>
* [docs] update version in Sphinx configurationBryn M. Reeves2015-03-021-2/+2
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [docs] build docs by defaultBryn M. Reeves2015-03-021-1/+5
| | | | | | | Build the docs 'html' and 'man' targets when the 'build' target is built. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [landscape] Move landscape logs, add server supportBryan Quigley2015-03-022-5/+43
| | | | | | | | | | | | | | | | | | Landscape log collection has been in the logs plugin, this moves it under the landscape plugin. Previously the entire directory was collected. Now we just collect all the logs that haven't been rotated. "All logs" support was added in case you want the whole directory. Support was added for the landscape-server config. Logs are covered by the same collection we have already. The license.txt required some care. It's a gpg signed file but we don't need the actual license: just that it's not malformed (gpg -v) and what the license details are (head). Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com> Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [docs] Remove make deb, run from gitBryan Quigley2015-03-021-1/+1
| | | | | | | | Make deb was removed You can also just run ./sosreport from git now. Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com> Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [dpkg] Collect debconf db, add verify and all logs optionsBryan Quigley2015-02-251-1/+13
| | | | | | | | | | | | Collect debconf db, which is really dpkg configuration info Add verify option to dpkg, to verify and check. On a machine in a good state that only took 20 seconds or so. Add all logs option to collect more than the last dpkg log. Closes: #483 Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com> Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* Revert "[build] install sos.conf from setup.py"Bryn M. Reeves2015-02-201-3/+1
| | | | | | | | | | | | | | | | | | | This reverts commit edd516836e1070df6c95bd2d71e6b82feaa10a11. It turns out installing things to /etc from setup.py is a terrible idea; distutils deliberately makes this difficult (by design) and expects you to either use data resources (installed under /usr on *nix platforms) or provide a script or other means to set up the configuration post-install[1][2]. Instead revert to simply installing the python code and docs via setup.py and allow distribution packagers to handle the config file installation as they choose. [1] http://stackoverflow.com/questions/10456279/python-setuptools [2] http://stackoverflow.com/questions/3325606/how-to-handle-conf Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [build] install sos.conf from setup.pyBryn M. Reeves2015-02-191-1/+3
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [sosreport] fix string construction in SoSReport.__init__()Bryn M. Reeves2015-02-191-2/+3
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [global] fix code style for pep8 warning W503Bryn M. Reeves2015-02-176-10/+9
| | | | | | | | | | | | | Recent versions of the pep8 style checker add checks for: W503 line break before binary operator Numerous sos modules trigger this warning as they follow the C convention of always placing the operator at the beginning of the continuation line. Fix these occurrences (and the Travis CI build for master). Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [pci] simplify lspci collectionBryn M. Reeves2015-02-111-5/+2
| | | | | | | | | | pciutils now supports showing name information along with numeric identifiers (lspci -nnvv). Use this as the default 'lspci' data and drop the split names vs. numbers output. Fixes #458. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [pcp] collect /etc/pcp.confBryn M. Reeves2015-02-111-0/+1
| | | | | | | | | | The file /etc/pcp.conf is added to list of lists that will be collected. Signed-off-by: Shane Bradley <sbradley@redhat.com> Fixes #465. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [docs] add --experimental to sosreport.1Bryn M. Reeves2015-02-111-0/+5
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [sosreport,plugin] add --experimental and ExperimentalPlugin tagBryn M. Reeves2015-02-113-5/+31
| | | | | | | | | | Add an ExperimentalPlugin tagging class and an --experimental command line option. This can be used to encourage testing of new plugins and plugin ports without indicating full support. Fixes #470. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [postgresql] don't warn if dbname is not setBryn M. Reeves2015-02-111-7/+0
| | | | | | Fixes #478. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [lightdm] add pluginBryn M. Reeves2015-02-111-0/+47
| | | | | | Fixes #481. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [gdm] add journalctl logs and systemctl statusBryn M. Reeves2015-02-111-0/+4
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [mpt] add pluginBryn M. Reeves2015-02-111-0/+30
| | | | | | | | | Add a plugin to collect LSI Message Passing Technology driver status from /proc. Related: #490. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>