Merge lp:~zulcss/keystone/keystnoe-g2 into lp:~openstack-ubuntu-testing/keystone/grizzly

Proposed by Chuck Short
Status: Merged
Merged at revision: 168
Proposed branch: lp:~zulcss/keystone/keystnoe-g2
Merge into: lp:~openstack-ubuntu-testing/keystone/grizzly
Diff against target: 154 lines (+10/-79)
6 files modified
debian/changelog (+6/-2)
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/keystnoe-g2
Reviewer Review Type Date Requested Status
James Page Approve
Review via email: mp+142911@code.launchpad.net

Description of the change

keystone g2

To post a comment you must log in.
Revision history for this message
James Page (james-page) :
review: Approve

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

Subscribers

People subscribed via source and target branches