Merge lp:~corey.bryant/glance/systemd into lp:~ubuntu-server-dev/glance/kilo

Proposed by Corey Bryant on 2015-01-12
Status: Merged
Merged at revision: 323
Proposed branch: lp:~corey.bryant/glance/systemd
Merge into: lp:~ubuntu-server-dev/glance/kilo
Diff against target: 205 lines (+75/-44)
12 files modified
debian/changelog (+16/-0)
debian/compat (+1/-1)
debian/control (+6/-1)
debian/glance-api.glance-api.upstart (+0/-11)
debian/glance-api.init.in (+20/-0)
debian/glance-api.logrotate (+0/-7)
debian/glance-common.logrotate (+8/-0)
debian/glance-common.postinst (+0/-1)
debian/glance-registry.glance-registry.upstart (+0/-11)
debian/glance-registry.init.in (+20/-0)
debian/glance-registry.logrotate (+0/-7)
debian/rules (+4/-5)
To merge this branch: bzr merge lp:~corey.bryant/glance/systemd
Reviewer Review Type Date Requested Status
Ubuntu Server Developers 2015-01-12 Pending
Review via email: mp+246227@code.launchpad.net
To post a comment you must log in.
lp:~corey.bryant/glance/systemd updated on 2015-01-13
323. By Corey Bryant on 2015-01-13

