Merge lp:~zulcss/keystone/buh-bye-dbconfig into lp:~openstack-ubuntu-testing/keystone/grizzly

Proposed by Chuck Short on 2012-12-11
Status: Merged
Merged at revision: 167
Proposed branch: lp:~zulcss/keystone/buh-bye-dbconfig
Merge into: lp:~openstack-ubuntu-testing/keystone/grizzly
Diff against target: 145 lines (+7/-77)
6 files modified
debian/changelog (+3/-0)
debian/control (+1/-2)
debian/keystone.config (+0/-19)
debian/keystone.postinst (+3/-25)
debian/keystone.postrm (+0/-14)
debian/keystone.prerm (+0/-17)
To merge this branch: bzr merge lp:~zulcss/keystone/buh-bye-dbconfig
Reviewer Review Type Date Requested Status
James Page 2012-12-11 Needs Fixing on 2012-12-11
Review via email: mp+139215@code.launchpad.net

Description of the Change

Remove dbconfig-common from keystone.

To post a comment you must log in.
James Page (james-page) wrote :

debian/keystone.postinst, 91: typo in work connection.

review: Needs Fixing
James Page (james-page) wrote :

*word connection

Dave Walker (davewalker) wrote :

"+ * Remove dbconfig-common support, its not enabled by default anyways."

Could be better worded IMO.

Ta

James Page (james-page) wrote :

I'd probably drop "its not enabled by default anyways." as well

lp:~zulcss/keystone/buh-bye-dbconfig updated on 2012-12-11
167. By Chuck Short on 2012-12-11

fix up based on comments

James Page (james-page) wrote :

Those fixes look good; I noticed that the package still contains a templates file:

E: keystone: no-debconf-config
I: keystone: unused-debconf-template keystone/configure_db

Please could you fixup; also I noticed the version number in the changelog is not sequential from the released version - please could you fix this up as well (not the fault of the MP tho).

review: Needs Fixing

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-12-05 19:00:35 +0000
3+++ debian/changelog 2012-12-11 16:14:25 +0000
4@@ -19,6 +19,9 @@
5 * debian/keystone.manpages: Install sphinx-generated manpages instead
6 of our own outdated and unneeded versions. (LP: #1082050)
7
8+ [ Chuck Short ]
9+ * Remove incomplete/broken dbconfig-common scripts.
10+
11 -- Adam Gandelman <adamg@ubuntu.com> Wed, 05 Dec 2012 10:44:19 -0800
12
13 keystone (2013.1~g1-0ubuntu1) raring; urgency=low
14
15=== modified file 'debian/control'
16--- debian/control 2012-11-25 22:38:15 +0000
17+++ debian/control 2012-12-11 16:14:25 +0000
18@@ -77,8 +77,7 @@
19 Depends: ${python:Depends}, ${misc:Depends},
20 python-keystone (= ${source:Version}),
21 adduser,
22- ssl-cert (>= 1.0.12),
23- dbconfig-common
24+ ssl-cert (>= 1.0.12)
25 Description: OpenStack identity service - Daemons
26 Keystone is a proposed independent authentication service for OpenStack.
27 .
28
29=== removed file 'debian/keystone.config'
30--- debian/keystone.config 2012-06-22 16:27:53 +0000
31+++ debian/keystone.config 1970-01-01 00:00:00 +0000
32@@ -1,19 +0,0 @@
33-#!/bin/sh
34-set -e
35-
36-. /usr/share/debconf/confmodule
37-
38-
39-db_input low keystone/configure_db || true
40-db_go
41-db_get keystone/configure_db
42-if [ "$RET" = "true" ]; then
43- if [ -f /usr/share/dbconfig-common/dpkg/config ];
44- then
45- dbc_dbtypes="sqlite3, mysql, pgsql"
46- db_authmethod_user="password"
47- dbc_basepath="/var/lib/keystone"
48- . /usr/share/dbconfig-common/dpkg/config
49- dbc_go keystone $@
50- fi
51-fi
52
53=== modified file 'debian/keystone.postinst'
54--- debian/keystone.postinst 2012-03-01 02:06:30 +0000
55+++ debian/keystone.postinst 2012-12-11 16:14:25 +0000
56@@ -2,8 +2,6 @@
57
58 set -e
59
60-. /usr/share/debconf/confmodule
61-. /usr/share/dbconfig-common/dpkg/postinst
62
63 # summary of how this script can be called:
64 # * <new-preinst> `install'
65@@ -19,30 +17,10 @@
66 #su -s /bin/sh -c 'exec keystone database sync' keystone
67 ;;
68 configure)
69- db_get keystone/configure_db
70- if [ "$RET" = "true" ]; then
71- dbc_go keystone $@
72-
73- case "$dbc_dbtype" in
74- sqlite3)
75- SQL_CONNECTION="sqlite:///$dbc_basepath/$dbc_dbname.db"
76- ;;
77- mysql)
78- [ -n "$dbc_dbport" ] && dbport=:$dbc_dbport
79- SQL_CONNECTION="mysql://$dbc_dbuser:$dbc_dbpass@${dbc_dbserver:-localhost}$dbport/$dbc_dbname"
80- ;;
81- pgsql)
82- [ -n "$dbc_dbport" ] && dbport=:$dbc_dbport
83- SQL_CONNECTION="pgsql://$dbc_dbuser:$dbc_dbpass@${dbc_dbserver:-localhost}$dbport/$dbc_dbname"
84- ;;
85- *)
86- SQL_CONNECTION="sqlite:////var/lib/keystone/keystone.db"
87- ;;
88- esac
89- [ -z "$2" -o "$dbc_install" = "true" ] \
90- && sed -e "s,_DBC_URL_,$SQL_CONNECTION," -i /etc/keystone/keystone.conf
91+ if ! grep -q sql_connection /etc/keystone/keystone.conf
92+ then
93+ su -s /bin/sh -c 'exec keystone-manage db_sync' keystone
94 fi
95- su -s /bin/sh -c 'exec keystone-manage db_sync' keystone
96 ;;
97 abort-upgrade)
98 echo "aport upgrade called"
99
100=== modified file 'debian/keystone.postrm'
101--- debian/keystone.postrm 2012-06-22 16:27:53 +0000
102+++ debian/keystone.postrm 2012-12-11 16:14:25 +0000
103@@ -2,20 +2,6 @@
104
105 set -e
106
107-if [ -f /usr/share/debconf/confmodule ]
108-then
109- . /usr/share/debconf/confmodule
110-fi
111-
112-if [ -f /etc/dbconfig-common/keystone.conf ]
113-then
114- if [ -f /usr/share/dbconfig-common/dpkg/postrm ]
115- then
116- . /usr/share/dbconfig-common/dpkg/postrm
117- dbc_go keystone $@
118- fi
119-fi
120-
121 case "$1" in
122 purge)
123 rm -rf /var/log/keystone
124
125=== removed file 'debian/keystone.prerm'
126--- debian/keystone.prerm 2012-06-22 16:27:53 +0000
127+++ debian/keystone.prerm 1970-01-01 00:00:00 +0000
128@@ -1,17 +0,0 @@
129-#!/bin/sh
130-
131-set -e
132-
133-. /usr/share/debconf/confmodule
134-. /usr/share/dbconfig-common/dpkg/prerm
135-
136-
137-db_get keystone/configure_db
138-if [ "$RET" = "true" ]; then
139- # Only cleanup with dbconfig if it was used during
140- # installation (LP: #948719)
141- dbc_go keystone $@
142-fi
143-
144-#DEBHELPER#
145-

Subscribers

People subscribed via source and target branches