Merge lp:~andreserl/maas/fix_packaging into lp:~maas-maintainers/maas/packaging

Proposed by Andres Rodriguez
Status: Merged
Approved by: Andres Rodriguez
Approved revision: no longer in the source branch.
Merged at revision: 300
Proposed branch: lp:~andreserl/maas/fix_packaging
Merge into: lp:~maas-maintainers/maas/packaging
Diff against target: 212 lines (+26/-80)
2 files modified
debian/changelog (+26/-15)
debian/maas-dhcp.maas-dhcpv6-server.upstart (+0/-65)
To merge this branch: bzr merge lp:~andreserl/maas/fix_packaging
Reviewer Review Type Date Requested Status
Andres Rodriguez (community) Approve
Review via email: mp+231883@code.launchpad.net

Commit message

Fix packaging to match 1.7 release.

To post a comment you must log in.
Revision history for this message
Andres Rodriguez (andreserl) wrote :

Self approve. Thi is just fixing the packaging to match what was released.

review: Approve
Revision history for this message
MAAS Lander (maas-lander) wrote :

There are additional revisions which have not been approved in review. Please seek review and approval of these new revisions.

Revision history for this message
Andres Rodriguez (andreserl) :
review: Approve
lp:~andreserl/maas/fix_packaging updated
300. By Andres Rodriguez

[r=andreserl][bug=][author=andreserl] Fix packaging to match 1.7 release.

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Why has this branch got

=== removed file 'debian/maas-dhcp.maas-dhcpv6-server.upstart'

=== added file debian/maas-dhcp.maas-dhcpv6-server.upstart

