| Summary: | pcp should use systemd | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | jcpunk |
| Component: | pcp | Assignee: | Nathan Scott <nathans> |
| Status: | CLOSED ERRATA | QA Contact: | Miloš Prchlík <mprchlik> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.0 | CC: | csieh, cww, fche, mbenitez, mcermak, mgoodwin, misterbonnie, mprchlik, nathans, ovasik, pdwyer, pneedle, riehecky, sauchter, vgaikwad |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | pcp-3.9.10-4.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-03-05 09:40:32 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: | |
| Bug Depends On: | |||
| Bug Blocks: | 1064025 | ||
|
Description
jcpunk
2013-12-18 19:44:10 UTC
Quick status update on this one, I'd forgot to make a note here. An initial investigation was done a little while ago into switching over to native systemd daemon startup mechanisms, rather than the existing init script mechanism. There are a couple of complications which make this not a straight/simple swap, but I believe they are solvable. Firstly, two of the init scripts (pmlogger, pmie) do not have a one-script-one-daemon mapping - in a distributed monitoring situation, they may have been configured to start multiple daemons for multiple remote hosts. I think I know how to tackle this now with systemd, but this had me confused/stumped for awhile. Second, some of the scripts have before-hand-scripting that needs to be run before the daemon is started - I also was unsure how to tackle this before, but there appears to be multiple options here on closer examination. These two specific issues aside, the biggest remaining problem is the testsuite. This contains several hundred tests, many of which make use of the existing init scripts directly. This will need to be audited, and the scripts modified to conditionally use the systemd daemon startup command variants for platforms like RHEL7 & current Fedora (but not RHEL6 and earlier Fedoras, or the many other platforms PCP supports). So, there are no blockers to this work going ahead, and go ahead it will - it does have larger scope than one might initially anticipate, however. Note that the degree of systemd support in this release is minimal: it wraps/hides the old sysvinit scripts as ExecStart/ExecStop oneshot invocations. A fuller solution would perhaps: - have the daemons use stderr/syslog to record trace output into the journal - invoke the daemons directly rather than through the sysvinit scripts - use systemd timer units instead of cron jobs - use unit templates for hard-configured multi-instance daemons (pmlogger, pmie) - socket activation for pmcd, pmproxy, pmwebd - add extras like Restart=restart-always for key daemons Verified for build pcp-3.9.10-8.el7, with regard to degree of support mentioned in comment #15. 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://rhn.redhat.com/errata/RHBA-2015-0413.html |