| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
Fix the formatting of the add_copy_spec() lists in ceph: make the
first conform to the sos bracing and indenting rules for lists in
argument tuples, and fix a missing comma in the second.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
| |
The underlying get_command_output() function already checks the
return status of the command: checking it again in the _now()
version is useless.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Revert this commit: individual plugins must test the command
status (if they care): plugins that attempt to access command
output without testing command status are buggy and need to be
fixed.
Resolves: #986.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
| |
Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
Acked-by: Flavio Leitner <fbl@redhat.com>
|
|
|
|
|
|
|
|
|
| |
"ovs-appctl dpctl/show -s" for DPDK datapath stats
"ovs-appctl dpif-netdev/pmd-rxq-show" for port/queue to pmd core mapping
"ovs-appctl dpif-netdev/pmd-stats-show" for pmd stats
Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
Acked-by: Flavio Leitner <fbl@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The dictionary must contain string types, not byte arrays.
Causes an exception when packing strings with Python3:
[sos.sosreport:setup] executing 'sosreport -vvv --batch --debug -o jars'
Setting up plugins ...
Traceback (most recent call last):
File "./sosreport", line 25, in <module>
main(sys.argv[1:])
File "/home/breeves/src/git/sos/sos/sosreport.py", line 1632, in main
sos.execute()
TypeError: key b'version' is not a string
Resolves: #984.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
| |
test_exe.py fails with nosetests-3.
Updated to python 3 compatible syntax.
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
|
|
|
|
| |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
| |
If a command returns status of '1' in Plugin.get_cmd_output_now(),
do not return output even if the command wrote to stdio.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Assisted by: Kyle Squizzato <ksquizza@redhat.com>
Resolves: #929.
Signed-off-by: Harald Klein <hari@vt100.at>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
Resolves: #926.
Signed-off-by: Harald Klein <hari@vt100.at>
(edits for add_copy_spec() usage)
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
| |
Resolves: #980.
Signed-off-by: Sachin <psachin@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
This patch adds a plugin to retrieve configuration content, Ansible
inventory, and cached facts from OpenStack-Ansible deployment nodes.
Resolves: #922.
Signed-off-by: Major Hayden <major@mhtx.net>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds collection of host information such as memory and capabilities.
Additionally, user-defined elements such as networks, nwfilters and storage
pools are now collected. A listing of all elements is taken and then, if they
exist, the element's xml is collected as well.
Further, more domain (vm) information is collected - such as dominfo and
domblklist for each domain reported by virsh.
Resolves: #918.
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
|
|
|
|
| |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
| |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
| |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
| |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
| |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
| |
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
|
|
| |
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
|
|
| |
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
|
|
|
|
| |
instead of add_copy_spec_limit()
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
|
|
|
|
|
|
| |
The difference between add_copy_spec() has been removed.
This is in preparation of removing the add_copy_spec_limit()
special case altogether.
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
|
|
|
|
| |
This is in preparation of converging to one add_copy_spec() function
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
|
|
| |
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
|
|
| |
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
|
|
| |
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
|
|
| |
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
|
|
|
|
|
| |
- a test with a single file without limit
- a test with a single glob without limit
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
|
|
| |
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
|
|
| |
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
|
|
| |
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
|
|
| |
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
|
|
|
|
|
|
| |
Originally,f there were other files matching the glob of /tmp/tmp*
then the test would fail. By using a tmpdir, we make sure that we
know what files to expect.
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
|
|
| |
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
|
|
|
|
|
|
|
|
| |
add_cmd_output now gets only called if the needed ENV variables
are set to be able to connect to an OpenStack env.
Resolves: #956.
Signed-off-by: Martin Schuppert <mschuppe@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There is a problem with six's handling of strings that end with a
backslash:
https://bitbucket.org/gutworth/six/issues/60/sixu-mishandles-string-ending-in-backslash
This leads to an ugly exception during reporting if any filename
ends with this character:
Traceback (most recent call last):
File "/usr/sbin/sosreport", line 25, in <module>
main(sys.argv[1:])
File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1632, in main
sos.execute()
File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1607, in execute
self.plain_report()
File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1358, in plain_report
output = PlainTextReport(report).unicode()
File "/usr/lib/python2.7/site-packages/sos/reporting.py", line 151, in unicode
else six.u(i)), buf))
File "/usr/lib/python2.7/site-packages/sos/reporting.py", line 151, in <lambda>
else six.u(i)), buf))
File "/usr/lib/python2.7/site-packages/six.py", line 647, in u
return unicode(s.replace(r'\\', r'\\\\'), "unicode_escape")
UnicodeDecodeError: 'unicodeescape' codec can't decode byte 0x5c in position 25: \ at end of string
Avoid this problem by re-packing the buffer and adding a single ' '
character to the end of any string ending with '\'.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
| |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
$ make rpm
rm: remove write-protected regular file './sos/sosreport.pyc'? y
rm: remove write-protected regular file './sos/policies/__pycache__/debian.cpython-35.pyc'? ^CMakefile:74: recipe for target 'clean' failed
make: *** [clean] Interrupt
Gets old very fast..
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
| |
The iteritems() member has been removed in python3. Since the
environment loop in sos_get_command_output() is not expected to
be run with very large inputs use .items() instead, which is
compatible with both python2 and python3.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
| |
For compatibility with python3, when using startswith() or split()
with data read from a file, use bytes rather than a string.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds to the networking plugin the command:
$ nft list rulesets
Which will provide all currently loaded nftables rulesets. In addition,
it collects static nftables configuration.
Signed-off-by: Robb Manes <rmanes@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Plugin names must match the filename they are found in:
# sosreport -l | grep gnocchi
openstack_gnocchi inactive Gnocchi - Metric as a service
# sosreport -o openstack_gnocchi
sosreport (version 3.3)
a non-existing plugin (openstack_gnocchi) was specified in the command line
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Resolves: #914
Signed-off-by: Jacob Wen <jian.w.wen@oralce.com>
|
|
|
|
|
|
|
|
|
| |
_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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Resolves: #934.
Signed-off-by: Eric Desrochers <eric.desrochers@canonical.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|