* Systemd enablement:
  - d/control: Add dh-systemd and openstack-pkg-tools to BD's.
  - d/rules: Enable use of pkgos, tidyup generated init files.
  - d/*.init.in: Cherry pick *.init files from Debian glance package
    and adapt to templates.
  - d/*.upstart: Drop in preference to generated files.
* d/control,compat: Bump debhelper compat level to 9.
* d/*.logrotate,glance-common.logrotate: Move to single logrotate
  configuration.
* d/glance-common.postinst: Use default permissions for /etc/glance.
* d/python-glance-doc.links: Change permissions to 664.

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 2015-01-05 18:06:12 +0000
3+++ debian/changelog 2015-01-13 16:45:09 +0000
4@@ -1,3 +1,19 @@
5+glance (1:2015.1~b1-0ubuntu2) UNRELEASED; urgency=medium
6+
7+ * Systemd enablement:
8+ - d/control: Add dh-systemd and openstack-pkg-tools to BD's.
9+ - d/rules: Enable use of pkgos, tidyup generated init files.
10+ - d/*.init.in: Cherry pick *.init files from Debian glance package
11+ and adapt to templates.
12+ - d/*.upstart: Drop in preference to generated files.
13+ * d/control,compat: Bump debhelper compat level to 9.
14+ * d/*.logrotate,glance-common.logrotate: Move to single logrotate
15+ configuration.
16+ * d/glance-common.postinst: Use default permissions for /etc/glance.
17+ * d/python-glance-doc.links: Change permissions to 664.
18+
19+ -- Corey Bryant <corey.bryant@canonical.com> Thu, 08 Jan 2015 11:08:13 -0500
20+
21 glance (1:2015.1~b1-0ubuntu1) vivid; urgency=medium
22
23 [ Chuck Short ]
24
25=== modified file 'debian/compat'
26--- debian/compat 2012-06-22 13:18:10 +0000
27+++ debian/compat 2015-01-13 16:45:09 +0000
28@@ -1,1 +1,1 @@
29-7
30+9
31
32=== modified file 'debian/control'
33--- debian/control 2014-12-19 21:41:10 +0000
34+++ debian/control 2015-01-13 16:45:09 +0000
35@@ -2,7 +2,12 @@
36 Section: net
37 Priority: extra
38 Maintainer: Ubuntu OpenStack <openstack-packaging@lists.ubuntu.com>
39-Build-Depends: debhelper (>= 7.0.50), python-all (>= 2.6), sqlite3
40+Build-Depends:
41+ debhelper (>= 9~),
42+ dh-systemd,
43+ openstack-pkg-tools (>= 21~),
44+ python-all (>= 2.6),
45+ sqlite3
46 Build-Depends-Indep:
47 curl,
48 python-anyjson (>= 0.3.3),
49
50=== removed file 'debian/glance-api.glance-api.upstart'
51--- debian/glance-api.glance-api.upstart 2012-11-26 13:36:21 +0000
52+++ debian/glance-api.glance-api.upstart 1970-01-01 00:00:00 +0000
53@@ -1,11 +0,0 @@
54-description "Glance API server"
55-author "Soren Hansen <soren@linux2go.dk>"
56-
57-start on runlevel [2345]
58-stop on runlevel [!2345]
59-
60-respawn
61-
62-exec start-stop-daemon --start --chuid glance \
63- --chdir /var/lib/glance --name glance-api \
64- --exec /usr/bin/glance-api
65
66=== added file 'debian/glance-api.init.in'
67--- debian/glance-api.init.in 1970-01-01 00:00:00 +0000
68+++ debian/glance-api.init.in 2015-01-13 16:45:09 +0000
69@@ -0,0 +1,20 @@
70+#!/bin/sh
71+### BEGIN INIT INFO
72+# Provides: glance-api
73+# Required-Start: $network $local_fs $remote_fs $syslog
74+# Required-Stop: $remote_fs
75+# Should-Start: postgresql mysql keystone ntp rabbitmq-server
76+# Should-Stop: postgresql mysql keystone ntp rabbitmq-server
77+# Default-Start: 2 3 4 5
78+# Default-Stop: 0 1 6
79+# Short-Description: Glance API server
80+# Description: Frontend Glance API server
81+### END INIT INFO
82+
83+# Author: Julien Danjou <acid@debian.org>
84+
85+PATH=/sbin:/usr/sbin:/bin:/usr/bin
86+DESC="OpenStack Image Service API"
87+PROJECT_NAME=glance
88+NAME=${PROJECT_NAME}-api
89+CONFIG_FILE=/etc/${PROJECT_NAME}/${NAME}.conf
90
91=== removed file 'debian/glance-api.logrotate'
92--- debian/glance-api.logrotate 2012-09-12 15:52:59 +0000
93+++ debian/glance-api.logrotate 1970-01-01 00:00:00 +0000
94@@ -1,7 +0,0 @@
95-/var/log/glance/api.log {
96- daily
97- missingok
98- compress
99- delaycompress
100- notifempty
101-}
102
103=== added file 'debian/glance-common.logrotate'
104--- debian/glance-common.logrotate 1970-01-01 00:00:00 +0000
105+++ debian/glance-common.logrotate 2015-01-13 16:45:09 +0000
106@@ -0,0 +1,8 @@
107+/var/log/glance/*.log {
108+ daily
109+ missingok
110+ compress
111+ delaycompress
112+ copytruncate
113+ notifempty
114+}
115
116=== modified file 'debian/glance-common.postinst'
117--- debian/glance-common.postinst 2014-04-14 14:53:23 +0000
118+++ debian/glance-common.postinst 2015-01-13 16:45:09 +0000
119@@ -15,7 +15,6 @@
120 chown -R glance:adm /var/log/glance
121 chmod 0750 /var/log/glance
122 chown glance:glance -R /etc/glance
123- chmod 0750 /etc/glance
124 find /var/lib/glance -xdev -type d -exec chown glance:glance {} \;
125 fi
126
127
128=== removed file 'debian/glance-registry.glance-registry.upstart'
129--- debian/glance-registry.glance-registry.upstart 2012-11-26 13:36:21 +0000
130+++ debian/glance-registry.glance-registry.upstart 1970-01-01 00:00:00 +0000
131@@ -1,11 +0,0 @@
132-description "Glance registry server"
133-author "Soren Hansen <soren@linux2go.dk>"
134-
135-start on runlevel [2345]
136-stop on runlevel [!2345]
137-
138-respawn
139-
140-exec start-stop-daemon --start --chuid glance \
141- --chdir /var/lib/glance --name glance-registry \
142- --exec /usr/bin/glance-registry
143
144=== added file 'debian/glance-registry.init.in'
145--- debian/glance-registry.init.in 1970-01-01 00:00:00 +0000
146+++ debian/glance-registry.init.in 2015-01-13 16:45:09 +0000
147@@ -0,0 +1,20 @@
148+#!/bin/sh
149+### BEGIN INIT INFO
150+# Provides: glance-registry
151+# Required-Start: $network $local_fs $remote_fs $syslog
152+# Required-Stop: $remote_fs
153+# Should-Start: postgresql mysql keystone ntp rabbitmq-server
154+# Should-Stop: postgresql mysql keystone ntp rabbitmq-server
155+# Default-Start: 2 3 4 5
156+# Default-Stop: 0 1 6
157+# Short-Description: Glance registry server
158+# Description: Frontend Glance registry server
159+### END INIT INFO
160+
161+# Author: Julien Danjou <acid@debian.org>
162+
163+PATH=/sbin:/usr/sbin:/bin:/usr/bin
164+DESC="OpenStack Image Service Registry"
165+PROJECT_NAME=glance
166+NAME=${PROJECT_NAME}-registry
167+CONFIG_FILE=/etc/${PROJECT_NAME}/${NAME}.conf
168
169=== removed file 'debian/glance-registry.logrotate'
170--- debian/glance-registry.logrotate 2012-09-12 15:52:59 +0000
171+++ debian/glance-registry.logrotate 1970-01-01 00:00:00 +0000
172@@ -1,7 +0,0 @@
173-/var/log/glance/registry.log {
174- daily
175- missingok
176- compress
177- delaycompress
178- notifempty
179-}
180
181=== modified file 'debian/python-glance-doc.links' (properties changed: +x to -x)
182=== modified file 'debian/rules'
183--- debian/rules 2014-10-03 11:06:47 +0000
184+++ debian/rules 2015-01-13 16:45:09 +0000
185@@ -7,8 +7,10 @@
186 VERSION ?= $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//')
187 export OSLO_PACKAGE_VERSION=$(VERSION)
188
189+include /usr/share/openstack-pkg-tools/pkgos.make
190+
191 %:
192- dh $@ --with python2
193+ dh $@ --with python2,systemd
194
195 get-orig-source:
196 uscan --verbose --force-download --rename --destdir=../build-area
197@@ -39,7 +41,4 @@
198 dh_auto_clean
199 rm -rf doc/build
200 rm -rf glance.sqlite
201-
202-override_dh_installinit:
203- dh_installinit --name glance-api
204- dh_installinit --name glance-registry
205+ rm -f debian/*.init debian/*.service debian/*.upstart

Subscribers

People subscribed via source and target branches