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 1839666 - pmafm does not work with compressed archives
Summary: pmafm does not work with compressed archives
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: pcp
Version: 8.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Mark Goodwin
QA Contact: Jan Kurik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-25 08:32 UTC by Jan Kurik
Modified: 2021-09-17 12:44 UTC (History)
5 users (show)

Fixed In Version: pcp-5.2.1
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 15:19:30 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jan Kurik 2020-05-25 08:32:57 UTC
Description of problem:
pmafm does not work with compressed archives. If a folio is created using mkaf from set of compressed archives, then pmafm reports errors accessing these archives.

Version-Release number of selected component (if applicable):
pcp-5.1.0-2.el8
(note: this is also reproducible on older pcp-4.3.2 releases).


How reproducible:
Always

Steps to Reproduce:
1. Run pmlogger for some time (5 mins. i.e.)
# systemctl start pmcd pmlogger; sleep 360
2. Restart pmlogger to rotate archives
# systemctl restart pmlogger
3. Compress old archives
# /usr/libexec/pcp/bin/pmlogger_daily -K
4. Create a folio
# /usr/libexec/pcp/bin/mkaf /var/log/pcp/pmlogger/$(hostname) \
  > /tmp/pcp.compressed.archives.folio
5. Check the folio
# pmafm /tmp/pcp.compressed.archives.folio check

Actual results:
The output of the pmafm looks like this:

Archive: /var/log/pcp/pmlogger/ci-vm-10-0-137-213.hosted.upshift.rdu2.redhat.com/20200525.04.16 ... Errors
No such file: /var/log/pcp/pmlogger/ci-vm-10-0-137-213.hosted.upshift.rdu2.redhat.com/20200525.04.16.meta
No such file: /var/log/pcp/pmlogger/ci-vm-10-0-137-213.hosted.upshift.rdu2.redhat.com/20200525.04.16.0
Archive: /var/log/pcp/pmlogger/ci-vm-10-0-137-213.hosted.upshift.rdu2.redhat.com/20200525.04.18 ... OK

Here is a list of the /var/log/pcp/pmlogger/$(hostname) directory:
# ls -1 /var/log/pcp/pmlogger/$(hostname)
20200525.04.16.0.xz
20200525.04.16.index
20200525.04.16.meta.xz
20200525.04.18.0
20200525.04.18.index
20200525.04.18.meta
Latest
pmlogger.log
pmlogger.log.prior

Expected results:
pmafm works with compressed archives as well as with uncompressed ones. As such the expected output of the pmafm should look like this:

Archive: /var/log/pcp/pmlogger/ci-vm-10-0-137-213.hosted.upshift.rdu2.redhat.com/20200525.04.16 ... OK
Archive: /var/log/pcp/pmlogger/ci-vm-10-0-137-213.hosted.upshift.rdu2.redhat.com/20200525.04.18 ... OK

Additional info:

Comment 1 Jan Kurik 2020-05-27 13:11:35 UTC
Proposed patch: https://github.com/performancecopilot/pcp/pull/931

Comment 2 Mark Goodwin 2020-09-18 07:03:18 UTC
Resolved upstream with commit:

commit 7a687217d813ae066cc43e871614d9580774b5d6
Author: Jan Kurik <jkurik>
Date:   Wed May 27 15:03:53 2020 +0200

    Make sure mkafm commands "check" and "remove" can work with compressed archives

Comment 9 errata-xmlrpc 2021-05-18 15:19:30 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 (pcp bug fix and enhancement update), 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/RHBA-2021:1754


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