Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1805146

Summary: pmlogger_daily_report causing PCP upstream testsuite to fail
Product: Red Hat Enterprise Linux 8 Reporter: Jan Kurik <jkurik>
Component: pcpAssignee: Mark Goodwin <mgoodwin>
Status: CLOSED DUPLICATE QA Contact: Jan Kurik <jkurik>
Severity: low Docs Contact:
Priority: medium    
Version: 8.2CC: agerstmayr, jkurik, mgoodwin, nathans, patrickm
Target Milestone: rcKeywords: Triaged
Target Release: 8.3Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: All   
Whiteboard:
Fixed In Version: pcp-5.0.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-19 04:19:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Kurik 2020-02-20 11:24:07 UTC
Description of problem:
When /usr/libexec/pcp/bin/pmlogger_daily_report is triggered by cron/systemd before PCP upstream testsuite runs for the first time, the testsuite fails with the following message:

000 - failed permissions check

Version-Release number of selected component (if applicable):
This issue is reproducible at least on all PCP-4.x and on all already released PCP-5.x releases (the latest currently available version is pcp-5.0.2-4.el8)

How reproducible:
Always

Steps to Reproduce:
1. On a fresh installation of RHEL (i.e. RHEL-7.7 or RHEL-8.2) install PCP and the upstream testsuite
# yum install -y pcp-zeroconf pcp-testsuite
2. Make sure /var/log/pcp/sa does not yet exist
# [[ -d /var/log/pcp/sa ]] & rm -rf /var/log/pcp/sa
3. Either wait until "pmlogger_daily_report-poll.timer" is fired or manually trigger the service
# systemctl start pmlogger_daily_report-poll.service
4. Run the initial check of upstream testsuite
# cd /var/lib/pcp/testsuite && ./check 000

Actual results:
The check fails with the following error message:

000 - failed permissions check

Expected results:
The check passes.

Additional info:
The "./check 000" command generates the following output in "000.out.bad" file:

*** Failed permissions/ownership checks ***
/var/log/pcp/sa: wrong mode: expected 775 (from src/pmlogger/GNUmakefile), found 755
drwxr-xr-x. 2 pcp pcp 6 Feb 20 05:28 /var/log/pcp/sa

Comment 1 Jan Kurik 2020-02-20 11:46:56 UTC
Proposed fix: https://github.com/performancecopilot/pcp/pull/847

Comment 2 Mark Goodwin 2020-02-21 06:24:44 UTC
merged Jan's fix from https://github.com/performancecopilot/pcp/pull/847 into upstream master branch, commit b8e452474bb0384205fd311b8a99063fb98f5be6

Comment 4 Jan Kurik 2020-06-12 15:31:45 UTC
Verified on pcp-5.1.1-2.el8 build.