RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 893570 - sos generates broken tarballs when no data is collected
Summary: sos generates broken tarballs when no data is collected
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sos
Version: 6.4
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Bryn M. Reeves
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks: 906066
TreeView+ depends on / blocked
 
Reported: 2013-01-09 13:35 UTC by Bryn M. Reeves
Modified: 2014-01-22 17:08 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-22 17:08:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Bryn M. Reeves 2013-01-09 13:35:38 UTC
Description of problem:
When no module collects command or file data the generated tarball is a bit strange:

# tar xf sosreport-rhn-support-bmr-20130109133156-ce9c.tar.xz
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors

It _is_ a valid tar archive:

# unxz sosreport-rhn-support-bmr-20130109133156-ce9c.tar.xz
# file sosreport-rhn-support-bmr-20130109133156-ce9c.tar
sosreport-rhn-support-bmr-20130109133156-ce9c.tar: POSIX tar archive (GNU)


Version-Release number of selected component (if applicable):
2.2-*.el6

How reproducible:
100% with an affected module

Steps to Reproduce:
1. Create a "null" plugin that does nothing in setup()
2. Run sosreport with -o null
3. Check generated tarball with tar xf
  
Actual results:
# tar xf sosreport-rhn-support-bmr-20130109133156-ce9c.tar.xz
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors

Expected results:
<tarball unpacks>

Additional info:
Found during testing of the Postgres module (bug 852049) but not related to those changes.

This also seems to relate to a strange effect where we collect some SELinux information even when no modules are enabled. I noticed this some time ago but it's never been a high priority since it does not actually break anything.

Comment 4 Bryn M. Reeves 2013-07-25 14:24:50 UTC
Still had no time to track this down properly. It's also very low prio.

Comment 6 Bryn M. Reeves 2014-01-22 14:46:59 UTC
I can reproduce this with straight GNU tar/xz; it's straightforward to reproduce even with a single dir/file:

# mkdir foo
# touch foo/bar
# tar cf foo.tar foo
# tar tf foo.tar 
foo/
foo/bar
# xz foo.tar
# file foo.tar.xz 
foo.tar.xz: xz compressed data
# tar tf foo.tar.xz
tar: This does not look like a tar archive
foo/
foo/bar
tar: Exiting with failure status due to previous errors

I'm still not clear on the exact conditions needed to trigger the behaviour though.

Comment 7 Bryn M. Reeves 2014-01-22 17:08:53 UTC
This turns out to be a problem in GNU tar (that was fixed upstream in 2010 just after RHEL6's 1.23 came out). I've filed bug 1056672 to get this included in RHEL.


Note You need to log in before you can comment on or make changes to this bug.