Merge lp:~andreserl/maas/packaging_to-daemon into lp:~maas-maintainers/maas/packaging

Proposed by Andres Rodriguez
Status: Rejected
Rejected by: Blake Rouse
Proposed branch: lp:~andreserl/maas/packaging_to-daemon
Merge into: lp:~maas-maintainers/maas/packaging
Diff against target: 603 lines (+84/-81)
22 files modified
debian/changelog (+4/-1)
debian/control (+5/-5)
debian/extras/99-maas-sudoers (+3/-3)
debian/extras/maas-relay (+1/-1)
debian/maas-common.templates (+3/-3)
debian/maas-dhcp.maas-dhcpd.service (+1/-1)
debian/maas-dhcp.maas-dhcpd6.service (+1/-1)
debian/maas-region-api.apport (+4/-4)
debian/maas-region-controller.postinst (+2/-2)
debian/maas-relay-udeb.postinst (+11/-11)
debian/maas-relay-udeb.templates (+8/-8)
debian/maas-relay.config (+4/-4)
debian/maas-relay.install (+1/-1)
debian/maas-relay.links (+1/-1)
debian/maas-relay.lintian-overrides (+1/-1)
debian/maas-relay.logrotate (+1/-1)
debian/maas-relay.maas-relayd.service (+4/-4)
debian/maas-relay.postinst (+18/-18)
debian/maas-relay.postrm (+3/-3)
debian/maas-relay.preinst (+1/-1)
debian/maas-relay.templates (+3/-3)
debian/rules (+4/-4)
To merge this branch: bzr merge lp:~andreserl/maas/packaging_to-daemon
Reviewer Review Type Date Requested Status
MAAS Maintainers Pending
Review via email: mp+301850@code.launchpad.net
To post a comment you must log in.

Unmerged revisions

510. By Andres Rodriguez

* New upstream release, 2.0.0 RC4 bzr :
  - Rename MAAS Rack Controller to MAAS Relay.
