[PKG-Openstack-devel] Bug#770941: Bug#770941: nova-common - Overrides database config in nova.conf

Thomas Goirand thomas at goirand.fr
Thu Dec 18 16:37:07 UTC 2014


On 11/25/2014 07:37 PM, Bastian Blank wrote:
> Package: nova-common
> Version: 2014.1.3-6
> Severity: serious
> 
> A simple upgrade or re-install of nova-common overrides the database
> settings in nova.conf:
> 
> | diff -ur nova/nova.conf /etc/nova/nova.conf
> | --- nova/nova.conf      2014-10-02 15:09:04.672855761 +0200
> | +++ /etc/nova/nova.conf 2014-11-25 12:02:37.194997496 +0100
> | @@ -349,7 +349,7 @@
> |  # DATABASE #
> |  ############
> |  [database]
> | -connection = postgresql:///nova
> | +connection = postgresql://novacommon:XXXXXXXXX@localhost/novadb
> |  
> |  
> |  #############
> 
> This violates §10.7.3 of the Debian policy: local changes must be
> preserved.
> 
> Bastian

Bastian,

FYI, the packages are now doing nothing at all if <package>/configure_db
is false. In other words, it disables completely the use of
dbconfig-common, and not override anything you may set manually in
<package>.conf.

I've uploaded such fix for Keystone, Nova and Neutron. I'll continue to
do so for all other packages in Icehouse / Jessie, and also forward-port
the patch for Juno packages.

I hope this solution satisfies you. I'm not 100% satisfied by it myself,
and I would prefer to have a better parsing of the db parameters for
postgresql (including the support without host and password), however,
the current situation will hopefully make things a way more useable for
you and other Postgresql users.

Cheers,

Thomas Goirand (zigo)



More information about the Openstack-devel mailing list