[Bug 1290423] [NEW] maintainer scripts always run db_sync during upgrade

James Page james.page at ubuntu.com
Mon Mar 10 15:51:21 UTC 2014


Public bug reported:

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.

** Affects: keystone (Ubuntu)
     Importance: High
         Status: Triaged

** Affects: keystone (Ubuntu Trusty)
     Importance: High
         Status: Triaged

** Also affects: keystone (Ubuntu Trusty)
   Importance: Undecided
       Status: New

** Changed in: keystone (Ubuntu Trusty)
       Status: New => Triaged

** Changed in: keystone (Ubuntu Trusty)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to keystone in Ubuntu.
https://bugs.launchpad.net/bugs/1290423

Title:
  maintainer scripts always run db_sync during upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/keystone/+bug/1290423/+subscriptions



More information about the Ubuntu-server-bugs mailing list