Comment 12 for bug 1290423

Revision history for this message
Corey Bryant (corey.bryant) wrote : Re: [Bug 1290423] Re: maintainer scripts always/inconsistently run db_sync during upgrade

Ah.. yes, thanks!

On Thu, Mar 13, 2014 at 10:32 PM, Soren Hansen <email address hidden> wrote:

> "Also affects distribition" is that little link below the bug task table
> at the top of bug details pages. It's how you add bug tasks for other
> packages.
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1290423
>
> Title:
> maintainer scripts always/inconsistently run db_sync during upgrade
>
> Status in "cinder" package in Ubuntu:
> Fix Released
> Status in "glance" package in Ubuntu:
> Fix Released
> Status in "keystone" package in Ubuntu:
> Fix Released
> Status in "nova" package in Ubuntu:
> Fix Released
> Status in "cinder" source package in Trusty:
> Fix Released
> Status in "glance" source package in Trusty:
> Fix Released
> Status in "keystone" source package in Trusty:
> Fix Released
> Status in "nova" source package in Trusty:
> Fix Released
>
> Bug description:
> The keystone maintainer script endeavours to check whether the
> sql_connection string is set in keystone.conf; however it searches for
> the wrong string:
>
> if ! grep -q sql_connection /etc/keystone/keystone.conf
> then
> su -s /bin/sh -c 'exec keystone-manage db_sync' keystone
> fi
>
> The connection configuration uses the key 'connection' and inline with
> other packages, I think we should only be doing a db_sync if the
> connection is the default sqllite one (see glance for reference).
>
> This is quite important - 2013.2.2 adds an index to an existing table
> and takes a long time, resulting in quite a long outage; also running
> from multiple locations might be bad as well.
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/cinder/+bug/1290423/+subscriptions
>

--
Regards,
Corey