sosreport 3.1.1 leaks stderr when running
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sosreport (Ubuntu) |
Fix Released
|
Medium
|
Louis Bouchard |
Bug Description
SRU justification :
Running sosreport generates numerous "command not found" messages
Impact :
Renders the sosreport U/I unreadable
Fix :
Add upstream fix
Test Case :
Run sosreport --batch. Without the fix, numerous "command not found" messages are displayed.
Regression :
None expected as this reinstate the previous behevior.
Original description of the problem :
Running latest sosreport 3.1.1 on trusty leads to the following output :
root@TrustyS-
sosreport (version 3.1)
TL;DW
could not run 'brctl show': command not found
Running plugins. Please wait ...
Running 9/64: boot... could not run 'lsinitrd': command not found
Running 13/64: dmraid... could not run 'dmraid -V': command not found
could not run 'dmraid -b': command not found
could not run 'dmraid -r': command not found
could not run 'dmraid -s': command not found
could not run 'dmraid -tay': command not found
could not run 'dmraid -rD': command not found
Running 17/64: general... could not run 'tree /var/lib': command not found
Running 18/64: general... could not run 'tree /var/lib': command not found
Running 20/64: grub2... could not run 'grub2-mkconfig': command not found
Running 23/64: java... could not run 'alternatives --display java': command not found
Running 24/64: juju... could not run 'juju -v status': command not found
could not run 'juju -v get-constraints': command not found
Running 25/64: kernel... could not run 'dkms status': command not found
Running 26/64: krb5... could not run 'klist -ket /etc/krb5.keytab': command not found
Running 27/64: kvm... could not run 'kvm_stat --once': command not found
Running 29/64: ldap... could not run 'ldapsearch -x -b '' -s base 'objectclass=*'': command not found
could not run 'ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b cn=config '(!(objectClass
could not run 'ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b cn=schema,cn=config dn': command not found
could not run 'ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b cn=config '(olcAccess=*)' olcAccess olcSuffix': command not found
etc until the end.
Running the following confirms that the output indeed comes from stderr :
# sosreport -a --batch 2> /dev/null
sosreport (version 3.1)
This command will collect diagnostic and configuration information from
this Ubuntu system and installed applications.
An archive containing the collected information will be generated in
/tmp and may be provided to a Ubuntu support representative.
Any information provided to Ubuntu will be treated in accordance with
the published support policies at:
The generated archive may contain data considered sensitive and its
content should be reviewed by the originating organization before being
passed to any third party.
No changes will be made to system configuration.
Running plugins. Please wait ...
Running 64/64: xfs...
Creating compressed archive...
Your sosreport has been generated and saved in:
/tmp/
The checksum is: 77021ee8c8c64df
Please send this file to your support representative.
Related branches
Changed in sosreport (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in sosreport (Ubuntu): | |
status: | Triaged → In Progress |
assignee: | nobody → Louis Bouchard (louis-bouchard) |
This bug was fixed in the package sosreport - 3.1-1ubuntu2
---------------
sosreport (3.1-1ubuntu2) trusty; urgency=medium
* Fix spurious "command not found" messages when running (LP: #1303745) cloud-init* .log files (LP: #1301819) interfaces. d (LP: #1303723)
* Add collection of /var/log/
* Add collection of configuration files in /etc/network/
-- Louis Bouchard <email address hidden> Tue, 08 Apr 2014 08:58:08 -0500