This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 1381116 - PCP PMDA Installation Fails
PCP PMDA Installation Fails
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: pcp (Show other bugs)
24
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Nathan Scott
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-10-03 01:05 EDT by Marko Myllynen
Modified: 2017-01-31 19:35 EST (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-01-31 19:35:04 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Marko Myllynen 2016-10-03 01:05:45 EDT
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
Comment 1 Nathan Scott 2016-10-03 01:36:31 EDT
> [...]
> 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.
Comment 2 Marko Myllynen 2016-10-03 03:09:55 EDT
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
Comment 3 Nathan Scott 2017-01-31 19:35:04 EST
This bug can no longer happen since the forced_restart=true was removed from the Install script (i.e. since pcp-3.11.6).

Note You need to log in before you can comment on or make changes to this bug.