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
=== modified file 'debian/changelog'
--- debian/changelog 2014-08-22 11:00:58 +0000
+++ debian/changelog 2014-08-22 13:16:32 +0000
@@ -1,7 +1,30 @@
1maas (1.7.0+bzr2772-0ubuntu1) UNRELEASED; urgency=medium1maas (1.7.0~beta1+bzr2783-0ubuntu1) UNRELEASED; urgency=medium
22
3 * UNRELEASED3 * UNRELEASED
44
5 [ Jeroen Vermeulen ]
6 * debian/extras/99-maas-sudoers
7 debian/maas-dhcp.maas-dhcp-server.upstart
8 debian/maas-dhcp.maas-dhcpv6-server.upstart
9 debian/maas-dhcp.postinst
10 debian/rules
11 - Add second DHCP server instance for IPv6.
12
13 [ Julian Edwards ]
14 * debian/maas-region-controller.postinst: Don't restart RabbitMQ on
15 upgrades, just ensure it's running. Should prevent a race with the
16 cluster celery restarting.
17
18 [ Andres Rodriguez ]
19 * debian/maas-region-controller.postinst: Ensure cluster celery is
20 started if it also runs on the region.
21
22 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 21 Aug 2014 19:36:30 -0400
23
24maas (1.7.0~beta1+bzr2781-0ubuntu1) utopic; urgency=medium
25
26 * New upstream release, 1.7.0 Beta 1
27
5 [Diogo Matsubara]28 [Diogo Matsubara]
6 * debian/control:29 * debian/control:
7 - maas-cluster-controller depends on syslinux-dev | 30 - maas-cluster-controller depends on syslinux-dev |
@@ -14,12 +37,6 @@
14 - Let maas user import, including sudo tgt-admin and sudo uec2roottar.37 - Let maas user import, including sudo tgt-admin and sudo uec2roottar.
15 * debian/maas-cluster-controller.install:38 * debian/maas-cluster-controller.install:
16 - Stop installing obsolete file bootresources.yaml.39 - Stop installing obsolete file bootresources.yaml.
17 * debian/extras/99-maas-sudoers
18 debian/maas-dhcp.maas-dhcp-server.upstart
19 debian/maas-dhcp.maas-dhcpv6-server.upstart
20 debian/maas-dhcp.postinst
21 debian/rules
22 - Add second DHCP server instance for IPv6.
2340
24 [ Raphaël Badin ]41 [ Raphaël Badin ]
25 * debian/control:42 * debian/control:
@@ -51,9 +68,6 @@
51 debian/maas-region-controller.postinst68 debian/maas-region-controller.postinst
52 - Install /var/log/maas/maas.log as a syslog file.69 - Install /var/log/maas/maas.log as a syslog file.
53 - Ensure logging is set up for upgrades 70 - Ensure logging is set up for upgrades
54 * debian/maas-region-controller.postinst: Don't restart RabbitMQ on
55 upgrades, just ensure it's running. Should prevent a race with the
56 cluster celery restarting.
5771
58 [ Graham Binns ]72 [ Graham Binns ]
59 * debian/maas-region-controller.postinst:73 * debian/maas-region-controller.postinst:
@@ -66,11 +80,8 @@
66 * debian/maas-region-controller.postinst: Do not change celery's80 * debian/maas-region-controller.postinst: Do not change celery's
67 rabbitmq password on upgrade that to not lock remote81 rabbitmq password on upgrade that to not lock remote
68 Cluster Controllers if upgrading from 1.5+. (LP: #1300507)82 Cluster Controllers if upgrading from 1.5+. (LP: #1300507)
69 * debian/maas-region-controller.postinst: Ensure cluster celery is83
70 started if it also runs on the region.84 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 21 Aug 2014 14:05:40 -0400
71
72
73 -- Julian Edwards <julian.edwards@canonical.com> Wed, 20 Aug 2014 11:16:20 +1000
7485
75maas (1.5+bzr2252-0ubuntu1) trusty; urgency=medium86maas (1.5+bzr2252-0ubuntu1) trusty; urgency=medium
7687
7788
=== added file 'debian/maas-dhcp.maas-dhcpv6-server.upstart'
--- debian/maas-dhcp.maas-dhcpv6-server.upstart 1970-01-01 00:00:00 +0000
+++ debian/maas-dhcp.maas-dhcpv6-server.upstart 2014-08-22 13:16:32 +0000
@@ -0,0 +1,65 @@
1description "MAAS instance of ISC DHCP server for IPv6"
2author "Jeroen Vermeulen <jtv@canonical.com>"
3
4start on runlevel [2345]
5stop on runlevel [!2345]
6
7env CONFIG_FILE=/etc/maas/dhcpd6.conf
8env PID_DIR=/run/maas/dhcp
9env PID_FILE=/run/maas/dhcp/dhcpd6.pid
10env LEASES_DIR=/var/lib/maas/dhcp
11env LEASES_FILE=/var/lib/maas/dhcp/dhcpd6.leases
12
13# This is where we write what interfaces dhcpd should listen on.
14env INTERFACES_FILE=/var/lib/maas/dhcpd6-interfaces
15
16pre-start script
17 if [ ! -f $CONFIG_FILE ]; then
18 echo "$CONFIG_FILE does not exist. Aborting."
19 stop
20 exit 0
21 fi
22
23 if [ ! -f $INTERFACES_FILE ]; then
24 echo "$INTERFACES_FILE does not exist. Aborting."
25 stop
26 exit 0
27 fi
28
29 if ! /usr/sbin/dhcpd -t -q -6 -cf $CONFIG_FILE > /dev/null 2>&1; then
30 echo "dhcpd self-test failed. Please fix the config file."
31 echo "The error was: "
32 /usr/sbin/dhcpd -t -6 -cf $CONFIG_FILE
33 stop
34 exit 0
35 fi
36end script
37
38respawn
39script
40 INTERFACES=`cat "${INTERFACES_FILE}"`
41
42 # Allow dhcp server to write lease and pid file.
43 mkdir -p $PID_DIR
44 chown dhcpd:dhcpd $PID_DIR
45
46 # As of Quantal, the leases file must be owned by root:root (even though
47 # the daemon will run under an unprivileged user).
48 # In Precise, ownership was supposed to be dhcpd:dhcpd.
49 #
50 # maas packages on saucy are only supported with newer isc-dhcp via
51 # the cloud-archive. See bug 1231693 for more information, including
52 # a patch that would actually work to support all, but is complex.
53
54 mkdir -p $LEASES_DIR
55 chown root:root $LEASES_DIR
56 [ -e $LEASES_FILE ] || touch $LEASES_FILE
57 for LFILE in $LEASES_FILE $LEASES_FILE~; do
58 if [ -e $LFILE ]; then
59 chown root:root $LFILE
60 chmod a+r $LFILE
61 fi
62 done
63
64 exec /usr/sbin/dhcpd -user dhcpd -group dhcpd -f -q -6 -pf $PID_FILE -cf $CONFIG_FILE -lf $LEASES_FILE $INTERFACES
65end script
066
=== removed file 'debian/maas-dhcp.maas-dhcpv6-server.upstart'
--- debian/maas-dhcp.maas-dhcpv6-server.upstart 2014-08-22 10:58:38 +0000
+++ debian/maas-dhcp.maas-dhcpv6-server.upstart 1970-01-01 00:00:00 +0000
@@ -1,65 +0,0 @@
1description "MAAS instance of ISC DHCP server for IPv6"
2author "Jeroen Vermeulen <jtv@canonical.com>"
3
4start on runlevel [2345]
5stop on runlevel [!2345]
6
7env CONFIG_FILE=/etc/maas/dhcpd6.conf
8env PID_DIR=/run/maas/dhcp
9env PID_FILE=/run/maas/dhcp/dhcpd6.pid
10env LEASES_DIR=/var/lib/maas/dhcp
11env LEASES_FILE=/var/lib/maas/dhcp/dhcpd6.leases
12
13# This is where we write what interfaces dhcpd should listen on.
14env INTERFACES_FILE=/var/lib/maas/dhcpd6-interfaces
15
16pre-start script
17 if [ ! -f $CONFIG_FILE ]; then
18 echo "$CONFIG_FILE does not exist. Aborting."
19 stop
20 exit 0
21 fi
22
23 if [ ! -f $INTERFACES_FILE ]; then
24 echo "$INTERFACES_FILE does not exist. Aborting."
25 stop
26 exit 0
27 fi
28
29 if ! /usr/sbin/dhcpd -t -q -6 -cf $CONFIG_FILE > /dev/null 2>&1; then
30 echo "dhcpd self-test failed. Please fix the config file."
31 echo "The error was: "
32 /usr/sbin/dhcpd -t -6 -cf $CONFIG_FILE
33 stop
34 exit 0
35 fi
36end script
37
38respawn
39script
40 INTERFACES=`cat "${INTERFACES_FILE}"`
41
42 # Allow dhcp server to write lease and pid file.
43 mkdir -p $PID_DIR
44 chown dhcpd:dhcpd $PID_DIR
45
46 # As of Quantal, the leases file must be owned by root:root (even though
47 # the daemon will run under an unprivileged user).
48 # In Precise, ownership was supposed to be dhcpd:dhcpd.
49 #
50 # maas packages on saucy are only supported with newer isc-dhcp via
51 # the cloud-archive. See bug 1231693 for more information, including
52 # a patch that would actually work to support all, but is complex.
53
54 mkdir -p $LEASES_DIR
55 chown root:root $LEASES_DIR
56 [ -e $LEASES_FILE ] || touch $LEASES_FILE
57 for LFILE in $LEASES_FILE $LEASES_FILE~; do
58 if [ -e $LFILE ]; then
59 chown root:root $LFILE
60 chmod a+r $LFILE
61 fi
62 done
63
64 exec /usr/sbin/dhcpd -user dhcpd -group dhcpd -f -q -6 -pf $PID_FILE -cf $CONFIG_FILE -lf $LEASES_FILE $INTERFACES
65end script

Subscribers

People subscribed via source and target branches

to all changes: