| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Use a StreamHandler for sos.log and ui.log so that data is sent
directly to the log files, and to avoid the FileHandler creating
a bogus '<fdopen>' directory entry.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
Open files created by the TempFileUtil class for both reading and
writing: this allows the log files that are managed by this class
to be read back once they have been written.
This will be used to convert logging handlers to StreamHandler.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Allow subclasses of FileCacheArchive to accept either a path to
a file to add, or an instance of an open File object, from whih
data will be read.
This will be used to covert logging FileHandler object to
StreamHandler objects, avoiding creating bogus '<fdopen>' paths
in the file system when the former are used with files that are
created with os.fdopen().
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If auth information got sourced before sosreport run (OS_USERNAME,
OS_PASSWORD, OS_TENANT_NAME) collect information from nova, neutron,
keystone, glance, ironic and heat.
Only undercloud specific heat information is collected in instack
plugin.
Closes: #955.
Signed-off-by: Martin Schuppert <mschuppe@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Package list shall never timeout, otherwise pkgs gets empty, causing
KeyError later on.
Resolves: #942
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
|
|
|
|
|
|
| |
The current add_copy_spec_limit() implementation does not correctly
support recursive directory addition: to make it more clear that
we are collecting everything from the manila log directory use a
'*' at the end of the path spec.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Capture configuration and log files for OpenStack Manila project
https://wiki.openstack.org/wiki/Manila
Manila is File Share Service prototype, which provides coordinated
access to shared or distributed file systems. This plugin captures
manila related logs from openstack system.
Signed-off-by: Poornima M. Kshirsagar pkshiras@redhat.com
|
|
|
|
|
|
|
|
|
|
|
| |
Stop collecting:
/etc/dirsrv/admin-serv/key4.db
/etc/pam_pkcs11/nssdb/key[3-4].db
/etc/ipsec.d/key[3-4].db
Resolves: #964
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
|
|
|
|
| |
ricci is deprecated, remove it from package list and stop collecting
/var/lib/ricci
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Added supporting RedHatPlugin.
Added colleting /etc/waagent.conf.
Resolves: #962.
Signed-off-by: Takayoshi Tanaka <tatanaka@redhat.com>
|
|
|
|
|
|
|
|
| |
If --verify option is set, verify openstack_* packages.
Resolves: #871, #959.
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Collect "sssctl config-check", "sssctl domain-list" and
"sssctl domain-status -o <domain>" for every domain from the list.
Resolves: #958
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
|
|
|
|
|
| |
passwd=.. and incoming_password=.. to be obfuscated.
Resolves: #957
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
Add a plugin to (initially) capture information from the kernel
crypto subsystem: the list of ciphers from /proc/crypto, and the
FIPS status from /proc/sys/crypto/fips_enabled.
Closes: #943.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
| |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
iproute2 now prints an id after namespace names
when listing with e.g. ip netns. This breaks the
sosreport get_ip_netns() function.
Fixes #948
Signed-off-by: Edward Hope-Morley <edward.hope-morley@canonical.com>
Closes #949.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
| |
Closes #950
Signed-off-by: Sachin <psachin@redhat.com>
|
|
|
|
|
|
| |
Closes: #945.
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>
|
|
|
|
| |
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>
|