[openstack-dev] [packaging] how to deal with the rename of config files in neutron on upgrade?

Matt Riedemann mriedem at linux.vnet.ibm.com
Thu Jul 2 18:27:55 UTC 2015



On 7/2/2015 10:39 AM, Kyle Mestery wrote:
> On Thu, Jul 2, 2015 at 10:35 AM, Matt Riedemann
> <mriedem at linux.vnet.ibm.com <mailto:mriedem at linux.vnet.ibm.com>> wrote:
>
>     This change in neutron [1] renames the linuxbridge and openvswitch
>     plugin config files.  I'm familiar with the %config(noreplace)
>     directive in rpm but I'm not sure if there is a special trick with
>     rpm to rename a config file while not losing the changes in the
>     config file during the upgrade.
>
>     Is this just something that has to be handled with trickery in the
>     %post macro where we merge the contents together if the old config
>     file exists?  Would symbolic links help?
>
>     Changes like this seem like a potential giant pain in the ass for
>     packagers.
>
>
> While a pain in the ass, this should have been done when we deprecated
> the agents two cycles ago, so this was really just bleeding the pain out
> longer. I flagged this as DocImpact so we can add a documentation note,
> and we'll update the Release Notes with this as well.
>
>     [1] https://review.openstack.org/#/c/195277/
>
>     --
>
>     Thanks,
>
>     Matt Riedemann
>
>
>     __________________________________________________________________________
>     OpenStack Development Mailing List (not for usage questions)
>     Unsubscribe:
>     OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
>     <http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe>
>     http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>

Yeah, I'm just looking for ideas. Someone mentioned you could just copy 
the existing config and name it the new config so it'd have the old 
settings, and on install rpm won't overwrite it b/c of 
%config(noreplace).  That's something easy to do in %pre or %post.

-- 

Thanks,

Matt Riedemann




More information about the OpenStack-dev mailing list