Bug 1381116 - PCP PMDA Installation Fails
Summary: PCP PMDA Installation Fails
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: pcp
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nathan Scott
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-03 05:05 UTC by Marko Myllynen
Modified: 2017-02-01 00:35 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-01 00:35:04 UTC
Type: Bug


Attachments (Terms of Use)

Description Marko Myllynen 2016-10-03 05:05:45 UTC
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 05:36:31 UTC
> [...]
> 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 07:09:55 UTC
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-02-01 00:35:04 UTC
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.