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 1609135 - ceph plugin should not collect /var/lib/ceph/tmp/*mnt*
Summary: ceph plugin should not collect /var/lib/ceph/tmp/*mnt*
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sos
Version: 7.6
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 7.6
Assignee: Pavel Moravec
QA Contact: Miroslav Hradílek
URL:
Whiteboard:
Depends On:
Blocks: 1614955
TreeView+ depends on / blocked
 
Reported: 2018-07-27 05:36 UTC by Miroslav Hradílek
Modified: 2018-10-30 10:34 UTC (History)
5 users (show)

Fixed In Version: sos-3.6-4.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1614955 (view as bug list)
Environment:
Last Closed: 2018-10-30 10:33:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github sosreport sos pull 1388 0 None None None 2018-07-27 06:31:32 UTC
Red Hat Product Errata RHEA-2018:3144 0 None None None 2018-10-30 10:34:57 UTC

Description Miroslav Hradílek 2018-07-27 05:36:53 UTC
Description of problem:
As part of a bug 1449904 there was a forbidden path for mnt files in /var/lib/ceph/tmp/. After update, sosreport collects them again. 

I believe this is a regression caused by accidentally removing leading "/" character:
"var/lib/ceph/tmp/*mnt*"
 vs.
"/var/lib/ceph/tmp/*mnt*"


Version-Release number of selected component (if applicable):
Unreleased! sos-3.6-3.el7.noarch

How reproducible:
100%

Steps to Reproduce:
# mkdir -p /var/lib/ceph/tmp
# echo "mock" > /var/lib/ceph/tmp/mnt.12345
# sosreport --all-logs -o ceph -v -v -v --batch

Actual results:
. . .
[plugin:ceph] recursively adding 'tmp' from '/var/lib/ceph/'
[plugin:ceph] recursively adding 'mnt.12345' from '/var/lib/ceph/tmp'
[plugin:ceph] copying path '/var/lib/ceph/tmp/mnt.12345' to archive:'/var/lib/ceph/tmp/mnt.12345'
. . .
Your sosreport has been generated and saved in:
  /var/tmp/sosreport-sheep-7-2018-07-27-cqernoe.tar.xz
. . .
# tar -tf /var/tmp/sosreport-sheep-7-2018-07-27-cqernoe.tar.xz | grep mnt.12345
sosreport-sheep-7-2018-07-27-cqernoe/var/lib/ceph/tmp/mnt.12345

Expected results:
(output from sos-3.5-9.el7_5.noarch)
. . .
[plugin:ceph] recursively adding 'tmp' from '/var/lib/ceph/'
[plugin:ceph] recursively adding 'mnt.12345' from '/var/lib/ceph/tmp'
[plugin:ceph] skipping forbidden path '/var/lib/ceph/tmp/mnt.12345'
. . .
Your sosreport has been generated and saved in:
  /var/tmp/sosreport-sheep-7.lab.eng.brq.redhat.com-20180727051840.tar.xz
. . .
# tar -tf /var/tmp/sosreport-sheep-7.lab.eng.brq.redhat.com-20180727051840.tar.xz | grep mnt.12345

Comment 2 Pavel Moravec 2018-07-27 06:31:33 UTC
Indeed, https://github.com/sosreport/sos/commit/29a40b793345443b1fa71ca268858eb5536ecd8d#diff-b83da889da0171d319901e2273793b32 wrongly updated several forbidden paths.

Good catch.

Comment 6 errata-xmlrpc 2018-10-30 10:33:42 UTC
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://access.redhat.com/errata/RHEA-2018:3144


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