Prior to this update, the qpid plug-in for the sos utility had a typo in invoking several commands, and the commands outputs were not collected. With this update, the typo is fixed, and the commands are properly invoked and their output collected.
Description of problem:
sosreport's qpid plugin attempts to collect the output of the following monster command:
$ sosreport -o qpid --batch -v
...
[plugin:qpid] added cmd output 'qpid-config exchangesqpid-config queuesqpid-config exchanges -b'
...
[plugin:qpid] collecting output of 'qpid-config exchangesqpid-config queuesqpid-config exchanges -b'
...
This is due to missing commas at the end of the lines containing "qpid-config exchanges" and "qpid-config queues" in the plugin code:
self.add_cmd_output([
...
"qpid-stat -m", # applies since 0.18 version
"qpid-config exchanges"
"qpid-config queues"
"qpid-config exchanges -b", # applies to pre-0.18 versions
...
])
Without the commas, Python's string literal concatenation feature [0] is applied to the strings, merging them into a single one.
Version-Release number of selected component (if applicable):
sos-3.2-15.el7_1.8.noarch
[0] https://docs.python.org/2/reference/lexical_analysis.html#string-literal-concatenation
For QE:
if you would like to have a real system with qpid-cpp package installed (so you dont need to mock the commands), let me know. I know qpid-cpp very well and can prepare a system in a short time.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2016-2380.html
Description of problem: sosreport's qpid plugin attempts to collect the output of the following monster command: $ sosreport -o qpid --batch -v ... [plugin:qpid] added cmd output 'qpid-config exchangesqpid-config queuesqpid-config exchanges -b' ... [plugin:qpid] collecting output of 'qpid-config exchangesqpid-config queuesqpid-config exchanges -b' ... This is due to missing commas at the end of the lines containing "qpid-config exchanges" and "qpid-config queues" in the plugin code: self.add_cmd_output([ ... "qpid-stat -m", # applies since 0.18 version "qpid-config exchanges" "qpid-config queues" "qpid-config exchanges -b", # applies to pre-0.18 versions ... ]) Without the commas, Python's string literal concatenation feature [0] is applied to the strings, merging them into a single one. Version-Release number of selected component (if applicable): sos-3.2-15.el7_1.8.noarch [0] https://docs.python.org/2/reference/lexical_analysis.html#string-literal-concatenation