Bug 885207 - Move all qpid config files under the qpid config dir
Summary: Move all qpid config files under the qpid config dir
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: 2.3
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: 3.0
: ---
Assignee: Darryl L. Pierce
QA Contact: Ernie
URL:
Whiteboard:
: 678165 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-07 18:58 UTC by Justin Ross
Modified: 2015-06-22 00:08 UTC (History)
8 users (show)

Fixed In Version: qpid-cpp-server-0.22-8
Doc Type: Enhancement
Doc Text:
The qpidd.conf file has changed locations in MRG Messaging 3.0. This change improves consistency by moving Qpid daemon and client configuration under one location. The config file is installed to `/etc/qpid/qpidd.conf`, and the broker now uses this new `qpidd.conf` file. If any changes were made to the old `qpidd.conf` file, it is preserved as `/etc/qpidd.conf.rpmsave` to allow any configuration to be migrated into the new file manually.
Clone Of:
Environment:
Last Closed: 2014-09-24 15:05:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 975046 1 None None None 2021-01-20 06:05:38 UTC
Red Hat Product Errata RHEA-2014:1296 0 normal SHIPPED_LIVE Red Hat Enterprise MRG Messaging 3.0 Release 2014-09-24 19:00:06 UTC

Internal Links: 975046

Description Justin Ross 2012-12-07 18:58:52 UTC
At present qpid installs config files thus:

