This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 1375415 - pmlogger_check failed due to /etc/pcp/pmlogger/control.d/local.rpmsave
pmlogger_check failed due to /etc/pcp/pmlogger/control.d/local.rpmsave
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: pcp (Show other bugs)
24
Unspecified Unspecified
unspecified Severity medium
: ---
: ---
Assigned To: Nathan Scott
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-09-12 23:53 EDT by Mark Goodwin
Modified: 2016-10-25 20:58 EDT (History)
8 users (show)

See Also:
Fixed In Version: 3.11.5-1 pcp-3.11.5-1.el5 pcp-3.11.5-1.fc24 pcp-3.11.5-1.fc23 pcp-3.11.5-1.fc25
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-10-25 12:16:53 EDT
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 Mark Goodwin 2016-09-12 23:53:33 EDT
Description of problem: "pmlogger_check failed" messages in syslog because there are multiple primary logger control files in /etc/pcp/pmlogger/control.d. Presumably the .rpmsave version was left over after an upgrade because it had been modified (I appended -t 30s some time in the past). These files probably should be marked %config(noreplace) in the spec I guess, but after an upgrade we'd end up with local.rpmnew, which would have the same problem.

Version-Release number of selected component (if applicable): 3.11.5-1 (not yet released)

$ grep LOCALHOSTNAME /etc/pcp/pmlogger/control.d/*
/etc/pcp/pmlogger/control.d/local:LOCALHOSTNAME	y   n	PCP_LOG_DIR/pmlogger/LOCALHOSTNAME	-r -T24h10m -c config.default
/etc/pcp/pmlogger/control.d/local.rpmsave:LOCALHOSTNAME	y   n	PCP_LOG_DIR/pmlogger/LOCALHOSTNAME	-r -T24h10m -c config.default -t 30s
Comment 1 Mark Goodwin 2016-09-12 23:58:31 EDT
$ cat /var/log/pcp/pmlogger/pmlogger_check.log
Restarting primary pmlogger for host "local:" ... process exited!
pmlogger_check: Error: failed to restart pmlogger
Current pmlogger processes:
UID        PID  PPID  C STIME TTY          TIME CMD

Contents of pmlogger output file "pmlogger.log" ...
Log for pmlogger on kilcunda started Tue Sep 13 13:55:05 2016
... trimmed ...
Log finished Tue Sep 13 13:55:05 2016
pmlogger_check: [/etc/pcp/pmlogger/control.d/local.rpmsave:3]
Error: Cannot start more than one pmlogger instance for archive directory "/var/log/pcp/pmlogger/kilcunda"
... logging for host "local:" unchanged
Comment 2 Nathan Scott 2016-09-13 00:08:55 EDT
Yeah, I think this is mainly just something that has to be watched for during an RPM upgrade ... but, perhaps we could also ignore any files suffixed with .rpmsave or .rpmnew in that subdirectory?

cheers.
Comment 3 Mark Goodwin 2016-09-13 03:07:11 EDT
Ignore them, but also warn. We could also have a %postin script that checks and warns too.
Comment 6 Mark Goodwin 2016-09-15 02:14:41 EDT
fixed in upstream commit ba1355032bfdc91bfabc39d3a2255015fa92ccb9
Comment 7 Fedora Update System 2016-09-27 16:22:00 EDT
pcp-3.11.5-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-8d14b648a5
Comment 8 Fedora Update System 2016-09-28 01:56:58 EDT
pcp-3.11.5-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-ca5c041e73
Comment 9 Fedora Update System 2016-09-28 02:25:26 EDT
pcp-3.11.5-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-b32e6fdc78
Comment 10 Fedora Update System 2016-09-28 21:16:09 EDT
pcp-3.11.5-1.el5 has been pushed to the Fedora EPEL 5 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-63742f1d5b
Comment 11 Fedora Update System 2016-10-25 12:16:53 EDT
pcp-3.11.5-1.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.
Comment 12 Fedora Update System 2016-10-25 16:21:40 EDT
pcp-3.11.5-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
Comment 13 Fedora Update System 2016-10-25 19:50:48 EDT
pcp-3.11.5-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
Comment 14 Fedora Update System 2016-10-25 20:58:09 EDT
pcp-3.11.5-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

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