Bug 1062443
| Summary: | gfs2 PMDA: Error Parsing ASCII PMNS: pmcpp returned non-zero exit status | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Andrew Price <anprice> | ||||||
| Component: | pcp | Assignee: | Nathan Scott <nathans> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Miloš Prchlík <mprchlik> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 7.0 | CC: | fche, mbenitez, mcermak, mgoodwin, mprchlik, pevans, swhiteho | ||||||
| Target Milestone: | rc | Keywords: | Reopened | ||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2014-06-13 12:15:47 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
Andrew Price
2014-02-07 00:05:10 UTC
Hi Andrew - thanks for reporting it - if you do:
# service pmcd start
before attempting the ./Install, does the installation proceed correctly?
Ah yes, it does. I wasn't aware that pmcd had to be started beforehand. Feel free to close this as PEBKAC or maybe switch it to a documentation bug if you think it's worth it. Thanks! Thanks for checking. Yeah, the failure mode of the script leaves alot to be desired in this case. I'll look into improving that, so will keep this BZ open until I've done that. cheers. I've posted two patches to the pcp mailing list, An update to the documentation (README file and the man page) for the pmdagfs2 along with a patch which checks if pmcd is running before attempting to install the pmda. Created attachment 860469 [details]
Updates to documentation to mention that pmcd should be running before install attempt
Created attachment 860470 [details]
Update to Install script to check pmcd is running
Thanks for working on this Paul. Just one nit:
+ps cax | grep pmcd > /dev/null
+if [ $? -eq 0 ]; then
isn't a reliable way to check whether a service is running. Ideally you want a client to try to connect to it. Maybe use something like this instead:
if pminfo -f pmcd.version; then
This issue is now tackled by upstream commit 0b1500ff (below). Following on from Andrews comment #3 here, I'll close this bug now & mark it as "fixed upstream" (i.e. it will percolate down into RHEL in due course, if I've interpreted that state correctly this time!) commit 0b1500ff74341c54c3da4412eb8ee8db9c58cf41 Author: Nathan Scott <nathans> Date: Tue Feb 11 09:54:07 2014 +1100 Allow PMDA Install scripts to be run even when pmcd is stopped. Following the Install recipe from the GFS2 PMDA man page, users can run into difficulty if pmcd is not running first. There's no mention of that, and the error message is cryptic. This fix extends the generic PMDA installation process to allow any PMDA to kick-start the pmcd process if it needs to. The one wrinkle there is a chicken-and-egg with the namespace setup, but that's tackled via addition of a Rebuild call in the right spot. Reported by Andrew Price, tested by Paul Evans, myself and now also PCP QA test 755. Resolves Red Hat bug #1062443. Should this not be blocker rather than exception, since it is a bug fix? Verified for build pcp-3.8.10-6.el7. This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |