| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
All files are collected under '/etc/gnocchi/'
Output of following commands will be collected provided proper
environment varibles(OS_USERNAME, OS_PASSWORD, OS_TENANT_NAME) are set:
- `gnocchi --version`
- `gnocchi status`
- `gnocchi capabilities list`
- `gnocchi archive-policy list`
- `gnocchi resource list`
- `gnocchi resource-type list`
Closes-Bug: #678
Signed-off-by: Sachin Patil <psachin@redhat.com>
|
|
|
|
|
|
|
| |
Resolves: #865.
Signed-off-by: Lukas Herbolt <lherbolt@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
| |
Signed-off-by: Harald Klein <hari@vt100.at>
|
|
|
|
|
|
|
|
|
|
| |
Collect whole /var/run/libvirt, excluding some secrets.
For PIDs in libvirt PID files, collect some /proc/$PID/ info.
Resolves: #937
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
|
|
|
|
|
|
| |
corosync.conf often overwrites default log locations, let collect the
user defined ones as well
Resolves: #924.
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Statements of the logs are evident from the plugin's code, therefore the
logs are redundant. Esp. on warn level.
Resolves: #923
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
|
|
|
| |
Fix a pep8 regression introduced in commit a2dc734.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
| |
Collect npm config list (globally and per-project).
Resolves: #917
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
|
|
|
| |
Replace "-" by "_" in resulting filenames.
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Neither sosreport --help or man pages specify the units of
--logsize parameter. Let it clarify.
Resolves: #916
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
|
|
|
|
|
| |
collect report status of auditctl
Resolves: #913
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
|
|
|
|
|
|
| |
The directory contains usefull info about subscription status and facts
the RHSM server gets from this client.
Resolves: #912
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Fixing all abrt-cli calls since none further has proper arguments,
causing none call returns a valuable output.
Resolves: #911
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
|
|
|
|
|
|
| |
logging has to be shut down after the final archive is created, since archive
class prints logs during the archive creation.
Resolves: #909
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
|
|
|
|
|
|
| |
tempfile.mkstemp call opens a new FD that is redundantly left
intact until sosreport shutdown. Let close it (added minor fix to
avoid TOCTOU race - bmr).
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
Collect /etc/firewalld/*.xml (and firewalld.conf) instead of *conf.
Issue #854 has a typo talking about *.conf instead of *.xml.
Resolves #933
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Compressing tarball uses default 300s timeout, while sosreports with large data
or random content can require more time to xz/gz the tarball.
Resolves: #910
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Captures a directory listing of /etc/docker to show the cert structure for the
daemon.
Now captures network listing and inspect details for configured docker networks.
Adds a new 'size' option that when enabled captures 'ps -as' output. This is
disabled by default as this could be very slow for hosts with large containers.
Now captures output from 'docker stats' for containers running when sos is run.
Closes: #901.
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adding /dev/null as a node will trigger EPERM. This can happen namely
when masking systemd units which symlinks to /dev/null. This fix will
avoid a stacktrace and will generate a INFO message about it.
Test for that situation is also included.
Resolves: #893.
Signed-off-by: Louis Bouchard <louis.bouchard@canonical.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
| |
foreman-debug (collecting lots of log files and mainly katello task
export) often runs longer than the default 5 minutes timeout.
Closes: #888.
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
|
| |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
| |
This plugin collects information about JAR files installed in the
standard locations. The information can be later used when debugging
problems with missing/different than expected classes on classpath.
Signed-off-by: Michal Srb <msrb@redhat.com>
|
|
|
|
| |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
Add a new plugin for the Canonical Livepatching service which
is Ubuntu specific. We collect:
* version
* show applied fixes with verbosity up
* status info from systemctl
Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PKI-core services in IPA v4 changed the default log file directory
for Dogtag related logs, sosreport should check if IPA CA is installed
and retrieve useful PKI logs(location is based on IPA version check)
Added functions to check if CA is installed and IPA server(RHEL or fedora)
is installed.
Update packages list to ensure plugin will run on Fedora.
Resolves: #883.
Signed-off-by: Justin Stephenson <jstephen@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
| |
New module for collecting active plugins info & configurations in collectd.
Resolves: #866
Signed-off-by: Archit Sharma <arcsharm@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
From ovirt 3.6, vm.conf and broker.conf is in the shared storage and
not at /etc/ovirt-hosted-engine.The ha engine keeps a local copy of
these files under /var/run/ovirt-hosted-engine-ha/ and
/var/lib/ovirt-hosted-engine-ha/ which is extracted from the shared
storage.
Include the new location of vm.conf and broker.conf in the list of
files to be collected
Signed-off-by: Nijin Ashok <nashok@redhat.com>
Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Closes: #833.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Included a plugin to collect the below information about
NFS-Ganesha file server provided nfs-ganesha package is installed.
Configuration files:
"/etc/ganesha/*"
"/etc/sysconfig/ganesha"
"/var/run/sysconfig/ganesha"
Log files:
"/var/log/ganesha.log"
"/var/log/ganesha-gfapi.log" (used by FSAL_GLUSTER)
Output of below commands:
-"dbus-send --type=method_call --print-reply"
" --system --dest=org.ganesha.nfsd "
"/org/ganesha/nfsd/ExportMgr "
"org.ganesha.nfsd.exportmgr.ShowExports"
Output of below commands is already covered under sunrpc and
nfsserver plugins -
-"rpcinfo -p localhost"
-"showmount -e localhost"
Also it is recommended to move FSAL specific configuration files
under specific FSAL plugin. Hence added below nfs-ganesha/gluster
related config to gluster plugin -
-"/var/run/gluster/shared_storage/nfs-ganesha/" (nfs-ganesha configuration)
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Closes: #386, #858.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Plugin to capture grafana configuration, logs, and command
outputs.
configuration:
/etc/sysconfig/grafana-server
/etc/grafana/
logs:
/var/log/grafana/
command outputs:
grafana-cli plugins ls
grafana-cli plugins list-remote
grafana-cli -v
grafana-server -v
Closes-Bug: #860
Signed-off-by: Pratik Bandarkar <pbandark@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Add a list of installed/erased/updated packages per yum/dnf transaction.
Signed-off-by: Yedidyah Bar David <didi@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Closes: #857.
|
|
|
|
|
|
|
|
| |
Horizon seems to like scattering bits of executable python around
/etc/: do not collect these files as we cannot properly perform
regex subsitution on them.
Closes: #856.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"The regex needs to handle in openstack_horizon:
currently the configurations are listed by
"/etc/openstack-dashboard/local_settings"
causing below errors:
regex substitution failed for '/etc/openstack-dashboard/local_settings.d/_11_rcue_theme.pyc'
Purposing a fix by changing the regex to match only intended configuration
files (*.conf*) in this directory.
Signed-off-by: Poornima M. Kshirsagar pkshiras@redhat.com
|
|
|
|
|
|
|
|
| |
Collect all /etc/firewalld/*.conf files, not only firewalld.conf
Resolves: #854
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
The sysroot paramter is not handled properly by the OpenSuSEPolicy
__init__ method: ensure that the method both accepts a sysroot
kwarg parameter, and that this is passed on to the superclass's
__init__() call.
Closes: #877.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Use 'npm cache ls' instead of parsing ~/.npm/
Signed-off-by: Jiri Popelka <jpopelka@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Closes: #899.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
npm installs modules:
1. globally — so everyone can use those
2. per project
If you don't know the path to the project, the only way to see the list
of those modules is by traversing the whole filesystem, which is pretty
unreal.
This patch browses npm cache of every user on the system and saves
module names and all available versions into sosreport.
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Closes: #879.
|
|
|
|
|
|
|
|
|
|
|
|
| |
The Dialogic Diva out-of-tree driver creates a number of problematic
files in /proc/net that return unlimited data on read. The previous
attempt to handle this driver left some files exposed (possibly due
to a change in the driver): to prevent this, blacklist the entire
/proc/net/eicon tree in the networking plugin.
Closes: #892.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
This commit adds the file /usr/share/polkit-1/rules.d/60-libvirt.rules
to the copy specs of the Debian plugin.
Signed-off-by: Jorge Niedbalski R. jorge.niedbalski@canonical.com
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Closes: #894.
|
|
|
|
|
|
|
| |
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Closes: #896.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Obtain SSSD automatically-generated krb5 snippet configuration files
for localauth plugin, domain_realm mapping, and libdefaults additions.
These files are pulled in by libkrb5 with an 'includedir' line in
/etc/krb5.conf.
Signed-off-by: Justin Stephenson <jstephen@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Closes #897.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SOSREPORT generally uses the default interface (/dev/ipmi0) while
executing ipmitool command, which is quite slow as compare to
usb interface.
This usb interface uses the virtual device exposed from BMC like
in OpenPower system AMI exposes virtual USB interface. IPMITOOL
command with usb interface sends the data to the kernel drivers
which inturn sends it to the BMC.
This patch enables ipmitool command to use usb interface if available.
With this patch:
================
root@ubuntu1604:/home/mukesh/sos# ./sosreport --config sos.conf -o ipmitool
sosreport (version 3.2)
This command will collect system configuration and diagnostic
information from this Ubuntu system. An archive containing the collected
information will be generated in /tmp/sos.TF8N8E.
For more information on Ubuntu visit:
http://www.ubuntu.com/
The generated archive may contain data considered sensitive and its
content should be reviewed by the originating organization before being
passed to any third party.
No changes will be made to system configuration.
Press ENTER to continue, or CTRL-C to quit.
Please enter your first initial and last name [ubuntu1604]:
Please enter the case id that you are generating this report for []:
Setting up archive ...
Setting up plugins ...
Running plugins. Please wait ...
Running 1/1: ipmitool...
Creating compressed archive...
Your sosreport has been generated and saved in:
/tmp/sosreport-ubuntu1604-20161130110402.tar.xz
The checksum is: adfdbc8475874d7ad1077a3d2eda151b
Please send this file to your support representative.
root@ubuntu1604:/home/mukesh/sos# tar -xvf /tmp/sosreport-ubuntu1604-20161130110402.tar.xz
sosreport-ubuntu1604-20161130110402/
sosreport-ubuntu1604-20161130110402/version.txt
sosreport-ubuntu1604-20161130110402/sos_reports/
sosreport-ubuntu1604-20161130110402/sos_reports/sos.txt
sosreport-ubuntu1604-20161130110402/sos_reports/sos.html
sosreport-ubuntu1604-20161130110402/sos_commands/
sosreport-ubuntu1604-20161130110402/sos_commands/ipmitool/
sosreport-ubuntu1604-20161130110402/sos_commands/ipmitool/ipmitool_-I_usb_sel_list
sosreport-ubuntu1604-20161130110402/sos_commands/ipmitool/ipmitool_-I_usb_sdr_info
sosreport-ubuntu1604-20161130110402/sos_commands/ipmitool/ipmitool_-I_usb_chassis_status
sosreport-ubuntu1604-20161130110402/sos_commands/ipmitool/ipmitool_-I_usb_fru_print
sosreport-ubuntu1604-20161130110402/sos_commands/ipmitool/ipmitool_-I_usb_sensor_list
sosreport-ubuntu1604-20161130110402/sos_commands/ipmitool/ipmitool_-I_usb_sel_info
sosreport-ubuntu1604-20161130110402/sos_commands/ipmitool/ipmitool_-I_usb_mc_info
sosreport-ubuntu1604-20161130110402/sos_logs/
sosreport-ubuntu1604-20161130110402/sos_logs/ui.log
sosreport-ubuntu1604-20161130110402/sos_logs/sos.log
Signed-off-by: Mukesh Ojha <mukesh02@linux.vnet.ibm.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
---
Changes in V3:
- Forgot to remove import subprocess in the last version.
Changes in V2:
- Used existing wrapper instead of subprocess.
- Removed camelCase for identifier.
sos/plugins/ipmitool.py | 22 +++++++++++++++-------
1 file changed, 15 insertions(+), 7 deletions(-)
|
|
|
|
| |
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
|
|
| |
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
|
|
| |
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
|
|
|
|
|
|
|
|
| |
testparm -v prints the values of all options,
including the compiled in defaults.
The output of testparm with*out* -v is much more
helpful in that it only outputs the non-default options.
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
|
|
|
|
|
|
|
|
| |
SSSD 1.14 adds support for dropped-in configuration files in
/etc/sssd/conf.d/ - Adding these files will ensure all SSSD
configuration files are obtained.
Closes #890.
Signed-off-by: Justin Stephenson <jstephen@redhat.com>
|
|
|
|
|
|
|
|
| |
A method decorated with @classmethod receives an instance of the
class object (rather than an instance of the class) in its first
argument - use 'cls' in these functions rather than 'self'.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
| |
It seems that nowadays the file is /etc/sudoers.d/sahara-rootwrap.
Closes: #848.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This collects status from all units, which replaces the
need to run "systemctl list-units --all" seperately and
provides much richer information for every unit - including
a bit of log output, process tree, memory usage, and more.
It also runs show for all services which should capture
the majority of Limits and other information we generally
look for.
systemd-analyze - provides boot performance info
systemctl status - shows system status and nice process
tree
We also now ls /lib/systemd recursively as some folder names
below it have changed.
Lastly, we make sure it runs on Ubuntu/Debian as we store
systemd in /lib not /usr/lib.
Closes: #831.
Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|