aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [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>
* [kernel] collect directory listings for module updatesBryn M. Reeves2015-02-111-1/+13
| | | | | | Related #490. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [targetcli] add pluginBryn M. Reeves2015-02-111-0/+36
| | | | | | | Add a plugin for targetcli, the configuration shell for RTSLib and the kernel TCM/LIO subsystem. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [process] collect /proc/sched_debugBryn M. Reeves2015-02-101-0/+1
| | | | | | Related: #490. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [block] collect /proc/diskstatsBryn M. Reeves2015-02-101-3/+3
| | | | | | Related: #490. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [memory] add ksm, swap and vmallocinfo data to pluginBryn M. Reeves2015-02-101-2/+9
| | | | | | Related: #490. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [kernel] collect /sys/firmware/acpi/*Bryn M. Reeves2015-02-101-0/+1
| | | | | | | | Collect ACPI firmware tables and state from /sys. Related: #490. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [networking] additional ip, firewall and traffic shaping commandsBryn M. Reeves2015-02-101-2/+8
| | | | | | | Collect tc qdisc output, ipv4/6 routing policy, NOARP arp cache, iptables with --exact counters, and iproute2 configuration. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [infiniband] add opensm and infiniband-diags supportBryn M. Reeves2015-02-101-3/+10
| | | | | | | | | Collect opensm and rdma configuration and logs and output from the infiniband-diags commands. Fixes #492. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [kimchi] fix collection of /etc/kimchiBryn M. Reeves2015-02-101-1/+1
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [openstack_swift] capture all swift logsMichael Kerrin2015-02-101-1/+3
| | | | | | | | | The swift wasn't doing this previously. Fixes #460 Signed-off-by: Michael Kerrin <michael.kerrin@hp.com> Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [haproxy] Fix haproxy on Debian systemsMichael Kerrin2015-02-101-2/+4
| | | | | | | | | Gather /var/log/haproxy.log files Fixes #500 Signed-off-by: Michael Kerrin <michael.kerrin@hp.com> Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [pep8] fix 2 new pep8 errorsAdam Stokes2015-02-102-8/+15
| | | | | | | | Apparently, there are new pep8 rules out in the wild. This patch fixes those errors along with additional formatting to be more compliant with pep8. Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [general] Better handling --name and --ticket-number in interactive modePavel Moravec2015-02-061-8/+11
| | | | | | | Carry forward values from the CLI options into the interactive mode, resolves #485 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [foreman] Skip collection of generic resourcesLukas Zapletal2015-02-032-35/+3
| | | | | | | | | | | | | | | | | | | New option was added to foreman-debug (-g) to skip collecting of generic resources (firewall, selinux, cpu, memory). This patch leverages that. https://github.com/theforeman/foreman/blob/develop/script/foreman-debug Since katello-debug is now part of foreman-debug (as a plugin), there is no need of separate sosreport plugin. https://github.com/Katello/katello/blob/master/deploy/script/katello-debug.sh New subpackage called foreman-debug was introduced. It is present in both upstream Foreman and Katello installations as well as on both Satellite 6 main node and capsule instances. It can be used to detect if foreman-debug script is present. Signed-off-by: Lukas Zapletal <lzap+git@redhat.com>
* [selinux] fixfiles produces no useful output, use restoreconJohn Haxby2015-01-281-1/+1
| | | | | | | | | | | Also discard stderr for restorecon since that just reports files that have no default context which is almost certainly not useful for sos. Signed-off-by: John Haxby <john.haxby@oracle.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com> --- sos/plugins/selinux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
* [plugins,utilities] Allow commands to discard stderrJohn Haxby2015-01-282-14/+24
| | | | | | | | | | | | | | | Just add "stderr=False" to add_cmd_output() if you don't want the command's stderr in the sosreport. Signed-off-by: John Haxby <john.haxby@oracle.com> Minor edits for pep8 conformance and to shorten the argument name. Signed-off-by: Bryn M. Reeves <bmr@redhat.com> --- sos/plugins/__init__.py | 29 +++++++++++++++++------------ sos/utilities.py | 5 +++-- 2 files changed, 20 insertions(+), 14 deletions(-)
* [networking] add ethtool -dBryn M. Reeves2015-01-281-0/+1
| | | | | | | | | | | | Add 'ethtool -d <dev>' to the networking plugin. This retrieves and prints a register dump for the specified network device. This may be required to debug some low-level network interface problems (e.g. embedded card configuration values) that would otherwise require the use of proprietary diagnostic tools. Signed-off-by: Sheng Liu <shenglsh@linux.vnet.ibm.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [policies] run PackageManager query_command under timeoutBryn M. Reeves2015-01-273-4/+13
| | | | | | | | | | | | | | | | | | | | | PackageManager query commands may block due to file system locks or problems with the package database. Run the query command with a timeout of 30s and exit if the timeout expires. Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com> --- Changes from v3: Add default timeout instead of making it configurable Add print function instead of error() Changes from v2: Introduce timeout in shell_out wrapper Changes from v1: Addressed issues of the maintainer Introduce timeout instead of relying on yum.
* [iprconfig] add plugin for IBM Power RAID adaptersBryn M. Reeves2015-01-271-0/+110
| | | | | | | | | Capture information which helps in better understanding of IBM Power RAID storage adapter configuration. Since iprconfig is specific to power adding the relevant commands in powerpc plugin. Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [mysql] improve handling of dbuser, dbpass and MYSQL_PWDBryn M. Reeves2015-01-221-4/+20
| | | | | | | | | | | Make sure that the mysql plugin behaves correctly when given different combinations of values for dbuser, dbpass and MYSQL_PWD. * If dbdump is set then either dbpass or MYSQL_PWD must be set * Warn if dbdump is set and dbuser or dbpass is True/False/null (indicates either 'sosreport -a' or '-k mysql.dbpass') Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [mysql] test for boolean values in user and password optionsBryn M. Reeves2015-01-201-0/+3
| | | | | | | | | | | | | | | | | | | | | If sosreport is run with '-a' all options will be set to boolean True. This causes an exception if an attempt is made to set an environment variable to the option value: 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 1435, in main sos.execute() TypeError: must be string, not bool > /usr/lib64/python2.7/os.py(471)__setitem__() -> putenv(key, item) Test both values with isinstance(val, bool) and do not attempt to collect a database dump if either is a boolean. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [apport] Add information on specific crashesBryan Quigley2015-01-191-0/+7
| | | | | | | | | | | The whoopsie ID let's us look the machine up on errors.ubuntu.com for crash reports. Partial output from /var/crash let's us better know what crashdumps the user has without uploading all of them. Signed-off-by: Bryan Quigley <Bryan.Quigley@Canonical.com> Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [networking] Enable the networking on debian based systemsMichael Kerrin2015-01-192-2/+3
| | | | | | | Fixes #463 Signed-off-by: Michael Kerrin <michael.kerrin@hp.com> Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
* [docker] use splitelines() for command outputBryn M. Reeves2015-01-191-2/+1
| | | | | | | | | | | Let's not reinvent splitlines(); the handrolled version docker was using fails to ignore the last newline: [plugin:docker] collecting output of 'docker logs 9b8f61c09dba' [plugin:docker] collecting output of 'docker logs 6f46267c91d6' [plugin:docker] collecting output of 'docker logs ' Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [sosreport] fix silent exception handling in sosreportBryn M. Reeves2015-01-191-6/+12
| | | | | | | | | | | | The OSError and IOError exception branches for the setup, collect, and postproc methods silently ignore plugin exceptions that are not on the list of fatal fs errors (that will cause sos to halt immediately). Fix this and either raise the exception (if --debug is given) or log it to a file via _log_plugin_exception(). Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [sosreport] fix stray whitespace fix from previous commitBryn M. Reeves2015-01-191-1/+0
| | | | | | Fixed in tree but not added to commit. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [sosreport] log plugin exceptions to a fileBryn M. Reeves2015-01-191-4/+13
| | | | | | | | | Add exception logging for the Plugin.postproc() method and move plugin exceptions into a separate per-plugin log file. This is less cluttered than pushing a multi-line traceback through the soslog.error logger and matches the behaviour of older releases. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [ctdb] fix RedHatPlugin tagging useBryn M. Reeves2015-01-191-2/+2
| | | | | | | | | | | The generic Ctdb class is tagged with RedHatPlugin. This causes the RedHatCtdb to not execute (since only the first matching class is instantiated). Remove the RedHatPlugin tag from the Ctdb class and fix the former's call to Ctdb.setup(). Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [squid] don't use add_copy_spec_limt() for conf filesBryn M. Reeves2015-01-191-1/+1
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [squid] collect logs from /var/log/squidBryn M. Reeves2015-01-191-2/+6
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [openstack_neutron] fix legacy component detection testBryn M. Reeves2015-01-141-4/+1
| | | | | | | | | | | | | | | Currently the Neutron plugin will assume it's running on a Neutron (rather than a legacy Quantum) installation if: - '/etc/neutron' exists AND the user specifies quantum=True Otherwise it's assumed to be a Quantum install. This is clearly broken; the sense of the 'openstack_neutron.quantum' part of the test should be inverted. Fixes #420. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [sosreport] do not make logging calls after OSErrorBryn M. Reeves2015-01-131-3/+6
| | | | | | | | | | | Following an OSError during archive setup the logging subsystem is potentially in an inconsistent or unusable state (e.g. due to a readonly file system error). Use the print function directly since we just need to report the error and exit. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [sosreport] catch OSError exceptions in SoSReport.execute()Bryn M. Reeves2015-01-131-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OSError exceptions during logging setup and tear down are not currently handled: 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 1409, in main sos.execute() File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1366, in execute self._setup_logging() File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 739, in _setup_logging self.sos_log_file = self.get_temp_file() File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 670, in get_temp_file return self.tempfile_util.new() File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 82, in new fd, fname = tempfile.mkstemp(dir=self.tmp_dir) File "/usr/lib64/python2.7/tempfile.py", line 304, in mkstemp return _mkstemp_inner(dir, prefix, suffix, flags) File "/usr/lib64/python2.7/tempfile.py", line 239, in _mkstemp_inner fd = _os.open(file, flags, 0600) OSError: [Errno 28] No space left on device: '/tmp/tmp.4ejNitjwcr/nospace_tmp/tmpBjPTOm' Address this by adding OSError to the list of caught exceptions in the main SoSReport.execute() method. Wrap the exception branch clean up in a try/except block to catch additional exceptions while attempting to clean up (e.g. unlink failures following an EROFS on the temporary archive path). Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [anaconda] make useradd password regex tolerant of whitespaceBryn M. Reeves2015-01-131-1/+1
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [mysql] fix command-line dbpass handlingBryn M. Reeves2014-12-231-2/+2
| | | | | | | | | | | | | | The logic for chosing between a command-line and environment variable passed password in the MySQL plugin was incorrect. This prevents a database dump from being collected when a password is given on the command line. Altough use of the command line to pass authentication tokens is discouraged we should ensure the case works. Fixes #456. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [docs] update man page for new optionsBryn M. Reeves2014-12-171-4/+25
| | | | | | | | | | | | | The man page was missing: --verify --all-logs --log-size --plugin-option And listed the old '--ticket' (now --ticket-number). Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [navicli] catch exception if input is unreadableBryn M. Reeves2014-12-171-1/+4
| | | | | | | | | | | | | | | | | CLARiiON SP IP Address or [Enter] to exit: 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 1408, in main sos.execute() File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1387, in execute self.setup() File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1117, in setup plug.setup() File "/usr/lib/python2.7/site-packages/sos/plugins/navicli.py", line 72, in setup ans = input("CLARiiON SP IP Address or [Enter] to exit: ") EOFError: EOF when reading a line Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [ovirt] remove duplicate codeSandro Bonazzola2014-12-171-26/+0
| | | | | Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [selinux] capture process SELinux domainsBryn M. Reeves2014-12-161-2/+2
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [kimchi] add new pluginChristy Perez2014-12-161-0/+40
| | | | | | | | | | | This plugin gathers kimchi logs and configuration files. Kimchi is an HTML5-based virtualization-management platform For more information, please visit: https://github.com/kimchi-project/kimchi/wiki Signed-off-by: Christy Perez <christy@linux.vnet.ibm.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [ovirt] remove password leak from engine setup answer fileSandro Bonazzola2014-12-161-0/+15
| | | | | Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [ovirt] remove password leak from ovirt-engine setup answer fileSandro Bonazzola2014-12-161-0/+12
| | | | | Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [ovirt] remove ovirt-engine setup answer file password leakSandro Bonazzola2014-12-161-0/+15
| | | | | Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [yum] add subscription-manager identity outputspandey2014-12-161-1/+2
| | | | | | | | The "subscription-manager identity" command displays consumer registered uuid and registered org uuid/name , which is useful to track rhn related issues Signed-off-by: spandey <spandey@redhat.com>
* [postgresql] avoid to crash with numerical passwordsSandro Bonazzola2014-12-151-1/+1
| | | | | Signed-off-by: Sandro Bonazzola <sbonazzo redhat com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [archive] remove all references to ZipFileArchiveBryn M. Reeves2014-12-113-39/+3
| | | | | | | | | | Commit f342d39 removed ZipFileArchive and the test suite references but left several imports in other files. Remove them and attendant support functions. Fixes #449. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>