aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [docker] fix copy&paste error in a for cyclePavel Moravec2017-11-151-1/+1
| | | | | | | | "containers" is an unknown variable, "insp" is the correct one Resolves: #1148 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [global] update FSF addressSandro Bonazzola2017-11-153-9/+9
| | | | | | | | | | | | | Update FSF address for the following plugins: - boom - conntrackd - sas3ircu Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com> Fixes: #1146 Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [opendaylight] new plugin for OpenDaylightPavel Moravec2017-11-151-0/+38
| | | | | | | | Collecting logs and configs. Resolves: #1143 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [openvswitch] collect few ovs-ofctl dumps and OVS listPavel Moravec2017-11-151-0/+5
| | | | | | | | Required for/by OpenDaylight. Related to: #1143 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [cups] collect logs also via journalctlPavel Moravec2017-11-151-0/+2
| | | | | | | | | cups has options to log to logfiles or via journald, thus sosreport should collect both. Resolves: #1142 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [sas3ircu] add missing descriptionKazuhito Hagio2017-11-151-0/+2
| | | | Signed-off-by: Kazuhito Hagio <k-hagio@ab.jp.nec.com>
* [haproxy] Fix py2 specific import syntax for urlparseLouis Bouchard2017-11-151-1/+5
| | | | | | | | | | | | | urlparse is now part of urllib in python3. Make sure that the proxy behaves correctly on both versions. Closes: #1137 Signed-off-by: Louis Bouchard <louis@ubuntu.com> Fixes: #1138 Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [vdo] collect proper sys pathsPavel Moravec2017-11-151-2/+2
| | | | | | | | | VDO plugin shall collect /sys/kvdo and /sys/uds instead of original /sys/vdo and /sys/albireo Resolves: #1134 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [process] inhibit lsof's thread information by defaultKazuhito Hagio2017-11-151-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | Current lsof lists not only processes' open file information but also all threads' one by default. But when a heavily-multithreaded process exists, this behavior takes several minutes and consumes huge CPU time. Moreover, if it takes more than 300 seconds, lsof executed by sosreport times out with no useful information. # ./pthread 12000 & # time lsof -b +M -n -l >/dev/null ... real 4m57.620s user 1m13.004s sys 3m44.350s This patch inhibits lsof's thread information with its -c option to reduce CPU time and adds an option to gather it if needed. Signed-off-by: Kazuhito Hagio <k-hagio@ab.jp.nec.com> Fixes: #1133 Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [etcd] fix typo in etcdctl subcmdsPavel Moravec2017-11-151-1/+1
| | | | | | | | subcmds variable set while "subcmd" referred instead. Resolves: #1141 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [openstack_[glance|heat|cinder|nova]] limit command runMartin Schuppert2017-11-154-51/+129
| | | | | | | | | | | | | | | | | Collect "glance-manage db_version" and similar commands from the four plugins only if the relevant services or containers are running. Otherwise the commands get stuck and timeout. This is an enhancement to #1124 to check for containers + do the same for nova + cinder. Signed-off-by: Martin Schuppert mschuppe@redhat.com Edited to remove use of shell syntax. Fixes: #1139 Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [openstack_nova] added missing nova container configMartin Schuppert2017-11-071-1/+5
| | | | | | | | | | | | | | Tripleo Pike opinionated config+log paths to be collected for services, when running in containers. The nova configuration for the nova and placement container was included, but the nova configuration libvirt container was missing. Also the httpd configs for the nova contaier were added. This is a change to #1130 Signed-off-by: Martin Schuppert mschuppe@redhat.com
* [sos] bump release to 3.53.5Bryn M. Reeves2017-11-022-2/+5
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [haproxy] avoid exception if no provision_ip defined3.5beta1Bryn M. Reeves2017-11-011-0/+7
| | | | | | | Ensure that provision_ip is always defined, and do not attempt to collect data if no address was found in haproxy.cfg. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [system] add zlib to verify_packages listBryn M. Reeves2017-11-011-1/+1
| | | | | | | | Fixes: #1079 Suggested-by: Pavel Moravec <pmoravec@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [nss] add verify_packages for 'nss.*'Bryn M. Reeves2017-11-011-0/+1
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [openssl] verify all packages matching 'openssl.*'Bryn M. Reeves2017-11-011-0/+1
| | | | | | Related: #1079. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [distupgrade] add missing packages listBryn M. Reeves2017-11-011-0/+7
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [gdm] add missing packages listBryn M. Reeves2017-11-011-0/+1
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [foreman] fix missing ',' in packages listBryn M. Reeves2017-11-011-1/+1
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [etcd] add missing plugin metadata and packages listBryn M. Reeves2017-11-011-1/+2
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [dmraid] add missing packages listBryn M. Reeves2017-11-011-0/+2
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [devices] add missing files and packages listsBryn M. Reeves2017-11-011-0/+2
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [devicemapper] add missing files and packages listsBryn M. Reeves2017-11-011-0/+2
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [dbus] add missing packages listBryn M. Reeves2017-11-011-0/+1
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [cron] add missing packages listBryn M. Reeves2017-11-011-0/+1
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [boot] add missing packages listBryn M. Reeves2017-11-011-0/+1
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [block] add missing files and verify_packages listsBryn M. Reeves2017-11-011-0/+2
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [apache] add missing packages and files listsBryn M. Reeves2017-11-011-0/+2
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [anacron] add missing packages listBryn M. Reeves2017-11-011-0/+1
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [anaconda] add missing packages listBryn M. Reeves2017-11-011-0/+1
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [acpid] add missing packages listBryn M. Reeves2017-11-011-0/+1
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [policy] do not generate empty verify commandsBryn M. Reeves2017-11-011-0/+5
| | | | | | | | If after applying regex matching to the list of verify_packages there are no package names remaining, do not construct a verify command. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [rpm] convert plugin to verify_packages listBryn M. Reeves2017-11-011-19/+4
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [yum] move yum package verification to yum pluginBryn M. Reeves2017-11-011-0/+1
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [satellite] move spacewalk.* package verification to satelliteBryn M. Reeves2017-11-012-2/+2
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [perl] add new plugin and move package verificationBryn M. Reeves2017-11-012-1/+28
| | | | | | | Add a new plugin for the perl runtime and move the perl.* package verification checks from the RPM plugin. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [java] move java.* package verification to java pluginBryn M. Reeves2017-11-012-1/+2
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [pam] move pam_.* package verification to pam pluginBryn M. Reeves2017-11-012-2/+1
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [kernel] move kernel package verification to kernel pluginBryn M. Reeves2017-11-012-1/+2
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [system] move initscripts package verification to system pluginBryn M. Reeves2017-11-011-1/+1
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [system] move glibc package verification to system pluginBryn M. Reeves2017-11-012-1/+2
| | | | Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [Plugin] automatic verify for plugins with a packages listBryn M. Reeves2017-11-011-1/+6
| | | | | | | | | | | | | If a plugin defines 'packages' but not 'verify_packages', use the package list to automatically generate a list of packages to be verified when --verify is given. Only the base names are used; each entry in the package list has the '$' end-of-line match character. This prevents verification of very large numbers of packages for plugins with package names that are a common prefix (e.g. 'python-' and 'perl-'). Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [sosreport] add per-plugin package verification listsBryn M. Reeves2017-11-014-4/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new mechanism for plugins to declare a per-plugin list of packages to verify when the global --verify option is enabled. Historically this was implemented in the package manager plugin for each distribution (e.g. rpm.py for Red Hat distros and dpkg.py for the Debian family). This gives limited granularity and blocks the ability to verify only a subset of packages, or to only verify packages for a certain set of plugins. This change adds a new optional member to Plugin: verify_packages which when set will generate an additional command to be run by that plugin. The plugin calls into the PackageManager via the policy class to determine the correct package manager command to run. A plugin can request optional package verification by declaring a new 'verify_packages' member (or building one during setup()): plugin_name = 'foo' packages = ('foo', 'bar', 'baz', 'qux') verify_packages = ('foo', 'bar') Verification is only performed if the --verify switch is used. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [plugins] Don't tail gzipped files when reaching sizelimitPavel Moravec2017-11-011-1/+11
| | | | | | | | | | In case sizelimit in add_copy_spec is reached and tailit=True, we shall skip tailing a gzip archive that would be collected as damaged. Resolves: #907 Signed-off-by: Pavel Moravec <pmoravec@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [plugins] Dont apply sizelimit if --all-logs option usedPavel Moravec2017-11-012-1/+4
| | | | | | When --all-logs is used, ignore any sizelimits in add_copy_spec. Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
* [block] Add the output of 'lsblk -t'Jose Castillo2017-11-011-0/+1
| | | | | | | | | | | | | | | | | | | | | The output of 'lsblk -t' provides very useful information about the device's topology, like alignment offset, minimum io size, optimal io size, and others. It is equivalent to running lsblk with options: -o NAME,ALIGNMENT,MIN-IO,OPT-IO,PHY-SEC,LOG-SEC,ROTA,SCHED, RQ-SIZE,WSAME With this improvement to the block plugin we can see at one glance data available in different places like sysfs, fdisk and/or parted, as well as data not available in the sosreport nowadays, like /sys/block/<device>/queue/rotational . Fixes: #1065 Signed-off-by: Jose Castillo <jcastillo@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [origin] Add options to control oc diagnostics command invocationPep Turró Mauri2017-11-011-22/+26
| | | | | | | | | | | | Add options to control the invocation of the "oc adm diagnostics" command. These are useful in certain deployments that can't or don't want to have sosreport invoke the command, or at least need to prevent the creation of test pods. Fixes: #1098 Signed-off-by: Pep Turró Mauri <pep@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [kubernetes] Do not collect all namespaces unless requestedJon Stanley2017-10-311-27/+26
| | | | | | | | | | | Collecting all namespaces on a cluster can be extremely time consuming. Do not do this unless specifically requested, repurposing the 'all' module option. Fixes: #1108 Signed-off-by: Jon Stanley <jonstanley@gmail.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
* [openstack_*, logrotate] Tripleo additional directoriesMartin Schuppert2017-10-3113-43/+160
| | | | | | | | | | | | Tripleo Pike opinionated config+log paths to be collected for services, when running in containers. This is an addition to #1054 where a couple of things got missed Fixes: #1130 Signed-off-by: Martin Schuppert <mschuppe@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>