maintainer scripts always/inconsistently run db_sync during upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cinder (Ubuntu) |
Fix Released
|
High
|
James Page | ||
Trusty |
Fix Released
|
High
|
James Page | ||
glance (Ubuntu) |
Fix Released
|
High
|
James Page | ||
Trusty |
Fix Released
|
High
|
James Page | ||
keystone (Ubuntu) |
Fix Released
|
High
|
Corey Bryant | ||
Trusty |
Fix Released
|
High
|
Corey Bryant | ||
nova (Ubuntu) |
Fix Released
|
High
|
James Page | ||
Trusty |
Fix Released
|
High
|
James Page |
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/
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.
Related branches
- James Page: Pending requested
-
Diff: 142 lines (+85/-5) (has conflicts)5 files modifieddebian/changelog (+12/-0)
debian/keystone.postinst (+2/-2)
debian/patches/revoke-api.patch (+70/-0)
debian/patches/series (+1/-1)
debian/rules (+0/-2)
Changed in keystone (Ubuntu Trusty): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in keystone (Ubuntu Trusty): | |
status: | Triaged → In Progress |
Changed in cinder (Ubuntu Trusty): | |
assignee: | nobody → James Page (james-page) |
status: | New → In Progress |
importance: | Undecided → High |
summary: |
- maintainer scripts always run db_sync during upgrade + maintainer scripts always/inconsistently run db_sync during upgrade |
Changed in glance (Ubuntu Trusty): | |
status: | New → In Progress |
assignee: | nobody → James Page (james-page) |
Changed in keystone (Ubuntu Trusty): | |
status: | In Progress → Fix Committed |
Changed in glance (Ubuntu Trusty): | |
status: | In Progress → Fix Committed |
Changed in cinder (Ubuntu Trusty): | |
status: | In Progress → Fix Committed |
Changed in nova (Ubuntu Trusty): | |
importance: | Undecided → High |
Changed in glance (Ubuntu Trusty): | |
importance: | Undecided → High |
Changed in nova (Ubuntu Trusty): | |
status: | New → In Progress |
assignee: | nobody → James Page (james-page) |
Changed in nova (Ubuntu Trusty): | |
status: | In Progress → Fix Committed |
James, cinder also doesn't have logic to only issue db_sync if the connection is the default sqllite one. Should I check all OpenStack services to make sure they're using the right search key and are only issuing db_sync if the connection is the default sqllite one?