Bug 1196543 - [RFE] systemd-style configuration files search path, /etc overriding /usr
Summary: [RFE] systemd-style configuration files search path, /etc overriding /usr
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: pcp
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: pcp-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1185740
TreeView+ depends on / blocked
 
Reported: 2015-02-26 08:50 UTC by Stef Walter
Modified: 2019-03-05 04:29 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-03-05 04:29:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Stef Walter 2015-02-26 08:50:30 UTC
I'd like to suggest that PCP components are able to run without an /etc/pcp.conf file.

I understand there need to be defaults, and I would suggest these be moved into /usr/share or /usr/lib ... with /etc/pcp.conf only providing overrides.

This allows for PCP to be robust when it comes to upgrades ... image based systems, versioning of /etc, and so on.

Version-Release number of selected component (if applicable):

pcp-3.10.2-1.fc21.x86_64

Comment 1 Frank Ch. Eigler 2015-02-26 11:35:48 UTC
Stef, can you elaborate on the perceived lack of "robustness when it comes to upgrades"?  What's an example problem scenario?

Comment 2 Stef Walter 2015-02-26 12:24:55 UTC
Someone changes a setting in /etc/pcp.conf, an upgrade happens (eg: whether in RHEL or on an image based system like a container or Atomic) which expects different defaults, or a new default ... and then things stop working.

Comment 3 Frank Ch. Eigler 2015-02-26 13:26:41 UTC
Sorry, I don't quite see what's different here from any other /etc configuration file for any other package.

Comment 4 Stef Walter 2015-02-26 13:53:36 UTC
A lot of services are moving towards a setup where they have their default and/or OS provided configuration in /usr and /etc is owned by the admin, and contains admin or system specific configuration.

A classic example of this is systemd.

Hence the RFE. It would be great if we could get PCP to a maintenance free mode, where it is not broken by inattention, upgrades, or such common failure modes. This is just one aspect of that.

Comment 5 Frank Ch. Eigler 2015-02-26 14:14:26 UTC
OK, so if I my paraphrase what you're asking for, it's so that PCP ought have a search path of pcp.conf fields, with a file in /usr and a file from /etc, the latter only to contain overrides.  This being considered as superior to the classical .rpmsave/.rpmorig style of modified-configuration-file handling.

This is a reasonable idea, but needs better scoping.  As you know, there are numerous configuration files used in pcp, not just pcp.conf.  If anything, pcp.conf is one of the most -static- in any standard installation.  (Perhaps your experience was otherwise due to the /opt relocation kludge for cockpit-bridge?
Did you know that the /etc/pcp.conf path name itself may be overridden in clients via the $PCP_CONF environment variable?)

Comment 6 Stef Walter 2015-02-26 14:18:56 UTC
Yes, you articulated it well.

In our case this was highlighted by the fact that missing or incorrect pcp.conf caused an exit(1) in the library. That symptom caused me to think further about the core maintenance issue, and hence this RFE.

Comment 7 Fedora End Of Life 2015-11-04 10:28:14 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 8 Fedora End Of Life 2015-12-02 09:29:06 UTC
Fedora 21 changed to end-of-life (EOL) status on 2015-12-01. Fedora 21 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 9 Tadej Janež 2015-12-14 09:29:05 UTC
Fedora EOL script wrongly closed this, reopening...

Comment 10 Nathan Scott 2019-03-05 04:29:53 UTC
An interesting idea Stef, but realistically its not going to get developer attention with all the other pcp work we have on our plates.  :(  Not to discourage the idea - anyone who can, should please contribute an implementation upstream of course and those changes will flow back to Fedora through the usual update process.


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