Bug 1833647
| Summary: | pmlogger service fails to reload properly, printing confusing messages in the log | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Renaud Métrich <rmetrich> | ||||
| Component: | pcp | Assignee: | Mark Goodwin <mgoodwin> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Jan Kurik <jkurik> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 8.3 | CC: | agerstmayr, jkurik, mcermak, mgoodwin, mnewsome, nathans, patrickm, peter.vreman, pkhedeka | ||||
| Target Milestone: | rc | Keywords: | Bugfix, Reopened, Triaged, VerifiedUpstream | ||||
| Target Release: | 8.4 | Flags: | pm-rhel:
mirror+
|
||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | pcp-5.2.5-1.el8 | Doc Type: | No Doc Update | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2021-05-18 15:19:30 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: | |||||||
| Attachments: |
|
||||||
|
Description
Renaud Métrich
2020-05-09 11:20:44 UTC
Important: this is even worse on RHEL8 since pmlogger will wait for 120 seconds before respinning, whereas on RHEL7 it is immediate. I'm reopening this BZ since BZ #1806428 doesn't fix this. Systemd units can explicitly set a umask with the UMask= directive in the [Service] section. So we could add Umask=0002 in each /usr/lib/systemd/system/pm*.service Note that's "Umask" with an uppercase 'U'. This change should be benign on systems that don't twiddle with the umask. (In reply to Mark Goodwin from comment #14) > Systemd units can explicitly set a umask with the UMask= directive in the > [Service] section. > > So we could add Umask=0002 in each /usr/lib/systemd/system/pm*.service > Note that's "Umask" with an uppercase 'U'. This change should be benign on > systems that don't twiddle with the umask. That's not the right fix - PCP runs on systems which don't use systemd too. Created attachment 1747315 [details]
Set umask in pmlogger and pmie check scripts
I'm running tests with the attached patch now. 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 |