* debian/*: update all packaging to replace anything that references
  maas-rack to maas-relay.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2016-07-28 02:27:13 +0000
+++ debian/changelog 2016-08-02 23:56:26 +0000
@@ -1,6 +1,9 @@
1maas (2.0.0~rc4+bzr5180-0ubuntu1) UNRELEASED; urgency=medium1maas (2.0.0~rc4+bzr5180-0ubuntu1) UNRELEASED; urgency=medium
22
3 * UNRELEASED3 * New upstream release, 2.0.0 RC4 bzr :
4 - Rename MAAS Rack Controller to MAAS Relay.
5 * debian/*: update all packaging to replace anything that references
6 maas-rack to maas-relay.
47
5 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 27 Jul 2016 22:26:55 -04008 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 27 Jul 2016 22:26:55 -0400
69
710
=== modified file 'debian/control'
--- debian/control 2016-06-16 15:27:18 +0000
+++ debian/control 2016-08-02 23:56:26 +0000
@@ -17,7 +17,7 @@
1717
18Package: maas18Package: maas
19Architecture: all19Architecture: all
20Depends: maas-rack-controller (= ${binary:Version}),20Depends: maas-relay (= ${binary:Version}),
21 maas-region-controller (= ${binary:Version}),21 maas-region-controller (= ${binary:Version}),
22 python3-django-maas (= ${binary:Version}),22 python3-django-maas (= ${binary:Version}),
23 ${misc:Depends}23 ${misc:Depends}
@@ -179,7 +179,7 @@
179 .179 .
180 This package contains Python 3 modules.180 This package contains Python 3 modules.
181181
182Package: maas-rack-controller182Package: maas-relay
183Architecture: all183Architecture: all
184Depends: authbind,184Depends: authbind,
185 bind9utils,185 bind9utils,
@@ -209,9 +209,9 @@
209Replaces: python-maas-provisioningserver,209Replaces: python-maas-provisioningserver,
210 maas-cluster-controller210 maas-cluster-controller
211Description: Rack Controller for MAAS211Description: Rack Controller for MAAS
212 The MAAS rack controller (maas-rackd) provides highly available, fast212 The MAAS Relay (maas-relayd) provides highly available, fast
213 and local broadcast services to the machines provisioned by MAAS. You213 and local broadcast services to the machines provisioned by MAAS. You
214 need a MAAS rack controller attached to each fabric (which is a set of214 need a MAAS Relay attached to each fabric (which is a set of
215 trunked switches). You can attach multiple rack controllers to these215 trunked switches). You can attach multiple rack controllers to these
216 physical networks for high availability, with secondary rack controllers216 physical networks for high availability, with secondary rack controllers
217 automatically stepping to provide these services if the primary rack217 automatically stepping to provide these services if the primary rack
@@ -284,7 +284,7 @@
284XB-Installer-Menu-Item: 2350284XB-Installer-Menu-Item: 2350
285Description: Install a MAAS server (installer integration)285Description: Install a MAAS server (installer integration)
286286
287Package: maas-rack-udeb287Package: maas-relay-udeb
288Package-Type: udeb288Package-Type: udeb
289Section: debian-installer289Section: debian-installer
290Architecture: all290Architecture: all
291291
=== modified file 'debian/extras/99-maas-sudoers'
--- debian/extras/99-maas-sudoers 2016-06-10 18:57:41 +0000
+++ debian/extras/99-maas-sudoers 2016-08-02 23:56:26 +0000
@@ -8,7 +8,7 @@
8maas ALL= NOPASSWD: /bin/systemctl stop maas-dhcpd68maas ALL= NOPASSWD: /bin/systemctl stop maas-dhcpd6
9maas ALL= NOPASSWD: /bin/systemctl status tgt9maas ALL= NOPASSWD: /bin/systemctl status tgt
10maas ALL= NOPASSWD: /bin/systemctl start tgt10maas ALL= NOPASSWD: /bin/systemctl start tgt
11maas ALL= NOPASSWD: /bin/systemctl disable maas-rackd11maas ALL= NOPASSWD: /bin/systemctl disable maas-relayd
12maas ALL= NOPASSWD: /bin/systemctl stop maas-rackd12maas ALL= NOPASSWD: /bin/systemctl stop maas-relayd
13maas ALL= NOPASSWD: /usr/sbin/maas-rack13maas ALL= NOPASSWD: /usr/sbin/maas-relay
14maas ALL= NOPASSWD: SETENV: /usr/sbin/tgt-admin, /usr/bin/uec2roottar14maas ALL= NOPASSWD: SETENV: /usr/sbin/tgt-admin, /usr/bin/uec2roottar
1515
=== renamed file 'debian/extras/maas-rack' => 'debian/extras/maas-relay'
--- debian/extras/maas-rack 2016-03-17 17:14:49 +0000
+++ debian/extras/maas-relay 2016-08-02 23:56:26 +0000
@@ -54,7 +54,7 @@
54 if 'maas-provision' in sys.argv[0]:54 if 'maas-provision' in sys.argv[0]:
55 sys.stderr.write(55 sys.stderr.write(
56 "WARNING: The maas-provision command is deprecated and will be "56 "WARNING: The maas-provision command is deprecated and will be "
57 "removed in a future version. From now on please use 'maas-rack' "57 "removed in a future version. From now on please use 'maas-relay' "
58 "instead.\n")58 "instead.\n")
5959
60 # Allow dhcpd user to call dhcp-notify.60 # Allow dhcpd user to call dhcp-notify.
6161
=== modified file 'debian/maas-common.templates'
--- debian/maas-common.templates 2016-06-02 16:34:32 +0000
+++ debian/maas-common.templates 2016-08-02 23:56:26 +0000
@@ -37,7 +37,7 @@
37 .37 .
38 Please provide the password for the MAAS account.38 Please provide the password for the MAAS account.
3939
40Template: maas-rack-controller/maas-url40Template: maas-relay/maas-url
41Type: string41Type: string
42_Description: Ubuntu MAAS API address:42_Description: Ubuntu MAAS API address:
43 The MAAS cluster controller and nodes need to contact the MAAS region43 The MAAS cluster controller and nodes need to contact the MAAS region
@@ -46,9 +46,9 @@
46 Since nodes must be able to access this URL, localhost or 127.0.0.1 are not46 Since nodes must be able to access this URL, localhost or 127.0.0.1 are not
47 useful values here.47 useful values here.
4848
49Template: maas-rack-controller/shared-secret49Template: maas-relay/shared-secret
50Type: password50Type: password
51_Description: MAAS Rack Controller Shared Secret:51_Description: MAAS Rack Controller Shared Secret:
52 The MAAS rack controller needs to contact the MAAS region controller52 The MAAS Relay needs to contact the MAAS region controller
53 with the shared secret found in /var/lib/maas/secret on the region controller.53 with the shared secret found in /var/lib/maas/secret on the region controller.
54 Set the shared secret here.54 Set the shared secret here.
5555
=== modified file 'debian/maas-dhcp.maas-dhcpd.service'
--- debian/maas-dhcp.maas-dhcpd.service 2016-03-22 17:07:45 +0000
+++ debian/maas-dhcp.maas-dhcpd.service 2016-08-02 23:56:26 +0000
@@ -4,7 +4,7 @@
4Wants=network-online.target4Wants=network-online.target
5After=network-online.target5After=network-online.target
6After=time-sync.target6After=time-sync.target
7BindsTo=maas-rackd.service7BindsTo=maas-relayd.service
8ConditionPathExists=/var/lib/maas/dhcpd.conf8ConditionPathExists=/var/lib/maas/dhcpd.conf
9ConditionPathExists=/var/lib/maas/dhcpd-interfaces9ConditionPathExists=/var/lib/maas/dhcpd-interfaces
1010
1111
=== modified file 'debian/maas-dhcp.maas-dhcpd6.service'
--- debian/maas-dhcp.maas-dhcpd6.service 2016-04-22 23:27:40 +0000
+++ debian/maas-dhcp.maas-dhcpd6.service 2016-08-02 23:56:26 +0000
@@ -4,7 +4,7 @@
4Wants=network-online.target4Wants=network-online.target
5After=network-online.target5After=network-online.target
6After=time-sync.target6After=time-sync.target
7BindsTo=maas-rackd.service7BindsTo=maas-relayd.service
8ConditionPathExists=/var/lib/maas/dhcpd6.conf8ConditionPathExists=/var/lib/maas/dhcpd6.conf
9ConditionPathExists=/var/lib/maas/dhcpd6-interfaces9ConditionPathExists=/var/lib/maas/dhcpd6-interfaces
1010
1111
=== modified file 'debian/maas-region-api.apport'
--- debian/maas-region-api.apport 2016-03-25 18:26:49 +0000
+++ debian/maas-region-api.apport 2016-08-02 23:56:26 +0000
@@ -36,7 +36,7 @@
3636
37def add_info(report, ui):37def add_info(report, ui):
38 response = ui.yesno(38 response = ui.yesno(
39 "The contents of /etc/maas/regiond.conf and /etc/maas/rackd.conf "39 "The contents of /etc/maas/regiond.conf and /etc/maas/relayd.conf "
40 "may help developers diagnose your bug more quickly. However, it may "40 "may help developers diagnose your bug more quickly. However, it may "
41 "contain sensitive information. Do you want to include it in your bug "41 "contain sensitive information. Do you want to include it in your bug "
42 "report?")42 "report?")
@@ -50,7 +50,7 @@
50 attach_file_if_exists(50 attach_file_if_exists(
51 report, '/etc/maas/regiond.conf', 'MAASRegionConfig')51 report, '/etc/maas/regiond.conf', 'MAASRegionConfig')
52 attach_file_if_exists(52 attach_file_if_exists(
53 report, '/etc/maas/rackd.conf', 'MAASClusterConfig')53 report, '/etc/maas/relayd.conf', 'MAASClusterConfig')
54 else:54 else:
55 # The user declined to include the configuration files.55 # The user declined to include the configuration files.
56 pass56 pass
@@ -59,14 +59,14 @@
59 attach_file_if_exists(59 attach_file_if_exists(
60 report, '/var/log/maas/regiond.log', 'MAASRegionLog')60 report, '/var/log/maas/regiond.log', 'MAASRegionLog')
61 attach_file_if_exists(61 attach_file_if_exists(
62 report, '/var/log/maas/rackd.log', 'MAASClusterLog')62 report, '/var/log/maas/relayd.log', 'MAASClusterLog')
6363
64 # Attaching log files (systemd). These will overwrite the logs above on a64 # Attaching log files (systemd). These will overwrite the logs above on a
65 # system where systemd is available.65 # system where systemd is available.
66 attach_journal_logs(66 attach_journal_logs(
67 report, "MAASRegionLog", "maas-regiond", "maas-regiond-worker@*")67 report, "MAASRegionLog", "maas-regiond", "maas-regiond-worker@*")
68 attach_journal_logs(68 attach_journal_logs(
69 report, "MAASClusterLog", "maas-rackd")69 report, "MAASClusterLog", "maas-relayd")
7070
71 # Attaching related packages info71 # Attaching related packages info
72 attach_related_packages(report, ['python-django-maas', 'apparmor'])72 attach_related_packages(report, ['python-django-maas', 'apparmor'])
7373
=== modified file 'debian/maas-region-controller.postinst'
--- debian/maas-region-controller.postinst 2016-07-28 02:25:35 +0000
+++ debian/maas-region-controller.postinst 2016-08-02 23:56:26 +0000
@@ -165,8 +165,8 @@
165systemctl restart maas-regiond >/dev/null || true165systemctl restart maas-regiond >/dev/null || true
166invoke-rc.d apache2 restart || true166invoke-rc.d apache2 restart || true
167167
168if [ -f /lib/systemd/system/maas-rackd.service ]; then168if [ -f /lib/systemd/system/maas-relayd.service ]; then
169 systemctl restart maas-rackd >/dev/null || true169 systemctl restart maas-relayd >/dev/null || true
170fi170fi
171171
172db_stop172db_stop
173173
=== renamed file 'debian/maas-rack-udeb.postinst' => 'debian/maas-relay-udeb.postinst'
--- debian/maas-rack-udeb.postinst 2016-04-07 21:14:09 +0000
+++ debian/maas-relay-udeb.postinst 2016-08-02 23:56:26 +0000
@@ -27,20 +27,20 @@
27 1)27 1)
28 # This is a confirmation that we want to install MAAS. If we don't28 # This is a confirmation that we want to install MAAS. If we don't
29 # then we exit the MAAS installation process29 # then we exit the MAAS installation process
30 db_input high maas-rack-udeb/rack-confirmation || true30 db_input high maas-relay-udeb/relay-confirmation || true
31 ;;31 ;;
32 2)32 2)
33 #Ask for MAAS url33 #Ask for MAAS url
34 db_get maas-rack-udeb/rack-confirmation34 db_get maas-relay-udeb/relay-confirmation
35 if [ "$RET" != "true" ]; then35 if [ "$RET" != "true" ]; then
36 break36 break
37 fi37 fi
38 db_input critical maas-rack-udeb/maas-url || true38 db_input critical maas-relay-udeb/maas-url || true
39 ;;39 ;;
4040
41 3)41 3)
42 # Ask for Shared Secret42 # Ask for Shared Secret
43 db_input critical maas-rack-udeb/shared-secret || true43 db_input critical maas-relay-udeb/shared-secret || true
44 ;;44 ;;
4545
46 esac46 esac
@@ -53,25 +53,25 @@
53done53done
54db_capb54db_capb
5555
56db_get maas-rack-udeb/rack-confirmation56db_get maas-relay-udeb/relay-confirmation
57if [ "$RET" != "true" ]; then57if [ "$RET" != "true" ]; then
58 # MAAS rack controller won't be installed58 # MAAS Relay won't be installed
59 exit 059 exit 0
60fi60fi
6161
62db_get maas-rack-udeb/maas-url62db_get maas-relay-udeb/maas-url
63url="$RET"63url="$RET"
64if [ -n "$url" ]; then64if [ -n "$url" ]; then
65 set_question maas-rack-controller maas-rack-controller/maas-url string "$url"65 set_question maas-relay maas-relay/maas-url string "$url"
66fi66fi
6767
68db_get maas-rack-udeb/shared-secret68db_get maas-relay-udeb/shared-secret
69secret="$RET"69secret="$RET"
70if [ -n "$secret" ]; then70if [ -n "$secret" ]; then
71 set_question maas-rack-controller maas-rack-controller/shared-secret password "$secret"71 set_question maas-relay maas-relay/shared-secret password "$secret"
72fi72fi
7373
74# Tell the package manager that we will be installing MAAS Rack Controller74# Tell the package manager that we will be installing MAAS Rack Controller
75db_set pkgsel/include maas-rack-controller75db_set pkgsel/include maas-relay
76set_question tasksel tasksel/first multiselect "standard, server"76set_question tasksel tasksel/first multiselect "standard, server"
77exit 077exit 0
7878
=== renamed file 'debian/maas-rack-udeb.templates' => 'debian/maas-relay-udeb.templates'
--- debian/maas-rack-udeb.templates 2016-06-02 16:34:32 +0000
+++ debian/maas-relay-udeb.templates 2016-08-02 23:56:26 +0000
@@ -1,13 +1,13 @@
1Template: debian-installer/maas-rack-udeb/title1Template: debian-installer/maas-relay-udeb/title
2Type: text2Type: text
3_Description: Install your Metal as a Service (MAAS) Rack Controller3_Description: Install your Metal as a Service (MAAS) Rack Controller
44
5Template: maas-rack-udeb/rack-confirmation5Template: maas-relay-udeb/relay-confirmation
6Type: boolean6Type: boolean
7_Description: Would you like to proceed with the installation of your MAAS Rack Controller?7_Description: Would you like to proceed with the installation of your MAAS Rack Controller?
8 The MAAS rack controller (maas-rackd) provides highly available, fast8 The MAAS Relay (maas-relayd) provides highly available, fast
9 and local broadcast services to the machines provisioned by MAAS. You9 and local broadcast services to the machines provisioned by MAAS. You
10 need a MAAS rack controller attached to each fabric (which is a set of10 need a MAAS Relay attached to each fabric (which is a set of
11 trunked switches). You can attach multiple rack controllers to these11 trunked switches). You can attach multiple rack controllers to these
12 physical networks for high availability, with secondary rack controllers12 physical networks for high availability, with secondary rack controllers
13 automatically stepping to provide these services if the primary rack13 automatically stepping to provide these services if the primary rack
@@ -16,19 +16,19 @@
16 By choosing to install a MAAS Rack controller, you will have to connect16 By choosing to install a MAAS Rack controller, you will have to connect
17 it to a Region controller to service your machines.17 it to a Region controller to service your machines.
1818
19Template: maas-rack-udeb/maas-url19Template: maas-relay-udeb/maas-url
20Type: string20Type: string
21_Description: Ubuntu MAAS Region API address:21_Description: Ubuntu MAAS Region API address:
22 The MAAS rack controller and nodes need to contact the MAAS region22 The MAAS Relay and nodes need to contact the MAAS region
23 controller API. Set the URL at which they can reach the MAAS API remotely,23 controller API. Set the URL at which they can reach the MAAS API remotely,
24 e.g. "http://192.168.1.1:5240/MAAS".24 e.g. "http://192.168.1.1:5240/MAAS".
25 .25 .
26 Since nodes must be able to access this URL, localhost or 127.0.0.1 are not26 Since nodes must be able to access this URL, localhost or 127.0.0.1 are not
27 useful values here.27 useful values here.
2828
29Template: maas-rack-udeb/shared-secret29Template: maas-relay-udeb/shared-secret
30Type: password30Type: password
31_Description: MAAS Rack Controller shared secret:31_Description: MAAS Rack Controller shared secret:
32 The MAAS rack controller needs to contact the MAAS region controller32 The MAAS Relay needs to contact the MAAS region controller
33 with the shared secret found in /var/lib/maas/secret on the region controller.33 with the shared secret found in /var/lib/maas/secret on the region controller.
34 Set the shared secret here.34 Set the shared secret here.
3535
=== renamed file 'debian/maas-rack-controller.config' => 'debian/maas-relay.config'
--- debian/maas-rack-controller.config 2016-03-07 22:01:56 +0000
+++ debian/maas-relay.config 2016-08-02 23:56:26 +0000
@@ -9,7 +9,7 @@
9# XXX Fix to not ask when installing from the CD.9# XXX Fix to not ask when installing from the CD.
10if ([ "$1" = "configure" ] && [ -z "$2" ]); then10if ([ "$1" = "configure" ] && [ -z "$2" ]); then
1111
12 db_get maas-rack-controller/maas-url || true12 db_get maas-relay/maas-url || true
13 if [ -z "$RET" ]; then13 if [ -z "$RET" ]; then
14 # Attempt to pre-populate if installing on the region controller.14 # Attempt to pre-populate if installing on the region controller.
15 if [ -f /usr/sbin/maas-region ]; then15 if [ -f /usr/sbin/maas-region ]; then
@@ -19,18 +19,18 @@
19 if ! echo $url | grep -qs "/MAAS$"; then19 if ! echo $url | grep -qs "/MAAS$"; then
20 url="${url}/MAAS"20 url="${url}/MAAS"
21 fi21 fi
22 db_set maas-rack-controller/maas-url "$url"22 db_set maas-relay/maas-url "$url"
23 else23 else
24 # Will only get here if dbconf value not already set, or24 # Will only get here if dbconf value not already set, or
25 # /etc/maas/regiond.conf doesn't exist.25 # /etc/maas/regiond.conf doesn't exist.
26 db_input medium maas-rack-controller/maas-url || true26 db_input medium maas-relay/maas-url || true
27 db_go27 db_go
28 fi28 fi
29 fi29 fi
30fi30fi
3131
32if [ "$1" = "reconfigure" ]; then32if [ "$1" = "reconfigure" ]; then
33 db_input high maas-rack-controller/maas-url || true33 db_input high maas-relay/maas-url || true
34 db_go34 db_go
35fi35fi
36#DEBHELPER#36#DEBHELPER#
3737
=== renamed file 'debian/maas-rack-controller.dirs' => 'debian/maas-relay.dirs'
=== renamed file 'debian/maas-rack-controller.install' => 'debian/maas-relay.install'
--- debian/maas-rack-controller.install 2016-03-25 14:09:59 +0000
+++ debian/maas-relay.install 2016-08-02 23:56:26 +0000
@@ -11,4 +11,4 @@
11# Install all other stuff11# Install all other stuff
12debian/extras/99-maas-sudoers etc/sudoers.d12debian/extras/99-maas-sudoers etc/sudoers.d
13debian/extras/maas-probe-dhcp usr/sbin13debian/extras/maas-probe-dhcp usr/sbin
14debian/extras/maas-rack usr/sbin14debian/extras/maas-relay usr/sbin
1515
=== renamed file 'debian/maas-rack-controller.links' => 'debian/maas-relay.links'
--- debian/maas-rack-controller.links 2016-03-07 22:01:56 +0000
+++ debian/maas-relay.links 2016-08-02 23:56:26 +0000
@@ -1,1 +1,1 @@
1usr/sbin/maas-rack usr/sbin/maas-provision1usr/sbin/maas-relay usr/sbin/maas-provision
22
=== renamed file 'debian/maas-rack-controller.lintian-overrides' => 'debian/maas-relay.lintian-overrides'
--- debian/maas-rack-controller.lintian-overrides 2016-03-22 17:07:45 +0000
+++ debian/maas-relay.lintian-overrides 2016-08-02 23:56:26 +0000
@@ -1,1 +1,1 @@
1maas-rack-controller: binary-without-manpage usr/bin/uec2roottar usr/sbin/maas-dhcp-helper1maas-relay: binary-without-manpage usr/bin/uec2roottar usr/sbin/maas-dhcp-helper
22
=== renamed file 'debian/maas-rack-controller.logrotate' => 'debian/maas-relay.logrotate'
--- debian/maas-rack-controller.logrotate 2016-02-04 10:08:48 +0000
+++ debian/maas-relay.logrotate 2016-08-02 23:56:26 +0000
@@ -1,4 +1,4 @@
1/var/log/maas/rackd.log {1/var/log/maas/relayd.log {
2 rotate 52 rotate 5
3 weekly3 weekly
4 compress4 compress
55
=== renamed file 'debian/maas-rack-controller.maas-rackd.service' => 'debian/maas-relay.maas-relayd.service'
--- debian/maas-rack-controller.maas-rackd.service 2016-03-31 21:53:56 +0000
+++ debian/maas-relay.maas-relayd.service 2016-08-02 23:56:26 +0000
@@ -9,19 +9,19 @@
9Group=maas9Group=maas
10Restart=always10Restart=always
11RestartSec=10s11RestartSec=10s
12Environment="LOGFILE=/var/log/maas/rackd.log"12Environment="LOGFILE=/var/log/maas/relayd.log"
13# Prevent maas-dhcpd and maas-dhcpd6 from starting until maas-rackd13# Prevent maas-dhcpd and maas-dhcpd6 from starting until maas-relayd
14# has regenerated the configurations and told the services to start.14# has regenerated the configurations and told the services to start.
15ExecStartPre=/bin/rm -f /var/lib/maas/dhcpd.sock15ExecStartPre=/bin/rm -f /var/lib/maas/dhcpd.sock
16ExecStartPre=/bin/rm -f /var/lib/maas/dhcpd.conf16ExecStartPre=/bin/rm -f /var/lib/maas/dhcpd.conf
17ExecStartPre=/bin/rm -f /var/lib/maas/dhcpd6.conf17ExecStartPre=/bin/rm -f /var/lib/maas/dhcpd6.conf
18# Logs go to the journal; read them with18# Logs go to the journal; read them with
19# journalctl -u maas-rackd19# journalctl -u maas-relayd
20# Logs also go to $LOGFILE for backward compatibility. The journal20# Logs also go to $LOGFILE for backward compatibility. The journal
21# should now be preferred as the $LOGFILE will be removed in MAAS 1.9.21# should now be preferred as the $LOGFILE will be removed in MAAS 1.9.
22ExecStart=/bin/sh -c \22ExecStart=/bin/sh -c \
23 'exec /usr/bin/authbind --deep /usr/bin/twistd3 --nodaemon --pidfile= \23 'exec /usr/bin/authbind --deep /usr/bin/twistd3 --nodaemon --pidfile= \
24 maas-rackd 2>&1 | tee -a $LOGFILE'24 maas-relayd 2>&1 | tee -a $LOGFILE'
2525
26[Install]26[Install]
27WantedBy=multi-user.target27WantedBy=multi-user.target
2828
=== renamed file 'debian/maas-rack-controller.maintscript' => 'debian/maas-relay.maintscript'
=== renamed file 'debian/maas-rack-controller.postinst' => 'debian/maas-relay.postinst'
--- debian/maas-rack-controller.postinst 2016-04-07 01:22:47 +0000
+++ debian/maas-relay.postinst 2016-08-02 23:56:26 +0000
@@ -9,10 +9,10 @@
99
10configure_logging() {10configure_logging() {
11 # Give appropriate permissions11 # Give appropriate permissions
12 if [ ! -f /var/log/maas/rackd.log ]; then12 if [ ! -f /var/log/maas/relayd.log ]; then
13 touch /var/log/maas/rackd.log13 touch /var/log/maas/relayd.log
14 fi14 fi
15 chown maas:maas /var/log/maas/rackd.log15 chown maas:maas /var/log/maas/relayd.log
16}16}
1717
18configure_libdir() {18configure_libdir() {
@@ -73,7 +73,7 @@
7373
74configure_cluster_uuid(){74configure_cluster_uuid(){
75 # This will configure a UUID if one has not previously been set.75 # This will configure a UUID if one has not previously been set.
76 maas-rack config --init76 maas-relay config --init
77}77}
7878
79configure_cluster_authbind() {79configure_cluster_authbind() {
@@ -93,16 +93,16 @@
9393
94configure_maas_url(){94configure_maas_url(){
95 # Get the MAAS URL on configure/reconfigure and write it to the conf files.95 # Get the MAAS URL on configure/reconfigure and write it to the conf files.
96 db_get maas-rack-controller/maas-url || true96 db_get maas-relay/maas-url || true
97 if [ -n "$RET" ]; then97 if [ -n "$RET" ]; then
98 maas-rack config --region-url "$RET"98 maas-relay config --region-url "$RET"
99 fi99 fi
100}100}
101101
102configure_shared_secret() {102configure_shared_secret() {
103 db_get maas-rack-controller/shared-secret || true103 db_get maas-relay/shared-secret || true
104 if [ -n "$RET" ]; then104 if [ -n "$RET" ]; then
105 echo "$RET" | maas-rack install-shared-secret105 echo "$RET" | maas-relay install-shared-secret
106 chown maas:maas /var/lib/maas/secret106 chown maas:maas /var/lib/maas/secret
107 chmod 0640 /var/lib/maas/secret107 chmod 0640 /var/lib/maas/secret
108 fi108 fi
@@ -114,10 +114,10 @@
114 # it with the new configuration tool.114 # it with the new configuration tool.
115 if [ -f /etc/maas/maas_cluster.conf ]; then115 if [ -f /etc/maas/maas_cluster.conf ]; then
116 uuid=$(extract_cluster_uuid /etc/maas/maas_cluster.conf)116 uuid=$(extract_cluster_uuid /etc/maas/maas_cluster.conf)
117 maas-rack config --uuid "$uuid"117 maas-relay config --uuid "$uuid"
118 maas_url=$(extract_maas_url /etc/maas/maas_cluster.conf)118 maas_url=$(extract_maas_url /etc/maas/maas_cluster.conf)
119 maas-rack config --region-url "$maas_url"119 maas-relay config --region-url "$maas_url"
120 db_set maas-rack-controller/maas-url "$maas_url"120 db_set maas-relay/maas-url "$maas_url"
121 mv /etc/maas/maas_cluster.conf /etc/maas/maas_cluster.conf.maas-old121 mv /etc/maas/maas_cluster.conf /etc/maas/maas_cluster.conf.maas-old
122 mv /etc/maas/pserv.yaml /etc/maas/pserv.yaml.maas-old122 mv /etc/maas/pserv.yaml /etc/maas/pserv.yaml.maas-old
123 fi123 fi
@@ -125,15 +125,15 @@
125 # the maas_url and set it to debconf. Otherwise, the config file used125 # the maas_url and set it to debconf. Otherwise, the config file used
126 # is exactly the same.126 # is exactly the same.
127 if [ -f /etc/maas/clusterd.conf.1.10 ]; then127 if [ -f /etc/maas/clusterd.conf.1.10 ]; then
128 mv /etc/maas/clusterd.conf.1.10 /etc/maas/rackd.conf128 mv /etc/maas/clusterd.conf.1.10 /etc/maas/relayd.conf
129 maas_url=$(extract_maas_url /etc/maas/rackd.conf)129 maas_url=$(extract_maas_url /etc/maas/relayd.conf)
130 db_set maas-rack-controller/maas-url "$maas_url"130 db_set maas-relay/maas-url "$maas_url"
131 fi131 fi
132}132}
133133
134# Unconditionally ensure that there is at least an empty configuration134# Unconditionally ensure that there is at least an empty configuration
135# file. This does *not* overwrite any existing configuration.135# file. This does *not* overwrite any existing configuration.
136maas-rack config136maas-relay config
137137
138if [ "$1" = "configure" ] && [ -z "$2" ]; then138if [ "$1" = "configure" ] && [ -z "$2" ]; then
139 configure_logging139 configure_logging
@@ -142,7 +142,7 @@
142 configure_maas_url142 configure_maas_url
143 configure_cluster_uuid143 configure_cluster_uuid
144 configure_cluster_authbind144 configure_cluster_authbind
145 maas-rack upgrade-cluster145 maas-relay upgrade-cluster
146 upgrade_from_cluster_controller146 upgrade_from_cluster_controller
147 configure_shared_secret147 configure_shared_secret
148148
@@ -151,7 +151,7 @@
151 # Only ask for a shared secret when the region is not installed151 # Only ask for a shared secret when the region is not installed
152 # on the same system.152 # on the same system.
153 if [ ! -f /usr/sbin/maas-region ]; then153 if [ ! -f /usr/sbin/maas-region ]; then
154 db_input high maas-rack-controller/shared-secret154 db_input high maas-relay/shared-secret
155 db_go155 db_go
156 fi156 fi
157 configure_shared_secret157 configure_shared_secret
@@ -160,7 +160,7 @@
160 configure_logging160 configure_logging
161 configure_libdir161 configure_libdir
162 configure_cluster_authbind162 configure_cluster_authbind
163 maas-rack upgrade-cluster163 maas-relay upgrade-cluster
164fi164fi
165165
166db_stop166db_stop
167167
=== renamed file 'debian/maas-rack-controller.postrm' => 'debian/maas-relay.postrm'
--- debian/maas-rack-controller.postrm 2016-03-31 23:55:39 +0000
+++ debian/maas-relay.postrm 2016-08-02 23:56:26 +0000
@@ -9,7 +9,7 @@
9case "$1" in9case "$1" in
10 purge)10 purge)
11 # remove logfile as it wasn't installed by packaging11 # remove logfile as it wasn't installed by packaging
12 rm -rf /var/log/maas/rackd.log*12 rm -rf /var/log/maas/relayd.log*
1313
14 # remove var directories provided it will always have files14 # remove var directories provided it will always have files
15 # not installed or tracked by packaging15 # not installed or tracked by packaging
@@ -33,8 +33,8 @@
33 rm -rf /etc/authbind/byuid/$MAAS_UID33 rm -rf /etc/authbind/byuid/$MAAS_UID
34 fi34 fi
3535
36 # Remove rackd.conf file36 # Remove relayd.conf file
37 rm -rf /etc/maas/rackd.conf37 rm -rf /etc/maas/relayd.conf
3838
39 # Deleting old config files if they exist39 # Deleting old config files if they exist
40 if [ -f /etc/maas/pserv.yaml.maas-old ]; then40 if [ -f /etc/maas/pserv.yaml.maas-old ]; then
4141
=== renamed file 'debian/maas-rack-controller.preinst' => 'debian/maas-relay.preinst'
--- debian/maas-rack-controller.preinst 2016-03-25 14:09:59 +0000
+++ debian/maas-relay.preinst 2016-08-02 23:56:26 +0000
@@ -38,7 +38,7 @@
38 fi38 fi
3939
40 if [ -f /var/log/maas/clusterd.log ]; then40 if [ -f /var/log/maas/clusterd.log ]; then
41 mv /var/log/maas/clusterd.log /var/log/maas/rackd.log41 mv /var/log/maas/clusterd.log /var/log/maas/relayd.log
42 fi42 fi
4343
44fi44fi
4545
=== renamed file 'debian/maas-rack-controller.templates' => 'debian/maas-relay.templates'
--- debian/maas-rack-controller.templates 2016-06-02 16:34:32 +0000
+++ debian/maas-relay.templates 2016-08-02 23:56:26 +0000
@@ -1,4 +1,4 @@
1Template: maas-rack-controller/maas-url1Template: maas-relay/maas-url
2Type: string2Type: string
3_Description: Ubuntu MAAS API address:3_Description: Ubuntu MAAS API address:
4 The MAAS cluster controller and nodes need to contact the MAAS region4 The MAAS cluster controller and nodes need to contact the MAAS region
@@ -7,9 +7,9 @@
7 Since nodes must be able to access this URL, localhost or 127.0.0.1 are not7 Since nodes must be able to access this URL, localhost or 127.0.0.1 are not
8 useful values here.8 useful values here.
99
10Template: maas-rack-controller/shared-secret10Template: maas-relay/shared-secret
11Type: password11Type: password
12_Description: MAAS Rack Controller Shared Secret:12_Description: MAAS Rack Controller Shared Secret:
13 The MAAS rack controller needs to contact the MAAS region controller13 The MAAS Relay needs to contact the MAAS region controller
14 with the shared secret found in /var/lib/maas/secret on the region controller.14 with the shared secret found in /var/lib/maas/secret on the region controller.
15 Set the shared secret here.15 Set the shared secret here.
1616
=== modified file 'debian/rules'
--- debian/rules 2016-07-06 13:49:52 +0000
+++ debian/rules 2016-08-02 23:56:26 +0000
@@ -15,21 +15,21 @@
15override_dh_installinit:15override_dh_installinit:
16 dh_installinit -p maas-region-api --name=maas-regiond --no-start16 dh_installinit -p maas-region-api --name=maas-regiond --no-start
17 dh_installinit -p maas-region-api --name=maas-regiond-worker@ --no-start17 dh_installinit -p maas-region-api --name=maas-regiond-worker@ --no-start
18 dh_installinit -p maas-rack-controller --name=maas-rackd18 dh_installinit -p maas-relay --name=maas-relayd
19 dh_installinit -p maas-proxy --name=maas-proxy19 dh_installinit -p maas-proxy --name=maas-proxy
20 dh_installinit -p maas-dhcp --name=maas-dhcpd20 dh_installinit -p maas-dhcp --name=maas-dhcpd
21 dh_installinit -p maas-dhcp --name=maas-dhcpd621 dh_installinit -p maas-dhcp --name=maas-dhcpd6
2222
23override_dh_systemd_enable:23override_dh_systemd_enable:
24 dh_systemd_enable -p maas-region-api --name=maas-regiond24 dh_systemd_enable -p maas-region-api --name=maas-regiond
25 dh_systemd_enable -p maas-rack-controller --name=maas-rackd25 dh_systemd_enable -p maas-relay --name=maas-relayd
26 dh_systemd_enable -p maas-proxy --name=maas-proxy26 dh_systemd_enable -p maas-proxy --name=maas-proxy
27 dh_systemd_enable -p maas-dhcp --name=maas-dhcpd27 dh_systemd_enable -p maas-dhcp --name=maas-dhcpd
28 dh_systemd_enable -p maas-dhcp --name=maas-dhcpd628 dh_systemd_enable -p maas-dhcp --name=maas-dhcpd6
2929
30override_dh_systemd_start:30override_dh_systemd_start:
31 dh_systemd_start -p maas-region-api --no-start maas-regiond.service31 dh_systemd_start -p maas-region-api --no-start maas-regiond.service
32 dh_systemd_start -p maas-rack-controller maas-rackd.service32 dh_systemd_start -p maas-relay maas-relayd.service
33 dh_systemd_start -p maas-proxy maas-proxy.service33 dh_systemd_start -p maas-proxy maas-proxy.service
34 dh_systemd_start -p maas-dhcp maas-dhcpd.service34 dh_systemd_start -p maas-dhcp maas-dhcpd.service
35 dh_systemd_start -p maas-dhcp maas-dhcpd6.service35 dh_systemd_start -p maas-dhcp maas-dhcpd6.service
@@ -64,7 +64,7 @@
64 # install python3 twisted plugins64 # install python3 twisted plugins
65 set -ex; for python in $(PYTHON3); do \65 set -ex; for python in $(PYTHON3); do \
66 dh_install twisted/plugins/maasregiond.py usr/lib/$$python/dist-packages/twisted/plugins -pmaas-region-api; \66 dh_install twisted/plugins/maasregiond.py usr/lib/$$python/dist-packages/twisted/plugins -pmaas-region-api; \
67 dh_install twisted/plugins/maasrackd.py usr/lib/$$python/dist-packages/twisted/plugins -pmaas-rack-controller; \67 dh_install twisted/plugins/maasrelayd.py usr/lib/$$python/dist-packages/twisted/plugins -pmaas-relay; \
68 done68 done
6969
70 dh_install --list-missing70 dh_install --list-missing

Subscribers

People subscribed via source and target branches

to all changes: