aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [openstack_*] Implement --verify optionPavel Moravec2017-03-2313-0/+34
| | | | | | | | If --verify option is set, verify openstack_* packages. Resolves: #871, #959. Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [sssd] collect config check and domainsPavel Moravec2017-03-231-0/+7
| | | | | | | | | 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>
* [pacemaker] Scrub passwords in pcs configPavel Moravec2017-03-231-0/+8
| | | | | | | | passwd=.. and incoming_password=.. to be obfuscated. Resolves: #957 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [crypto] add new pluginBryn M. Reeves2017-03-141-0/+33
| | | | | | | | | | 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>
* [numa] fix copy spec listBryn M. Reeves2017-03-141-2/+2
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [networking] Support iproute2 ns list outputEdward Hope-Morley2017-03-141-1/+1
| | | | | | | | | | | | | | 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>
* [gnocchi] Fixed missing 'os' module in gnocchi pluginSachin2017-03-141-0/+1
| | | | | | Closes #950 Signed-off-by: Sachin <psachin@redhat.com>
* [i18n] Update Polish translationPiotr Drąg2017-03-141-40/+38
| | | | | | Closes: #945. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [i18n] Remove English non-translationPiotr Drąg2017-03-141-146/+0
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [i18n] Move Basque translation to the correct language codePiotr Drąg2017-03-141-0/+0
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [i18n] Update po filesPiotr Drąg2017-03-1479-9540/+6080
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [gnocchi] New Gnocchi pluginSachin Patil2017-02-241-0/+59
| | | | | | | | | | | | | | | | | 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>
* [numa] collect basic numa info from /sys by defaultLukas Herbolt2017-02-241-0/+7
| | | | | | | Resolves: #865. Signed-off-by: Lukas Herbolt <lherbolt@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [salt, saltmaster, storageconsole] add plugins for RH Storage Console and saltHarald Klein2017-02-213-0/+145
| | | | Signed-off-by: Harald Klein <hari@vt100.at>
* [libvirt] collect more info for KVM hostsPavel Moravec2017-02-211-1/+10
| | | | | | | | | | 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] collect user defined logs from corosync.confPavel Moravec2017-02-211-0/+12
| | | | | | | | | 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>
* [pcp] delete three warn logsPavel Moravec2017-02-211-7/+0
| | | | | | | | | 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>
* [sosreport] fix line length regression (a2dc734)Bryn M. Reeves2017-02-201-1/+2
| | | | | | Fix a pep8 regression introduced in commit a2dc734. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [npm] collect config listsPavel Moravec2017-02-201-0/+5
| | | | | | | | Collect npm config list (globally and per-project). Resolves: #917 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [npm] use standard suggest_filename patterns in add_cmd_outputPavel Moravec2017-02-201-3/+3
| | | | | | Replace "-" by "_" in resulting filenames. Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [sosreport] clarify in man and help that --logsize is in MiBPavel Moravec2017-02-202-2/+2
| | | | | | | | | 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>
* [auditd] collect auditctl -sPavel Moravec2017-02-201-1/+4
| | | | | | | | collect report status of auditctl Resolves: #913 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [subscription_manager] collect /var/lib/rhsm/Pavel Moravec2017-02-201-0/+1
| | | | | | | | | 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>
* [abrt] replace all failing commandsPavel Moravec2017-02-201-14/+9
| | | | | | | | | 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>
* [sosreport][regression] --tmp-dir on NFS raises uncaught exceptionPavel Moravec2017-02-201-4/+3
| | | | | | | | | 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>
* [general] close unused file descriptors of temp.filesPavel Moravec2017-02-201-1/+2
| | | | | | | | | 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>
* [firewalld] collect *.xml configsPavel Moravec2017-02-201-1/+2
| | | | | | | | | | 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>
* [archive] compress tarball without a timeoutPavel Moravec2017-02-201-1/+2
| | | | | | | | | 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>
* [docker] Capture cert, network, sizing and stats dataJake Hunsaker2017-01-191-2/+31
| | | | | | | | | | | | | | | | | 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>
* [archive] Handle error when adding /dev/null as a nodeLouis Bouchard2017-01-192-1/+15
| | | | | | | | | | | | | 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] increase timeout of foreman-debug to 15minutesPavel Moravec2017-01-191-1/+1
| | | | | | | | | 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>
* [jars] improve option_list formattingBryn M. Reeves2017-01-191-4/+4
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [jars] new plugin: get information about installed JARsMichal Srb2017-01-191-0/+138
| | | | | | | | 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>
* [canonical_livepatch] use list with add_cmd_output()Bryn M. Reeves2017-01-191-4/+5
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [canonical-livepatch] new plugin for livepatching serviceBryan Quigley2017-01-191-0/+33
| | | | | | | | | | 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>
* [ipa] Handle PKI Directory change and Fedora compatibility fixesJustin Stephenson2017-01-171-8/+54
| | | | | | | | | | | | | | | | 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>
* [collectd] new plugin: collectdArchit Sharma2017-01-171-0/+54
| | | | | | | | New module for collecting active plugins info & configurations in collectd. Resolves: #866 Signed-off-by: Archit Sharma <arcsharm@redhat.com>
* [ovirt_hosted_engine] Add new location for vm.conf and broker.confNijin Ashok2017-01-171-0/+2
| | | | | | | | | | | | | | | | | 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.
* [nfsganesha] Add nfsganesha file server supportSoumya Koduri2017-01-172-1/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* [Grafana] New plugin for visualizing metricsPratik Bandarkar2017-01-171-0/+51
| | | | | | | | | | | | | | | | | | | | | 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>
* [yum] [dnf] add output of history infoYedidyah Bar David2017-01-172-2/+31
| | | | | | | | | 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.
* [openstack_horizon] do not collect python .pyc and .pyo filesBryn M. Reeves2017-01-171-0/+1
| | | | | | | | 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.
* [openstack_horizon] fix regex in postproc methodPoornima Kshirsagar2017-01-171-1/+2
| | | | | | | | | | | | | | "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
* [firewalld] Collect all configs under /etc/firewalldPavel Moravec2017-01-171-1/+1
| | | | | | | | Collect all /etc/firewalld/*.conf files, not only firewalld.conf Resolves: #854 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [policies] honour sysroot in OpenSuSEPolicyBryn M. Reeves2017-01-171-2/+2
| | | | | | | | | | | 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>
* [npm] inspect cache of the current user onlyJiri Popelka2016-12-071-30/+33
| | | | | | | | | 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] find modules in npm cacheTomas Tomecek2016-12-071-0/+38
| | | | | | | | | | | | | | | | | | | 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.
* [networking] blacklist entire /proc/net/eiconBryn M. Reeves2016-12-071-2/+1
| | | | | | | | | | | | 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>
* [plugin] Add polkit libvirt rulesJorge Niedbalski2016-12-071-1/+4
| | | | | | | | | | 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.
* [ctdb] collect /etc/ctdb/nodesMichael Adam2016-12-071-0/+1
| | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Bryn M. Reeves <bmr@redhat.com> Closes: #896.