aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [origin] New plugin for OpenShift Origin / OSE 3.xPep Turró Mauri2016-06-292-1/+203
| | | | | | | | | | | | | | Add a new plugin to collect information about OpenShift Origin: https://github.com/openshift/origin https://www.openshift.org and related products like Atomic Platform / OpenShift Enterprise 3+. Fixes: #612 Fixes: RHBZ 1246423 Signed-off-by: Pep Turró Mauri <pep@redhat.com>
* [kubernetes] fix string substitutionBryn M. Reeves2016-06-291-1/+1
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [kubernetes] new data, namespace support, and optionsJake Hunsaker2016-06-291-30/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch collects additional data from kubernetes masters, changes the available plugin options, and makes collection namespace aware. By default, json output will be collected for events, limitranges, pods, pvcs, replicationcontrollers, resourcequotas and services on a per-namespace basis. Note that the 'serviceaccount' and 'secrets' resources are not collected due to the high risk of exposing secure information. Version and 'config view' output is now collected. The 'all' option (default enabled) will collect a non-json listing of each resource across all namespaces for ease of reference. The 'describe' option (default enabled) will collect 'kubectl describe' output, non-json, for each object of each resource in each namespace, if present. The 'podslog' option has been renamed to 'podlogs' and is disabled by default. Note that while this will run on OpenShift v3 masters, only resources shared by OpenShift and 'plain' Kubernetes are collected by this plugin. OpenShift routes for example are not collected. Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
* [Plugin] Add mechanism to remove certificates and keys from outputJake Hunsaker2016-06-291-0/+34
| | | | | | | | | | | | | This adds a 'do_cmd_private_sub()' function that removes collected certificates and keys. This function takes a cmd name to match against output collected, but does not take a regexp or substituting string as does do_cmd_output_sub(). Any found certificates or keys are replaced by a '-----SCRUBBED' line, e.g.: "-----SCRUBBED CERTIFICATE-----" or "-----SCRUBBED RSA PRIVATE KEY-----" Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
* [lxd] Use add_copy_spec_limitLouis Bouchard2016-06-291-3/+2
| | | | | | | sizelimit is only available with add_copy_spec_limit. Replace it. Closes: #843 Signed-off-by: Louis Bouchard <louis.bouchard@canonical.com>
* [reporting] html_report skips plugins .. with nonASCIIPavel Moravec2016-06-291-10/+19
| | | | | | | | | | | | | | [reporting] html_report skips plugins that collected file with nonASCII character in their name Converting all html report strings to unicode with utf-8 encoding. Does not work ideally on py2 where the report does not skip a plugin but breaks encoding of most nonASCII characters. Resolves: #835 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [gdm] Fix misspelled unitsLouis Bouchard2016-06-291-1/+1
| | | | | | | | unit= should be units= Closes: #841 Signed-off-by: Louis Bouchard <louis.bouchard@canonical.com>
* [tomcat] Added collection of all tomcat* logsCoty Sutherland2016-06-291-4/+25
| | | | | | | | | | | Optionally collect all tomcat logs, in addition to catalina.out, with the use of the --all-logs option and update tomcat paths for versions 7 and 8 (as packaged in Red Hat JBoss). Resolves #836. Signed-off-by: Coty Sutherland <csutherl@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [gluster] limit size of logs collectedPavel Moravec2016-06-291-2/+16
| | | | | | | | Apply global parameters when collecting gluster logs. Resolves: #834 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [policies/redhat] update container detection testBryn M. Reeves2016-06-271-3/+4
| | | | | | | | | | | | | | | Between Docker, systemd, and the various other components used to manage docker-style containers on Red Hat's Atomic-based distros the agreed upon environment variable used to detect a container has changed: container_uuid="" is no longer exported. container="docker"|"..." is now exported instead. Update the in container checks to use the new variable name. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [reporting] deal with UTF-8 charactersPavel Moravec2016-06-273-11/+17
| | | | | | | | | | | | | replace str class functions by unicode variants: 1) "\n".join(buf) needs to pass decoded UTF-8 text 2) uniform python2 and python3 str/unicode type 3) fd.write needs to replace str(..) by some other function name 4) fd.write needs to encode UTF-8 5) update tests/report_tests.py like 2) Resolves: #722, #723. Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [lightdm] Add missing "" to commandBryan Quigley2016-06-031-1/+1
| | | | Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com>
* [processor] Capture turbostat outputShane Bradley2016-06-031-2/+3
| | | | | | | | | | | | The turbostat command is a topological report. This report will show what cstate and pstate processors are in, what the processor frequency is during that timeand how busy each core is. The cstate %'s tell us when we are saving power at the expense of performance which is useful for knowing if the host is optimally configured. Fixes: #802 Signed-off-by: Shane Bradley <sbradley@redhat.com>
* [memory] Capture status of hugepagesShane Bradley2016-06-031-1/+2
| | | | | | | | | | Determing if hugepages is enabled is useful to know when trouble-shooting applications that can take advantage of huge pages. Fixes: #798 Signed-off-by: Shane Bradley <sbradley@redhat.com>
* [block] Capture the scheduler used by all block devicesShane Bradley2016-06-031-1/+2
| | | | | | Fixes: #799 Signed-off-by: Shane Bradley <sbradley@redhat.com>
* [ipmi] Fix ipmitool optionsBryn M. Reeves2016-06-031-2/+2
| | | | | | | | | | | | | | As per ipmitool man page 'bmc' option is deprecreated. Instead use 'mc' option to get BMC information. Also we don't have 'sel log' option. Use 'sel list' option to get SEL log information. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com> --- sos/plugins/ipmitool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
* [pacemaker] Call crm_report with --sos-mode optionPavel Moravec2016-06-021-1/+2
| | | | | | | | | | crm_report should be called with --sos-mode option for preffered collection of log files. Closes: #795, #826. Signed-off-by: Pavel Moravec <pmoravec@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [targetcli] convert to add_journal interfaceBryn M. Reeves2016-06-021-1/+1
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [openvswitch] convert to add_journal interfaceBryn M. Reeves2016-06-021-3/+4
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [openstack_sahara] convert to add_journal interfaceBryn M. Reeves2016-06-021-3/+3
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [openstack_ironic] convert to add_journal interfaceBryn M. Reeves2016-06-021-3/+2
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [lightdm] convert to add_journal interfaceBryn M. Reeves2016-06-021-4/+2
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [kubernetes] convert to add_journal interfaceBryn M. Reeves2016-06-021-5/+13
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [docker] convert to add_journal interfaceBryn M. Reeves2016-06-021-1/+1
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [chrony] convert to add_journal interfaceBryn M. Reeves2016-06-021-2/+2
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [gdm] convert to add_journal interfaceBryn M. Reeves2016-06-021-4/+2
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [logs] convert to add_journal interfaceBryn M. Reeves2016-06-021-8/+6
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [plugin] Add add_journal() to collect journald logsBryn M. Reeves2016-06-021-9/+79
| | | | | | | | Add a new Plugin method to collect journald logs. Closes: #825. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [ntb] Adding support for NTBKenneth Koski2016-05-271-0/+35
| | | | | | | | | | | | | | sosreport currently lacks support for collecting information about PCI-E Non-transparent bridge hardware. This pull request adds support for collecting that information. For more information about NTB, see this page: https://github.com/jonmason/ntb/wiki Closes #701. Signed-off-by: Kenneth Koski <mechaxl@gmail.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [gluster] Store gluster tier related informationHari Gowtham2016-05-271-1/+2
| | | | | | | | | | | | | | | Gluster tiered volume has metadata files for promotion and demotion which are useful for diagnosing errors The patch adds these files to the list of files stored in sos report. Example: /var/run/gluster/volname-tier-dht/ promote-brickname-indexinbricklist Closes #721. Signed-off-by: Hari Gowtham <hgowtham@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [openvswitch] Capture Open_vSwitch other_configFlavio Leitner2016-05-261-1/+3
| | | | | | | | | After Open vSwitch 2.5 release, the DPDK configuration moved from command line to the OVS database, so provide that in the sosreports. Suggested-by: Aaron Conole <aconole@redhat.com> Signed-off-by: Flavio Leitner <fbl@redhat.com>
* [openvswitch] Capture upcall informationFlavio Leitner2016-05-261-1/+3
| | | | | | Provide upcall stats and details. Signed-off-by: Flavio Leitner <fbl@redhat.com>
* [openvswitch] Capture a list of listening portsFlavio Leitner2016-05-261-1/+3
| | | | | | | Often tunnels require to listen on a specific ports which can be the standard one or another. Signed-off-by: Flavio Leitner <fbl@redhat.com>
* [openvswitch] Capture tunnel arp cacheFlavio Leitner2016-05-261-1/+3
| | | | | | Provide tnl cached ARP table. Signed-off-by: Flavio Leitner <fbl@redhat.com>
* [openvswitch] Capture cached routesFlavio Leitner2016-05-261-1/+3
| | | | | | Provide cached routes from Open vSwitch. Signed-off-by: Flavio Leitner <fbl@redhat.com>
* [openvswitch] Capture coverage statsFlavio Leitner2016-05-261-1/+3
| | | | | | Provide coverage statistics. Signed-off-by: Flavio Leitner <fbl@redhat.com>
* [openvswitch] Capture LACP informationFlavio Leitner2016-05-261-1/+3
| | | | | | | The LACP protocol has various states and it is helpful to see in which state it is. Signed-off-by: Flavio Leitner <fbl@redhat.com>
* [openvswitch] capture additional info from bondsFlavio Leitner2016-05-261-1/+3
| | | | | | Provide more details for each bond device. Signed-off-by: Flavio Leitner <fbl@redhat.com>
* [openvswitch] Capture a list of bond devicesFlavio Leitner2016-05-261-1/+3
| | | | | | | Open vSwitch has built-in bonding support. Capture a list of all configured bond ports. Signed-off-by: Flavio Leitner <fbl@redhat.com>
* [openvswitch] Sort alphabetically the commandsFlavio Leitner2016-05-261-4/+4
| | | | Signed-off-by: Flavio Leitner <fbl@redhat.com>
* [openvswitch] Capture queue configurationFlavio Leitner2016-05-261-1/+2
| | | | | | Provide the configuration for every queue. Signed-off-by: Flavio Leitner <fbl@redhat.com>
* [openvswitch] Capture queue statisticsFlavio Leitner2016-05-261-1/+2
| | | | | | Each device can have queues so capture all their stats. Signed-off-by: Flavio Leitner <fbl@redhat.com>
* [openvswitch] Capture port detailsFlavio Leitner2016-05-261-1/+2
| | | | | | | Capture detailed information about network devices associated with each bridge on the system. Signed-off-by: Flavio Leitner <fbl@redhat.com>
* [openvswitch] Capture port statisticsFlavio Leitner2016-05-261-1/+2
| | | | | | For each bridge, capture all port statistics. Signed-off-by: Flavio Leitner <fbl@redhat.com>
* [openvswitch] List devices and their driversFlavio Leitner2016-05-261-1/+3
| | | | | | | | DPDK enabled Open vSwitch supports kernel devices and userspace devices (DPDK), so capture a list of all NICs and their drivers. Signed-off-by: Flavio Leitner <fbl@redhat.com>
* [openvswitch] Gather openvswitch systemd logsFlavio Leitner2016-05-261-1/+4
| | | | Signed-off-by: Flavio Leitner <fbl@redhat.com>
* [openvswitch] List ovs runtime dir contentsFlavio Leitner2016-05-261-1/+3
| | | | | | | | There are sockets and other files created on the runtime directory that are useful to know if they exist and their permissions. Signed-off-by: Flavio Leitner <fbl@redhat.com>
* [openvswitch] Copy the pid filesFlavio Leitner2016-05-261-1/+3
| | | | | | | | The pid files are used by scripts to manage the services and makes sense to have a copy of them to see if they are stale or not. Signed-off-by: Flavio Leitner <fbl@redhat.com>
* [openvswitch] Add support for openvswitch-dpdk rpmFlavio Leitner2016-05-261-1/+1
| | | | | | | | The openvswitch-dpdk rpm package provides the same functionality, so enable the plugin when that package is installed. Signed-off-by: Flavio Leitner <fbl@redhat.com>
* [plugins] New LXD pluginJorge Niedbalski2016-05-251-0/+46
| | | | | | | | This ubuntu-specific plugin gathers logs, internal database and a list of the current containers on a LXD host. Signed-off-by: Jorge Niedbalski <jorge.niedbalski@canonical.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>