aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [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>
* [cluster] The plugin was removed and split into multiple pluginsShane Bradley2016-05-256-185/+269
| | | | | | | | | | | | | | | | | | | | | | | | The cluster plugin originally was used for all the components for clustering: corosync, cman, pacemaker, gfs2, and dlm. This patch moves the command output/file that was captured in the cluster plugin to the corresponding plugin related to the command output or file. The cluster plugin was removed. Each component that is used by the 2 different types of clusters have a corresponding plugin: corosync, cman, pacemaker, gfs2, and dlm. The 2 different types of a cluster are: cman (with or without rgmanager or pacemaker managing resources) and pacemaker based clusters. Both of these cluster types can use corosync, dlm, and gfs2. The main difference is the management of clustered resources either by rgmanager(cman only) or pacemaker. The cman plugin will capture data related to rgmanager. In addition, there were duplicate commands that were removed and a couple of commands and file captures that were added to different plugins that previously was not in the cluster plugin. Fixes: #587 Signed-off-by: Shane Bradley <sbradley@redhat.com>
* [x11|opengl|opencl|vulkan] Create seperate plugin for each gpu apiBryan Quigley2016-05-254-1/+93
| | | | | | | This takes glxinfo out of x11 and moves it to opengl. It also provides clinfo and vulkaninfo in their own plugin. Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com>
* [plugin] Rename several plugins according to the plugin filenamePavel Moravec2016-05-244-4/+4
| | | | | | | | | | | | | | | | | Set plugin_name accordingly to the plugin filename, to let "sosreport -l" to print plugin names that can be used in "sosreport -[o|e|n]". Affected plugins: sos/plugins/cs.py: plugin_name = 'certificatesystem' sos/plugins/ds.py: plugin_name = 'directoryserver' sos/plugins/hts.py: plugin_name = 'hardwaretestsuite' sos/plugins/subscription_manager.py: plugin_name = 'subscription-manager' Resolves: #811 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [lvm2] use variable for path buildingBryn M. Reeves2016-05-241-3/+5
| | | | | | | Use a variable to build the path to be passed to lvmdump rather than building it in-situ in the add_cmd_output() call. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [lvm2] lvmdump does not collect any dataPavel Moravec2016-05-241-1/+2
| | | | | | | | | Suppress creating lvmdump directory that the tool needs to create on its own. Fixes #815 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [ds] collect /etc/dirsrv/admin-servPavel Moravec2016-05-241-0/+1
| | | | | | Resolves #817, #818. Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [policies] Fix ibmkvm policy initialize functionLeno Hou2016-05-241-4/+4
| | | | | | | | | | When loading policy, its leads failed load with sysroot. This patch updates the initialize function with sysroot Resolves: #820, #809. Signed-off-by: Leno Hou <lenohou@gmail.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [suse] fix constructor sysroot argumentBryn M. Reeves2016-05-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | The Policy class hierarchy requires a 'sysroot' kwarg for class constructors. This is used to pass the location of the actual host root file system for container configurations. The SuSE policy is currently missing this argument, leading to an exception during policy loading: Traceback (most recent call last): File "/usr/sbin/sosreport", line 25, in main(sys.argv[1:]) File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1592, in main sos = SoSReport(args) File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 676, in init self.policy = sos.policies.load(sysroot=self.opts.sysroot) File "/usr/lib/python2.7/site-packages/sos/policies/init.py", line 38, in load cache['policy'] = policy(sysroot=sysroot) TypeError: init() got an unexpected keyword argument 'sysroot' Fixes #809. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [networking] blacklist Dialogic Diva ISDN driver pseudo-filesPavel Moravec2016-05-241-0/+3
| | | | | | | | | | | blacklisting everything except for: /proc/net/eicon/adapter*/group_optimization /proc/net/eicon/adapter*/info Fixes #777 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [openstack_neutron] Fetch /var/lib/ and remove namespace data collectionLee Yarwood2016-05-231-71/+3
| | | | | | | | | | | | | | | | | This directory contains dhcp, keepalived and metadata proxy state and configuration data useful when troubleshooting Neutron issues. We can also drop the duplicated namespace collection code from this plugin as it adds no value over the collection code in the Networking plugin now that we are collecting `/var/lib/neutron/`. Finally this change also corrects the DebianNeutron class to correctly inherit from OpenStackNeutron and removes the now unused `log` option. Resolves: #648, #256 Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
* [openstack_neutron] Remove all references to quantumLee Yarwood2016-05-231-58/+40
| | | | | | | | | | This legacy name is no longer present in any supported version of Openstack both up and downstream. We can remove any reference to it and the associated name discovery logic from the plugin. Closes: #658 Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
* [lstopo] New plugin to collect lstopo informationPavel Moravec2016-05-231-0/+38
| | | | | | | | | Collect lstopo/lstopo-no-graphics in txt format for basic overview and in xml format to be able to convert it to graphics locally. Resolves: #719 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [redis] Added plugin for RedisAbhijeet Kasurde2016-05-232-0/+54
| | | | | | | | | | Patch adds plugin to collect details related to Redis - in-memory data structure store. Closes #760. Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [anaconda] Fix missing commaJeff Welch2016-04-251-1/+1
| | | | | | | Closes #805. Signed-off-by: Jeff Welch <whatthejeff@gmail.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [s390] Enable on Ubuntu/Debian, and on s390x architectureDimitri John Ledkov2016-04-251-3/+3
| | | | | | | | | | | | | All the tools & calls are the same on s390x as on s390. The tools called are available on Ubuntu/Debian s390x port (and old s390 port). All of this should also be available on RedHat s390x port. Tested to work correctly on Ubuntu s390x port. Closes #789. Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [debian] Remove the debian specific directoryLouis Bouchard2016-04-2510-147/+0
| | | | | | | | | | | | | | | From now on, debian packaging specific files will be maintained separately from the upstream project. This is meant to avoid pull requests to upstream when debian-only changes are required. The debian packaging files along with a pristine copy of upstream files will now reside at the following git repository : * http://anonscm.debian.org/cgit/collab-maint/sosreport.git/ Signed-off-by: Louis Bouchard <louis.bouchard@ubuntu.com>
* [docs]: Cleaned minor errors while generating docsSachin Patil2016-04-255-12/+16
| | | | | | | | * Implemented proper code snippet in docstring * Removed '_static/' from html_static_path as it was not used and hence throwing error Signed-off-by: Sachin Patil <sacpatil@redhat.com>
* [processor] Added cpuid commandJirka Hladky2016-04-251-1/+3
| | | | | | | | | | | | | | | | | | | Enhanced reporting capabilitis about CPU by adding cpuid command For details on cpuid command please see http://www.etallen.com/cpuid.html After having a discussion with author of cpuid Todd Allen <todd@etallen.com> we think that it would be best to have both human readable output of cpuid as well as hex output of cpuid in the sos report. The hex output can be converted into human readable format with cpuid -f <file>. This is usefull when version of cpuid on server where sos report has been executed is old. New version of cpuid can provide more precise infomration about the cpu. Signed-off-by: Jirka Hladky <jhladky@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [openstack_nova] Replaced nova-manage with nova commandsAbhijeet Kasurde2016-04-251-7/+19
| | | | | | | | | | | | | | - Replaced nova-manage commands with nova commands. - Added check for openstack related environment which are required to get all detailed information using nova command. These variables are [ OS_USERNAME, OS_PASSWORD, OS_TENANT_NAME ]. sosreport command will warn user if any of the environment variable is missing. Closes #758. Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [archive] Check that compression binary exists.Shane Bradley2016-03-161-5/+16
| | | | | | | | | | If the compression binary does not exists then the compression binary will not be included as a valid method for compressing. Fixes: #791 Signed-off-by: Shane Bradley <sbradley@redhat.com>
* [sos] Fix code formatting in plugins.Shane Bradley2016-03-073-8/+7
| | | | Signed-off-by: Shane Bradley <sbradley@redhat.com>
* [processor] Capture output of the command "cpufreq-info"Shane Bradley2016-03-071-1/+2
| | | | | | Fixes: #790 Signed-off-by: Shane Bradley <sbradley@redhat.com>