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 1613328 - PCP fails to merge empty archive and daily house keeping aborted
Summary: PCP fails to merge empty archive and daily house keeping aborted
Keywords:
Status: CLOSED DUPLICATE of bug 1647308
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pcp
Version: 7.5
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Mark Goodwin
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-07 12:14 UTC by Piyush Bhoot
Modified: 2019-08-08 02:55 UTC (History)
4 users (show)

Fixed In Version: pcp-4.3.2-2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-09 23:11:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
error log (3.42 KB, text/plain)
2018-08-07 12:14 UTC, Piyush Bhoot
no flags Details
archives (12.10 MB, application/x-xz)
2018-08-07 12:18 UTC, Piyush Bhoot
no flags Details

Description Piyush Bhoot 2018-08-07 12:14:46 UTC
Created attachment 1473968 [details]
error log

Description of problem:

PCP fails to merge an empty (non zero size) archive. In the end the archive merging is then completely skipped and also no compression and further housekeeping is done.

The non-empty archive could have been created by a start service restart and the disk was full to write more data.

Version-Release number of selected component (if applicable):
pcp-3.11.8-7.el7.x86_64            

How reproducible:
Issue occurring on customer end.

Expected results:

Expectation is that the merging works and skips the archive. Because with the current broken situation I as a user can also not proceed. And instead I am left with a system that is getting more full


Additional info:
attaching error log and archive to the case.


Currently customer has worked around the issue with a daily cron

# TODO Hilti workaround to make sure old files are deleted even when the pmlogger_daily fails during merging
05      0  *  *  *  pcp  find /var/log -maxdepth 1 -mtime +<%= @pmlogger_retention_days + 1 %> -type f -delete

Comment 2 Piyush Bhoot 2018-08-07 12:18:06 UTC
Created attachment 1473971 [details]
archives

Comment 3 Piyush Bhoot 2018-09-07 14:22:44 UTC
Hi, Any thoughts on this bug?

Comment 4 Nathan Scott 2018-09-11 23:00:27 UTC
Hi Piyush,

(In reply to Piyush Bhoot from comment #3)
> Hi, Any thoughts on this bug?

There's definitely room for improvement here.  This note...

> The non-empty archive could have been created by a start service restart and the disk was full to write more data.

I don't completely follow.  Regular pmlogger service stop, start or restart actions will not cause archive corruption - however, filesystem fullness could.

There has been significant progress toward avoiding that situation in 7.6 however, so the priority of this BZ is less urgent than it otherwise would be.  We do plan further resilience work in pmlogger, however, so leaving this BZ open for when we tackle that.

cheers.


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