Red Hat Bugzilla – Bug 1381116
PCP PMDA Installation Fails
Last modified: 2017-01-31 19:35:04 EST
Description of problem: [root@localhost libvirt]# pwd /var/lib/pcp/pmdas/libvirt [root@localhost libvirt]# ./Install You will need to choose an appropriate configuration for installation of the "libvirt" Performance Metrics Domain Agent (PMDA). collector collect performance statistics on this system monitor allow this system to monitor local and/or remote systems both collector and monitor configuration for this system Please enter c(ollector) or m(onitor) or b(oth) [b] c Updating the Performance Metrics Name Space (PMNS) ... Terminate PMDA if already installed ... Updating the PMCD control file, and notifying PMCD ... Waiting for pmcd to terminate ... Starting pmcd ... [Mon Oct 3 08:00:43] pmcd(3831) Error: OpenRequestSocket(44321, INADDR_ANY, inet) __pmBind: Address already in use [Mon Oct 3 08:00:43] pmcd(3831) Error: pmcd may already be running [Mon Oct 3 08:00:43] pmcd(3831) Error: OpenRequestSocket(44321, INADDR_ANY, ipv6) __pmBind: Address already in use [Mon Oct 3 08:00:43] pmcd(3831) Error: pmcd may already be running [Mon Oct 3 08:00:43] pmcd(3831) Error: OpenRequestSocket(0, /var/run/pcp/pmcd.socket, unix) __pmBind: Address already in use [Mon Oct 3 08:00:43] pmcd(3831) Error: pmcd may already be running [Mon Oct 3 08:00:43] pmcd(3831) Error: pmcd: can't open any request ports, exiting [Mon Oct 3 08:00:43] pmcd(3831) Error: pmcd not started due to errors! Check libvirt metrics have appeared ... 1 warnings, 1 metrics and 0 values [root@localhost libvirt]# pminfo libvirt | wc -l 1 [root@localhost libvirt]# systemctl restart pmcd [root@localhost libvirt]# pminfo libvirt | wc -l 72 [root@localhost libvirt]# getenforce Permissive [root@localhost libvirt]# Version-Release number of selected component (if applicable): pcp-3.11.5-1.fc24.x86_64 pcp-pmda-libvirt-3.11.5-1.fc24.x86_64 How reproducible: Always
> [...] > How reproducible: > Always Something whacky there - no problems here, and this kind of catastrophic failure from pmdaproc.sh would be affecting everyone (and many QA tests). Marko confirmed on IRC that after setting forced_restart=false the libvirt PMDA Install proceeds successfully. Probably high time we made that the default, as we've been planning to for ages - I'll get that in for the next release.
Steps to reproduce: 1. Install Fedora 24 Server 2. Update, put SELinux to Permissive 3. Install PCP, enable pmcd/pmlogger/pmie 4. Install pcp-pmda-libvirt from updates-testing 5. Continue as in comment#0
This bug can no longer happen since the forced_restart=true was removed from the Install script (i.e. since pcp-3.11.6).