jross@localhost qpid$ l -d /etc/qpid*
-rw-r--r--. 1 root root 1021 Nov 12 13:28 /etc/qpidd.conf
drwxr-xr-x. 2 root root 4.0K Nov 23 11:13 /etc/qpid
jross@localhost qpid$ l -d /etc/qpid/*.conf
-rw-r--r--. 1 root root 929 Nov 12 13:28 /etc/qpid/qpidc.conf

I propose instead:

/etc/qpid/deamon.conf (was /etc/qpidd.conf)
/etc/qpid/client.conf (was /etc/qpid/qpidc.conf)

The old locations should be supported as fallbacks.

Note that the daemon/client terminology is in keeping with the dir names used for modules:

/usr/lib64/qpid/daemon/acl.so
/usr/lib64/qpid/daemon/replicating_listener.so

Comment 1 Justin Ross 2013-06-28 17:32:30 UTC
New proposal (a little less disruptive):

  /etc/qpid/qpidd.conf (was /etc/qpidd.conf)
  [qpidc.conf is already in the right place]

For this to be complete, we need to add logic to the rpm to migrate config from the old qpidd.conf location to the new one.

Comment 2 Darryl L. Pierce 2013-06-28 20:56:58 UTC
(In reply to Justin Ross from comment #1)
> New proposal (a little less disruptive):
> 
>   /etc/qpid/qpidd.conf (was /etc/qpidd.conf)
>   [qpidc.conf is already in the right place]
> 
> For this to be complete, we need to add logic to the rpm to migrate config
> from the old qpidd.conf location to the new one.

I don't think we want to have the specfile do things like moving around files that the user has edited.


If the user has modified the file then when the upgrade occurs the file should get left behind (and possibly with it renamed with "-rpmsave" appended to it).

If the user didn't modify the file then no problem, the old file will just get deleted.

In either case the new config file will land in /etc/. If the user has modified their original file then they'll be able to copy those changes over. But you don't want to have the specfile itself trying to copy those files around.

Comment 3 Andrew Stitcher 2013-07-15 20:39:11 UTC
I'm not sure that just renaming the old configuration file will adequately indicate to the user that the configuration file location has changed. Is there some way we can indicate that all the use really has to do is move the old file to the new location? It's not like there is any real migration to be done the file format is unchanged it's just in a different location. So there's no danger we will screw up the configuration in the move.

I'd suggest that moving the old config (if it has been changed) from /etc/qpidd.conf->/etc/qpid/qpidd.conf and installing the example as /etc/qpid/qpidd.conf.rpmnew would be a low risk strategy.

You could also leave it as /etc/qpidd.conf.rpmsave as well I suppose (but I think that would be a little confusing myself)

Daryl, is there a specific reason you are opposed to moving the existing configuration?

Comment 4 Darryl L. Pierce 2013-07-15 21:24:55 UTC
(In reply to Andrew Stitcher from comment #3)
> I'm not sure that just renaming the old configuration file will adequately
> indicate to the user that the configuration file location has changed. Is
> there some way we can indicate that all the use really has to do is move the
> old file to the new location? It's not like there is any real migration to
> be done the file format is unchanged it's just in a different location. So
> there's no danger we will screw up the configuration in the move.
> 
> I'd suggest that moving the old config (if it has been changed) from
> /etc/qpidd.conf->/etc/qpid/qpidd.conf and installing the example as
> /etc/qpid/qpidd.conf.rpmnew would be a low risk strategy.
> 
> You could also leave it as /etc/qpidd.conf.rpmsave as well I suppose (but I
> think that would be a little confusing myself)
> 
> Daryl, is there a specific reason you are opposed to moving the existing
> configuration?

The renaming of files, etc. is handled by the packaging software outside of the specfile itself. I spoke with a few people in the #fedora-devel channel when this first came up and the overwhelming response was "don't use the spec to move configuration files around; leave any changes in place and let the sysadmin move the changes themselves".

That way if, for example, they've puppetized their configs they'll know to update their puppet configuration. Or if they're using some other means to automate updating configurations they're on top of it. If we move it for them they may not be aware until their system breaks for some reason.

Comment 5 Justin Ross 2013-07-22 14:41:49 UTC
*** Bug 678165 has been marked as a duplicate of this bug. ***

Comment 6 Justin Ross 2013-08-05 17:58:59 UTC
We're going to with Darryl's recommendation (that is, leave it alone), so this one can be considered dev complete. -> MODIFIED

Comment 7 Ernie 2013-08-30 11:34:49 UTC
rhel 6.4 x84_64
Updated from qpid-cpp-server-0.18-14.el6.x86_64 to qpid-cpp-server-0.22-11.el6.x86_64

rhel 6.4 i696
Updated from qpid-cpp-server-0.18-14.el6.i686 to qpid-cpp-server-0.22-11.el6.i686 

Verified
- new /etc/qpid/qpidd.conf file is installed
- broker now uses new qpidd.conf and not old one
- qpidc.conf is still present and existing changes are still present

Comment 8 Darryl L. Pierce 2014-09-11 14:44:50 UTC
I would change the doc text result to read:

Result: The config file is installed to /etc/qpid/qpidd.conf, and the broker now uses this new qpidd.conf file. The old qpidd.conf file may be preserved as /etc/qpidd.conf.rpmsave, if there were any local changes made, to ensure any configuration can be migrated into the new file manually.

Comment 9 Darryl L. Pierce 2014-09-16 13:49:25 UTC
I still think the text is incorrect:

"The old qpidd.conf file is preserved in /etc/qpidd.conf to ensure any configuration can be migrated into the new file manually."

should really say

"The old qpidd.conf file is preserved _as /etc/qpidd.conf.rpmsave, if there were any local changes made,_ to ensure any configuration can be migrated into the new file manually."

Comment 10 Justin Ross 2014-09-16 13:54:05 UTC
Oh, sorry, I missed your new text.  This should go into the doc text field, not into a comment.

(In reply to Darryl L. Pierce from comment #9)
> I still think the text is incorrect:
> 
> "The old qpidd.conf file is preserved in /etc/qpidd.conf to ensure any
> configuration can be migrated into the new file manually."
> 
> should really say
> 
> "The old qpidd.conf file is preserved _as /etc/qpidd.conf.rpmsave, if there
> were any local changes made,_ to ensure any configuration can be migrated
> into the new file manually."

Comment 11 Darryl L. Pierce 2014-09-16 14:16:02 UTC
(In reply to Justin Ross from comment #10)
> Oh, sorry, I missed your new text.  This should go into the doc text field,
> not into a comment.

Done.

Comment 12 Darryl L. Pierce 2014-09-18 12:15:40 UTC
I'm not sure why this was changed back to the previous, incorrect text. RPM configuration files are saved with ".rpmsave" added to the end, per my previous change to the doctext.

Comment 13 errata-xmlrpc 2014-09-24 15:05:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2014-1296.html


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