| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Capture the host capabilities XML dump from libvirt.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 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>
|
|
|
|
| |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
| |
Build the docs 'html' and 'man' targets when the 'build' target is
built.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
| |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Fixes #478.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
| |
Fixes #481.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
| |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Add a plugin to collect LSI Message Passing Technology driver
status from /proc.
Related: #490.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
| |
Related #490.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Related: #490.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
| |
Related: #490.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
| |
Related: #490.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
| |
Collect ACPI firmware tables and state from /sys.
Related: #490.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Carry forward values from the CLI options into the interactive mode,
resolves #485
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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(-)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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(-)
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Fixes #463
Signed-off-by: Michael Kerrin <michael.kerrin@hp.com>
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Fixed in tree but not added to commit.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|