Bug 1930284

Summary: pmie does not start without locally running pmcd
Product: Red Hat Enterprise Linux 8 Reporter: Jan Kurik <jkurik>
Component: pcpAssignee: Nathan Scott <nathans>
Status: CLOSED ERRATA QA Contact: Jan Kurik <jkurik>
Severity: medium Docs Contact: Apurva Bhide <abhide>
Priority: medium    
Version: 8.4CC: agerstmayr, cww, jkurik, jwboyer, mgoodwin, mpitt, nathans, patrickm
Target Milestone: rcKeywords: Bugfix, Regression, Triaged
Target Release: 8.4Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pcp-5.2.5-4.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 15:20:04 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 2021-02-18 16:10:13 UTC
Description of problem:
When pmie is configured to connect to a remote pmcd, it still needs a locally run pmcd to start. Not having locally running pmcd leads to fail of pmie.service start.

Version-Release number of selected component (if applicable):
* pcp-5.2.5-3.el8

How reproducible:
Always

Steps to Reproduce:
1. Install a pcp-5.2.5-3.el8 on RHEL-8.4 on two machines
2. Start pmcd on one of those machines
3. On the second machine configure pmie in /etc/pcp/pmie/control to use the pmcd on the first machine
4. Start pmie service on the second machine

Actual results:
The start of pmie on the second machine fails after 60 seconds:

# systemctl start pmie
Job for pmie.service failed because the control process exited with error code.
See "systemctl status pmie.service" and "journalctl -xe" for details.

Expected results:
The pmie service starts successfully.

Additional info:
Diving into the /usr/libexec/pcp/lib/pmie script, used by pmie unit file to start the pmie service, shows the issue is with "pmcd_wait" which tries to connect pmcd via "unix:" socket instead of connecting to the remote pmcd. The "pmcd_wait" imo needs to be run with "--host" switch pointing to the remote pmcd as configured in /etc/pcp/pmie/control file.

Comment 1 Nathan Scott 2021-02-18 23:46:04 UTC
After chatting with Andreas today, we're going to back out the (one-line) unit file change and rethink our options in the 8.5 timeframe.

Comment 4 Nathan Scott 2021-02-19 00:23:35 UTC
*** Bug 1929556 has been marked as a duplicate of this bug. ***

Comment 7 Martin Pitt 2021-02-19 08:52:46 UTC
*** Bug 1929556 has been marked as a duplicate of this bug. ***

Comment 17 errata-xmlrpc 2021-05-18 15:20:04 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