This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 1374703 - pm{log,ie}conf refuse to update e.g. empty files
pm{log,ie}conf refuse to update e.g. empty files
Status: CLOSED DUPLICATE of bug 1249123
Product: Fedora
Classification: Fedora
Component: pcp (Show other bugs)
rawhide
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Nathan Scott
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-09-09 09:01 EDT by Frank Ch. Eigler
Modified: 2016-09-26 02:25 EDT (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: 2016-09-26 02:25:51 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 Frank Ch. Eigler 2016-09-09 09:01:58 EDT
The *conf tools are unfriendly to output files that have imperfect contents.  For example, a system crash could leave empty files where preexisting config files would be, and then pm*conf refuse to recreate them.  This behaviour is undocumented, and makes program-invoked use of pm*conf more complicated.  In particular, service-pmlogger's intermittent use of pmlogconf is crippled if the .../pmlogger/config.default file gets zeroed somehow.

% touch /tmp/foo
% pmlogconf -c /tmp/foo
pmlogconf: Error: existing "/tmp/foo" is not a pmlogconf control file
% pmieconf -f /tmp/foo 
pmieconf: error - /tmp/foo is not a rule customization file (bad header)
% pmieconf -F -f /tmp/foo
pmieconf: error - /tmp/foo is not a rule customization file (bad header)

These tools should be made more suitable for program-invoked use.
Comment 1 Frank Ch. Eigler 2016-09-11 07:59:23 EDT
"For example, a system crash could leave empty files"

So could a filesystem filling up.
Comment 2 Nathan Scott 2016-09-26 02:25:51 EDT

*** This bug has been marked as a duplicate of bug 1249123 ***

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