?

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 2014-08-22 11:00:58 +0000
3+++ debian/changelog 2014-08-22 13:16:32 +0000
4@@ -1,7 +1,30 @@
5-maas (1.7.0+bzr2772-0ubuntu1) UNRELEASED; urgency=medium
6+maas (1.7.0~beta1+bzr2783-0ubuntu1) UNRELEASED; urgency=medium
7
8 * UNRELEASED
9
10+ [ Jeroen Vermeulen ]
11+ * debian/extras/99-maas-sudoers
12+ debian/maas-dhcp.maas-dhcp-server.upstart
13+ debian/maas-dhcp.maas-dhcpv6-server.upstart
14+ debian/maas-dhcp.postinst
15+ debian/rules
16+ - Add second DHCP server instance for IPv6.
17+
18+ [ Julian Edwards ]
19+ * debian/maas-region-controller.postinst: Don't restart RabbitMQ on
20+ upgrades, just ensure it's running. Should prevent a race with the
21+ cluster celery restarting.
22+
23+ [ Andres Rodriguez ]
24+ * debian/maas-region-controller.postinst: Ensure cluster celery is
25+ started if it also runs on the region.
26+
27+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 21 Aug 2014 19:36:30 -0400
28+
29+maas (1.7.0~beta1+bzr2781-0ubuntu1) utopic; urgency=medium
30+
31+ * New upstream release, 1.7.0 Beta 1
32+
33 [Diogo Matsubara]
34 * debian/control:
35 - maas-cluster-controller depends on syslinux-dev |
36@@ -14,12 +37,6 @@
37 - Let maas user import, including sudo tgt-admin and sudo uec2roottar.
38 * debian/maas-cluster-controller.install:
39 - Stop installing obsolete file bootresources.yaml.
40- * debian/extras/99-maas-sudoers
41- debian/maas-dhcp.maas-dhcp-server.upstart
42- debian/maas-dhcp.maas-dhcpv6-server.upstart
43- debian/maas-dhcp.postinst
44- debian/rules
45- - Add second DHCP server instance for IPv6.
46
47 [ Raphaƫl Badin ]
48 * debian/control:
49@@ -51,9 +68,6 @@
50 debian/maas-region-controller.postinst
51 - Install /var/log/maas/maas.log as a syslog file.
52 - Ensure logging is set up for upgrades
53- * debian/maas-region-controller.postinst: Don't restart RabbitMQ on
54- upgrades, just ensure it's running. Should prevent a race with the
55- cluster celery restarting.
56
57 [ Graham Binns ]
58 * debian/maas-region-controller.postinst:
59@@ -66,11 +80,8 @@
60 * debian/maas-region-controller.postinst: Do not change celery's
61 rabbitmq password on upgrade that to not lock remote
62 Cluster Controllers if upgrading from 1.5+. (LP: #1300507)
63- * debian/maas-region-controller.postinst: Ensure cluster celery is
64- started if it also runs on the region.
65-
66-
67- -- Julian Edwards <julian.edwards@canonical.com> Wed, 20 Aug 2014 11:16:20 +1000
68+
69+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 21 Aug 2014 14:05:40 -0400
70
71 maas (1.5+bzr2252-0ubuntu1) trusty; urgency=medium
72
73
74=== added file 'debian/maas-dhcp.maas-dhcpv6-server.upstart'
75--- debian/maas-dhcp.maas-dhcpv6-server.upstart 1970-01-01 00:00:00 +0000
76+++ debian/maas-dhcp.maas-dhcpv6-server.upstart 2014-08-22 13:16:32 +0000
77@@ -0,0 +1,65 @@
78+description "MAAS instance of ISC DHCP server for IPv6"
79+author "Jeroen Vermeulen <jtv@canonical.com>"
80+
81+start on runlevel [2345]
82+stop on runlevel [!2345]
83+
84+env CONFIG_FILE=/etc/maas/dhcpd6.conf
85+env PID_DIR=/run/maas/dhcp
86+env PID_FILE=/run/maas/dhcp/dhcpd6.pid
87+env LEASES_DIR=/var/lib/maas/dhcp
88+env LEASES_FILE=/var/lib/maas/dhcp/dhcpd6.leases
89+
90+# This is where we write what interfaces dhcpd should listen on.
91+env INTERFACES_FILE=/var/lib/maas/dhcpd6-interfaces
92+
93+pre-start script
94+ if [ ! -f $CONFIG_FILE ]; then
95+ echo "$CONFIG_FILE does not exist. Aborting."
96+ stop
97+ exit 0
98+ fi
99+
100+ if [ ! -f $INTERFACES_FILE ]; then
101+ echo "$INTERFACES_FILE does not exist. Aborting."
102+ stop
103+ exit 0
104+ fi
105+
106+ if ! /usr/sbin/dhcpd -t -q -6 -cf $CONFIG_FILE > /dev/null 2>&1; then
107+ echo "dhcpd self-test failed. Please fix the config file."
108+ echo "The error was: "
109+ /usr/sbin/dhcpd -t -6 -cf $CONFIG_FILE
110+ stop
111+ exit 0
112+ fi
113+end script
114+
115+respawn
116+script
117+ INTERFACES=`cat "${INTERFACES_FILE}"`
118+
119+ # Allow dhcp server to write lease and pid file.
120+ mkdir -p $PID_DIR
121+ chown dhcpd:dhcpd $PID_DIR
122+
123+ # As of Quantal, the leases file must be owned by root:root (even though
124+ # the daemon will run under an unprivileged user).
125+ # In Precise, ownership was supposed to be dhcpd:dhcpd.
126+ #
127+ # maas packages on saucy are only supported with newer isc-dhcp via
128+ # the cloud-archive. See bug 1231693 for more information, including
129+ # a patch that would actually work to support all, but is complex.
130+
131+ mkdir -p $LEASES_DIR
132+ chown root:root $LEASES_DIR
133+ [ -e $LEASES_FILE ] || touch $LEASES_FILE
134+ for LFILE in $LEASES_FILE $LEASES_FILE~; do
135+ if [ -e $LFILE ]; then
136+ chown root:root $LFILE
137+ chmod a+r $LFILE
138+ fi
139+ done
140+
141+ exec /usr/sbin/dhcpd -user dhcpd -group dhcpd -f -q -6 -pf $PID_FILE -cf $CONFIG_FILE -lf $LEASES_FILE $INTERFACES
142+end script
143
144=== removed file 'debian/maas-dhcp.maas-dhcpv6-server.upstart'
145--- debian/maas-dhcp.maas-dhcpv6-server.upstart 2014-08-22 10:58:38 +0000
146+++ debian/maas-dhcp.maas-dhcpv6-server.upstart 1970-01-01 00:00:00 +0000
147@@ -1,65 +0,0 @@
148-description "MAAS instance of ISC DHCP server for IPv6"
149-author "Jeroen Vermeulen <jtv@canonical.com>"
150-
151-start on runlevel [2345]
152-stop on runlevel [!2345]
153-
154-env CONFIG_FILE=/etc/maas/dhcpd6.conf
155-env PID_DIR=/run/maas/dhcp
156-env PID_FILE=/run/maas/dhcp/dhcpd6.pid
157-env LEASES_DIR=/var/lib/maas/dhcp
158-env LEASES_FILE=/var/lib/maas/dhcp/dhcpd6.leases
159-
160-# This is where we write what interfaces dhcpd should listen on.
161-env INTERFACES_FILE=/var/lib/maas/dhcpd6-interfaces
162-
163-pre-start script
164- if [ ! -f $CONFIG_FILE ]; then
165- echo "$CONFIG_FILE does not exist. Aborting."
166- stop
167- exit 0
168- fi
169-
170- if [ ! -f $INTERFACES_FILE ]; then
171- echo "$INTERFACES_FILE does not exist. Aborting."
172- stop
173- exit 0
174- fi
175-
176- if ! /usr/sbin/dhcpd -t -q -6 -cf $CONFIG_FILE > /dev/null 2>&1; then
177- echo "dhcpd self-test failed. Please fix the config file."
178- echo "The error was: "
179- /usr/sbin/dhcpd -t -6 -cf $CONFIG_FILE
180- stop
181- exit 0
182- fi
183-end script
184-
185-respawn
186-script
187- INTERFACES=`cat "${INTERFACES_FILE}"`
188-
189- # Allow dhcp server to write lease and pid file.
190- mkdir -p $PID_DIR
191- chown dhcpd:dhcpd $PID_DIR
192-
193- # As of Quantal, the leases file must be owned by root:root (even though
194- # the daemon will run under an unprivileged user).
195- # In Precise, ownership was supposed to be dhcpd:dhcpd.
196- #
197- # maas packages on saucy are only supported with newer isc-dhcp via
198- # the cloud-archive. See bug 1231693 for more information, including
199- # a patch that would actually work to support all, but is complex.
200-
201- mkdir -p $LEASES_DIR
202- chown root:root $LEASES_DIR
203- [ -e $LEASES_FILE ] || touch $LEASES_FILE
204- for LFILE in $LEASES_FILE $LEASES_FILE~; do
205- if [ -e $LFILE ]; then
206- chown root:root $LFILE
207- chmod a+r $LFILE
208- fi
209- done
210-
211- exec /usr/sbin/dhcpd -user dhcpd -group dhcpd -f -q -6 -pf $PID_FILE -cf $CONFIG_FILE -lf $LEASES_FILE $INTERFACES
212-end script

Subscribers

People subscribed via source and target branches

to all changes: