pcp
[Top] [All Lists]

[Bug 1374703] New: pm{log,ie}conf refuse to update e.g. empty files

To: pcp@xxxxxxxxxxx
Subject: [Bug 1374703] New: pm{log,ie}conf refuse to update e.g. empty files
From: bugzilla@xxxxxxxxxx
Date: Fri, 09 Sep 2016 13:01:58 +0000
Auto-submitted: auto-generated
Delivered-to: pcp@xxxxxxxxxxx
https://bugzilla.redhat.com/show_bug.cgi?id=1374703

            Bug ID: 1374703
           Summary: pm{log,ie}conf refuse to update e.g. empty files
           Product: Fedora
           Version: rawhide
         Component: pcp
          Assignee: nathans@xxxxxxxxxx
          Reporter: fche@xxxxxxxxxx
        QA Contact: extras-qa@xxxxxxxxxxxxxxxxx
                CC: brolley@xxxxxxxxxx, fche@xxxxxxxxxx, lberk@xxxxxxxxxx,
                    mgoodwin@xxxxxxxxxx, nathans@xxxxxxxxxx,
                    pcp@xxxxxxxxxxx, scox@xxxxxxxxxx



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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug 
https://bugzilla.redhat.com/token.cgi?t=hNCSESvbKa&a=cc_unsubscribe
<Prev in Thread] Current Thread [Next in Thread>