aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [networking] collect socket stat from each namespaceMartin Schuppert2017-03-271-1/+2
| | | | | | | | | | | | added command to collect 'ss -lnp' within each namespace (edited to use -peaonmi for consistence with collection in the main namespace. -- bmr). Resolves: #966. Signed-off-by: Martin Schuppert <mschuppert@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [networking] Add ss socket outputPatrick Talbert2017-03-271-0/+1
| | | | | | | | | | | | | | | | | | | | Adds the following to the networking plugin: $ ss -peaonmi The ss tool provides much more detailed socket information than netstat and is almost guaranteed to be available while netstat not always so. ss provides some very useful extra TCP socket information such as memory allocations, the congestion window size, window scaling factor, segments sent/received, outstanding data, etc, etc. It also provides the socket address for every known socket type listed. The net-tools package is not part of the default package set for some minimal EL installs so it is not always available. ss is part of the more-modern iproute suite so is more likely to always be available. Signed-off-by: Patrick Talbert <ptalbert@redhat.com>
* [xen] fix two typosJacob Wen2017-03-271-1/+1
| | | | | | Resolves: #914 Signed-off-by: Jacob Wen <jian.w.wen@oralce.com>
* [npm] get project's npm config list only if project_path is setPavel Moravec2017-03-271-3/+3
| | | | | | | | | _get_npm_output with working_directory=project_path must be called only if project_path is configured Resolves: #951 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [corosync] fix corosync.conf handling.Bryn M. Reeves2017-03-271-4/+12
| | | | | | | Don't try to open corosync.conf if it doesn't exist, and handle exceptions on open and IO if it does. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [zfs] Add plugin for Ubuntu/DebianEric Desrochers2017-03-271-0/+36
| | | | | | | Resolves: #934. Signed-off-by: Eric Desrochers <eric.desrochers@canonical.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [powerpc] capture files under /sys/fs/pstore/Bryn M. Reeves2017-03-271-1/+2
| | | | | | | This patch enables sosreport to capture files under /sys/fs/pstore/ . Signed-off-by: Mukesh Ojha <mukesh02 linux vnet ibm com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [powerpc] add diag_encl command output to sosreportBryn M. Reeves2017-03-271-1/+2
| | | | | | | | | This patch enables sosreport to collect "diag_encl -v" command output. Signed-off-by: Mukesh Ojha <mukesh02 linux vnet ibm com> Signed-off-by: Ankit Kumar <ankit linux vnet ibm com> Tested-by: Mukesh Ojha <mukesh02 linux vnet ibm com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [powerpc] remove lsvpd family commands from pluginBryn M. Reeves2017-03-271-5/+1
| | | | | | | | | | lsvpd family commands captures information, which can be extracted from /var/lib/lsvpd. So, avoid capturing duplicate information by skipping the execution of these command. Signed-off-by: Mukesh Ojha <mukesh02 linux vnet ibm com> Reviewed-by: Kamalesh Babulal <kamalesh linux vnet ibm com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [policies/debian] Remove glob in command that causes directories to be queried.Bryan Quigley2017-03-271-2/+2
| | | | | | | | | | | The change in how commands are parsed was introduced in commit 04d412816de2e4053f43956adf536272a2ddc19c. This caused our old dpkg parsing to not work. Whatever the reason for the \* in the command it doesn't appear to be needed now anyway so removing it. Resolves: #935 Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com>
* [openvswitch] capture kernel datapath flowsAaron Conole2017-03-271-0/+2
| | | | | | Resolves: #972. Signed-off-by: Aaron Conole <aconole@redhat.com>
* [openvswitch] additional methods for status fetchAaron Conole2017-03-271-0/+3
| | | | | | | | | | dpdk_nic_bind was renamed by the DPDK project to dpdk_devbind, which means we need to test for either. Additionally, driverctl is used in rhel systems to provide udev based persistent overrides, so capturing its output is helpful as well. Signed-off-by: Aaron Conole <aconole@redhat.com>
* [gnocchi] Missing "packages = .." causes plugins runs everytimePavel Moravec2017-03-271-0/+8
| | | | | | | | | | Specify packages plugin variable to run the plugin only on systems with gnocchi installed. Resolves: #977 Signed-off-by: Pavel Moravec <pmoravec@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [collectd] Traceback when /etc/collectd.conf not readablePavel Moravec2017-03-271-5/+8
| | | | | | | | Catch IOError when opening /etc/collectd.conf and log it as a warning. Resolves: #968, #976. Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [dnf] Traceback when dnf history is emptyPavel Moravec2017-03-271-1/+1
| | | | | | | | Set transactions = -1 to skip for loop when dnf history is empty. Resolves: #969 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [numa] missing import to os.path.join commandPavel Moravec2017-03-271-0/+1
| | | | | | | | | "import os.path" missing. Resolves: #967 Signed-off-by: Pavel Moravec <pmoravec@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [sosreport] use archive.add_file(FileObj) for HTML and text reportBryn M. Reeves2017-03-271-4/+4
| | | | | | | Pass the file object in which HTML and text reports have been generated to the archiving class. Since the files received are instances of TempFileUtil files, they will use fdopen and cannot return a valid file name.
* [sosreport] convert sos.log and ui.log to StreamHandlerBryn M. Reeves2017-03-271-6/+4
| | | | | | | | 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>
* [sosreport] open temporary files for reading and writingBryn M. Reeves2017-03-271-1/+1
| | | | | | | | | | 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>
* [archive] accept an open File for add_file()Bryn M. Reeves2017-03-271-16/+32
| | | | | | | | | | | | | 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>
* [openstack_*] Collect undercloud debug informationMartin Schuppert2017-03-247-37/+136
| | | | | | | | | | | | | 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>
* [policies] get package list without a timeoutPavel Moravec2017-03-241-2/+1
| | | | | | | | | Package list shall never timeout, otherwise pkgs gets empty, causing KeyError later on. Resolves: #942 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [openstack_manila] use wildcard for 'all_logs' collectionBryn M. Reeves2017-03-241-1/+1
| | | | | | | | | 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>
* [openstack_manila] add new plugin at sos/pluginsPoornima Kshirsagar2017-03-241-0/+79
| | | | | | | | | | | 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
* [plugins] prevent collecting some key[3-4].db private keys3.4betaPavel Moravec2017-03-233-1/+4
| | | | | | | | | | | 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>
* [cman] drop deprecated ricciPavel Moravec2017-03-231-2/+0
| | | | | | | ricci is deprecated, remove it from package list and stop collecting /var/lib/ricci Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [azure] Added RHEL plugin and collecting conf.tanaka_7332017-03-231-2/+3
| | | | | | | | | Added supporting RedHatPlugin. Added colleting /etc/waagent.conf. Resolves: #962. Signed-off-by: Takayoshi Tanaka <tatanaka@redhat.com>
* [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>