Merge ~andreserl/maas:pkg-from-source into maas:master

Proposed by Andres Rodriguez
Status: Merged
Approved by: Andres Rodriguez
Approved revision: 71f257bb19f57451d5272fb7d47fbe1b0e1ec6a9
Merge reported by: MAAS Lander
Merged at revision: not available
Proposed branch: ~andreserl/maas:pkg-from-source
Merge into: maas:master
Diff against target: 5675 lines (+5121/-0)
91 files modified
.gitattributes (+9/-0)
.gitignore (+1/-0)
debian/changelog (+2494/-0)
debian/compat (+1/-0)
debian/control (+307/-0)
debian/copyright (+45/-0)
debian/extras/20-maas.conf (+40/-0)
debian/extras/99-maas-common-sudoers (+12/-0)
debian/extras/99-maas-region-sudoers (+7/-0)
debian/extras/99-maas-sudoers (+16/-0)
debian/extras/isc-dhcp-server.override (+1/-0)
debian/extras/maas (+13/-0)
debian/extras/maas-proxy-common.sh (+23/-0)
debian/extras/maas-rack (+87/-0)
debian/extras/maas-region (+65/-0)
debian/extras/maas_remote_syslog_compress (+2/-0)
debian/extras/squid3.override (+1/-0)
debian/maas-cli.install (+1/-0)
debian/maas-cli.links (+1/-0)
debian/maas-cli.lintian-overrides (+1/-0)
debian/maas-common.dirs (+3/-0)
debian/maas-common.install (+4/-0)
debian/maas-common.lintian-overrides (+1/-0)
debian/maas-common.logrotate (+13/-0)
debian/maas-common.maintscript (+2/-0)
debian/maas-common.postinst (+40/-0)
debian/maas-common.postrm (+21/-0)
debian/maas-common.templates (+54/-0)
debian/maas-dhcp.apparmor (+10/-0)
debian/maas-dhcp.dirs (+2/-0)
debian/maas-dhcp.install (+1/-0)
debian/maas-dhcp.maas-dhcpd.service (+28/-0)
debian/maas-dhcp.maas-dhcpd6.service (+28/-0)
debian/maas-dhcp.maintscript (+2/-0)
debian/maas-dhcp.postinst (+35/-0)
debian/maas-dhcp.postrm (+16/-0)
debian/maas-dhcp.preinst (+16/-0)
debian/maas-dns.dirs (+1/-0)
debian/maas-dns.postinst (+61/-0)
debian/maas-dns.postrm (+25/-0)
debian/maas-proxy.dirs (+2/-0)
debian/maas-proxy.install (+1/-0)
debian/maas-proxy.logrotate (+24/-0)
debian/maas-proxy.maas-proxy.service (+19/-0)
debian/maas-proxy.postinst (+28/-0)
debian/maas-proxy.postrm (+12/-0)
debian/maas-rack-controller.config (+36/-0)
debian/maas-rack-controller.dirs (+4/-0)
debian/maas-rack-controller.install (+17/-0)
debian/maas-rack-controller.links (+1/-0)
debian/maas-rack-controller.lintian-overrides (+1/-0)
debian/maas-rack-controller.logrotate (+15/-0)
debian/maas-rack-controller.maas-rackd.service (+28/-0)
debian/maas-rack-controller.maintscript (+9/-0)
debian/maas-rack-controller.postinst (+168/-0)
debian/maas-rack-controller.postrm (+50/-0)
debian/maas-rack-controller.preinst (+56/-0)
debian/maas-rack-controller.templates (+15/-0)
debian/maas-rack-udeb.postinst (+77/-0)
debian/maas-rack-udeb.templates (+34/-0)
debian/maas-region-api.apport (+72/-0)
debian/maas-region-api.install (+20/-0)
debian/maas-region-api.links (+8/-0)
debian/maas-region-api.lintian-overrides (+5/-0)
debian/maas-region-api.logrotate (+15/-0)
debian/maas-region-api.maas-regiond-worker@.service (+28/-0)
debian/maas-region-api.maas-regiond.service (+24/-0)
debian/maas-region-api.maintscript (+7/-0)
debian/maas-region-api.postinst (+82/-0)
debian/maas-region-api.postrm (+50/-0)
debian/maas-region-api.preinst (+38/-0)
debian/maas-region-api.prerm (+9/-0)
debian/maas-region-controller.config (+49/-0)
debian/maas-region-controller.postinst (+194/-0)
debian/maas-region-controller.postrm (+22/-0)
debian/maas-region-controller.prerm (+13/-0)
debian/maas-region-controller.templates (+38/-0)
debian/maas-region-udeb.postinst (+82/-0)
debian/maas-region-udeb.templates (+29/-0)
debian/maintscript (+2/-0)
debian/patches/series (+0/-0)
debian/po/POTFILES.in (+1/-0)
debian/po/templates.pot (+69/-0)
debian/python3-django-maas.install (+2/-0)
debian/python3-maas-client.install (+2/-0)
debian/python3-maas-provisioningserver.install (+1/-0)
debian/rules (+75/-0)
debian/source/format (+1/-0)
debian/watch (+3/-0)
utilities/publish (+31/-0)
utilities/release-build (+62/-0)
Reviewer Review Type Date Requested Status
Andres Rodriguez (community) Approve
Mike Pontillo (community) Approve
Blake Rouse (community) Approve
Review via email: mp+326953@code.launchpad.net

Commit message

Merge packaging into master.
Add release-build and publish helper scripts.
Update gitignore and add gitattributes to create better tarballs.

To post a comment you must log in.
Revision history for this message
Blake Rouse (blake-rouse) wrote :

Looks good. Glad to see this finally in the code.

review: Approve
Revision history for this message
Mike Pontillo (mpontillo) wrote :

Nice! I approve, with suggestions.

I pulled your branch and tried it out; I noticed that when I ran `utilities/release-build`, it failed because the latest changelog entry's email address didn't match my GPG key.

I don't remember having to update the changelog first when packaging was separate; is your script supposed to do this automatically?

Running `dch -i` and re-running the script fixed it for me.

I noticed that you use the "pwd" command at the top of your scripts; it might be better to do what some of the other scripts do, such as:

    SANDBOX="$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. && pwd)"

Then you can run the script from anywhere and it will find the correct $SANDBOX. (You can then `cd "$SANDBOX"`, for example, and be in the root directory of the checked-out code.)

review: Approve
Revision history for this message
Andres Rodriguez (andreserl) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/.gitattributes b/.gitattributes
0new file mode 1006440new file mode 100644
index 0000000..5c54628
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,9 @@
1/build_pkg export-ignore
2/debian export-ignore
3/utilities export-ignore
4/required-packages export-ignore
5/snap export-ignore
6/run-skel export-ignore
7/services export-ignore
8.gitignore export-ignore
9.gitattributes export-ignore
diff --git a/.gitignore b/.gitignore
index 8aa8c67..54fa9ea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,6 +20,7 @@
20/.run-e2e20/.run-e2e
21/bin21/bin
22/build22/build
23/build_pkg
23/coverage24/coverage
24/coverage.xml25/coverage.xml
25/db26/db
diff --git a/debian/.control.swp b/debian/.control.swp
26new file mode 10064427new file mode 100644
index 0000000..b7bff16
27Binary files /dev/null and b/debian/.control.swp differ28Binary files /dev/null and b/debian/.control.swp differ
diff --git a/debian/changelog b/debian/changelog
28new file mode 10064429new file mode 100644
index 0000000..00bd941
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,2494 @@
1maas (2.3.0~alpha1-0ubuntu1) UNRELEASED; urgency=medium
2
3 * Add "maas-rack observe-beacons" to list of commands capable of
4 running as the "maas" user.
5 * Add /usr/lib/maas/maas-beacon-monitor script.
6 * Add maas-beacon-monitor script to sudoers file.
7 (Allows observation of UDP traffic sent to port 5240.)
8
9 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 28 Jun 2017 14:53:05 -0400
10
11maas (2.2.0+bzr6054-0ubuntu2) artful; urgency=medium
12
13 * debian/rules: Fix FTBFS in artful.
14
15 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 08 Jun 2017 18:57:01 -0400
16
17maas (2.2.0+bzr6054-0ubuntu1) artful; urgency=medium
18
19 * New upstream release, MAAS 2.2.0.
20
21 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 18 May 2017 11:08:43 -0400
22
23maas (2.2.0~rc4+bzr6048-0ubuntu1) zesty; urgency=medium
24
25 * New upstream release, MAAS 2.2.0 RC 4.
26
27 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 27 Apr 2017 16:10:06 -0400
28
29maas (2.2.0~rc3+bzr6025-0ubuntu1) artful; urgency=medium
30
31 * New upstream release, MAAS 2.2.0 RC 3.
32
33 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 21 Apr 2017 09:49:58 -0400
34
35maas (2.2.0~rc2+bzr5983-0ubuntu1) zesty; urgency=medium
36
37 * New upstream release, MAAS 2.2.0 RC 2.
38
39 -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 15 Apr 2017 00:17:22 -0400
40
41maas (2.2.0~rc1+bzr5922-0ubuntu2) zesty; urgency=medium
42
43 * Bump depends version on python3-curtin. (LP: #1680175)
44
45 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 05 Apr 2017 13:51:58 -0400
46
47maas (2.2.0~rc1+bzr5922-0ubuntu1) zesty; urgency=medium
48
49 * New upstream release, MAAS 2.2.0 RC 1. (FFe LP: #1667141)
50 * debian/maas-common.logrotate: Rotate maas.log weekly, instead of daily.
51 Store logs for 8 weeks. (LP: #1677005)
52
53 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 28 Mar 2017 11:08:38 -0400
54
55maas (2.2.0~beta4+bzr5856-0ubuntu1) zesty; urgency=medium
56
57 * New upstream release, MAAS 2.2.0 Beta 4. (FFe LP: #1667141)
58 - Add support to disable components.
59 - Improve RSD details page. Show composed machines and power tab.
60 - Add NTP & Internet connectivity tests.
61 - UX improvements - Change to new tab system to improve navigation.
62 - Error surfacing - For interfaces of Machines & Devices.
63 - Windows deployments - support to select the root/boot disk.
64
65 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 16 Mar 2017 16:10:26 +0000
66
67maas (2.2.0~beta3+bzr5815-0ubuntu1) zesty; urgency=medium
68
69 * New upstream release. MAAS 2.2.0 Beta 3 (FFe LP: #1667141):
70 - Introduce storage verification smoke tests.
71 - Introduce notifications API.
72 - Add device details page.
73 - Introduce Wedge BMC discovery during commissioning.
74 - Add pod listing & details page.
75 - Add dynamic composition for virsh devices.
76
77 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 15 Feb 2017 08:37:25 -0500
78
79maas (2.2.0~beta2+bzr5717-0ubuntu1) zesty; urgency=medium
80
81 * New upstream release. MAAS 2.2.0 Beta 2 (bzr5717):
82 - Introduce initial support for Intel RSD.
83 - Introduce IPv6 IPMI auto-discovery.
84 - Introduce notifications.
85
86 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 30 Jan 2017 15:55:02 -0500
87
88maas (2.2.0~beta1+bzr5675-0ubuntu1) zesty; urgency=medium
89
90 * New upstream release. MAAS 2.2.0 Beta 1 (bzr5675):
91 - Changing the concept of Spaces to a L2 layer.
92 - Support for DHCP relays.
93 - Introduce the concept of UNMANAGED subnets.
94
95 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 11 Jan 2017 13:34:46 +0200
96
97maas (2.2.0~alpha1+bzr5614-0ubuntu1) zesty; urgency=medium
98
99 * New upstream release. MAAS 2.2.0 Alpha 1 (bzr5614):
100 - Don't install Django settings into /usr/share/maas/maas. For
101 regiond these were squatting the `maas` namespace, preventing its
102 use elsewhere (LP: #1646748)
103
104 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 21 Nov 2016 20:01:31 -0500
105
106maas (2.1.1+bzr5501-0ubuntu1) zesty; urgency=medium
107
108 * MAAS new upstream bugfix release. MAAS 2.1.1 bzr 5544.
109
110 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 24 Oct 2016 11:28:59 -0400
111
112maas (2.1.0+bzr5480-0ubuntu1) yakkety; urgency=medium
113
114 * MAAS new upstream bugfix release. MAAS 2.1.0 (0-day SRU LP: #1633064):
115 - TestPartition.test_get_partition_number_returns_starting_at_2_for_ppc64el
116 fails spuriously (LP: #1569365)
117 - "Deployed" and "Deploying" are too similar (LP: #1598470)
118 - Users' maas api keys do not have a name (LP: #1536354)
119 - [2.1] Incorrect logging message - showing SERVICE_STATE.ON (LP: #1631358)
120 - [2.1 UI] Images page "Queued for download" is confusing when selections
121 are not saved (LP: #1631420)
122 - [2.1b1] Dashboard column widths for discovered items are
123 wonky (LP: #1631024)
124 - [2.1b1] 'Registering existing rack controller' (LP: #1631022)
125 - [2.1] Command 'interface link-subnet' does not work (LP: #1629604)
126 - [FUJ] SSH input field not indicated for invalid username & the error
127 is incomprehensible (LP: #1628114)
128 - [2.1 ipv6] DHCP generation should not fail when address-family
129 conflicts are present (LP: #1629475)
130 - [2.0rc2] Commissioning node with gateway_link_v4 set fails. (LP: #1603466)
131 - [2.1, 2.0 UI] Error when using dhcp range with pre-existing dynamic
132 reservation (LP: #1608555)
133 - [2.1b2] Node failed to be released, because of the following error:
134 'NoneType' object has no attribute 'addErrback' (LP: #1632815)
135 - [2.1, Yakkety, UI] UI error when adding a chassis (LP: #1632395)
136 - [2.0, 2.1 UI] Other reserved IP ranges disappear when one of them is
137 deleted on Subnet details page. (LP: #1631079)
138 - [2.1b1] MAAS fails to deploy systems with 3+ TB disks (LP: #1630667)
139 - [2.1 Yakkety UI] Unable to select nodes (LP: #1630633)
140 - [2.0, 2.1] Release and list IPs reserved by another user (LP: #1629061)
141 - [2.0rc2] Changing DNSSEC validation does not trigger configuration
142 file update (LP: #1605476)
143 - [2.1] Failed to mount a partition and it doesn't surface error. (LP: #1631152)
144 - [2.1. Yakkety] "Map subnet" action doesn't work. (LP: #1632862)
145
146 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 05 Oct 2016 21:47:25 -0400
147
148maas (2.1.0~beta2+bzr5454-0ubuntu1) yakkety; urgency=medium
149
150 * MAAS new upstream bugfix release. MAAS 2.1.0 beta 2 (bzr5454):
151 - [2.1] Bootloaders not downloaded on initial import (LP: #1630394)
152 - Cryptic error when PXE-boot requires an image not yet imported (LP: #1611949)
153 - [2.0, 2.1, UI] MAAS webui allows boot disk to be changed on an
154 already deployed node (LP: #1625676)
155 - [2.1] Rename "Networks" tab to "Subnets" (LP: #1630591)
156 - [2.1] netaddr assumes MAC OUI is ascii (LP: #1628761)
157 - [2.1, 2.0] Can't input dynamic range on "Enable DHCP" after I deleted
158 the dynamic range (LP: #1619262)
159 - Machine unable to pxe with no-such-image while non-related images are
160 being imported (LP: #1612203)
161 - External DHCP detection is broken for a variety of reasons (LP: #1628645)
162 - [2.1] expected string or bytes-like object (LP: #1627362)
163 - [2.1] When trying to release a node, it gets stuck in releasing if
164 there is no rack controller to power control (LP: #1614659)
165 - WebUI needs a filter for deployed OS (LP: #1445941)
166
167 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 05 Oct 2016 10:59:45 -0400
168
169maas (2.1.0~beta1+bzr5433-0ubuntu1) yakkety; urgency=medium
170
171 * MAAS new upstream release. MAAS 2.1.0 beta 1 (bzr5433):
172 - Support for new version of streams.
173 - Bootloaders are now downloaded from the streams.
174 - Support for Low Latency kernels.
175 - Support for new hardware enablement kernels.
176 - Device discovery
177 - UI ability to Map a network as an action.
178 - Ability to select interval of active discovery.
179 - Ability to enable active discovery per subnet.
180 * Remove old template files on package removal.
181
182 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 27 Sep 2016 14:44:26 -0400
183
184maas (2.1.0~alpha4+bzr5397-0ubuntu1) yakkety; urgency=medium
185
186 * MAAS new upstream release, MAAS 2.1.0 alpha 4 (bzr5397):
187 - Complete First User Journey (Ability to import keys from GH/LP).
188 - User profile has ability to import keys from GH/LP as well.
189 - Device discovery:
190 - Ability to clear records that may be incorrect.
191 - Ability to 'Map networks' via the API.
192 - Import NTP configuration via vendor-data and DHCP.
193
194 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 19 Sep 2016 17:21:47 -0400
195
196maas (2.1.0~alpha3+bzr5368-0ubuntu1) yakkety; urgency=medium
197
198 * New upstream release, MAAS 2.1.0 Alpha 3 (bzr5363):
199 - First user journey (SSH key import not yet available).
200 - Allow the user to import SSH keys from LP or GH (only API/CLI).
201 - Provide NTP services. Region and Rack Controllers now provide NTP
202 services. Machines are also deployed with NTP configuration via.
203 + Add cloud-init vendor data to support configuring the machine with
204 NTP settings.
205 - Images page complete redesign and transition to AngularJS.
206
207 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 19 Sep 2016 17:21:20 -0400
208
209maas (2.1.0~alpha2+bzr5321-0ubuntu1) yakkety; urgency=medium
210
211 * New upstream release, MAAS 2.1.0 Alpha 2 (bzr5321):
212 - Commissioning user data and PXE templates no longer user configs.
213 They are no longer shipped on /etc/maas.
214 - Adds support for Device Discovery (Backend and API).
215 - [UI] Better error surfacing for DHCP snippets and Package Repositories.
216 * Add depends on avahi-utils, ntp, and tcpdump.
217 * Old templates still exist. Move them so users know they are no longer
218 user (LP: #1619202)
219 * Create the /etc/ntp directory. MAAS writes custom NTP configuration
220 to /etc/ntp/maas.conf because ntpd is allowed by AppArmor to read
221 configuration only from /etc/ntp.conf and /etc/ntp/**.
222
223 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 31 Aug 2016 20:25:17 +0100
224
225maas (2.1.0~alpha1+bzr5300-0ubuntu1) yakkety; urgency=medium
226
227 * New upstream release, MAAS 2.1.0 Alpha 1 (bzr5300):
228 - Advanced networking - static routes.
229 - Machine networking - bridge configuration.
230 - Machine networking - UI redesign and tags.
231 - Derived (mirrors) and additional repositories.
232 - Maintenance - Rescue Mode.
233 - Device discovery - backend.
234 - NTP support - backend.
235 * Give MAAS on both region and rack the ability to start, restart, and
236 get the status of the local NTP service.
237 * Depend on python3-attr for the region and rack controllers.
238
239 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 03 Aug 2016 10:51:50 -0400
240
241maas (2.0.0~rc3+bzr5180-0ubuntu2) yakkety; urgency=medium
242
243 * Really fix by the determination of the default gateway, otherwise
244 automatically chose localhost. (LP: #1607112)
245
246 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 27 Jul 2016 22:20:09 -0400
247
248maas (2.0.0~rc3+bzr5180-0ubuntu1) yakkety; urgency=medium
249
250 * New upstream release, 2.0.0 RC3 bzr5180:
251 - CLI version command doesn't work (2.0) (LP: #1557434)
252 - [2.0rc1] MAAS does not respect default subnet's DNS server when
253 choosing default DNS (LP: #1576116)
254 - [2.0RC1] MAAS displays every power query on the summarized view of
255 node event log (LP: #1594991)
256 - [2.0] Loading latest machine events can make web browser
257 unresponsive (LP: #1598028)
258 - [2.0rc1] MAAS doesn't honor DNS settings for a subnet for
259 DHCP (LP: #1600720)
260 - [2.0rc1] drop arm64/efi grub module workaround (LP: #1600285)
261 - maas login yields "ImportError: No module named
262 'maasserver'" (LP: #1604169)
263 - [doc] events API limit,before, after options not
264 documented (LP: #1604901)
265 - RackController.get_image_sync_status causes huge load
266 on regiond process (LP: #1604465)
267 - [2.0b8] MAAS is automatically monitoring timeouts. (LP: #1598149)
268 - [2.0] Error messaging about monitor expiry has been
269 dropped (LP: #1605252)
270 - [2.0rc2] Can't get node-results via cli/api (LP: #1602721)
271 - node set to "failed deployment" for no visible reason (LP: #1604962)
272 - Event log should always include a reason why a node was
273 marked Failed Deployment (LP: #1604987)
274 * If no default route is present in the system, configure maas_url on
275 regiond.conf to localhost to allow the user to tell MAAS what IP to use.
276
277 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 22 Jul 2016 18:05:45 -0400
278
279maas (2.0.0~rc2+bzr5156-0ubuntu1) yakkety; urgency=medium
280
281 * New upstream release, 2.0.0 RC2 bzr5156:
282 - Pick up wrong grub.cfg if another filesystem exists (LP: #1582070)
283 - [2.0] confusing reverse DNS lookups because MAAS creates multiple
284 PTR records (LP: #1599223)
285 - [2.0] reverse DNS sometimes assigns FQDN where it should assign
286 IFACE.FQDN (LP: #1600259)
287 - [2.0rc1] after upgrade from 2.0b3, Error on request (13)
288 subnet.list: 'NoneType' object is not iterable (LP: #1599997)
289 - [2.0rc1] Image import dates are inconsistent (LP: #1598461)
290 - [2.0rc1] Following fresh install maas command fails
291 PermissionError: [Errno 13] Permission denied:
292 '/home/ubuntu/.maascli.db' (LP: #1598937)
293 - [1.9.3,2.0] cannot create more than 4 partitions when disk is
294 configured with mbr (LP: #1597787)
295 - [1.9,2.0,UX] Can't add aliases when parent interface is set to
296 'DCHP' (LP: #1600267)
297 - [1.9,2.0,UX] Creating a Bcache disk is not prevented when is not
298 created in partition (LP: #1600198)
299
300 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 06 Jul 2016 09:49:41 -0400
301
302maas (2.0.0~rc1+bzr5143-0ubuntu1) xenial; urgency=medium
303
304 * New upstream release, 2.0.0 RC1 bzr5143:
305 - Determine a method for how to reconnect a deleted rack controller (LP: #1576357)
306 - [2.0b7, regression] maas-rack register makes up a new hostname (LP: #1592246)
307 - [2.0b8] HMC power driver regression -- Not able to connect via SSH. (LP: #1595753)
308 - [2.0b7] Date and time format should be consistent accross logs (LP: #1592885)
309 - [2.0b8] Unable to set default gateway interface (LP: #1597324)
310 - [1.9] VMware power management fails when VMs are organized in nested subfolders (LP: #1515188)
311 - [2.0] maas 2.0 pxeboot fails on PowerNV (LP: #1596046)
312
313 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 28 Jun 2016 16:58:20 -0400
314
315maas (2.0.0~beta8+bzr5134-0ubuntu1) xenial; urgency=medium
316
317 * New upstream release, 2.0.0 beta8 bzr5134:
318 - Allow ed25519 and ecdsa ssh keys (LP: #1590081)
319 - [2.0b2, UI] Can't add a device and it does not show why. (LP: #1462078)
320 - [2.0b3] Interfaces on region controllers are not
321 discovered (LP: #1573626)
322 - [2.0b4, UI] No feedback when failing to assign static IP address on
323 the Node Details Page (LP: #1562107)
324 - [2.0b5] No way to read settings, like proxy, for non-admin
325 users (LP: #1583670)
326 - [2.0b5] Commissing with LVM breaks deployments (LP: #1585016)
327 - [2.0b5] dns templates still in /etc/maas/templates (LP: #1581729)
328 - [2.0b6] django.db.utils.IntegrityError: insert or update on
329 table "piston3_consumer" (LP: #1588907)
330 - [2.0b6] Image status stays out-of-sync after adding custom image (LP: #1581130)
331 - [2.0b6] core count not updated during commissioning if MAAS
332 previously stored a higher core count (LP: #1590144)
333 - [2.0b7] Adding rack controller instructions could be in the
334 GUI (LP: #1592282)
335 - [2.0b7] Enlisting output returns objects (LP: #1592132)
336 - [2.0b7, UI] Can't sort IP addresses under a subnet details
337 page (LP: #1592137)
338 - [2.0b7] Nodes API doesn't show regions (LP: #1593789)
339 * /etc/maas/templates/dns is obsolete. (LP: #1581729)
340 * Switch to OpenSSH for SSH public key validation. Previously
341 Twisted's conch was used but it does not yet support the newer ecdsa
342 and ed25519 key types. (LP: #1590081)
343 * debian/control: maas-region-api depends on maas-cli.
344 * debian/maas-region-api.postinst: Ensure rsyslog is restarted.
345 * debian/maas-region-controller.postinst: Ensure maas_url ends with 5240.
346 * Versioned Depend on squid
347 * debian/maas-region-controller.config: Ensure dbc_go is not run when
348 dbconfig common is not yet installed.
349 * Wait for squid to finish starting before returning from the start command.
350 LP: #1592954
351
352 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 14 Jun 2016 17:08:48 -0400
353
354maas (2.0.0~beta7+bzr5112-0ubuntu1) xenial; urgency=medium
355
356 * New upstream release, 2.0.0 beta 7 bzr5112:
357 - [2.0b5] p.refresh.get_swap_size misconverting units (LP: #1587896)
358 - get_interfaces_definition is not thread-safe (LP: #1587896)
359 - [2.0] Cannot create an IP reservation with a hostname (LP: #1590021)
360 - [2.0b5] request to http://.../MAAS/metadata/status/<systemdid>/latest
361 failed (LP: #1581723)
362 - [2.0b4] Rack Controller fail to update commissioning info? (LP: #1577953)
363 - [2.0b6, UI] When I delete a fabric, it takes me back to the
364 Node listing page (LP: #1589562)
365 - [2.0b6, UI] When I delete a space, it takes me back to the
366 Node listing page (LP: #1589596)
367 - [2.0b5, UI] No form validation when adding a subnet, space,
368 fabric or vlan (LP: #1588298)
369 - [2.0b6, UI] Message "No IP ranges have been reserved for this subnet."
370 doesn't go away after adding IP Range (LP: #1589606)
371 - [2.0b6, UI] Can't add a VLAN over the WebUI (LP: #1589583)
372 - [2.6b6, UI] Adding a fabric with an optional name ends up with a new
373 fabric with automatically assigned name (LP: #1589560)
374 - [2.6b6, UI] Adding a space with an optional name ends up with a new
375 space with automatically assigned name (LP: #1589595)
376 - Auto detection of running virtual environment during commissioning
377 almost always fails (LP: #1590946)
378 - [2.0b6] Cannot allocate a node based on its system_id (LP: #1590991)
379 - [2.0,1.9] 3rd party HP drivers (archive hostname renamed) - deployment
380 fails (LP: #1591093)
381 - [2.0b4 UI] MAAS WebUI doesn't quickly refresh when deleting
382 machines (LP: #1581219)
383 - [2.0b4] Can attempt to commission enlisted nodes without chosen
384 power type (LP: #1579215)
385 - [2.0b6] Can edit fabric and subnet on deployed node (LP: #1590499)
386 - [2.0b6] some arm64 systems need ipmi_ssif module in addition to
387 ipmi_si (LP: #1591395)
388 - [2.0] maas createadmin fails (LP: #1591346)
389 - [2.0b6] Attempting to delete a VLAN that cannot be deleted, shows
390 traceback in regiond.log (LP: #1589587)
391 - [2.0b6] Commisioning fails on machines without HW
392 virtualization (LP: #1591958)
393
394 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 06 Jun 2016 18:54:19 -0400
395
396maas (2.0.0~beta6+bzr5073-0ubuntu1) xenial; urgency=medium
397
398 * New upstream release, 2.0.0 beta 6 bzr5073:
399 - Spurious failures in test_regionservice (LP: #1572646)
400 - use http for stream mirror, not https (LP: #1582836)
401 - MAAS version API call should not require authentication (LP: #1583715)
402 - Detect and identify NIC SR-IOV capability (LP: #1572740)
403 - [1.9,2.0]Commissioning fails when BIOS reports floppy drive,
404 but there is none installed (LP: #1584211)
405 - [1.9,2.0] DNS record created against IPv6 address when it is not
406 on the PXE interface (LP: #1584850)
407 - [2.0] MaaS 2.0 BMC information not removed when nodes are removed (LP: #1586555)
408 - [2.0] IPMI driver does not handle timeouts correctly (LP: #1508741)
409 - [2.0] Display RAM amount to the first decimal place in the UI (LP: #1585759)
410 - [2.0] Expose the refresh rack controller action over the UI (LP: #1585760)
411 - [2.0] Rename maas-nodegrou-worker to MAAS (LP: #1585768)
412 - [2.0a1] MAAS should ensure that BMC password is correct before
413 saving (LP: #1553841)
414 - [2.0b2] DNS zone serials are not stable (LP: #1571645)
415 - [2.0b2] If you deploy a machine in MAAS, and manually install a
416 rack controller in it, it disappears from the machine list" (LP: #1570985)
417 - [2.0b3] rack / region controllers are visible to non-admins (LP: #1576417)
418 - [2.0b4] external maas-rack-controller logs to syslog instead of
419 maas.log (LP: #1577972)
420 - [2.0b4] twisted.internet.error.ConnectionDone: Connection was
421 closed cleanly. (LP: #1580817)
422 - [2.0b4 UI/API] No notifications rack controller is disconnected.
423 No power type available (LP: #1581318)
424 - [2.0b5] AMT machines using wsman do not netboot (LP: #1580350)
425 - [2.0b5] When installing secondary region controller on its on,
426 last image sync is never (LP: #1581737)
427 - [2.0b5] Can't force the import of images per Rack Controller (LP: #1583685)
428 - [2.0b5] After changing proxy, MAAS cannot install images (LP: #1585649)
429 - [2.0b5] MAAS doesn't import default images automatically (LP: #1584936)
430 - [2.0b5] Trying to assign an IP address statically to a device results
431 in builtins.AttributeError: 'NoneType' object has no attribute
432 'link_subnet' (LP: #1558635)
433 - [2.0b5] duplicate key on startup: Key (vid, fabric_id)=(2, 0)
434 already exists. (LP: #1583333)
435 - [2.0b5] Deployed regions should be able to transistion back to
436 machines (LP: #1588531)
437 - [2.0b5] domain details page does not update as the domain contents
438 change (LP: #1581224)
439 - [2.0b5] Cannot disable DHCP if you remove the subnet first ("Cannot
440 configure DHCP: At least one dynamic range is required.") (LP: #1583392)
441 - [2.0b5] builtins.ValueError: invalid literal for int() with base 10 (LP: #1588846)
442 - [2.0, UI] Bulk actions-Nodes action doesn’t apply should be red (LP: #1585628)
443 - [2.0, UI] Add fabric, VLAN, Space show's badly place form (LP: #1587936)
444 - [2.0, UI] 'Commission' a node under the Node Listing Page shows actions
445 not correctly formatted. (LP: #1587939)
446 - [2.0, UI] Add domain show's badly place form (LP: #1587998)
447 - [2.0, UI] There's no spacing between combo boxes under the Machine
448 Details page (LP: #1588000)
449
450 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 03 Jun 2016 18:05:32 -0400
451
452maas (2.0.0~beta5+bzr5026-0ubuntu1) xenial; urgency=medium
453
454 * New upstream release, 2.0.0 beta 5 bzr5026:
455 - [UI 2.0b1] Impossible to change subnet CIDR or gateway with
456 instant editing (LP: #1572076)
457 - [UI 2.0b1] Network details page doesn't have CSS for
458 editting (LP: #1568102)
459 - [UI 2.0b2] Can't edit fabric's, vlans, subnets from the
460 WebUI (LP: #1571670)
461 - [UI 2.0b2] Can't add/edit/delete IP ranges through UI (LP: #1571672)
462 - [UI/Backend 2.0b2] Can't delete a rack controller from the Rack
463 Details Page (LP: #1570990)
464 - [UI 2.0b3] interface addresses on rack controller details page
465 not updated automatically (LP: #1576267)
466 - [UI 2.0b4] Actions list is unordered (LP: #1577386)
467 - [UI 2.0b4] I can 'add special filesystem' when the machine is
468 deployed (LP: #1580827)
469 - [1.9] wrong subnet in DHCP answer when multiple networks are
470 present (LP: #1521618)
471 - [2.0] include maas resetMachine() API primitive (LP: #1536346)
472 - [2.0] Re-commissioning doesn't detect storage changes (LP: #1575567)
473 - [2.0] Expose custom network in non ubuntu deployments (LP: #1570002)
474 - [2.0a4] Reserved IP ranges should be allowed to be created by
475 standard users (LP: #1580260)
476 - [2.0b2] 6 Core system is listed as having a single CPU (LP: #1542353)
477 - [2.0b2] Cannot delete a rack controller that was previously a
478 'machine' (LP: #1570995)
479 - [2.0b3] IP Ranges section on the subnet page should be shown
480 even if no ranges (LP: #1576758)
481 - [2.0b3] Tag changes depend on rack / cluster connection (LP: #1372544)
482 - [2.0b4] Rack Controller fail to update commissioning info? (LP: #1577953)
483 - [2.0b4] Rack Controller mark-broken / mark-fixed (LP: #1577954)
484 - [2.0b4] Registering external rack controller tracebacks (LP: #1577970)
485 - [2.0b4] RackControllerService flooding log with:
486 'RegionAdvertisingService' object has no attribute 'processId' (LP: #1578800)
487 - [2.0b4] set_initial_networking_configuration shouldn't raise
488 ValidationError (LP: #1580405)
489 - [2.0b4] Disks less than 4MB in size cause a traceback on the
490 MAAS server (LP: #1580280)
491 - [2.0b4] Rack Controller details page shows "never" under last
492 image sync (LP: #1577974)
493 - [2.0b4] Machines successfully commission but don't get marked
494 'Ready' (LP: #1580285)
495 - [2.0b4] Region RPC losing connection and raising exception (LP: #1581654)
496 - [2.0b4] unregisterConnection() missing 1 required positional
497 argument: 'host' (LP: #1580771)
498 * debian/maas-dhcp.posinst: Pipe error messages correctly to not show
499 messages when disabling isc-dhcp-server init scripts. (LP: #1570911)
500
501 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 06 May 2016 09:56:40 -0500
502
503maas (2.0.0~beta4+bzr4985-0ubuntu1) xenial; urgency=medium
504
505 * New upstream release, 2.0.0 beta 4 bzr4985:
506 - Disk erasing with Xenial results it abnormal poweroff (LP: #1527634)
507 - UI Nodes page shows 'ascii' codec can't decode byte (LP: #1555864)
508 - When power_type changed to manual "power_state" was not set to "unknown" (LP: #1574003)
509 - MAAS Rack Controller doesn't log when it is importing images. (LP: #1571007)
510 - rackd fails to register vlan interfaces with "vlan" naming scheme (LP: #1575945)
511 - Traceback deleting fabric (LP: #1573492)
512 - adding files with paths in the filename confuses maas (LP: #1566108)
513 - MAAS does not add node to DNS Domain (LP: #1571621)
514 - tag only supports 'nodes' and and not 'machines' or 'controller's (LP: #1573644)
515 - enlistment fails: /tmp/sh.UZ7qJT/bin/maas-enlist: archdetect: not found (LP: #1573264)
516 - creating a dnsresource-record at the root of a zone should allow fqdn= (LP: #1562919)
517 - In the domain details pages, sometimes names have links to nodes when they should not (LP: #1573690)
518 - Can't power on/off Rack Controller (LP: #1576854)
519 - ipranges create raises incorrect error for missing type (LP: #1573660)
520 - fabric and space pages fail to update automatically (LP: #1557597)
521 - Subnet page doesn't show which machine or device owns an IP address (LP: #1567150)
522 - MAAS Controller listing page doesn't indicate whne a rack is downloading images (LP: #1571680)
523 - Deleting user in UI leads to 500 (LP: #1573219)
524 - maas enlistment of power8 found ipmi 1.5 should do ipmi 2.0 (LP: #1556219)
525 * debian/extras/20-maas.conf: Better organize rsyslog logs.
526
527 -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 30 Apr 2016 18:40:26 -0400
528
529maas (2.0.0~beta3+bzr4941-0ubuntu1) xenial; urgency=medium
530
531 * New upstream release, 2.0.0 beta 3 bzr4941 (Standing FFe LP: #1553261)
532 * Remove some leftover references to Cluster.
533 * Run debconf-updatepo.
534
535 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 15 Apr 2016 22:27:56 -0400
536
537maas (2.0.0~beta2+bzr4920-0ubuntu2) xenial; urgency=medium
538
539 * debian/control: Add missing dep on python3-httplib2
540
541 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 15 Apr 2016 22:23:55 -0400
542
543maas (2.0.0~beta2+bzr4920-0ubuntu1) xenial; urgency=medium
544
545 * New upstream release, 2.0.0 beta 2 bzr4920 (Standing FFe LP: #1553261)
546 * Only create the squid cache if we have a configuration file.
547 LP: #1568847
548 * Re-add shared debconf templates.
549
550 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 07 Apr 2016 18:22:00 -0400
551
552maas (2.0.0~beta1+bzr4873-0ubuntu2) xenial; urgency=medium
553
554 * Add maas-region-udeb and maas-rack-udeb to be used as part of the
555 Ubuntu Server Installer (LP: #1561954)
556 - ensure maas-rack-controller and maas-region-controller can be fully
557 preseeded.
558
559 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 05 Apr 2016 17:02:32 -0400
560
561maas (2.0.0~beta1+bzr4873-0ubuntu1) xenial; urgency=medium
562
563 * New upstream release, 2.0.0 beta 1 bzr4873 (Standing FFe LP: #1553261)
564 - DHCP Snippets WebUI.
565 - Ensure proxy configuration ACL's subnets MAAS knows about.
566 - DNS High Availability.
567 * debian/control: Move 'maascli' package install to
568 python3-maas-client (LP: #1563859)
569 * Improve way on how upgrades ensures correct permissions
570 and ownership (LP: #1563799 , LP: #1563779)
571 * Improve the way how removals clean the system (LP: #1563337)
572 * Reflect new names and website for systemd units (LP: #1563807)
573 * maas-proxy now uses a custom-built config, instead of a boilerplate.
574 LP: #1379567
575
576 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 28 Mar 2016 16:47:58 -0400
577
578maas (2.0.0~alpha4+bzr4843-0ubuntu1) xenial; urgency=medium
579
580 * New upstream release, 2.0.0 alpha 4 bzr4843 (Standing FFe LP: #1553261)
581 - DHCP Snippets backend and API.
582 - Rack controller WebUI Served VLANs & Service Tracking
583 - Rsyslog during enlistment/commissioning.
584 * Ensure /etc/maas/templates/power gets removed on upgrade
585 * debian/control: Update homepage and package descriptions.
586 (LP: #1562036, LP: #1562034, LP: #1562062)
587 * Rename maas-reigon-controller-min to maas-region-api (LP: #1562069)
588
589 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 23 Mar 2016 12:27:27 -0400
590
591maas (2.0.0~alpha3+bzr4810-0ubuntu1) xenial; urgency=medium
592
593 * New upstream release, 2.0.0 bzr 4810 (Standing FFe LP: #1553261)
594 - New Networks WebUI
595 + Add Fabrics and Spaces details page.
596 + Actions to Add/Remove Fabrics, VLANs, Spaces, Subnets.
597 - Storage WebUI
598 + Mount options
599 + Swap Partitions
600 - WebUI to change a Machine's domain.
601 - Rack Controller details page now shows 'Server VLANs'
602 - Add maas-rack support-dump command.
603 - Fixes:
604 + python3-maas-client API 2.0 no loger use op but MAASClient.post
605 requires it (LP: #1555393)
606 + Fail to commission when Fabric on Machine Interface doesn't match
607 Rack Controller Fabric. (LP: #1554566)
608 + TFTP back-end crashes (LP: #1553848)
609 + Can't deploy a node, no interfaces on rack controller (LP: #1554999)
610 * Update dhcpd permissions to conform with most recent paranoia described
611 on LP: 1543794, so capability dac_override is not granted.
612 * Update versioned depend on isc-dhcp-server
613
614 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 14 Mar 2016 18:34:53 -0400
615
616maas (2.0.0~alpha2+bzr4776-0ubuntu1) xenial; urgency=medium
617
618 * New usptream release, 2.0.0 bzr 4776 (LP: #1553261).
619 * maas-dns Depends: bind9 >= 1:9.10.3.dfsg.P2-5 for better system time.
620 LP: #1553176.
621 * debian/extras/maas-{region,rack}: Replace maas-region-admin
622 and maas-provision, respectively (LP: #1553791)
623 * debian/maas-region-controller.postrm: Correctly handle removal by
624 dbconfig-common. (LP: #1553648)
625 * debian/extras/99-maas-region-sudoers: Allow running systemctl for
626 bind9 and maas-proxy to support service tracking. (LP: #1555308)
627
628 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 01 Feb 2016 18:18:52 +0100
629
630maas (2.0.0~alpha1+bzr4736-0ubuntu1) xenial; urgency=medium
631
632 * New usptream release, 2.0.0 bzr 4736 (LP: #1553261):
633 - Deprecate Cluster Controllers in favor of Rack Controllers.
634 - Deprecate API 1.0 in favor if API 2.0.
635 - DHCP & Rack Controller High Availability.
636 - Networking - IP Ranges.
637 - Networking - DNS.
638 - BMC Model.
639 * Rename maas-cluster* to maas-rack* and handle the upgrade path.
640 * Fix installation of init scripts and daemon systemd units.
641 * Allow 'dhcpd' to access /usr/sbin/maas-provision via
642 sudoers file (LP: #1552775)
643 * debian/extras/maas: Replace shell wrapper with python. (LP: #1553605)
644 * debian/control: Depends on iproute2 instead. (LP: #1553647)
645
646 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 01 Feb 2016 18:18:52 +0100
647
648maas (1.10.0+bzr4572-0ubuntu2) xenial; urgency=medium
649
650 * debian/maas-region-controller.config: Ensure we truly preseed db
651 setting so we always use localhost and it never asks the user.
652 * debian/control: Suggests on python3-pyvmomi
653
654 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 01 Feb 2016 17:04:27 +0100
655
656maas (1.10.0+bzr4572-0ubuntu1) xenial; urgency=medium
657
658 * New upstram release, 1.10.0 bzr 4572:
659 - Support python3, drop support for python2.
660 - Support django 1.8+.
661 * debian/control:
662 - Remove all Upstart related services.
663 - Remove python-django16 dependency.
664 - Add python-petname dependency.
665 - Change dependency python-django-piston to python-django-piston3.
666 - Depends on dbconfig-pgsql instead of dbconfig-common.
667 * debian/maas-region-controller.config:
668 - Preseed dbconfig common to not ask for PG server to use.
669 * debian/maas-region-controller-min.maas-regiond-worker@.service: Don't
670 depend on postgresql.service anymore, as it would prevent regiond
671 to run on machines with a remote PostgreSQL.
672 * debian/rules: Refactor installation of init scripts so that they are
673 correctly handled, and maas-regiond is not started on install.
674
675 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 13 Nov 2015 13:13:42 +0000
676
677maas (1.9.0~rc1+bzr4496-0ubuntu1) wily; urgency=medium
678
679 * New upstream release, 1.9.0 rc1, bzr4496
680 - MAAS uses wrong IP for DNS record (creates against the
681 bond). (LP: #LP: #1515498)
682 - Local archive ignored for deployment. Works for commissioning
683 and enlistment. (LP: #1515671)
684 - Fix handling of multiple StaticIPAddress rows with empty IP
685 addresses. (LP: #1513485)
686 - Lease parser failure - doesn't update IP on the PXE
687 NIC. (LP: #1513485)
688 - Cannot claim sticky IP address for device with
689 parent. (LP: #1514486)
690 - Cluster downloads boot-images from managed network (pxe) instead
691 of network used to connect to Region. (LP: #1514883)
692 - Updating/modifying/assigning vlans, spaces, fabrics, subnets
693 doesn't allow specifying names and lock to ID's. (LP: #1510917)
694 - MAAS should prevent deploying nodes with PXE interface
695 'unconfigured'. (LP: #1513095)
696 - MTU should be a set on the VLAN, and able to override on the
697 interface. (LP: #1508056)
698 - Internal Server Error when creating/editing cluster interface
699 when the Cluster is disconnected. (LP: #1439476)
700 - Non-interactive way to change password. (LP: #1510224)
701 - When a bond is created all IP address associated with the bond
702 members should be removed. (LP: #1513111)
703 - MAAS does not provide a dump of the config it passes to curtin for
704 networking and storage. (LP: #1487135)
705 - MAAS should not offer EXT3, rather VFAT, EXT2, EXT4. (LP: #1512959)
706 - Network constraints for juju. (LP: #1505031)
707 - Creating a partition or a Volume Group on the whole disk leaves
708 free space. (LP: #1509535)
709 - Should not allow partitions to be created on bcache
710 device. (LP: #1511493)
711 - Storage section should only be editable when Ready or
712 Allocated. (LP: #1503475)
713 - maasserver.api.tests.test_fannetworks.TestFanNetworksAPI.test_read
714 fails randomly. (LP: #1512832)
715 - creating a logical volume on a partition that is too small almost
716 works, resulting in strange error messages. (LP: #1508754)
717 - [UI] Keep selected nodes selected after action. (LP: #1503925)
718 - [UI] Refresh UI cache after an upgrade to avoid seeing
719 garbage. (LP: #1515380)
720 - [UI] Boot disk is not lighted nor can be changed. (LP: #1510106)
721 - [UI] Can't remove / delete a partition with a filesystem under
722 'Available disks and partitions'. (LP: #1510118)
723 - [UI] Creating a partition should allow to select filesystem and
724 mountpoint. (LP: #1510153)
725 - [UI] When selecting a device, ensure padding between buttons is
726 20px. (LP: #1510468)
727 - [UI] Misaligned mount point column on used disks table. (LP: #1510455)
728 - [UI] Align the individual storage actions with the name field,
729 rather than the tickbox. (LP: #1510469)
730 - [UI] can't add physical interface. (LP: #1503479)
731 - [UI] Containers (lxc, kvm) data missing on node details. (LP: #1503474)
732 - [UI] Unable to unmount a filesystem in the UI. (LP: #1513271)
733 - [UI] Animation missing on show members and select node. (LP: #1503536)
734 - [UI] Add tooltips to icons. (LP: #1510482)
735 - [UI] Add tooltips to inactive buttons. (LP: #1510486)
736
737 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 05 Nov 2015 08:29:06 -0500
738
739maas (1.9.0~beta2+bzr4456-0ubuntu1) wily; urgency=medium
740
741 * New upstream release, 1.9.0 beta2, bzr4456:
742 - New capabilities for subnets, vlan, spaces and
743 fabrics. (LP: #LP: #1511257)
744 - Upgrade left a PXE NIC"s on nodes without a subnet associated
745 causing deploy issues. (LP: #LP: #1509077)
746 - DNS record doesn't get created against the PXE
747 interface (LP: #1512109)
748 - bcache cache_mode setting not configured on
749 servers (LP: #1510334)
750 - Administrators unable to delete users using the API (LP: #1510210)
751 - Can create a VolumeGroup (vg0) without having created
752 a partition on the boot disk (LP: #1509536)
753 - set-boot-disk yields in a machine not being able to
754 deploy (LP: #1501400)
755 - Deploying Other OS' (CentOS, Windows) should not configure
756 custom storage (LP: #1504956)
757 - Add RAID 10 support (LP: #1509164)
758 - MAAS should download grub from grub-efi-amd64-signed package
759 instead of the archive path (LP: #1511437)
760 - Fails to deploy with UEFI (LP: #1510120)
761 - previous owner of node can use oauth creds to retrieve current
762 owner's user-data (LP: #1507586)
763 - IP range validation for too small ranges (LP: #1507630)
764 - test__calls_update_host_maps_for_next_ip_managed_subnet
765 can fail randomly (LP: #1507630)
766 - No way to disable maas-proxy (LP: #1511071)
767 - [UI] HWE naming needs to be clearer (LP: #1505034))
768 - [UI] Angular $digest loop issue on node details page (LP: #1509476)
769 - [UI] New nodes interfaces doesn't show which interface is the
770 PXE interface (LP: #1509473)
771 - [UI] When partitioning, there should be 20px padding between
772 the sizing fields (LP: #1510471)
773 - [UI] On the available table, add model and serial to the
774 name column (LP: #1510467)
775 - [UI] On the available table, change “available space” to
776 “size” for consistency (LP: #1510466)
777 - [UI] when formatting/mounting, the button says “Format & Mount”
778 this should just be “Mount” (LP: #1510472)
779 - [UI] Tickbox on create bond networking (LP: #1503533)
780 - [UI] On the file system table, change name to “File system”
781 (lower case S) (LP: #1510447)
782 - [UI] When creating bcache and raid, remove the empty column
783 between the config fields. (LP: #1510474)
784 - [UI] On the available table, make sure all buttons are
785 lowercase (LP: #1510488)
786 - [UI] Subnets filter doesn't show network, it shows name
787 instead (LP: #1511174)
788 - [UI] can't edit / add storage tags (LP: #1509417)
789 - [UI] Hover state for networking doesn't work (LP: #1510891)
790 - [UI] change "edit tag" link to icon storage (LP: #1510458)
791 - [UI] Can no longer see the IP address PXE interface gets
792 on commissioning (LP: #1510629)
793 * debian/control: Bump Dep on python-curtin to > 0.1.0~bzr275.
794
795 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 28 Oct 2015 21:20:39 -0400
796
797maas (1.9.0~beta1+bzr4417-0ubuntu1) wily; urgency=medium
798
799 * New upstream release, 1.9.0 beta1, bzr4415:
800 - Various UI fixes and improvements
801 - Add ability to create LVM.
802 - Add ability to create RAID.
803
804 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 22 Oct 2015 14:05:50 -0400
805
806maas (1.9.0~alpha5+bzr4398-0ubuntu1) wily; urgency=medium
807
808 * New upstream release, 1.9.0 Alpha 5, bzr4398:
809 - Various UI fixes and improvements.
810 - Add ability to create partitions in the UI.
811 - Add ability to create Bcache (create cache sets and backing devices).
812 - Check and warns users about missing power driver tools (LP: #1381000).
813 - Add fabric class_type.
814
815 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Oct 2015 21:22:44 -0700
816
817maas (1.9.0~alpha4+bzr4371-0ubuntu1) wily; urgency=medium
818
819 * New upstream release, 1.9.0 Alpha 4, bzr4371:
820 - Various UI fixes and improvements.
821 - Various concurrency issues fixed.
822 - Do not create MBR bigger than 2 TiB, otherwise MAAS will fail to
823 deploy on disks larger than 2 TiB.
824 - Fix broken migration due to missing import (LP: #1504340)
825
826 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 07 Oct 2015 13:02:53 -0700
827
828maas (1.9.0~alpha3+bzr4355-0ubuntu1) wily; urgency=medium
829
830 * New upstream release, 1.9.0 Alpha 3, bzr4355
831 - Node network configuration (VLAN, aliases, bond's).
832 - Subnets page.
833 - Mount, Unmount filesystems. Formatting, unformatting.
834 - Create partitions.
835 - Checks for missing power drivers tool and warns the users.
836 * debian/control: Recommends on apache2.
837
838 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 29 Sep 2015 12:53:36 -0400
839
840maas (1.9.0~alpha2+bzr4322-0ubuntu1) wily; urgency=medium
841
842 * New upstream release, 1.9.0 Alpha 2, bzr4322:
843 - Native support for Network Configuration (IP assignment, VLANs, bonds)
844 - First class support for CentOS
845 - Status updates from curtin/cloud-init
846 - Support for fabrics, spaces, subnets and fans.
847 - Support for commissioning actions.
848
849 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 01 Sep 2015 19:04:39 -0400
850
851maas (1.9.0~alpha1+bzr4221-0ubuntu1) wily; urgency=medium
852
853 * New upstream release, 1.9.0 Alpha 1, bzr4218:
854 - Native storage support (Flat, LVM, bcache, RAID).
855 - New config files (regiond.conf, clusterd.conf)
856 - New Python Power Drivers.
857 - Better support for HWE Kernels.
858
859 [ Scott Moser ]
860 * maas-proxy: sync apt specific squid config with squid-deb-proxy
861 (LP: #1474417)
862
863 [ Raphaël Badin ]
864 * Enable proxy_wstunnel module.
865 * Drop dependency on python-iscpy: the code has been integrated into
866 MAAS. (LP: #1413388).
867
868 [ Gavin Panella ]
869 * Use new local configuration support for the cluster.
870
871 [ Andres Rodriguez ]
872 * Refactor maas-dns upgrade code so it doesn't break local DNS config
873 and it gets migrated (LP: #1413388)
874 - debian/maas-region-controller.postinst: Ensure DNS config
875 migration is always run.
876 * debian/control: Make maas-dns a Dependy of maas-region-controller.
877 * Update the location of dhcpd.conf and dhcpd6.conf to be /var/lib/maas/
878 and handle upgrades. (LP: #1482857)
879 * Move /etc/maas/maas-proxy.conf to /usr/share/maas/maas-proxy.conf as
880 this is not a config we want users to modify. (LP: #1482859)
881 * Move /etc/maas/maas-http.conf to /usr/share/maas/maas-http.conf as
882 this is not a config we want users to modify. (LP: #1482858)
883 * debian/control:
884 - Add missing dependency on python-curtin.
885 - Drop python-lockfile as it is no longer used.
886 - Depend on python-curtin >= 0.1.0~bzr247.
887
888 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 12 Jun 2015 14:16:47 -0400
889
890maas (1.8.0+bzr4001-0ubuntu1) trusty; urgency=medium
891
892 * New upstream release, 1.8.0.
893
894 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 09 Jun 2015 20:57:42 -0400
895
896maas (1.8.0~rc3+bzr4000-0ubuntu1) trusty; urgency=medium
897
898 * New upstream release, 1.8.0 RC3 bzr4000.
899
900 [ Raphaël Badin ]
901 * Remove unused dependencies: python-amqp and python-txamqp.
902
903 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 04 Jun 2015 16:32:02 -0400
904
905maas (1.8.0~rc2+bzr3989-0ubuntu1) trusty; urgency=medium
906
907 * New upstream release, 1.8.0 RC2 bzr3983.
908
909 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 02 Jun 2015 09:27:54 -0400
910
911maas (1.8.0~rc1+bzr3972-0ubuntu1) trusty; urgency=medium
912
913 * New upstream release, 1.8.0 RC1 bzr3972.
914 * debian/copyright: Add copyright headers for ng-tags-input.js.
915 * debian/control: Bump Standards-Version
916
917 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 27 May 2015 20:16:40 -0400
918
919maas (1.8.0~beta8+bzr3951-0ubuntu1) trusty; urgency=medium
920
921 * New upstream release, 1.8.0 beta 8 bzr3951.
922
923 [ Raphaël Badin ]
924 * debian/extras/99-maas-sudoers: Allow maas to check the status of
925 maas-dhcpd and maas-dhcp6 and start these services (LP: #1457708).
926
927 [ Andres Rodriguez ]
928 * debian/rules: Ensure maas-regiond-worker is not started in packaging.
929
930 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 21 May 2015 19:18:22 -0400
931
932maas (1.8.0~beta7+bzr3926-0ubuntu1) trusty; urgency=medium
933
934 * New upstream release, 1.8.0 beta 7 bzr3926.
935
936 [ Andres Rodriguez ]
937 * debian/{maas-cluster-controller,maas-common,
938 maas-region-controller-min}.postinst: Cleaned up to correctly create
939 log dir permissions (LP: #1457191)
940
941 [ Gavin Panella ]
942 * Create maas-regiond workers for systemd.
943
944 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 20 May 2015 17:03:13 -0400
945
946maas (1.8.0~beta6+bzr3891-0ubuntu1) trusty; urgency=medium
947
948 * New upstream release, 1.8.0 beta 6 bzr3904:
949
950 [ Gavin Panella ]
951 * Drop the use of daemontools in favor of having upstart track
952 thread processes:
953 - d/maas-region-controller-min.maas-regiond.upstart: Drop use of
954 daemontools; use maas-regiond-worker
955 - d/maas-region-controller-min.maas-regiond-worker.upstart: Add.
956 - d/control: Drop depends on daemontools.
957
958 [ Andres Rodriguez ]
959 * debian/maas-common.{postinst,logrotate}: Create maas.log if non-existent
960 and add log rotation, provided maas.log exists both in the Region
961 and in the Cluster (LP: #1381603)
962
963 -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 09 May 2015 15:03:17 +0100
964
965maas (1.8.0~beta5+bzr3867-0ubuntu1) trusty; urgency=medium
966
967 * New upstream release, 1.8.0 Beta 5 bzr3867.
968
969 [ Andres Rodriguez ]
970 * d/p/02-pserv.yaml: Fix config file (LP: #1449862)
971
972 [ Mike Pontillo ]
973 * Run DNS reconfiguration if either 'forwarders' or 'dnssec-validation'
974 keywords exist in named.conf.options (LP: #1384334)
975
976 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 24 Apr 2015 18:55:47 -0400
977
978maas (1.8.0~beta4+bzr3844-0ubuntu1) trusty; urgency=medium
979
980 * New upstream release. 1.8.0 Beta 4 bzr2344
981 * debian/maas-dhcpd.maas-dhcpd.service: Remove whitespace in unit that
982 was making systemd crash (LP: #1446699)
983 * debian/maas-proxy.maas-proxy.service: Fix proxy to correctly run
984 pre-start script.
985 * debian/maas-dns.postinst: Ensure permissions are fixed also on upgrade.
986
987 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 21 Apr 2015 13:00:49 -0400
988
989maas (1.8.0~beta3+bzr3825-0ubuntu1) trusty; urgency=medium
990
991 * New upstream release. 1.8.0 Beta3 bzr3825 (LP: #1432666):
992 - Fixx issues with concurrent DB access and the isolation level
993 that made MAAS unusable in highload environments.
994
995 [ Gavin Panella ]
996 * Run one maas-regiond per CPU core.
997
998 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 16 Apr 2015 21:26:21 +0200
999
1000maas (1.8.0~beta2+bzr3814-0ubuntu1) trusty; urgency=medium
1001
1002 * New upstream release. 1.8.0 Beta2 bzr3814.
1003
1004 [ Andres Rodriguez ]
1005 * Restart apache2 after the region is restarted on a install. (LP: #1438782)
1006
1007 [ Mike Pontillo ]
1008 * Stop maas-clusterd in prerm so that database purge succeeds (LP: #1044559)
1009
1010 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 06 Apr 2015 11:00:00 -0400
1011
1012maas (1.8.0~beta1+bzr3777-0ubuntu1) trusty; urgency=medium
1013
1014 * New upstream release. 1.8.0 Beta1 bzr 3777.
1015
1016 [ Mike Pontillo ]
1017 * debian/extras/maas-region-admin: Fix Path setting.
1018 * debian/control: Properly depend on python-apt
1019
1020 [ Andres Rodriguez ]
1021 * debian/maas-dhcp.maas-dhcpd[6].service: Fix units to correctly run
1022 in vivid.
1023 * debian/maas-proxy.maas-proxy.service: Fix unit to use correct daemon.
1024
1025 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 30 Mar 2015 19:17:47 -0400
1026
1027maas (1.8.0~alpha9+bzr3750-0ubuntu1) trusty; urgency=medium
1028
1029 * New upstream release. MAAS 1.9.0 Alpha 9 bzr3692:
1030 - fix bulk actions for isolation level changes.
1031 - fix commissioning related isolation level / transaction issues.
1032
1033 [ Andres Rodriguez ]
1034 * Make sure MAAS works with python-django16 in vivid.
1035
1036 [Gavin Panella]
1037 * debian/extras/99-maas-sudoers
1038 debian/maas-cluster-controller.install
1039 - Do not install maas-import-pxe-files; it is no longer used, and is
1040 not present in upstream.
1041
1042 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 20 Mar 2015 20:27:02 -0400
1043
1044maas (1.8.0~alpha8+bzr3692-0ubuntu1) trusty; urgency=medium
1045
1046 * New upstream release, 1.8.0~alpha8 bzr 3692:
1047 - Fix bulk actions to not fail due to transaction errors.
1048
1049 [ Steve Langasek ]
1050 * Depend on pxelinux for pxelinux.0, not on syslinux-dev. (LP: #1433697)
1051
1052 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Mar 2015 18:46:41 -0400
1053
1054maas (1.8.0~alpha7+bzr3664-0ubuntu1) trusty; urgency=medium
1055
1056 * New upstream release, 1.8.0~alpha7 bzr3664
1057
1058 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 10 Mar 2015 16:36:40 -0400
1059
1060maas (1.8.0~alpha6+bzr3625-0ubuntu1) trusty; urgency=medium
1061
1062 * New upstream release, 1.8.0~alpha6 bzr3625:
1063 - Add ability to select OS when we Deploy via a bulk action.
1064
1065 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 06 Mar 2015 18:10:46 -0500
1066
1067maas (1.8.0~alpha5+bzr3609-0ubuntu1) trusty; urgency=medium
1068
1069 * New upstream release, 1.8.0~alpha5 bzr3601:
1070 - Add new 'Devices' page in the WebUI.
1071 - Add support for VMWare's vSphere.
1072 * debian/control:
1073 - Add Depends on python-pyvmomi; Drop Depends on python-pyscss.
1074
1075 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 05 Mar 2015 11:31:14 -0500
1076
1077maas (1.8.0~alpha4+bzr3581-0ubuntu1) trusty; urgency=medium
1078
1079 * New upstream release, 1.8.0~alpha4 bzr3581:
1080 - Adds new 'Add Hardware' button on the WebUI.
1081 - Adds new 'Add Chassis' button on the WebUI.
1082
1083 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 27 Feb 2015 19:50:00 -0500
1084
1085maas (1.8.0~alpha3+bzr3568-0ubuntu1) trusty; urgency=medium
1086
1087 * New upstream release, 1.8.0~alpha3 bzr3568
1088 - Adds support for Microsoft OCP Chassis.
1089 * debian/control:
1090 - Add python-bson as a depends.
1091 - Remove python-pyscss as a build dependency.
1092
1093 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 24 Feb 2015 15:47:07 -0500
1094
1095maas (1.8.0~alpha2+bzr3545-0ubuntu1) trusty; urgency=medium
1096
1097 * New upstream release, 1.8.0~alpha2 bzr3545
1098 * debian/control:
1099 - Depends on libjs-angularjs (LP: #1423457)
1100 - Depends on ubuntu-cloudimage-keyring for region (LP: #1424287)
1101
1102 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 18 Feb 2015 16:31:02 -0500
1103
1104maas (1.8.0~alpha1+bzr3523-0ubuntu1) trusty; urgency=medium
1105
1106 * New upstream release, 1.8.0~alpha1 bzr3523
1107
1108 [ Blake Rouse ]
1109 * debian/control: added python-pyscss as a build dependency.
1110 * debian/rules: build scss files to maas-styles.css and remove scss files
1111 from the static files directory.
1112
1113 [ Jeroen Vermeulen ]
1114 * debian/maas-cluster-controller.postinst: configure MAAS_URL through new
1115 "maas-provision configure-maas-url" sub-command instead of with "sed".
1116
1117 [ Andres Rodriguez ]
1118 * Set 'maas' homedir to '/var/lib/maas' (LP: #1399016):
1119 - debian/maas-common.postinst: Do not try to update 'maas'
1120 home user dir on upgrade.
1121 * debian/control: Tighten Dependency versioning of some packages.
1122 * debian/maas-region-controller-min.preinst: Handle upgrades to remove
1123 legacy files.
1124 * debian/maas-region-controller{-min}.postinst: Simplify postinsts.
1125 * Drop depends on python-celery, python-oops, python-oops-twisted,
1126 python-oops-datedir-repo, python-oosp-wsgi
1127 * Drop maas-cluster-http.conf; Drop depends on apache2 for
1128 maas-cluster-controller.
1129
1130 [ Gavin Panella ]
1131 * debian/maas-region-controller-min.maas-regiond.upstart
1132 - Upstart script for the new maas-regiond.
1133 - Use setuid/setgid to drop root privs before running script.
1134 - Don't write a pid file.
1135 * debian/maas-cluster-controller.maas-clusterd.upstart
1136 - Start maas-clusterd; it's no longer called maas-pserv.
1137 * debian/maas-region-controller-min.install
1138 - Don't install wsgi.py; it's no longer used.
1139 * debian/rules
1140 - Install maas-regiond plugin.
1141 * debian/maas-region-controller-min.apport
1142 debian/maas-region-controller-min.logrotate
1143 debian/maas-region-controller-min.postinst
1144 debian/maas-region-controller.postinst
1145 - Change maas-django.log to regiond.log.
1146 * debian/maas-region-controller.postinst
1147 - Restart maas-regiond after installation.
1148 - a2enmod rewrite module (LP: #1236544)
1149 * debian/maas-region-controller.postinst
1150 - Restart maas-regiond after installation.
1151 * debian/control
1152 debian/maas-region-controller-min.postinst
1153 debian/maas-region-controller.postinst
1154 - mod_wsgi is no longer used.
1155 * debian/maas-region-controller-min.logrotate
1156 - No longer used; maas-regiond uses rotatelogs.
1157 - a2enmod rewrite module (LP: #1236544)
1158 * debian/patches/01-fix-database-settings.patch
1159 - Move STATIC_ROOT setting upstream.
1160 - Simplify database configuration hunk.
1161 * debian/maas-cluster-controller.logrotate
1162 debian/maas-region-controller.logrotate
1163 - Use copytruncate; even though it's sub-optimal, this is currently
1164 the best way to integrate logrotate with twistd.
1165 - Limit the size of the logs to 50MB, but don't rotate unless
1166 they're more than 10MB.
1167 - Drop privileges and run as maas/maas.
1168 * debian/maas-region-controller-min.maas-regiond.upstart
1169 debian/maas-cluster-controller.maas-clusterd.upstart
1170 - Redirect stdout and stderr from twistd directly to the daemon's
1171 respective log file.
1172 * debian/maas-region-controller-min.apport
1173 - pserv.log has been renamed to clusterd.log.
1174
1175 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 14 Nov 2014 09:04:29 -0500
1176
1177maas (1.7.0+bzr3299-0ubuntu1) utopic; urgency=medium
1178
1179 * New upstream release, 1.7.0.
1180
1181 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 14 Nov 2014 08:38:39 -0500
1182
1183maas (1.7.0~rc3+bzr3299-0ubuntu1) utopic; urgency=medium
1184
1185 * New upstream release, RC3 bzr 3299
1186 - Fix dashboard tooltip messages which had stopped being displayed
1187 (LP: #1390434)
1188
1189 -- Julian Edwards <julian.edwards@canonical.com> Tue, 11 Nov 2014 12:23:07 +1000
1190
1191maas (1.7.0~rc2+bzr3297-0ubuntu1) utopic; urgency=medium
1192
1193 * New upstream release, RC2 bzr 3297
1194 - Allow marking a node in the DISK_ERASING state as broken (LP: #1388919)
1195 - Prevent concurrent allocations of static IP addresses from returning
1196 the same clashing address. (LP: #1387262)
1197
1198 [ Andres Rodriguez ]
1199 * debian/maas-cluster-controller.postinst: Make sure that cluster sets
1200 the correct permissions for proxy log dir if running on the same
1201 system. (LP: #1377964)
1202
1203 -- Julian Edwards <julian.edwards@canonical.com> Fri, 07 Nov 2014 09:30:52 +1000
1204
1205maas (1.7.0~rc1+bzr3295-0ubuntu1) trusty; urgency=medium
1206
1207 * New Upstream Release, RC1 bzr 3295
1208 - If using MSCM (Moonshot Chassis Manager) on a M300, do not overwrite
1209 power parameters (LP: #1382075)
1210 - Do not write DNS hostmaps if its PXE Mac is not on a managed cluster
1211 interface. (LP: #1382108)
1212 - Show os field in boot source selections API. (LP: #1384383)
1213 - Add documentation for new Import Images features (LP: #1384010)
1214 - Allow releasing if Failed to Disk Wipe or Release (LP: #1384821)
1215 - Handle missing subarch when creating a node via RPC for
1216 probe-and-enlist methods (LP: #1384778)
1217 - Update default waiting policy for power actions to increase time of
1218 wait to handle different type of BMC's (LP: #1384758)
1219 - Use HTTP_PROXY to download images if configured (LP: #1384464)
1220 - Return 503 response for PowerActionAlreadyInProgress and add a
1221 'Retry-after' Header. (LP: #1384001)
1222 - Stop ImportResourcesService from crashing when an import fails
1223 (LP: #1386722)
1224 - Convert TFTP request paths that contain backslashes to forward
1225 slashes. (LP: #1387191)
1226 - Do not try to delete synced boot images if not new ones are present
1227 to handle a weird race. (LP: #1387133)
1228 - Fix storage unit shown on the node edit page (LP: #1387431)
1229 - Use CompressedAmpList in UpdateLeases to now parse
1230 ~3500 leases (LP: #1387515, LP: #1387515)
1231 - Updated XPath expression for discovering storage capacity from new
1232 lshw changes. (LP: #1387380)
1233 - Add sub status field on API.
1234 - Generate DNS mappings for the Dynamic IP range. Hostname generation
1235 is limited to /16. (LP: #1382190)
1236 - Use configured HTTP Proxy to download boot images (LP: #1384464)
1237 * debian/extras/maas-proxy-common.sh: Ensure that permissions are correct
1238 before starting maas-proxy. (LP: #1382266)
1239
1240 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 27 Oct 2014 21:53:43 -0400
1241
1242maas (1.7.0~beta8+bzr3272-0ubuntu1) utopic; urgency=medium
1243
1244 * New Upstream Release, Beta 8 bzr 3272.
1245 - Maintain backward compatibility with status codes to not break
1246 client MAAS API users. (LP: #1383609)
1247 - Allow users to disable DHCP NIC scanning during commissioning otherwise
1248 this can lead machines not being able to commission (LP: #1383384)
1249 - Ensure that MAAS can correctly download, and install HWE Kernels, and
1250 not crash in the process. (LP: #1357532, LP: #1382281)
1251 - Add a lock to ensure we don't give the same 2 systems to two different
1252 users when acquiring a machine. (LP: #1382575)
1253
1254 [ Michael McCracken ]
1255 * debian/maas-dns.postrm: ensure named.conf is cleaned of maas
1256 includes (LP: #1346538)
1257
1258 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 22 Oct 2014 12:55:08 -0400
1259
1260maas (1.7.0~beta7+bzr3266-0ubuntu1) utopic; urgency=medium
1261
1262 * New Upstream Snapshot, Beta 7 bzr3266
1263
1264 [ Jeroen Vermeulen ]
1265 * debian/extras/99-maas-sudoers
1266 debian/maas-dhcp.postinst
1267 debian/rules
1268 - Add second DHCP server instance for IPv6.
1269 * debian/maas-region-controller-min.install
1270 debian/maas-region-controller-min.lintian-overrides
1271 - Install deployment user-data: maas_configure_interfaces.py script.
1272 * debian/maas-cluster-controller.links
1273 debian/maas-cluster-controller.install
1274 debian/maas-cluster-controller.postinst
1275 - Reflect Celery removal changes made in trunk r3067.
1276 - Don't install celeryconfig_cluster.py any longer.
1277 - Don't install maas_local_celeryconfig_cluster.py any longer.
1278 - Don't symlink maas_local_celeryconfig_cluster.py from /etc to /usr.
1279 - Don't insert UUID into maas_local_celeryconfig_cluster.py.
1280
1281 [ Andres Rodriguez ]
1282 * debian/maas-region-controller-min.postrm: Cleanup lefover files.
1283 * debian/maas-dhcp.postrm: Clean leftover configs.
1284 * Provide new maas-proxy package that replaces the usage of
1285 squid-deb-proxy:
1286 - debian/control: New maas-proxy package that replaces the usage
1287 of squid-deb-proxy; Drop depends on squid-deb-proxy.
1288 - Add upstrart job.
1289 - Ensure squid3 is stopped as maas-proxy uses a caching proxy.
1290 * Remove Celery references to cluster controller:
1291 - Rename upstart job from maas-pserv to maas-cluster; rename
1292 maas-cluster-celery to maas-cluster-register. Ensure services
1293 are stopped on upgrade.
1294 - debian/maintscript: Cleanup config files.
1295 - Remove all references to the MAAS celery daemon and config
1296 files as we don't use it like that anymore
1297 * Move some entries in debian/maintscript to
1298 debian/maas-cluster-controller.maintscript
1299 * Remove usage of txlongpoll and rabbitmq-server. Handle upgrades
1300 to ensure these are removed correctly.
1301
1302 [ Jason Hobbs ]
1303 * debian/maas-region-controller-min.install: Install
1304 maas-generate-winrm-cert script.
1305
1306 [ Raphaël Badin ]
1307 * debian/extras/maas-region-admin: Bypass django-admin as it prints
1308 spurious messages to stdout (LP: #1365130).
1309
1310 [Louis Bouchard]
1311 * debian/maas-cluster-controller.postinst:
1312 - Exclude /var/log/maas/rsyslog when changing ownership
1313 (LP: #1346703)
1314
1315 [Gavin Panella]
1316 * debian/maas-cluster-controller.maas-clusterd.upstart:
1317 - Don't start-up the cluster controller unless a shared-secret has
1318 been installed.
1319 * debian/maas-cluster-controller.maas-cluster-register.upstart: Drop.
1320
1321 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 21 Aug 2014 19:36:30 -0400
1322
1323maas (1.7.0~beta1+bzr2781-0ubuntu1) utopic; urgency=medium
1324
1325 * New upstream release, 1.7.0 Beta 1
1326
1327 [Diogo Matsubara]
1328 * debian/control:
1329 - maas-cluster-controller depends on syslinux-dev |
1330 syslinux-common (LP: #1328659)
1331 - python-maas-provisioningserver depends on
1332 python-paramiko (LP: #1334401)
1333
1334 [Jeroen Vermeulen]
1335 * debian/extras/99-maas-sudoers:
1336 - Let maas user import, including sudo tgt-admin and sudo uec2roottar.
1337 * debian/maas-cluster-controller.install:
1338 - Stop installing obsolete file bootresources.yaml.
1339
1340 [ Raphaël Badin ]
1341 * debian/control:
1342 - maas-cluster-controller depends on python-pexpect
1343 * debian/extras/99-maas-sudoers:
1344 - Add rule 'maas-dhcp-server stop' job.
1345
1346 [ Greg Lutostanski ]
1347 * debian/control:
1348 - maas-cluster-controller depends on grub-common
1349 - maas-provisioningserver not maas-cluster-controller depends on
1350 python-pexpect (LP: #1352273)
1351 - maas-provisioningserver not maas-cluster-controller depends on
1352 python-seamicroclient (LP: #1332532)
1353
1354 [ Gavin Panella ]
1355 * debian/maas-cluster-controller.postinst
1356 - Allow maas-pserv to bind to all IPv6 addresses too.
1357
1358 [ Julian Edwards ]
1359 * debian/maas-region-controller-min.apport
1360 debian/maas-region-controller-min.logrotate
1361 debian/maas-region-controller-min.postinst
1362 debian/maas-region-controller.postinst
1363 - Change the log file name maas.log to maas-django.log
1364 * debian/maas-cluster-controller.postinst
1365 debian/maas-common.install
1366 debian/maas-region-controller-min.postinst
1367 debian/maas-region-controller.postinst
1368 - Install /var/log/maas/maas.log as a syslog file.
1369 - Ensure logging is set up for upgrades
1370
1371 [ Graham Binns ]
1372 * debian/maas-region-controller.postinst:
1373 - Add symlinks for squid3, squid-deb-proxy and apache log directories to
1374 /var/log/maas.
1375
1376 [ Andres Rodriguez ]
1377 * debian/maas-region-controller.postinst: Force symlink creation
1378 for external logs.
1379 * debian/maas-region-controller.postinst: Do not change celery's
1380 rabbitmq password on upgrade that to not lock remote
1381 Cluster Controllers if upgrading from 1.5+. (LP: #1300507)
1382
1383 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 21 Aug 2014 14:05:40 -0400
1384
1385maas (1.5+bzr2252-0ubuntu1) trusty; urgency=medium
1386
1387 * New upstream release
1388 - Add support to install Third Party Drivers. In order for this to be
1389 used the user will have to go to the Settings page to enable the
1390 installation of these drivers. (LP: #1305839)
1391 - Use release images instead of daily. (LP: #1306701)
1392 - Quote interface name in dhcpd.template, otherwise DHCP server fails
1393 to start. (LP: #1306335)
1394 - Fix IntegrityError, when multiple processes are trying to register
1395 the same component. (LP: #1307415)
1396 - Add missing armhf commissioning template (LP: #1307780)
1397 * debian/maas-region-controller-min.install: Install drivers.yaml.
1398 * debian/maas-region-controller.postinst: No longer show the
1399 installation note by default. (LP: #1284652)
1400
1401 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 09 Apr 2014 19:02:00 -0400
1402
1403maas (1.5+bzr2236-0ubuntu1) trusty; urgency=medium
1404
1405 * New upstream bugfix release.
1406 - Fix simplestreams path to use the new data source path. (LP: #1305118)
1407 - Fix commissioning_distro_series validation failure. (LP: #1304408)
1408 - Fix DB migration 0072_remove_ipmi_autodetec. (LP: #1302156)
1409 - Update documentation.
1410 * debian/maas-region-controller-min.maas-region-celery.upstart,
1411 debian/maas-region-controller-min.maas-txlongpoll.upstart: Fix ISO
1412 install by making sure rabbitmq user is really created if it does not
1413 exist (LP: #1298559)
1414
1415 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 09 Apr 2014 18:36:55 -0400
1416
1417maas (1.5+bzr2230-0ubuntu1) trusty; urgency=medium
1418
1419 * New upstream bugfix release:
1420 - Fix Cluster Controller to handle deprecated config items gracefull.
1421 Otherwise it fails on upgrades. (LP: #1302772)
1422 - Fix documentation generation and referencing. (LP: #1302956)
1423 - Ensure we PXE boot when we turn on SM15K systems. (LP: #1303915)
1424
1425 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 07 Apr 2014 10:26:51 -0400
1426
1427maas (1.5+bzr2227-0ubuntu1) trusty; urgency=medium
1428
1429 * New upstream bugfix release:
1430 - Fix catching exceptions raised by
1431 twisted.conch.ssh.keys.Key.fromString (LP: #1298788)
1432 - Fix validationg in default NodeGroupInterface.broadcast_ip making it
1433 optional. (LP: #1299374)
1434 - Drop install-pxe-bootloader as it conflicts with newer import script.
1435 - Remove references to old import script.
1436 - Fix changes that cause overwriting of existing entries.
1437 - Fix inappropriate ValidationError when defining networks with nested
1438 (but non-identical) address ranges. (LP: #1299114)
1439 - Fix issue where if a node does not provide an architecture type on dhcp
1440 request, or no other boot method is available for that architecture,
1441 the node still uses pxelinux.0 to boot. (LP: #1300285)
1442 - Take an advisory lock to prevent concurrent creation of the
1443 eventloops table. (LP: #1300363)
1444 - Remove the cloud_images_archive setting, as it conflicts with new
1445 import script. (LP: #1300587)
1446 - Add a 'logout confirmation' page. Using this, the logout action is
1447 protected against CSRF attacks because it uses a POST request, in
1448 conjunction with Django's CSRF protection feature. (LP: #1298790)
1449 - Fix cluster listings when dealing with large number of clusters by
1450 paginating it. (LP: #1301242)
1451 - Change list_boot_images() so that it can cope with a missing boot
1452 images directory: this happens if the reporting task runs before the
1453 images have been imported. (LP: #213984)
1454 - Fix internal server error on fast path installer. (LP: #1293676)
1455 - Fix uploading files using maas-cli. (LP: #1187826)
1456 - Fix SM15k Invalid Power Control and Fix enlisting machines with
1457 2.0 api. (LP: #1302818, LP: #1302819)
1458
1459 [ Andres Rodriguez ]
1460 * debian/maas-cluster-controller.install: Install UEFI templates
1461 * debian/maas-cluster-controller.dirs: Create 'boot-resources' dir.
1462
1463 [ Jason Hobbs ]
1464 * debian/extras/99-maas: Allow access to keyserver.ubuntu.com via
1465 squid-deb-proxy.
1466
1467 [Jeroen Vermeulen]
1468 * debian/maas-cluster-controller.postinst:
1469 - Make the tgt config link point to the new boot-resources dir.
1470 * debian/maas-region-controller-min.dirs:
1471 - Don't create /var/lib/maas/tftp.
1472
1473 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 03 Apr 2014 13:45:02 -0400
1474
1475maas (1.5+bzr2204-0ubuntu1) trusty; urgency=low
1476
1477 * New upstream release (LP: #1281881)
1478
1479 [ Andres Rodriguez ]
1480 * debian/maas-region-controller-min.templates: Set installation note to false
1481 by default.
1482 * Check rabbitmqctl is present before running commands:
1483 - debian/maas-region-controller-min.maas-region-celery.upstart.
1484 - debian/maas-region-controller-min.maas-txlongpoll.upstart.
1485 * make sure maas_longpoll rabbitmq user is created/with correct password on
1486 a package reconfigure.
1487 * debian/maas-dns.postinst: Fix upgrade setup of named.conf.options.
1488 * debian/maas-cluster-controller.install: Install UEFI templates (LP: #1299143)
1489
1490 [ Julian Edwards ]
1491 * debian/extas/maas: Echo warning to stderr so json stdout is not polluted
1492 * debian/maas-cluster-controller.postinst: Run upgrade-cluster on each
1493 upgrade
1494 * debian/maas-dns.postinst: Call edit_named_options to add a line in
1495 /etc/bind/named.conf.options that includes the
1496 /etc/named/maas/named.conf.options.inside.maas file.
1497 * debian/control:
1498 - maas-dns depends on python-iscpy
1499 - maas-cluster-controller depends on python-seamicroclient
1500 * debian/maas-cluster-controller.install: Install bootresources.yaml
1501
1502 [ Dustin Kirkland ]
1503 * debian/control: LP: #1297097
1504 - clean up package descriptions, modernize, and more clearly/simply
1505 explain what each package does
1506 - drop "Ubuntu" in front of MAAS, clean up command line/API description
1507
1508 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 28 Mar 2014 10:43:53 -0400
1509
1510maas (1.5+bzr1977-0ubuntu1) trusty; urgency=low
1511
1512 * New upstream bugfix release.
1513 - setup.py: Install missing shell snippet
1514
1515 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 19 Feb 2014 16:31:45 -0500
1516
1517maas (1.5+bzr1976-0ubuntu1) trusty; urgency=low
1518
1519 * New upstream release.
1520 * debian/maas-cluster-controller.postinst: Make sure upgrades handle
1521 authbind upgrades too.
1522
1523 -- Andres Rodriguez <andreserl@ubuntu.com> Sun, 16 Feb 2014 22:56:36 -0500
1524
1525maas (1.5+bzr1951-0ubuntu1) trusty; urgency=low
1526
1527 * New upstream release
1528 * debian/maas-cluster-controller.postinst: Also authbind port 69.
1529 * debian/maas-cluster-controller.maas-pserv.upstart: Export MAAS_URL.
1530
1531 -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 15 Feb 2014 16:16:38 -0500
1532
1533maas (1.5+bzr1948-0ubuntu2) trusty; urgency=low
1534
1535 * debian/maas-cluster-controller.postinst: Make sure generator on
1536 pserv.yaml is updated on upgrade or reconfigure. (LP: #1273197)
1537 * debian/maas-cluster-controller.maas-pserv.upstart: Make sure maas-pserv
1538 is started with authbind.
1539
1540 -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 15 Feb 2014 13:55:20 -0500
1541
1542maas (1.5+bzr1948-0ubuntu1) trusty; urgency=low
1543
1544 * New upstream release.
1545
1546 [ Graham Binns ]
1547 * debian/control: Depends on python-jsonschema.
1548
1549 [ Andres Rodriguez ]
1550 * debian/maas-region-controller-min.posinst: Make txlongpoll.yaml only
1551 readable by the app and not world readeable.
1552 * debian/patches/02-pserv-config.patch: Refreshed.
1553
1554 [ Julian Edwards ]
1555 * debian/extras/maas-cli renamed to debian/extras/maas, and introduce
1556 a deprecation warning in favour of using maas over maas-cli.
1557 * debian/extras/maas renamed to debian/extras/maas-region-admin
1558 * debian/maas-cli.install: install debian/extras/maas
1559 * debian/maas-dns.postinst: Invoke maas-region-admin instead of maas
1560 * debian/maas-region-controller-min.install: install maas-region-admin
1561 instead of maas
1562 * debian/maas-region-controller.postinst: Invoke maas-region-admin instead
1563 of maas
1564 * debian/maas-cli.links: Link from maas to maas-cli for backward compat.
1565
1566 [ Seth Arnold ]
1567 * debian/maas-region-controller-min.postinst: Make sure txlongpoll.yaml
1568 gets correct permissions on upgrade (LP: #1254034)
1569
1570 -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 15 Feb 2014 12:08:23 -0500
1571
1572maas (1.5+bzr1909-0ubuntu1) trusty; urgency=low
1573
1574 * New upstream release.
1575
1576 [ Dustin Kirkland ]
1577 * debian/maas-region-controller-min.postinst: Fix typo in sed. Remove
1578 double quotes. (LP: #1274448)
1579
1580 [ Andres Rodriguez ]
1581 * debian/control: Add depends on python-crochet.
1582 * Get rid of dfsg on the versioning as we no longer strip any code from
1583 the orig tarball.
1584 - debian/rules: Do not strip any files out of the tarball.
1585 * debian/patches/*: Refreshed.
1586
1587 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 31 Jan 2014 09:38:51 -0500
1588
1589maas (1.4+bzr1853+dfsg-0ubuntu1) trusty; urgency=low
1590
1591 * New upstream release
1592
1593 -- Dustin Kirkland <kirkland@ubuntu.com> Tue, 28 Jan 2014 08:41:41 +0000
1594
1595maas (1.4+bzr1849+dfsg-0ubuntu1) trusty; urgency=low
1596
1597 * New upstream release.
1598
1599 [ Gavin Panella ]
1600 * debian/control: Remove all dependencies on Avahi and DBUS.
1601
1602 -- Julian Edwards <julian.edwards@canonical.com> Tue, 28 Jan 2014 17:12:22 +1000
1603
1604maas (1.4+bzr1820+dfsg-0ubuntu1) trusty; urgency=low
1605
1606 * New upstream Release.
1607
1608 [ Jeroen Vermeulen ]
1609 * Move maas-probe-dhcp from maas-dhcp to python-maas-provisioningserver.
1610
1611 [ Andres Rodriguez ]
1612 * debian/maas-region-controller.postinst: Make sure maas-txlongpoll and
1613 maas-region-celery get restarted.
1614 * debian/control:
1615 - python-maas-provisioningserver Breaks/Replaces for maas-dhcp due to
1616 moving files around packages.
1617 - Suggests ipmitool, libvirt-bin, amtterm.
1618
1619 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 15 Jan 2014 00:24:58 -0500
1620
1621maas (1.4+bzr1817+dfsg-0ubuntu1) trusty; urgency=low
1622
1623 * New upstream release
1624
1625 [ Andres Rodriguez ]
1626 * debian/maas-dns.postinst: Drop write_dns_config as this is run by
1627 celery jobs.
1628 * debian/maas-region-controller.templates: Rename template to
1629 maas-region-controller-min.templates
1630 * debian/control: Depends on python-amqp; Conflicts on python-librabbitmq.
1631
1632 [ Julian Edwards ]
1633 * New maas-probe-dhcp script to detect DHCP servers
1634 - debian/extras/maas-probe-dhcp: New script
1635 - debian/maas-dhcp.install: Install new maas-probe-dhcp script
1636 - maas-dhcp.lintian-overrides: New maas-probe-dhcp script has no manpage
1637
1638 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 15 Jan 2014 00:23:44 -0500
1639
1640maas (1.4+bzr1789+dfsg-0ubuntu1) trusty; urgency=low
1641
1642 * New upstream release
1643
1644 [ Jeroen Vermeulen ]
1645 * Keep legacy import_ephemerals config for now.
1646
1647 [ Andres Rodriguez ]
1648 * debian/maas-region-controller.postinst: Allo default-maas-url debconf
1649 option to be preseeded.
1650 * Make use of authbind to allow maas-cluster-celery bind port as non-root.
1651 - debian/control: Depends on authbind for maas-cluster-controller.
1652 - debian/maas-cluster-controller.{postinst,postrm}: Handle creation
1653 and removal of required authbind file.
1654 * Split maas-region-controller into maas-region-controller-min.
1655 - debian/maas-region-controller-min.{postinst,postrm,prerm}: Handle
1656 basic configuration for rsyslogd, squid-deb-proxy, and maas-url.
1657 - debian/control: Depends on maas-region-controller-min, postgresql
1658 and rabbitmq-server for maas-region-controller.
1659
1660 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 10 Oct 2013 17:07:51 -0400
1661
1662maas (1.4+bzr1693+dfsg-0ubuntu1) saucy; urgency=low
1663
1664 * New Upstream Release (LP: #1218526)
1665 - This new upstream release contains fixes and improvements of the
1666 features approved by the FFe above.
1667 - Fixes commissioning failure on Saucy with 'Failed Test' (LP: #1237364)
1668 - Fixes access of static images over http (LP: #1236544)
1669 * d/maas-cluster-controller.postinst: a2enmod version module (LP: #1236544)
1670 * d/control: Bump depends on python-django to 1.4. (LP: #1236572)
1671 * d/maas-dhcp.postinst: Fail gracefully if apparmor_parser fails, allowing
1672 to install maas-dhcp during an ISO install. (LP: #1236786)
1673
1674 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 04 Oct 2013 12:33:05 -0400
1675
1676maas (1.4+bzr1656+dfsg-0ubuntu2) saucy; urgency=low
1677
1678 * debian/control: Recommends on maas-dns instead of Depends for region
1679 because maas-dns needs the region installed first.
1680
1681 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 03 Oct 2013 10:36:20 -0400
1682
1683maas (1.4+bzr1656+dfsg-0ubuntu1) saucy; urgency=low
1684
1685 [ Andres Rodriguez ]
1686 * New upstream bugfix release.
1687 - Respect filters for ephemerals_script.py.
1688 * debian/control: Depends on ubuntu-cloudimage-keyring instead of
1689 ubuntu-cloud-keyring; depends on python-distro-info.
1690 * debian/control: Remove suggests on maas-dhcp and maas-dns as they are
1691 now dependencies.
1692
1693 [ Scott Moser ]
1694 * debian/control: Bump depends on isc-dhcp-server to 4.2.4
1695 * debian/maas-dhcp.maas-dhcp-server.upstart: Change ownership of leases
1696 file to root:root, and run the daemon as dhcpd:dhcpd.
1697
1698 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 01 Oct 2013 15:26:34 -0400
1699
1700maas (1.4+bzr1655+dfsg-0ubuntu1) saucy; urgency=low
1701
1702 * New Upstream release. (LP: #1218526)
1703 * debian/control:
1704 - Depends on python-djorm-ext-pgarray, python-curtin,
1705 python-simplestreams, ubuntu-cloud-keyring.
1706 - Depends on maas-dns, maas-dhcp to get them seeded and
1707 into main (LP: #1227353)
1708
1709 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 28 Aug 2013 11:17:44 -0400
1710
1711maas (1.4+bzr1551+dfsg-0ubuntu1) saucy; urgency=low
1712
1713 * New upstream release
1714
1715 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Aug 2013 16:20:41 -0400
1716
1717maas (1.4+bzr1548+dfsg-0ubuntu1) saucy; urgency=low
1718
1719 * New upstream release
1720
1721 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 18 Jul 2013 10:15:10 -0400
1722
1723maas (1.4+bzr1539+dfsg-0ubuntu1) saucy; urgency=low
1724
1725 * New upstream release
1726 * Symlink apache2 config into /etc/apache2/conf-enabled/ instead of
1727 /etc/apache2/conf.d as apache2.4 no longer supports the latter.
1728 - debian/maas-cluster-controller.{postinst,postrm}
1729 - debian/maas-region-controller.{postinst,postrm}
1730 * debian/control: Bump Standards-Version to 3.9.4.
1731 * debian/maas-cluster-controller.lintian-overrides: Remove unneeded
1732 override and add a new one.
1733 * debian/maas-region-controller.lintian-overrides: Add extra overrides.
1734
1735 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 03 Jul 2013 17:11:02 -0400
1736
1737maas (1.4+bzr1538+dfsg-0ubuntu1) saucy; urgency=low
1738
1739 * New upstream release
1740 * debian/patches/04-setup-dont-user-list-snippets.patch: Drop. Merged
1741 Upstream.
1742
1743 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 13 Jun 2013 20:06:35 -0400
1744
1745maas (1.4+bzr1527+dfsg-0ubuntu1) saucy; urgency=low
1746
1747 * debian/patches/04-setup-dont-user-list-snippets.patch: Drop importing
1748 maasserver modules to list snippets in favor to using glob. Otherwise
1749 we would have to add various non necessary Build-Dependencies.
1750
1751 [ Jeroen Vermeulen ]
1752 * Install templates into /etc/maas/templates/.
1753
1754 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 03 Jun 2013 17:59:31 -0400
1755
1756maas (1.4+bzr1505+dfsg-0ubuntu1) saucy; urgency=low
1757
1758 * New upstream release
1759
1760 [ Steve Langasek ]
1761 * Add missing dependency on iproute to maas-region-controller, for use of
1762 /sbin/ip in postinst.
1763
1764 [ Julian Edwards ]
1765 * debian/maas-dhcp.maas-dhcp-server.upstart:
1766 - Detect 12.04 as the host OS and install with correct permissions. This
1767 allows the same packaging to be used in the 12.04 backport.
1768
1769 [ Andres Rodriguez ]
1770 * Update packaging to support FPI:
1771 - debian/control: Depends on apache2 for maas-cluster-controller.
1772 - debian/maas-cluster-controller.install: Install http config file.
1773 - debian/maas-cluster-controller.{postinst,postrm}: Handle symlink creation
1774 and deletion.
1775 * debian/maas-region-controller.install: Install preseeds in
1776 etc/maas/preseeds. (LP: #1073463)
1777
1778 [ Jeroen Vermeulen ]
1779 * In the source tree, /etc/maas/pserv.yaml has moved from etc/ to etc/maas/.
1780 * Install templates into /etc/maas/templates/.
1781
1782 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 03 Jun 2013 16:53:14 -0400
1783
1784maas (1.3+bzr1455+dfsg-0ubuntu1) raring; urgency=low
1785
1786 * New upstream bugfix release.
1787 - Fixes and returns the 'resource_url' with the 'canonical' url for
1788 a file that is fetched using the API (LP: #1154142)
1789
1790 [ Andres Rodriguez ]
1791 * debian/control:
1792 - Change Conflicts/Replaces for Breaks/Replaces.
1793 - Conflicts on tftpd-hpa and dnsmasq.
1794 - Do not pre-depends, but Depends on ${misc:Depends} for 'maas'.
1795
1796 [ Steve Langasek ]
1797 * postinst scripts are never called with 'reconfigure' as the script
1798 argument. Remove references to this (mythical) invocation.
1799 * always call 'set -e' from maintainer scripts instead of passing 'sh -e'
1800 as the interpreter, so that scripts will behave correctly when run via
1801 'sh -x'.
1802 * invoke-rc.d is never allowed to not exist - simplify scripts (and make
1803 them better policy-compliant) by invoking unconditionally. (The only
1804 possible exception is in the postrm, where it's *theoretically* possible
1805 for invoke-rc.d to be missing if the user has completely stripped
1806 down their system; that's a fairly unreasonable corner case, but we
1807 might as well be correct if it ever happens.)
1808 * db_get+db_set is a no-op; don't call db_set to push back a value we just
1809 got from db_get.
1810 * Omit superfluous calls to 'exit 0' at the end of each script.
1811 * Remove maas-cluster-controller prerm script, which called debconf for no
1812 reason.
1813 * Don't invoke debconf in the postrm script either, debhelper already does
1814 this for us.
1815 * Other miscellaneous maintainer script fixes
1816 * debian/maas-common.postinst: call adduser and addgroup unconditionally;
1817 the tools are already designed to DTRT, we don't need to check for the
1818 user/group existence before calling them nor should we worry about
1819 calling them only once on first install.
1820 * debian/maas-common.postrm: delete the maas group, not just the user,
1821 as the comment in the code implies we should do.
1822
1823 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 19 Mar 2013 15:38:22 -0400
1824
1825maas (1.3+bzr1452+dfsg-0ubuntu1) raring; urgency=low
1826
1827 * New upstream release.
1828 - MAAS file storage mechanism is shifting from a single shared
1829 namespace to a per-user namespace. Operators of the majority
1830 of MAAS systems will not notice any change. However, operators
1831 of the most complex installations may find that a new
1832 "shared-environment" user is created, and that some resources
1833 are reassigned to it, such as API credentials and SSH public
1834 keys. This provides a transitional environment that mimics the
1835 behaviour of a shared namespace.
1836
1837 [ Raphaël Badin ]
1838 * debian/control: maas-region-controller depends on bind9utils.
1839 (LP: #1103195)
1840 * debian/maas-dns.postinst: Call write_dns_config.
1841 (LP: #1085865).
1842 * debian/maas-cluster-controller.postinst: Fix the name of the config
1843 file (/etc/maas/pserv.yaml and not /etc/maas/pserv.conf)
1844 (LP: #1083542).
1845 * debian/extras/99-maas-sudoers: Add 'SETENV:' to sudo rule
1846 to allow preserving the environment when running
1847 /usr/sbin/maas-import-pxe-files via sudo.
1848 * debian/maas-dns.postinst: fix permissions and group ownership of
1849 file /etc/bind/maas/named.conf.rndc.maas. (LP: #1066935)
1850 * debian/control: Remove the dependency of maas-cluster-controller
1851 on rabbitmq-server. (LP: #1072744)
1852 * debian/extras/99-maas-sudoers: Add sudo rule for script
1853 /usr/sbin/maas-import-pxe-files.
1854 * debian/maas-cluster-controller.install: Removed commissioning-user-data
1855 script.
1856
1857 [ Julian Edwards ]
1858 * debian/maas-region-controller.install: Remove installation of maas-gc; it
1859 is no longer required as upstream no longer stores files in the filesystem.
1860 (LP: #1069734)
1861 * debian/maas-cluster-controller.postinst: Ensure that /etc/maas/pserv.yaml
1862 is updated when reconfiguring. (LP: #1081212)
1863
1864 [ Jeroen Vermeulen ]
1865 * debian/maas-cluster-controller.install: Install import scripts.
1866 * debian/maas-cluster-controller.postinst: Configure tgt (the iSCSI server)
1867 so the import script can install files to it.
1868 * debian/maas-cluster-controller.postrm: Clean up tgt config.
1869 * debian/maas-region-controller.install: Move import scripts out to the
1870 cluster controller, and drop the maas-import-isos compatibility script.
1871 * debian/maas-region-controller.postinst: Remove tgt config.
1872 * debian/maas-region-controller.postrm: Remove tgt config cleanup.
1873 * Bump code revision to include latest user_data.template fixes.
1874
1875 [ Gavin Panella ]
1876 * debian/extras/99-maas: squashfs image download is no longer needed.
1877 * debian/maas-cluster-controller.install: maas-import-squashfs and its
1878 configuration file are no longer part of upstream.
1879 * debian/maas-cluster-controller.install: The maas-import-pxe-files cron
1880 task is no longer used.
1881 * debian/maas-cluster-controller.postinst: Remove leading comment
1882 markers from the 'generator' line in pserv.yaml.
1883
1884 [ Andres Rodriguez ]
1885 * debian/control:
1886 - maas-cluster-controller Conflicts with tftpd-hpa (LP: #1076028)
1887 - maas-dns: Conflicts with dnsmasq
1888 - maas-cluster-controller Conflicts/Replaces maas-region-controller as
1889 import scripts are no longer shipped in the region.
1890 - debian/control: Depends on distro-info for maas-cluster-controller
1891 instead of maas-region-controller (LP: #1103194)
1892 * debian/maas-cluster-controller.config: If URL has been detected,
1893 add /MAAS if it doesn't contain it. This helps upgrades from versions
1894 where DEFAULT_MAAS_URL didn't use /MAAS.
1895
1896 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 04 Mar 2013 11:49:44 -0500
1897
1898maas (0.1+bzr1269+dfsg-0ubuntu1) quantal-proposed; urgency=low
1899
1900 * New upstream bugfix release
1901 - Fixes commissioning failing to set memory attribute. (LP: #1064638)
1902 - Fixes node listing by adding pagination (LP: #1064672)
1903 - Changes default bind rndc key which breaks initscripts (LP: #1066938)
1904 - Fixes invalid DNS config once node is enlisted (LP: #1066958)
1905 - Reference documentation link to correct URL (LP: #1067261)
1906
1907 [ Andres Rodriguez ]
1908 * debian/rules: Change upstream branch.
1909
1910 [ Gavin Panella ]
1911 * debian/maas-dns.postinst: Remove MAAS-related include lines from named's
1912 config before adding a new one (LP: #1066929)
1913
1914 [ Raphael Badin ]
1915 * debian/extras/maas-region-celeryd: Remove whitespace that affects DNS
1916 rabbitmq queue. (LP: #1067929)
1917
1918 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 16 Oct 2012 10:31:37 -0400
1919
1920maas (0.1+bzr1264+dfsg-0ubuntu2) quantal; urgency=low
1921
1922 * Fix MAAS not working after CD/preseed install (LP: #1065763)
1923 - debian/extras/maas-region-celeryd: Add wrapper to run celery from
1924 the upstart job.
1925 - debian/extras/maas-region-controller.maas-region-celery.upstart: Create
1926 rabbitmq user if it does not exists.
1927 * debian/control: Remove unneeded deps on python-txtftp for some binary pkgs.
1928 * debian/maas-region-controller.postinst: Minor fix referencing variable.
1929
1930 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 11 Oct 2012 17:38:08 -0400
1931
1932maas (0.1+bzr1264+dfsg-0ubuntu1) quantal; urgency=low
1933
1934 * New upstream release.
1935
1936 [ Raphaël Badin ]
1937 * debian/maas-region-controller.postinst: Enable proxy_http module.
1938 * debian/maas-cluster-controller.postinst: Create /var/lib/maas. (LP: #1065062)
1939
1940 [ Andres Rodriguez ]
1941 * Install maas-provision with python-maas-provisioningserver (LP: #1065171):
1942 - debian/python-maas-provisioningserver.install: Install
1943 - debian/control: Add Conflicts/Replaces with maas-cluster-controller
1944 to handle upgrades.
1945 * debian/patches/04-fix-ipmi-enlistment.patch: Drop. Merged Upstream.
1946 * debian/control: Depends on maas-region-controller for maas-dns.
1947 * debian/maas-region-controller.postinst: Set the correct host for
1948 BROKER_URL (LP: #1065080)
1949 * Handle creation of user/group in maas-common.
1950 * debian/maas-region-controller.config: Always source dbconfig scripts.
1951
1952 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 10 Oct 2012 11:17:21 -0400
1953
1954maas (0.1+bzr1243+dfsg-0ubuntu3) quantal; urgency=low
1955
1956 * 04-fix-ipmi-enlistment.patch: retry maas-enlist without power parameters
1957 on failure. This allows enlistment to continue working with Precise
1958 ephemeral images before the Precise SRU for maas-enlist lands.
1959 (LP: #1064922).
1960
1961 -- Robie Basak <robie.basak@canonical.com> Wed, 10 Oct 2012 13:29:16 +0000
1962
1963maas (0.1+bzr1243+dfsg-0ubuntu2) quantal; urgency=low
1964
1965 * debian/patches/99-ipmi-user-too-long.patch: Fix username too long for
1966 IPMI user created on enlistment (LP: #1064832)
1967
1968 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 10 Oct 2012 01:00:29 -0400
1969
1970maas (0.1+bzr1243+dfsg-0ubuntu1) quantal; urgency=low
1971
1972 * New upstream release. (LP: #1064596)
1973 * debian/patches/99-temporary-fix-constraints.patch: Dropped.
1974 * debian/control:
1975 - ${python:Depends} for maas-common.
1976 - Add missing Depends for python-maas-provisioningserver (LP: #1064542)
1977 * debian/maas-cluster-controller.postinst: Create /var/log/maas if it
1978 doesn't exist (LP: #1064539)
1979
1980 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 08 Oct 2012 17:02:56 -0400
1981
1982maas (0.1+bzr1223+dfsg-0ubuntu1) quantal; urgency=low
1983
1984 * New upstream release. (LP: #1062518)
1985
1986 [ Julian Edwards ]
1987 * Split packaging of 'maas' into maas-{region,cluster}-controller
1988 - debian/control: Update accordingly.
1989 - debian/*.install: Move files accordingly
1990 - debian/*.{postinst,postrm,preinst}: Move files accordingly.
1991 * Ensure isc-dhcp-server is disabled when installing maas-dhcp.
1992 * Ensure maas-dns creates the maas user before trying to chown files.
1993 * Make maas-cluster-controller autoconfigure itself when upgrading from the
1994 old maas package. (LP: #1059416)
1995 * Add missing prerm file for maas-cluster-controller so that .pyc files
1996 are cleaned up. (LP: #1059973)
1997
1998 [ Raphaël Badin ]
1999 * Install maas_local_celeryconfig.py in /etc/maas and symlink to
2000 /usr/share/maas.
2001 * debian/maas.postinst: Create rabbitmq celery user/vhost.
2002 * debian/maas.postinst: Update BROKER_URL in maas_local_celeryconfig.py.
2003 * Use maas_local_celeryconfig_cluster.py as the local celery
2004 configuration file for the cluster worker.
2005 * debian/maas-region-controller.maas-region-celery.upstart: Add region
2006 worker upstart script.
2007 * Rename cluster worker upstart script into
2008 maas-cluster-controller.maas-clluster-celery.upstart.
2009 * maas-cluster-controller.maas-celery.upstart: use "celeryconfig_cluster"
2010 as the Celery config module.
2011 * debian/maas-common.install: Install celeryconfig_common.py.
2012 * debian/maas-cluster-controller.install: Install celeryconfig_cluster.py.
2013 * debian/maas-region-controller.install: Install celeryconfig.py.
2014 * Split celery config into cluster and region configs.
2015 * Add region celeryd upstart config.
2016 * Define CELERY_CONFIG_MODULE in
2017 maas-cluster-controller.maas-cluster-celery.upstart
2018
2019 [ Jeroen Vermeulen ]
2020 * Make maas_local_celery_config.py non-world readable.
2021 * Make maas_local_celeryconfig_cluster.py non-world readable.
2022 * Set root:maas ownership of local cluster config only *after*
2023 the maas user/group have been created
2024
2025 [ Andres Rodriguez ]
2026 * debian/maas.postinst:
2027 - Always restart apache2.
2028 - Handle upgrades for new upstream release.
2029 - Handle upgrades for celery rabbitmq worker.
2030 * Add binary package to install client tool.
2031 - debian/extras/maas-cli: Add binary.
2032 - debian/maas-cli.install: Add. Install maascli and apiclient.
2033 - debian/control: Add binary package.
2034 * debian/control:
2035 - Depends on freeipmi-tools instead of ipmitool.
2036 - Conflicts/Replaces on maas for python-maas-client.
2037 - Depends on python-netifaces, python-lxml.
2038 * Add python-maas-client binary package:
2039 - debian/python-maas-client.install: Add. Install 'apiclient' python module.
2040 - debian/control: Add package. python-django-maas and maas-cli now
2041 Depend on it.
2042 * debian/rules: Install maas-dhcp-server upstart job.
2043 * debian/maas.postrm: Remove celery worker rabbitmq user and host.
2044 * debian/extras/99-maas-sudoers: Add for maas-dhcp-server upstart job
2045 instead of isc-dhcp-server (LP: #1055951)
2046 * debian/maas-region-controller.postinst: Cleanup upgrade rules.
2047 * debian/maas-cluster-controller.postinst: Fix 'local' usage.
2048 * debian/maas-common.install: Install celeryconfig in appropriate location.
2049 * debian/maas-cluster-controller.postrm: Add and delete maas user.
2050 * debian/maas-dhcp.postinst: Stop isc-dhcp-server not isc_dhcp_server.
2051 * debian/maas-region-controller.postinst:
2052 - Always update passwords on upgrade. No longer check versioning. (LP: #1060094).
2053 - Add MAAS server to allowed mirror in squid-deb-proxy
2054 - Source dbconfig conf file for maas-region-controller on upgrade because
2055 it writes a new config file and no longer preservers the previous password.
2056 * debian/maas-cluster-controller.maas-cluster-celery.upstart: Remove set{uid/gid}.
2057 * debian/maas-region-controller.install: Install maas-import-squashfs
2058 * Handle removal of non existant files (LP: #1059556):
2059 - debian/maintscript: Added to handle removal of conffiles.
2060 - debian/control: Add Pre-depends and bump debhelper version.
2061 * update po files for the templates.
2062 * debian/extras/99-maas: Install in usr/share/maas/conf and symlink to the
2063 appropriate etc dir.
2064 * debian/maas-cluster-controller.config: Source debconf at the beginning of the
2065 script. (LP: #1063857)
2066 * debian/patches/99-temporary-fix-constraints.patch: Fix constraints maaping
2067 when deploying with juju. Temporary until it gets merged upstream
2068
2069 [ Robie Basak ]
2070 * Add maas-cluster-controller dependency on uuid-runtime, needed for uuidgen
2071 by postinst.
2072
2073 [ Scott Moser ]
2074 * debian/maas-dhcp.{install,apparmor,postrm} install apparmor profile into
2075 /etc/apparmor.d/dhcpd.d (LP: #1049177), and update apparmor profile for
2076 /usr/sbin/dhcpd on install/remove
2077 * get the ip address for the dhcp server in config
2078
2079 [ Diogo Matsubara ]
2080 * Add initial tests to be run by autotests:
2081 - debian/control: XS-Testsuite: autopkgtest
2082 - debian/tests/control: Add
2083 - debian/tests/maas-package-test: Add
2084 - tests/maas-integration.py: Add
2085
2086 -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 08 Oct 2012 13:10:23 -0400
2087
2088maas (0.1+bzr971+dfsg-0ubuntu2) quantal; urgency=low
2089
2090 * debian/extras/99-maas-sudoers: Add missing rule for
2091 maas-provision. (LP: #1046397)
2092
2093 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 05 Sep 2012 12:36:58 -0400
2094
2095maas (0.1+bzr971+dfsg-0ubuntu1) quantal; urgency=low
2096
2097 * New upstream release (LP: #1044367)
2098
2099 [ Julian Edwards ]
2100 * Fix 02-pserv-config.patch to handle new default tftp directory
2101
2102 [ Andres Rodriguez ]
2103 * debian/maas.postinst:
2104 - include '/MAAS' for DEFAULT_MAAS_URL.(LP: #1033956)
2105 - Update bzr version to safely upgrade.
2106 * Add maas-dns package that configures DNS in MAAS (LP: #1030860)
2107 * Remove cobbler related bits
2108 - debian/maas.postinst: Drop cobbler configuration
2109 - debian/maas.install: Drop installation of snippets/preseeds.
2110 - debian/control:
2111 + Drop Depends on maas-provision. (LP: #975473)
2112 + Depends on bind9utils.
2113 + Depends on python-lockfile (LP: #1037400)
2114 Add necessary Conflicts/Replaces. Add conflicts to tftpd-hpa and dnsmasq.
2115 Depends on isc-dhcp-server for maas-dhcp, and syslinux-common.
2116 - debian/extras/maas-provision: Add missing "$@" (LP: #1040462)
2117 - debian/patches:
2118 + 02-pserv-config.patch: Updated. Do not patch cobbler related bits.
2119 patch tftp config to default.
2120 * maas-dhcp: Re-add to handle initial configuration of MAAS DHCP server.
2121 * Allow restart of 'isc-dhcp-server' by adding a sudoers file:
2122 - debian/extras/99-maas-sudoers: Added.
2123 - debian/maas.install: Install 99-maas-sudoers
2124 * Minor improvements on dbconfig-common handling:
2125 - debian/maas.config: Only call dbc_go when scripts present.
2126 - debian/maas.postrm: Only call dbc_go when config file exists.
2127 * debian/maas.maas-celery.upstart: Enable Beat and set scheduler db file.
2128 * debian/maas-dns.postinst: Set correct permissions. (LP: #1042868)
2129 * debian/maas-dhcp.config:
2130 - Ask whether we want to enable DHCP (LP: #1044229)
2131 - Add debconf question for network interfaces
2132 * debian/maas.prerm: Stop services before removing database (LP: #1044559)
2133
2134 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 02 Aug 2012 09:01:43 -0400
2135
2136maas (0.1+bzr777+dfsg-0ubuntu1) quantal-proposed; urgency=low
2137
2138 * New upstream release
2139 * Only run 'maas' command as root. (LP: #974046)
2140 - debian/extras/maas: Check id.
2141 - debian/maas.install: Install in 'sbin'.
2142 * debian/maas.postinst:
2143 - restart apache2 after everything gets processed.
2144 - Update version to handle upgrades.
2145 * debian/extras/maas-provision: Add wrapper to access 'maasprovisiong'
2146 command line.
2147 * debian/patches/99_temporary_fix_path.patch: Dropped. No longer needed.
2148
2149 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Jul 2012 08:28:36 -0400
2150
2151maas (0.1+bzr745+dfsg-0ubuntu2) quantal; urgency=low
2152
2153 * debian/control: Build-Dep on python-django instead of
2154 python-django-configglue
2155
2156 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Jul 2012 08:24:25 -0400
2157
2158maas (0.1+bzr745+dfsg-0ubuntu1) quantal; urgency=low
2159
2160 * New Upstream Release
2161 * debian/patches:
2162 - 99_power_fixes.patch: Dropped. Merged Upstream.
2163 - 99_enums_js.patch: Dropped. No longer needed.
2164 * Automatically build enums.js:
2165 - debian/control: Build-Depends on python-django-configglue
2166 - debian/rules: Build and install enums.js.
2167 * debian/maas.postinst: Update version to handle upgrades
2168
2169 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 12 Jul 2012 16:34:11 -0400
2170
2171maas (0.1+bzr740+dfsg-0ubuntu1) quantal; urgency=low
2172
2173 * New upstream release
2174 * debian/control: Depends on python-txtftp.
2175 * debian/rules: Do not ship python-tx-tftp.
2176 * debian/maas.postinst: Update version to upgrade successfully.
2177 * debian/patches:
2178 - 02-pserv-config.patch: Refreshed.
2179 - 99_enums_js.patch: Updated.
2180 - 99_power_fixes.patch: Added temporarily to enable IPMI
2181 - 99_temporary_fix_path.patch: Added temporarily to not fail when
2182 importing celeryconfig
2183
2184 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 03 Jul 2012 17:54:49 -0400
2185
2186maas (0.1+bzr709+dfsg-0ubuntu1) quantal; urgency=low
2187
2188 * New Upstream release
2189 * debian/control:
2190 - Depends on python-celery, python-tempita, libjs-yui3-{full,min},
2191 libjs-raphael
2192 * debian/maas.install:
2193 - Install apiclient, celeryconfig.py, maas-import-pxe-files, preseeds_v2.
2194 - Update to install various files from chroot, rather tha manually copy
2195 them from the source.
2196 * debian/maas.links: symlink celeryconfig.py
2197 * debian/maas.maas-celery.upstart: Add job.
2198 * debian/rules:
2199 - Install celery upstart job.
2200 - Do not install jslibs as packages are now used.
2201 - Drop copying of maas_local_settings_sample.py as source now ships
2202 a maas_local_settings.py
2203 * debian/patches:
2204 - 04-maas-http-fix.patch: Drop. Merged upstream.
2205 - 01-fix-database-settings.patch: Refreshed.
2206 - 99_enums_js.patch: Added until creation of enum.js / build process
2207 is fixed.
2208 * debian/maas.postinst: Update bzr version to correctly handle upgrades.
2209
2210 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 03 Jul 2012 17:42:37 -0400
2211
2212maas (0.1+bzr482+dfsg-0ubuntu1) precise; urgency=low
2213
2214 * New upstream release (Fixes LP: #981103)
2215 * debian/maas.postinst:
2216 - Make sure rabbitmq and postgresql are started on upgrade (LP: #981282)
2217 - Handle upgrades from any lower than 0.1+bzr462+dfsg-0ubuntu1 to
2218 correctly re-generate passwords, and not have db sync/migrate issues
2219 as config has changed upstream.
2220 - Correctly set Passwords for PSERV, otherwise it won't set new passwords.
2221 * Allow MAAS_DEFAULT_URL reconfiguration. (LP: #980970)
2222 - debian/maas.config: Add reconfigure validation to correctly allow it,
2223 and ask a question.
2224 - debian/maas.postinst: Reconfigure DEFAULT_MAAS_URL as well as cobbler
2225 server and next_server for PXE/Provisioning.
2226 - debian/maas.templates: Add debconf question and update info.
2227 * Do not lose MAAS_DEFAULT_URL settings on upgrade (LP: #984309)
2228 * debian/maas.postinst:
2229 - Set cobbler password in between quotes (LP: #984427)
2230 - Do not change permissions to maas.log (LP: #980915)
2231 * no longer use maas-cloudimg2ephemeral, but rather use premade images
2232 at http://maas.ubuntu.com
2233
2234 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Apr 2012 23:44:46 -0700
2235
2236maas (0.1+bzr462+dfsg-0ubuntu1) precise; urgency=low
2237
2238 * New upstream release (LP: #980240)
2239
2240 [ Scott Moser ]
2241 * add dependency on distro-info (LP: #949442)
2242 * debian/control: add dependency on tgt for ephemeral iscsi environment
2243
2244 [ Andres Rodriguez ]
2245 * Make package lintian clean:
2246 - maas{-dhcp}.lintian-overrides: Add to make lintian clean.
2247 - debian/control: Add missing dependencies; correct section and desc.
2248 - debian/maas.postinst: Do not use absolute path for rabbitmqctl.
2249 - debian/patches: Add headers to all patches.
2250 * debian/maas-dhcp.postrm: Added to disable dnsmasq in cobbler on removal.
2251 * debian/maas.config: Do not set a password with pwgen as it is not an
2252 essential package; allow dbconfig-common to create a password instead by
2253 creating an empty question. (LP: #977475)
2254 * Run MAAS, pserv, txlongpoll as non-root user. (LP: #975436)
2255 - debian/maas.postinst: Create user/group; set correct permissions for
2256 directories.
2257 - debian/maas.postrm: Remove user/group; restart apache2.
2258 - debian/maas.maas-{pserv,txlongpoll}.upstart: Update to run as non-root
2259 'maas' user.
2260 * debian/patches/01-fix-database-settings.patch: Remove adding of PSERV_URL.
2261 * debian/maas.postinst:
2262 - Handle config file upgrade from versions lower than 0.1+bzr445+dfsg-0ubuntu1,
2263 by creating new passwords and updating accordingly
2264 - use local variables in functions.
2265 - Handle maas tgt configuration for upgrades from 0.1+bzr459+dfsg-0ubuntu1.
2266 * debian/extras/99-maas: Add squid-deb-proxy file to enable PPAs. (LP: #979383)
2267 * debian/maas.install: Install missing commissioning-user-data script.
2268
2269 [ Dave Walker (Daviey) ]
2270 * debian/patches/02-pserv-config.patch: Refreshed to apply to updated config.
2271
2272 [ Gavin Panella ]
2273 * debian/maas.postinst: Update pserv.yaml and maas_local_settings.py to use
2274 password.
2275
2276 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 12 Apr 2012 16:37:53 -0400
2277
2278maas (0.1+bzr415+dfsg-0ubuntu2) precise; urgency=low
2279
2280 * debian/maas-dhcp.{config,postinst}:
2281 - Fix not setting new values on fresh install. (LP: #975321)
2282 - Fix unsetting domain, otherwise, even if disabled, it will always be set.
2283 * debian/control: Depends on maas for maas-dhcp.
2284
2285 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 06 Apr 2012 15:30:44 -0400
2286
2287maas (0.1+bzr415+dfsg-0ubuntu1) precise; urgency=low
2288
2289 * debian/control: Update package descriptions; Suggests maas-dhcp for maas
2290 and add a maas-dhcp binary.
2291 * Add maas-dhcp package to configure a DHCP server.
2292 - debian/maas-dhcp.config: Add to ask debconf questions about range,
2293 gateway, and domain.
2294 - debian/maas-dhcp.postinst: Handle update of config values.
2295 - debian/maas-dhcp.templates: Debconf questions.
2296 * debian/po: Update for templates.
2297 * Add message telling MAAS URL after installation.
2298 - debian/maas.templates: Add message.
2299 - debian/maas.postinst: Display message.
2300 * debian/maas.config: Hide dbconfig-install question.
2301
2302 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 04 Apr 2012 14:47:13 -0400
2303
2304maas (0.1+bzr400+dfsg-0ubuntu1) precise; urgency=low
2305
2306 * debian/patches/{02-pserv-config,03-txlongpoll-config}.patch: Refreshed.
2307 * debian/maas.install: Install maas-gc cronjob.
2308 * Add apport hook.
2309 - debian/maas.apport: Add hook.
2310 - debian/rules: Install with apport.
2311 * debian/maas.logrotate: Add logrotate for txlongpoll and pserv logs.
2312 * Create 'var/lib/media/maas/storage' on postinst to have right permissions.
2313 - debian/maas.dirs: Drop dir creation.
2314 - debian/maas.postinst: Create dir with correct permissions.
2315 - debian/maas.postrm: Remove dir on purge.
2316
2317 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 03 Apr 2012 14:50:34 -0400
2318
2319maas (0.1+bzr378+dfsg-0ubuntu1) precise; urgency=low
2320
2321 * maas.dirs: Create var/lib/maas/media/storage for juju storage.
2322 * maas.postinst:
2323 - Give correct permissions to above dir.
2324 - stop apache2 before db upgrade, and restart after.
2325
2326 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 29 Mar 2012 19:28:13 -0400
2327
2328maas (0.1+bzr363+dfsg-0ubuntu1) precise; urgency=low
2329
2330 [ Dave Walker (Daviey) ]
2331 * debian/control: Add openssh-server as a Recommends, and wrap-and-sort.
2332
2333 [ Andres Rodriguez ]
2334 * debian/maas.postinst:
2335 - Do not start apache with apache2ctl. Use invoke-rc.d instead to not
2336 fail in the installer.
2337 - For start of postgresql before creating the DB, otherwise it will
2338 fail in the installer.
2339 - Add check of invoke-rc.d for syslog.
2340 - Add check of invoke-rc.d for rabbitmq-server; Add check for rabbitmqctl
2341 - Add db_stop, in case invoke-rc.d fails.
2342 * debian/control: Tight python-django-maas dependency.
2343 * debian/postrm: Add check for rabbitmqctl.
2344 * debian/maas.maas-txlongpoll.upstart: Create rabbitmq longpoll user/vhost
2345 and set permissions if they don't exist. Start on rabbitmq-server-running.
2346
2347 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 27 Mar 2012 14:49:56 -0400
2348
2349maas (0.1+bzr338+dfsg-0ubuntu1) precise; urgency=low
2350
2351 [ Dave Walker (Daviey) ]
2352 * d/patches/03-txlongpoll-config.patch: Resolve typo error from prior patch.
2353 - LP: #961031
2354
2355 [ Andres Rodriguez ]
2356 * debian/maas.config: Don't allow reconfigure.
2357 * debian/maas.postinst: Don't allow reconfigure. Run sync/migrate db on
2358 all upgrades.
2359
2360 [ Scott Moser ]
2361 * add rsylog config for logging node boots (LP: 960149)
2362
2363 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 22 Mar 2012 10:56:58 -0400
2364
2365maas (0.1+bzr315+dfsg-0ubuntu1) precise; urgency=low
2366
2367 * New upstream snapshot.
2368
2369 [ Dave Walker ]
2370 * debian/maas.postinst: Do not import ISO's at install time.
2371 * debian/control:
2372 - Drop run-one, it's not a requirement and currently in universe.
2373 - Drop python-setproctitle, no longer required.
2374
2375 [ Andres Rodriguez ]
2376 * debian/control: Depends on python-avahi, python-dbus, and avahi-daemon.
2377 * debian/maas.postinst:
2378 - Only syncdb if dbconfig db creation was selected.
2379 - Set rabbitmq/longpoll settings
2380 * debian/patches/03-txlongpoll-config.patch: Updated broker settings for
2381 rabbitmq.
2382
2383 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 20 Mar 2012 20:10:58 -0400
2384
2385maas (0.1+bzr300+dfsg-0ubuntu1) precise; urgency=low
2386
2387 * debian/patches:
2388 - 01-fix-database-settings.patch: Update PSERV_URL port.
2389 - 02-pserv-config.patch: Update, and set 'maas' as username.
2390 - 03-longpoll-config.patch: Update.
2391 * debian/maas.install: Install preseeds and snippets.
2392 * debian/maas.postinst:
2393 - Set password for 'maas' cobbler username (in pserv and cobbler).
2394 - Set DEFAULT_MAAS_URL to IP of interface with default gateway.
2395
2396 -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 16 Mar 2012 14:59:16 -0400
2397
2398maas (0.1+bzr295+dfsg-0ubuntu2) precise; urgency=low
2399
2400 * debian/patches:
2401 - 01-fix-database-settings.patch: Update to set PSERV_URL.
2402 - 02-pserv-config.patch: Set port to 8001.
2403 * debian/maas.postinst: Run maas-import-isos on install.
2404 * debian/control: Depends on rabbitmq-server.
2405
2406 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Mar 2012 18:14:08 -0400
2407
2408maas (0.1+bzr295+dfsg-0ubuntu1) precise; urgency=low
2409
2410 * debian/maas.upstart: Specify pidfile and conffile.
2411 * debian/maas.postinst:
2412 - Only run syncdb if dbconfig postinst file exists.
2413 - Fix file permissions.
2414 * debian/maas.{postrm,prerm}: Add dbconfig-common support.
2415 * Add txlongpoll support for packaging:
2416 - debian/control: Depends on python-txlongpoll.
2417 - debian/maas.maas-longpoll.upstart: Added to start txlongpoll.
2418 - debian/maas.install: Install txlongpoll.yaml
2419 * debian/extras/maas: Improvements.
2420 * debian/maas.maas.upstart: Moved from debian/maas.upstart.
2421 * debian/maas.postinst: Touch logfile to set correct permissions (LP: #955400)
2422 * debian/maas.logrotate: Add.
2423 * debian/patches/03-txlongpoll-config.patch: Add default settings.
2424 * debian/maas.config: Only run dbconfig-common on configure/reconfigure.
2425 * Install maas_local_settings.py in /etc/maas and symlink to usr/share/maas
2426 * Update references from MaaS to MAAS.
2427 * Remove podebconf as templates no longer exist.
2428 - debian/po: Remove.
2429 - debian/control: Drop Build-Depends on po-debconf
2430
2431 -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Mar 2012 15:28:14 -0400
2432
2433maas (0.1+bzr266+dfsg-0ubuntu1) precise; urgency=low
2434
2435 * Remove support for squid3 and use squid-deb-proxy instead.
2436 * debian/extras/maas: Add to handle syncdb and creation of admin user.
2437 * Add debconf questions to ask for user/pass:
2438 - debian/maas.{template,config}: Add
2439 - debian/maas.postinst: Ask debconf questions.
2440 - debian/po: Add translation templates.i
2441 * debian/maas.postinst: Enable wsgi module; drop squid3 steps.
2442 * debian/maas.postrm: removed.
2443 * debian/patches/01-fix-database-settings.patch: Custom database settings
2444 and static files path.
2445 * debian/{rules,maas.install}: Install maas static files in
2446 'usr/share/maas/web/static'.
2447 * Integrate cobbler:
2448 - debian/maas.install: Install pserv twisted plugin, and config.
2449 - debian/maas.upstart: Created to start plugin daemon.
2450 - debian/patches/02-pserv-config.patch: Custom pserv config.
2451 * Integrate dbconfig-common:
2452 - debian/maas.config: Added and default user/pass and database.
2453 - debian/maas.{postinst,postrm}: Added handling for dbconfig-common
2454 * debian/control: Depends on python-convoy.
2455 * debian/rules: Update path to removal of dsfg files.
2456 * debian/patches/01-fix-database-settings.patch: Updated.
2457
2458 -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 13 Mar 2012 14:31:50 -0400
2459
2460maas (0.1+bzr232+dfsg-0ubuntu1) precise; urgency=low
2461
2462 * New upstream snapshot.
2463
2464 [ Dave Walker ]
2465 * debian/control:
2466 - Changed depends from psycopg2 to python-psycopg2 and dropped versioning.
2467 - LP: #937982
2468
2469 [ Andres Rodriguez ]
2470 * debian/maas.install: Install maas-import-isos and related files.
2471 * Integrate squid3 as proxy solution:
2472 - debian/extras/squid.conf: Added
2473 - debian/control: Depend on squid3.
2474 - debian/maas.{postinst,postrm}: Handle installation/removal of custom
2475 squid config file.
2476 * Split into different binary packages (maas,python-django-maas).
2477 - debian/maas.postinst: Handle the apache2 configuration.
2478
2479 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 07 Mar 2012 12:46:17 -0500
2480
2481maas (0.1+bzr171+dfsg-0ubuntu1) precise; urgency=low
2482
2483 * New upstream snapshot, post 0.1 release.
2484 * debian/control:
2485 - Drop depends on rabbitmq-server, no longer required.
2486 * debian/watch: Introduced watch file.
2487
2488 -- Dave Walker (Daviey) <DaveWalker@ubuntu.com> Thu, 23 Feb 2012 13:08:12 +0000
2489
2490maas (0.1~bzr146+dfsg-0ubuntu1) precise; urgency=low
2491
2492 * Initial release
2493
2494 -- Julian Edwards <julian.edwards@canonical.com> Thu, 16 Jan 2012 15:29:07 +0000
diff --git a/debian/compat b/debian/compat
0new file mode 1006442495new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
17
diff --git a/debian/control b/debian/control
0new file mode 1006442new file mode 100644
index 0000000..8e94873
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,307 @@
1Source: maas
2Section: net
3Priority: optional
4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5Build-Depends: debhelper (>= 8.1.0~),
6 dh-apport,
7 dh-python,
8 dh-systemd,
9 po-debconf,
10 python3-all,
11 python3-django,
12 python3-setuptools,
13 python3-twisted
14Standards-Version: 3.9.7
15X-Python3-Version: >= 3.5
16Homepage: http://maas.io/
17
18Package: maas
19Architecture: all
20Depends: maas-rack-controller (= ${binary:Version}),
21 maas-region-controller (= ${binary:Version}),
22 python3-django-maas (= ${binary:Version}),
23 ${misc:Depends}
24Description: "Metal as a Service" is a physical cloud and IPAM
25 MAAS runs a software-defined data centre - it turns a collection of physical
26 servers and switches into a bare metal cloud with full open source IP address
27 management (IPAM) and instant provisioning on demand.
28 .
29 MAAS controls the servers through IPMI or another BMC or converged chassis
30 controller such as Cisco UCS. It provides a full inventory of components,
31 and can install Ubuntu, CentOS or Windows very fast on any server under
32 its control. It can also track and provide DHCP and DNS for other devices
33 on the network.
34 .
35 MAAS handles VLANs and fabrics that span many trunked switches, as well as
36 the routing-centric infrastructure typically used for large-scale OpenStack
37 or other scale-out deployments. MAAS manages IP addresses and provides APIs
38 for address assignment and release. MAAS can also allocate IP addresses for
39 containers on machines, and release them when the machine is repurposed. MAAS
40 provides PXE, DHCP, DNS and other low-level services to ensure the cluster
41 works smoothly.
42 .
43 MAAS works with any configuration system, and is recommended by the teams
44 behind both Chef and Juju as a physical provisioning system.
45 .
46 MAAS provides:
47 .
48 * Hardware inventory of servers
49 * Dynamic provisioning based on name or attributes such as disk, RAM, cores,
50 nics, networking, gpu’s or architecture
51 * DNS and DHCP as needed
52 * PXE boot services
53 .
54 This package is a metapackage which installs all of the separate components
55 of MAAS on a single machine.
56
57Package: maas-common
58Architecture: all
59Depends: rsyslog,
60 ${misc:Depends}
61Breaks: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 )
62Replaces: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 )
63Description: MAAS server common files
64 This package contains the common files for any MAAS installation.
65
66Package: maas-region-api
67Architecture: all
68Depends: apache2,
69 bind9utils,
70 iproute2,
71 libjs-angularjs,
72 libjs-yui3-full,
73 libjs-yui3-min,
74 maas-cli (=${binary:Version}),
75 maas-common (= ${binary:Version}),
76 maas-proxy (= ${binary:Version}),
77 ntp,
78 python3-bson,
79 python3-django,
80 python3-django-maas (= ${binary:Version}),
81 python3-django-piston3,
82 python3-djorm-ext-pgarray,
83 python3-maas-provisioningserver (= ${binary:Version}),
84 python3-petname,
85 python3-requests,
86 ubuntu-cloudimage-keyring,
87 ${misc:Depends},
88 ${python3:Depends}
89Conflicts: maas-region-controller-min
90Replaces: maas-region-controller-min
91Provides: maas-region-controller-min
92Description: Region controller API service for MAAS
93 The MAAS region controller consists of REST API services and a postgres
94 database. This package installs only the API services (maas-regiond).
95 Use it to scale out the API front-end of your MAAS region controller.
96
97Package: maas-region-controller
98Architecture: all
99Depends: avahi-utils,
100 dbconfig-pgsql,
101 iputils-ping,
102 maas-dns (= ${binary:Version}),
103 maas-region-api (= ${binary:Version}),
104 postgresql (>= 9.1),
105 tcpdump,
106 ${misc:Depends},
107Recommends: openssh-server
108Suggests: nmap
109Description: Region Controller for MAAS
110 The MAAS region controller (maas-regiond) is the REST API server for
111 all MAAS clients, and the postgres database that maintains machine
112 state for the entire data centre (or “region”). The region controller
113 an be scaled-out and highly available given the appropriate postgres
114 setup and additional API servers.
115 .
116 This package installs the postgres database and the API server, so it
117 is appropriate for the initial installation of a new MAAS region. To
118 scale out the controller or make it highly available, install
119 maas-region-controller-api on additional servers and ensure the
120 postgres database is HA too.
121
122Package: python3-maas-provisioningserver
123Section: python
124Architecture: all
125Depends: archdetect-deb,
126 lshw,
127 openssh-client,
128 python3-attr,
129 python3-bson,
130 python3-crochet,
131 python3-curtin (>> 0.1.0~bzr478),
132 python3-distro-info,
133 python3-formencode,
134 python3-jsonschema,
135 python3-lxml,
136 python3-maas-client (= ${binary:Version}),
137 python3-netifaces,
138 python3-oauth,
139 python3-oauthlib,
140 python3-paramiko,
141 python3-pexpect,
142 python3-pyparsing,
143 python3-pyvmomi,
144 python3-seamicroclient,
145 python3-simplejson,
146 python3-simplestreams,
147 python3-tempita,
148 python3-twisted,
149 python3-txtftp,
150 python3-yaml,
151 python3-zope.interface,
152 isc-dhcp-client,
153 iproute2,
154 ${misc:Depends},
155 ${python3:Depends}
156Description: MAAS server provisioning libraries (Python 3)
157 This package provides the MAAS provisioning server python libraries.
158 .
159 This package contains Python 3 libraries.
160
161Package: maas-cli
162Architecture: all
163Depends: python3-maas-client (= ${binary:Version}),
164 ${misc:Depends},
165 ${python3:Depends}
166Conflicts: maas-region-controller-min (<= 1.5+bzr1909-0ubuntu1)
167Replaces: maas-region-controller-min (<= 1.5+bzr1909-0ubuntu1)
168Description: MAAS client and command-line interface
169 This package contains the 'maas' command-line interface, which
170 talks to the MAAS region controller REST API. Use the maas command
171 to login to MAAS and drive the data centre entirely from the
172 command-line.
173
174Package: python3-maas-client
175Section: python
176Architecture: all
177Depends: python3-httplib2,
178 python3-oauth,
179 ${misc:Depends},
180 ${python3:Depends}
181Breaks: python-maas-client, maas-cli ( <= 2.0.0~alpha4+bzr4843-0ubuntu1 )
182Replaces: python-maas-client, maas-cli ( <= 2.0.0~alpha4+bzr4843-0ubuntu1 )
183Description: MAAS python API client (Python 3)
184 This package contains the MAAS client API Python modules.
185 .
186 This package contains Python 3 modules.
187
188Package: maas-rack-controller
189Architecture: all
190Depends: authbind,
191 avahi-utils,
192 bind9utils,
193 distro-info,
194 freeipmi-tools,
195 grub-common,
196 iputils-ping,
197 maas-cli (=${binary:Version}),
198 maas-common (=${binary:Version}),
199 maas-dhcp (=${binary:Version}),
200 ntp,
201 pxelinux | syslinux-common (<< 3:6.00~pre4+dfsg-5),
202 python3-httplib2,
203 python3-maas-provisioningserver (=${binary:Version}),
204 python3-netaddr,
205 python3-tempita,
206 python3-twisted,
207 python3-zope.interface,
208 syslinux-common,
209 tcpdump,
210 tgt,
211 uuid-runtime,
212 wget,
213 ${misc:Depends},
214 ${python3:Depends}
215Suggests: amtterm, ipmitool, libvirt-bin, nmap, wsmancli
216Conflicts: tftpd-hpa
217Breaks: python-maas-provisioningserver,
218 maas-cluster-controller
219Replaces: python-maas-provisioningserver,
220 maas-cluster-controller
221Description: Rack Controller for MAAS
222 The MAAS rack controller (maas-rackd) provides highly available, fast
223 and local broadcast services to the machines provisioned by MAAS. You
224 need a MAAS rack controller attached to each fabric (which is a set of
225 trunked switches). You can attach multiple rack controllers to these
226 physical networks for high availability, with secondary rack controllers
227 automatically stepping to provide these services if the primary rack
228 controller fails.
229 .
230 A common configuration is to have a rack controller in each rack, with
231 a fast primary network interface to the rack switch and secondary
232 network interfaces on one or two other nearby racks for high
233 availability redundancy.
234 .
235 This package depends on the necessary components to provide iSCSI,
236 DHCP, TFTP and power management.
237
238Package: python3-django-maas
239Section: python
240Architecture: all
241Depends: python3-apt,
242 python3-attr,
243 python3-convoy,
244 python3-crochet,
245 python3-curtin (>> 0.1.0~bzr478),
246 python3-lxml,
247 python3-maas-client (= ${binary:Version}),
248 python3-markupsafe,
249 python3-netaddr,
250 python3-psycopg2,
251 python3-sphinx,
252 python3-tempita,
253 python3-twisted,
254 python3-zope.interface,
255 ${misc:Depends},
256 ${python3:Depends}
257Breaks: python-django-maas
258Replaces: python-django-maas
259Description: MAAS server Django web framework (Python 3)
260 This package provides the Django web framework for MAAS.
261 .
262 This package contains Python 3 modules.
263
264Package: maas-dhcp
265Architecture: all
266Depends: isc-dhcp-server (>= 4.3.3-5ubuntu10~), ${misc:Depends}
267Description: MAAS DHCP server
268 This package installs and configures a DHCP server that can be used by
269 MAAS, and enhances the overall MAAS user experience.
270
271Package: maas-dns
272Architecture: all
273Depends: bind9 (>= 1:9.10.3.dfsg.P2-5~),
274 maas-region-api (= ${binary:Version}),
275 ${misc:Depends}
276Conflicts: dnsmasq
277Description: MAAS DNS server
278 This package installs and configures a DNS server that can be used by
279 MAAS, and enhances the overall MAAS user experience.
280
281Package: maas-proxy
282Architecture: all
283Depends: squid (>> 3.5), ${misc:Depends}
284Conflicts: squid-deb-proxy
285Description: MAAS Caching Proxy
286 This package installs and configures a Caching Proxy server that can be
287 used by MAAS. It enhances the overall MAAS user experience.
288
289Package: maas-region-udeb
290Package-Type: udeb
291Section: debian-installer
292Architecture: all
293Depends:
294 ${shlibs:Depends},
295 ${misc:Depends}
296XB-Installer-Menu-Item: 2350
297Description: Install a MAAS server (installer integration)
298
299Package: maas-rack-udeb
300Package-Type: udeb
301Section: debian-installer
302Architecture: all
303Depends:
304 ${shlibs:Depends},
305 ${misc:Depends}
306XB-Installer-Menu-Item: 2350
307Description: Install a MAAS Rack controller (installer integration)
diff --git a/debian/copyright b/debian/copyright
0new file mode 100644308new file mode 100644
index 0000000..e9cd67f
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,45 @@
1Format: http://dep.debian.net/deps/dep5
2Upstream-Name: maas
3Source: https://launchpad.net/maas
4
5Files: *
6Copyright: 2012 Canonical Ltd.
7License: AGPL-3.0+
8
9Files: debian/*
10Copyright: 2012 Canonical Ltd.
11License: AGPL-3.0+
12
13License: AGPL-3.0+
14 This program is free software: you can redistribute it and/or modify
15 it under the terms of the GNU Affero General Public License as
16 published by the Free Software Foundation, either version 3 of the
17 License, or (at your option) any later version.
18 .
19 This program is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 GNU Affero General Public License for more details.
23 .
24 You should have received a copy of the GNU Affero General Public License
25 along with this program. If not, see <http://www.gnu.org/licenses/>.
26
27Files: src/maasserver/static/js/angular/3rdparty/ng-tags-input.js
28Copyright: Copyright (c) 2013-2015 Michael Benford.
29License: MIT
30 Permission is hereby granted, free of charge, to any person obtaining a copy of
31 this software and associated documentation files (the "Software"), to deal in
32 the Software without restriction, including without limitation the rights to
33 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
34 the Software, and to permit persons to whom the Software is furnished to do so,
35 subject to the following conditions:
36 .
37 The above copyright notice and this permission notice shall be included in all
38 copies or substantial portions of the Software.
39 .
40 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
41 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
42 FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
43 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
44 IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
45 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/debian/extras/20-maas.conf b/debian/extras/20-maas.conf
0new file mode 10064446new file mode 100644
index 0000000..8f42a5e
--- /dev/null
+++ b/debian/extras/20-maas.conf
@@ -0,0 +1,40 @@
1# Enable the udp server for installation logging
2$ModLoad imudp
3$UDPServerRun 514
4$ModLoad imtcp # load TCP listener
5
6# The following section (certificates) was copied from orchestra, but is
7# not used here. In the future, if we needed secure ssl, then re-enable.
8# These files were created in the orchestra-logging-server's postinst
9#
10## make gtls driver the default
11#$DefaultNetstreamDriver gtls
12#
13## certificate files
14#$DefaultNetstreamDriverCAFile /var/lib/maas/ssl-cert-orchestra-ca.pem
15#$DefaultNetstreamDriverCertFile /var/lib/maas/.ssl/ssl-cert-orchestra.pem
16#$DefaultNetstreamDriverKeyFile /var/lib/maas/.ssl/ssl-cert-orchestra-pk.pem
17#
18#$InputTCPServerStreamDriverMode 1 # run driver in TLS-only mode
19#$InputTCPServerStreamDriverAuthMode anon # client is NOT authenticated
20#$InputTCPServerRun 10514 # start up listener at port 10514
21
22# Reduce message repetition
23$RepeatedMsgReduction on
24##$RepeatedMsgContainsOrigionalMsg on
25
26# Message templating
27$template MAASenlist,"/var/log/maas/rsyslog/%HOSTNAME%/%$YEAR%-%$MONTH%-%$DAY%/%fromhost-ip%"
28$template MAASboot,"/var/log/maas/rsyslog/%HOSTNAME%/%$YEAR%-%$MONTH%-%$DAY%/messages"
29
30if $hostname == "maas-enlisting-node" then {
31 :fromhost-ip, !isequal, "127.0.0.1" ?MAASenlist
32 # Stop messages that came from anywhere else from going into other places
33 # like /var/log/syslog. If you want to see these messages there, then comment below
34 & ~
35} else {
36 :fromhost-ip, !isequal, "127.0.0.1" ?MAASboot
37 # Stop messages that came from anywhere else from going into other places
38 # like /var/log/syslog. If you want to see these messages there, then comment below
39 & ~
40}
diff --git a/debian/extras/99-maas-common-sudoers b/debian/extras/99-maas-common-sudoers
0new file mode 10064441new file mode 100644
index 0000000..a4e6542
--- /dev/null
+++ b/debian/extras/99-maas-common-sudoers
@@ -0,0 +1,12 @@
1maas ALL= NOPASSWD: /usr/bin/lshw
2maas ALL= NOPASSWD: /sbin/blockdev
3
4# Control of the NTP server: MAAS needs to reconfigure it after editing
5# its configuration file, and start it again if stopped manually.
6maas ALL= NOPASSWD: /bin/systemctl restart ntp
7maas ALL= NOPASSWD: /bin/systemctl start ntp
8maas ALL= NOPASSWD: /bin/systemctl status ntp
9
10# Writing and deleting files as root.
11maas ALL= NOPASSWD: /usr/lib/maas/maas-delete-file
12maas ALL= NOPASSWD: /usr/lib/maas/maas-write-file
diff --git a/debian/extras/99-maas-region-sudoers b/debian/extras/99-maas-region-sudoers
0new file mode 10064413new file mode 100644
index 0000000..442fcb3
--- /dev/null
+++ b/debian/extras/99-maas-region-sudoers
@@ -0,0 +1,7 @@
1maas ALL= NOPASSWD: /bin/systemctl status bind9
2maas ALL= NOPASSWD: /bin/systemctl start bind9
3maas ALL= NOPASSWD: /bin/systemctl status maas-proxy
4maas ALL= NOPASSWD: /bin/systemctl start maas-proxy
5maas ALL= NOPASSWD: /bin/systemctl reload maas-proxy
6maas ALL= NOPASSWD: /bin/systemctl restart maas-proxy
7maas ALL= NOPASSWD: /bin/systemctl stop maas-proxy
diff --git a/debian/extras/99-maas-sudoers b/debian/extras/99-maas-sudoers
0new file mode 1006448new file mode 100644
index 0000000..5d0b0be
--- /dev/null
+++ b/debian/extras/99-maas-sudoers
@@ -0,0 +1,16 @@
1maas ALL= NOPASSWD: /bin/systemctl status maas-dhcpd
2maas ALL= NOPASSWD: /bin/systemctl start maas-dhcpd
3maas ALL= NOPASSWD: /bin/systemctl restart maas-dhcpd
4maas ALL= NOPASSWD: /bin/systemctl stop maas-dhcpd
5maas ALL= NOPASSWD: /bin/systemctl status maas-dhcpd6
6maas ALL= NOPASSWD: /bin/systemctl start maas-dhcpd6
7maas ALL= NOPASSWD: /bin/systemctl restart maas-dhcpd6
8maas ALL= NOPASSWD: /bin/systemctl stop maas-dhcpd6
9maas ALL= NOPASSWD: /bin/systemctl status tgt
10maas ALL= NOPASSWD: /bin/systemctl start tgt
11maas ALL= NOPASSWD: /bin/systemctl disable maas-rackd
12maas ALL= NOPASSWD: /bin/systemctl stop maas-rackd
13maas ALL= NOPASSWD: /usr/sbin/maas-rack scan-network *
14maas ALL= NOPASSWD: /usr/lib/maas/maas-network-monitor
15maas ALL= NOPASSWD: /usr/lib/maas/maas-beacon-monitor
16maas ALL= NOPASSWD: SETENV: /usr/sbin/tgt-admin, /usr/bin/uec2roottar
diff --git a/debian/extras/isc-dhcp-server.override b/debian/extras/isc-dhcp-server.override
0new file mode 10064417new file mode 100644
index 0000000..2905494
--- /dev/null
+++ b/debian/extras/isc-dhcp-server.override
@@ -0,0 +1 @@
1manual
diff --git a/debian/extras/maas b/debian/extras/maas
0new file mode 1006442new file mode 100644
index 0000000..36125f3
--- /dev/null
+++ b/debian/extras/maas
@@ -0,0 +1,13 @@
1#!/usr/bin/env python3
2
3import sys
4import maascli
5
6if sys.argv[0].split('/')[-1:] == "maas-cli":
7 sys.stderr.write("""
8 WARNING: The maas-cli command is deprecated and will be removed in a future
9 version. From now on please use 'maas' instead.
10""")
11
12sys.exit(maascli.main())
13
diff --git a/debian/extras/maas-proxy-common.sh b/debian/extras/maas-proxy-common.sh
0new file mode 10064414new file mode 100644
index 0000000..3d94668
--- /dev/null
+++ b/debian/extras/maas-proxy-common.sh
@@ -0,0 +1,23 @@
1pre_start() {
2 if [ -x /usr/sbin/squid ]; then
3 SQUID=/usr/sbin/squid
4 elif [ -x /usr/sbin/squid3 ]; then
5 SQUID=/usr/sbin/squid3
6 else
7 echo "No squid binary found"
8 exit 1
9 fi
10
11 # ensure all cache dirs are there
12 install -d -o proxy -g proxy -m 750 /var/cache/maas-proxy/
13 install -d -o proxy -g proxy -m 750 /var/log/maas/proxy/
14 install -m 750 -o proxy -g proxy -d /var/spool/maas-proxy/
15 if [ -d /var/log/maas/proxy ]; then
16 chown -R proxy:proxy /var/log/maas/proxy
17 fi
18 if [ -f /var/lib/maas/maas-proxy.conf ]; then
19 if [ ! -d /var/cache/maas-proxy/00 ]; then
20 $SQUID -z -N -f /var/lib/maas/maas-proxy.conf
21 fi
22 fi
23}
diff --git a/debian/extras/maas-rack b/debian/extras/maas-rack
0new file mode 10064424new file mode 100644
index 0000000..4b69afa
--- /dev/null
+++ b/debian/extras/maas-rack
@@ -0,0 +1,87 @@
1#!/usr/bin/python3
2# Copyright 2016 Canonical Ltd. This software is licensed under the
3# GNU Affero General Public License version 3 (see the file LICENSE).
4
5from __future__ import (
6 absolute_import,
7 print_function,
8 unicode_literals,
9)
10
11str = None
12
13__metaclass__ = type
14__all__ = []
15
16import grp
17import os
18import pwd
19import sys
20
21
22def check_users(users):
23 """Check that the runnig user is in users."""
24 uid = os.getuid()
25 for user in users:
26 if user is None:
27 # Special case: this means any user is allowed.
28 return None
29 user_uid = pwd.getpwnam(user)[2]
30 if uid == user_uid:
31 return user
32 raise SystemExit("This utility may only be run as %s." % ", ".join(users))
33
34
35def set_group():
36 # Ensure that we're running as the `maas` group.
37 try:
38 gr_maas = grp.getgrnam("maas")
39 except KeyError:
40 raise SystemExit("No such group: maas")
41 else:
42 os.setegid(gr_maas.gr_gid)
43
44
45def set_umask():
46 # Prevent creation of world-readable (or writable, executable) files.
47 os.umask(0o007)
48
49
50def run():
51 # Run the main provisioning script.
52 from provisioningserver.__main__ import main
53 main()
54
55
56def main():
57 if 'maas-provision' in sys.argv[0]:
58 sys.stderr.write(
59 "WARNING: The maas-provision command is deprecated and will be "
60 "removed in a future version. From now on please use 'maas-rack' "
61 "instead.\n")
62
63 # Allow dhcpd user to call dhcp-notify, and maas user to call observe-arp.
64 users = ["root"]
65 if len(sys.argv) > 1:
66 if sys.argv[1] == "dhcp-notify":
67 users.append("dhcpd")
68 if sys.argv[1] == "observe-arp":
69 users.append("maas")
70 if sys.argv[1] == "observe-beacons":
71 users.append("maas")
72 if sys.argv[1] == "observe-mdns":
73 # Any user can call this. (It might be necessary for a normal
74 # user to call this for support/debugging purposes.)
75 users.append(None)
76
77 # Only set the group and umask when running as root.
78 if check_users(users) == "root":
79 set_group()
80 set_umask()
81
82 # Run the script.
83 run()
84
85
86if __name__ == "__main__":
87 main()
diff --git a/debian/extras/maas-region b/debian/extras/maas-region
0new file mode 10064488new file mode 100644
index 0000000..81fa17b
--- /dev/null
+++ b/debian/extras/maas-region
@@ -0,0 +1,65 @@
1#!/usr/bin/python3
2# Copyright 2016 Canonical Ltd. This software is licensed under the
3# GNU Affero General Public License version 3 (see the file LICENSE).
4
5from __future__ import (
6 absolute_import,
7 print_function,
8 unicode_literals,
9)
10
11str = None
12
13__metaclass__ = type
14__all__ = []
15
16import grp
17import os
18import sys
19
20
21def check_user():
22 # At present, only root should execute this.
23 if os.getuid() != 0:
24 raise SystemExit("This utility may only be run as root.")
25
26
27def set_group():
28 # Ensure that we're running as the `maas` group.
29 try:
30 gr_maas = grp.getgrnam("maas")
31 except KeyError:
32 raise SystemExit("No such group: maas")
33 else:
34 os.setegid(gr_maas.gr_gid)
35
36
37def set_umask():
38 # Prevent creation of world-readable (or writable, executable) files.
39 os.umask(0o007)
40
41
42def run():
43 # Force the production MAAS Django configuration.
44 os.environ.setdefault(
45 "DJANGO_SETTINGS_MODULE", "maasserver.djangosettings.settings")
46
47 # Let Django do the rest.
48 from django.core import management
49 management.execute_from_command_line()
50
51
52def main():
53 if 'maas-region-admin' in sys.argv[0]:
54 sys.stderr.write(
55 "WARNING: The maas-region-admin command is deprecated and will be "
56 "removed in a future version. From now on please use 'maas-region' "
57 "instead.\n")
58 check_user()
59 set_group()
60 set_umask()
61 run()
62
63
64if __name__ == "__main__":
65 main()
diff --git a/debian/extras/maas_remote_syslog_compress b/debian/extras/maas_remote_syslog_compress
0new file mode 10064466new file mode 100644
index 0000000..b50e501
--- /dev/null
+++ b/debian/extras/maas_remote_syslog_compress
@@ -0,0 +1,2 @@
1# Compress log files not changed in more than 48 hours:
230 4 * * * root find /var/log/maas/rsyslog -type f -mtime +2 -exec bzip2 '{}' \;
diff --git a/debian/extras/squid3.override b/debian/extras/squid3.override
0new file mode 1006443new file mode 100644
index 0000000..2905494
--- /dev/null
+++ b/debian/extras/squid3.override
@@ -0,0 +1 @@
1manual
diff --git a/debian/maas-cli.install b/debian/maas-cli.install
0new file mode 1006442new file mode 100644
index 0000000..0741ad5
--- /dev/null
+++ b/debian/maas-cli.install
@@ -0,0 +1 @@
1debian/extras/maas usr/bin
diff --git a/debian/maas-cli.links b/debian/maas-cli.links
0new file mode 1006442new file mode 100644
index 0000000..3cb6829
--- /dev/null
+++ b/debian/maas-cli.links
@@ -0,0 +1 @@
1usr/bin/maas usr/bin/maas-cli
diff --git a/debian/maas-cli.lintian-overrides b/debian/maas-cli.lintian-overrides
0new file mode 1006442new file mode 100644
index 0000000..0c046cc
--- /dev/null
+++ b/debian/maas-cli.lintian-overrides
@@ -0,0 +1 @@
1maas-cli: binary-without-manpage usr/bin/maas-cli
diff --git a/debian/maas-common.dirs b/debian/maas-common.dirs
0new file mode 1006442new file mode 100644
index 0000000..a780b08
--- /dev/null
+++ b/debian/maas-common.dirs
@@ -0,0 +1,3 @@
1var/log/maas
2var/lib/maas
3etc/ntp
diff --git a/debian/maas-common.install b/debian/maas-common.install
0new file mode 1006444new file mode 100644
index 0000000..a9a647c
--- /dev/null
+++ b/debian/maas-common.install
@@ -0,0 +1,4 @@
1debian/tmp/usr/share/maas/maas-rsyslog.conf
2debian/extras/99-maas-common-sudoers etc/sudoers.d
3debian/tmp/usr/lib/maas/maas-delete-file
4debian/tmp/usr/lib/maas/maas-write-file
diff --git a/debian/maas-common.lintian-overrides b/debian/maas-common.lintian-overrides
0new file mode 1006445new file mode 100644
index 0000000..8a37f94
--- /dev/null
+++ b/debian/maas-common.lintian-overrides
@@ -0,0 +1 @@
1maas-common: binary-without-manpage usr/lib/maas/maas-delete-file usr/lib/maas/maas-write-file
diff --git a/debian/maas-common.logrotate b/debian/maas-common.logrotate
0new file mode 1006442new file mode 100644
index 0000000..25efc46
--- /dev/null
+++ b/debian/maas-common.logrotate
@@ -0,0 +1,13 @@
1/var/log/maas/maas.log
2{
3 rotate 8
4 weekly
5 missingok
6 notifempty
7 delaycompress
8 compress
9 # Don't rotate unless the log is at least 10MB.
10 minsize 10M
11 # Force rotation if the log grows beyond 50MB.
12 maxsize 50M
13}
diff --git a/debian/maas-common.maintscript b/debian/maas-common.maintscript
0new file mode 10064414new file mode 100644
index 0000000..9ace70d
--- /dev/null
+++ b/debian/maas-common.maintscript
@@ -0,0 +1,2 @@
1#TODO: Figure out the right version or whether this is needed.
2#rm_conffile /usr/share/maas/celeryconfig_common.py 1.7.0~beta3+bzr3043-0ubuntu1
diff --git a/debian/maas-common.postinst b/debian/maas-common.postinst
0new file mode 1006443new file mode 100644
index 0000000..b6d346f
--- /dev/null
+++ b/debian/maas-common.postinst
@@ -0,0 +1,40 @@
1#!/bin/sh
2
3set -e
4
5configure_logging() {
6 # Logging directory (/var/log/maas)
7 chown maas:maas /var/log/maas/
8
9 if [ ! -f /var/log/maas/maas.log ]; then
10 touch /var/log/maas/maas.log
11 fi
12 chown syslog:syslog /var/log/maas/maas.log
13 # Make sure rsyslog reads our config
14 systemctl restart rsyslog >/dev/null 2>&1 || true
15}
16
17configure_lib_dir() {
18 # Ensure lib dir has correct permissions
19 chown maas:maas /var/lib/maas/
20
21 if [ -d /var/lib/maas/gnupg ]; then
22 chown -R maas:maas /var/lib/maas/gnupg
23 fi
24}
25
26add_user_group(){
27 local user="maas"
28 local group="maas"
29 local home="/var/lib/maas"
30 addgroup --quiet --system "$group" || true
31 adduser --quiet --system --group --home "$home" "$user" || true
32}
33
34ln -sf /usr/share/maas/maas-rsyslog.conf /etc/rsyslog.d/99-maas.conf
35
36add_user_group
37configure_logging
38configure_lib_dir
39
40#DEBHELPER#
diff --git a/debian/maas-common.postrm b/debian/maas-common.postrm
0new file mode 10064441new file mode 100644
index 0000000..06bf180
--- /dev/null
+++ b/debian/maas-common.postrm
@@ -0,0 +1,21 @@
1#!/bin/sh
2
3set -e
4
5case "$1" in
6 purge)
7 # Deleting user/group
8 if getent passwd maas >/dev/null; then
9 deluser maas || true
10 delgroup maas || true
11 fi
12 rm -rf /var/log/maas/maas.log
13 rm -rf /var/lib/maas/gnupg
14 rm -rf /var/lib/maas/secret
15 rm -rf /var/lib/maas/maas_id
16
17esac
18
19rm -f /etc/rsyslog.d/99-maas.conf
20
21#DEBHELPER#
diff --git a/debian/maas-common.templates b/debian/maas-common.templates
0new file mode 10064422new file mode 100644
index 0000000..ec3e132
--- /dev/null
+++ b/debian/maas-common.templates
@@ -0,0 +1,54 @@
1Template: maas/installation-note
2Type: note
3Default: false
4_Description: Ubuntu MAAS Server
5 The Ubuntu MAAS Server has been installed in your system. You
6 can access the MAAS Web interface here:
7 .
8 http://${MAAS_URL}/MAAS
9 .
10 If the automatically detected address above is not in the same
11 network as the MAAS clients, you need to reconfigure it:
12 .
13 sudo dpkg-reconfigure maas-region-controller
14
15Template: maas/default-maas-url
16Type: string
17_Description: Ubuntu MAAS PXE/Provisioning network address:
18 The Ubuntu MAAS Server automatically detects the IP address
19 that is used for PXE and provisioning. However, it needs to be
20 in the same network as the clients. If the automatically
21 detected address is not in the same network as the clients, it
22 must be changed.
23
24Template: maas/username
25Type: string
26_Description: Ubuntu MAAS username
27 The Ubuntu MAAS server requires the administrator to create a
28 username and password combination.
29 .
30 Please provide the username for the MAAS account.
31
32Template: maas/password
33Type: password
34_Description: Ubuntu MAAS password
35 The Ubuntu MAAS server requires the administrator to create a
36 username and password combination.
37 .
38 Please provide the password for the MAAS account.
39
40Template: maas-rack-controller/maas-url
41Type: string
42_Description: Ubuntu MAAS API address:
43 The MAAS cluster controller and nodes need to contact the MAAS region
44 controller API. Set the URL at which they can reach the MAAS API remotely,
45 e.g. "http://192.168.1.1/MAAS".
46 Since nodes must be able to access this URL, localhost or 127.0.0.1 are not
47 useful values here.
48
49Template: maas-rack-controller/shared-secret
50Type: password
51_Description: MAAS Rack Controller Shared Secret:
52 The MAAS rack controller needs to contact the MAAS region controller
53 with the shared secret found in /var/lib/maas/secret on the region controller.
54 Set the shared secret here.
diff --git a/debian/maas-dhcp.apparmor b/debian/maas-dhcp.apparmor
0new file mode 10064455new file mode 100644
index 0000000..b38c05b
--- /dev/null
+++ b/debian/maas-dhcp.apparmor
@@ -0,0 +1,10 @@
1/run/maas/dhcp/ r,
2/run/maas/dhcp/** r,
3/run/maas/dhcp/*.pid lrw,
4/run/maas/dhcp/*.trace lrw,
5/run/maas/dhcp/*.leases* lrw,
6/var/lib/maas/dhcp/dhcpd*.leases* lrw,
7/var/lib/maas/dhcpd.conf r,
8/var/lib/maas/dhcpd6.conf r,
9/usr/sbin/maas-dhcp-helper Ux,
10/tmp/maas-dhcpd-* r,
diff --git a/debian/maas-dhcp.dirs b/debian/maas-dhcp.dirs
0new file mode 10064411new file mode 100644
index 0000000..6f421ad
--- /dev/null
+++ b/debian/maas-dhcp.dirs
@@ -0,0 +1,2 @@
1var/lib/maas
2var/lib/maas/dhcp
diff --git a/debian/maas-dhcp.install b/debian/maas-dhcp.install
0new file mode 1006443new file mode 100644
index 0000000..f5dfb97
--- /dev/null
+++ b/debian/maas-dhcp.install
@@ -0,0 +1 @@
1/debian/tmp/etc/apparmor.d/dhcpd.d/maas
diff --git a/debian/maas-dhcp.maas-dhcpd.service b/debian/maas-dhcp.maas-dhcpd.service
0new file mode 1006442new file mode 100644
index 0000000..b2d47ad
--- /dev/null
+++ b/debian/maas-dhcp.maas-dhcpd.service
@@ -0,0 +1,28 @@
1[Unit]
2Description=MAAS instance of ISC DHCP server for IPv4
3Documentation=man:dhcpd(8)
4Wants=network-online.target
5After=network-online.target
6After=time-sync.target
7BindsTo=maas-rackd.service
8ConditionPathExists=/var/lib/maas/dhcpd.conf
9ConditionPathExists=/var/lib/maas/dhcpd-interfaces
10
11[Service]
12# Allow dhcp server to write lease and pid file as 'dhcpd' user
13ExecStartPre=/bin/mkdir -p /run/maas/dhcp
14# The leases files need to be root:dhcpd even when dropping privileges
15ExecStartPre=/bin/mkdir -p /var/lib/maas/dhcp
16# Start the daemon
17ExecStart=/bin/sh -ec '\
18 INTERFACES=$(cat /var/lib/maas/dhcpd-interfaces); \
19 LEASES_FILE=/var/lib/maas/dhcp/dhcpd.leases; \
20 [ -e $LEASES_FILE ] || touch $LEASES_FILE; \
21 /usr/sbin/maas-dhcp-helper clean $LEASES_FILE; \
22 chown root:dhcpd /var/lib/maas/dhcp $LEASES_FILE; \
23 chmod 775 /var/lib/maas/dhcp ; chmod 664 $LEASES_FILE; \
24 exec dhcpd -user dhcpd -group dhcpd -f -q -4 -pf /run/maas/dhcp/dhcpd.pid \
25 -cf /var/lib/maas/dhcpd.conf -lf $LEASES_FILE $INTERFACES'
26
27[Install]
28WantedBy=multi-user.target
diff --git a/debian/maas-dhcp.maas-dhcpd6.service b/debian/maas-dhcp.maas-dhcpd6.service
0new file mode 10064429new file mode 100644
index 0000000..27e6873
--- /dev/null
+++ b/debian/maas-dhcp.maas-dhcpd6.service
@@ -0,0 +1,28 @@
1[Unit]
2Description=MAAS instance of ISC DHCP server for IPv6
3Documentation=man:dhcpd(8)
4Wants=network-online.target
5After=network-online.target
6After=time-sync.target
7BindsTo=maas-rackd.service
8ConditionPathExists=/var/lib/maas/dhcpd6.conf
9ConditionPathExists=/var/lib/maas/dhcpd6-interfaces
10
11[Service]
12# Allow dhcp server to write lease and pid file as 'dhcpd' user
13ExecStartPre=/bin/mkdir -p /run/maas/dhcp
14# The leases files need to be root:dhcpd even when dropping privileges
15ExecStartPre=/bin/mkdir -p /var/lib/maas/dhcp
16# Start the daemon
17ExecStart=/bin/sh -ec '\
18 INTERFACES=$(cat /var/lib/maas/dhcpd6-interfaces); \
19 LEASES_FILE=/var/lib/maas/dhcp/dhcpd6.leases; \
20 [ -e $LEASES_FILE ] || touch $LEASES_FILE; \
21 /usr/sbin/maas-dhcp-helper clean $LEASES_FILE; \
22 chown root:dhcpd /var/lib/maas/dhcp $LEASES_FILE; \
23 chmod 775 /var/lib/maas/dhcp ; chmod 664 $LEASES_FILE; \
24 exec dhcpd -user dhcpd -group dhcpd -f -6 -pf /run/maas/dhcp/dhcpd6.pid \
25 -cf /var/lib/maas/dhcpd6.conf -lf $LEASES_FILE $INTERFACES'
26
27[Install]
28WantedBy=multi-user.target
diff --git a/debian/maas-dhcp.maintscript b/debian/maas-dhcp.maintscript
0new file mode 10064429new file mode 100644
index 0000000..38afb39
--- /dev/null
+++ b/debian/maas-dhcp.maintscript
@@ -0,0 +1,2 @@
1rm_conffile /etc/init/maas-dhcp-server.conf 1.7.0~beta6+bzr3231-0ubuntu1
2rm_conffile /etc/init/maas-dhcpv6-server.conf 1.7.0~beta6+bzr3231-0ubuntu1
diff --git a/debian/maas-dhcp.postinst b/debian/maas-dhcp.postinst
0new file mode 1006443new file mode 100644
index 0000000..902287a
--- /dev/null
+++ b/debian/maas-dhcp.postinst
@@ -0,0 +1,35 @@
1#!/bin/sh
2
3set -e
4
5if [ "$1" = "configure" ]
6then
7 # Stop the dhcpd instance that came with the isc-dhcp-server package.
8 # We run our own dhcpd instances.
9 systemctl stop isc-dhcp-server >/dev/null 2>&1 || true
10 systemctl disable isc-dhcp-server >/dev/null 2>&1 || true
11 systemctl stop isc-dhcp-server6 >/dev/null 2>&1 || true
12 systemctl disable isc-dhcp-server6 >/dev/null 2>&1 || true
13
14 dhcpd_prof="/etc/apparmor.d/usr.sbin.dhcpd"
15 if [ -f "${dhcpd_prof}" ] && command -v apparmor_parser >/dev/null 2>&1
16 then
17 apparmor_parser --replace --write-cache --skip-read-cache "${dhcpd_prof}" || true
18 fi
19
20 # Starting from 1.9, these config files are no longer stored in
21 # /etc/maas, but are stored in /var/lib/maas. Note that these
22 # are created automatically by MAAS. On upgrades, however, these
23 # need to be moved to not break DHCP.
24 if [ -f /etc/maas/dhcpd.conf ]; then
25 mv /etc/maas/dhcpd.conf /var/lib/maas/
26 fi
27 if [ -f /etc/maas/dhcpd6.conf ]; then
28 mv /etc/maas/dhcpd6.conf /var/lib/maas/
29 fi
30
31 # Ensure ownership is correct
32 chown root:dhcpd /var/lib/maas/dhcp
33fi
34
35#DEBHELPER#
diff --git a/debian/maas-dhcp.postrm b/debian/maas-dhcp.postrm
0new file mode 10064436new file mode 100644
index 0000000..804a461
--- /dev/null
+++ b/debian/maas-dhcp.postrm
@@ -0,0 +1,16 @@
1#!/bin/sh
2
3set -e
4
5if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
6 dhcpd_prof="/etc/apparmor.d/usr.sbin.dhcpd"
7 if [ -f "${dhcpd_prof}" ] &&
8 command -v apparmor_parser >/dev/null 2>&1; then
9 apparmor_parser --replace --write-cache --skip-read-cache "${dhcpd_prof}" || true
10 fi
11 if [ "$1" = "purge" ]; then
12 rm -rf /var/lib/maas/dhcp
13 fi
14fi
15
16#DEBHELPER#
diff --git a/debian/maas-dhcp.preinst b/debian/maas-dhcp.preinst
0new file mode 10064417new file mode 100644
index 0000000..88f7dd4
--- /dev/null
+++ b/debian/maas-dhcp.preinst
@@ -0,0 +1,16 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6
7if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt 1.7.0~beta6+bzr3232-0ubuntu1; then
8 if [ -f /etc/init/maas-dhcp-server.conf ]; then
9 invoke-rc.d maas-dhcp-server stop
10 fi
11 if [ -f /etc/init/maas-dhcpv6-server.conf ]; then
12 invoke-rc.d maas-dhcpv6-server stop
13 fi
14fi
15
16#DEBHELPER#
diff --git a/debian/maas-dns.dirs b/debian/maas-dns.dirs
0new file mode 10064417new file mode 100644
index 0000000..f49acc7
--- /dev/null
+++ b/debian/maas-dns.dirs
@@ -0,0 +1 @@
1etc/bind/maas
diff --git a/debian/maas-dns.postinst b/debian/maas-dns.postinst
0new file mode 1006442new file mode 100644
index 0000000..c364527
--- /dev/null
+++ b/debian/maas-dns.postinst
@@ -0,0 +1,61 @@
1#!/bin/sh
2
3set -e
4
5edit_named_options() {
6 # Remove any existing MAAS-related include line from
7 # /etc/bind/named.conf.local, then re-add it.
8 sed -i '/^include\s.*maas/d' /etc/bind/named.conf.local
9 maas-region get_named_conf --edit --config_path /etc/bind/named.conf.local
10
11 # Add a line in /etc/bind/named.conf.options that includes the
12 # /etc/named/maas/named.conf.options.inside.maas file.
13 maas-region edit_named_options --config-path /etc/bind/named.conf.options
14}
15
16fix_dns_permissions() {
17 if [ -d /etc/bind/maas ]; then
18 chown maas:root /etc/bind/maas
19 chown -R maas:maas /etc/bind/maas/*
20 fi
21 if [ -f /etc/bind/maas/named.conf.maas ]; then
22 chown maas:maas /etc/bind/maas/named.conf.maas
23 chmod 644 /etc/bind/maas/named.conf.maas
24 fi
25 if [ -f /etc/bind/maas/named.conf.options.inside.maas ]; then
26 chown maas:maas /etc/bind/maas/named.conf.options.inside.maas
27 chmod 644 /etc/bind/maas/named.conf.options.inside.maas
28 fi
29 if [ -f /etc/bind/maas/rndc.conf.maas ]; then
30 chown maas:root /etc/bind/maas/rndc.conf.maas
31 chmod 600 /etc/bind/maas/rndc.conf.maas
32 fi
33 if [ -f /etc/bind/maas/named.conf.rndc.maas ]; then
34 chown maas:bind /etc/bind/maas/named.conf.rndc.maas
35 chmod 640 /etc/bind/maas/named.conf.rndc.maas
36 fi
37}
38
39# This handles installs and re-configuration
40if ([ "$1" = "configure" ] && [ -z "$2" ]) || [ -n "$DEBCONF_RECONFIGURE" ]; then
41 # If /etc/bind/maas is empty, set_up_dns.
42 if [ ! "$(ls -A /etc/bind/maas)" ]; then
43 maas-region set_up_dns
44 fi
45
46 # Fix permissions.
47 fix_dns_permissions
48
49 edit_named_options
50
51elif [ "$1" = "configure" ]; then
52 # Fix permissions
53 fix_dns_permissions
54
55 # ensure that DNS config is included
56 edit_named_options
57fi
58
59invoke-rc.d bind9 restart || true
60
61#DEBHELPER#
diff --git a/debian/maas-dns.postrm b/debian/maas-dns.postrm
0new file mode 10064462new file mode 100644
index 0000000..54b9e05
--- /dev/null
+++ b/debian/maas-dns.postrm
@@ -0,0 +1,25 @@
1#!/bin/sh
2
3set -e
4
5if [ "$1" = "remove" ]; then
6 if [ -f /etc/bind/named.conf.local ]; then
7 sed -i '/^include.*\"\/etc\/bind\/maas\/named.conf.maas\"\;$/d' \
8 /etc/bind/named.conf.local
9 sed -i '/^include.*\"\/etc\/bind\/maas\/named.conf.options.inside.maas\"\;$/d' \
10 /etc/bind/named.conf.options
11 fi
12fi
13
14if [ "$1" = "purge" ]; then
15 # Remove zone files
16 if [ -d /etc/bind/maas ]; then
17 rm -rf /etc/bind/maas
18 fi
19fi
20
21if [ -x /usr/sbin/invoke-rc.d ]; then
22 invoke-rc.d bind9 restart || true
23fi
24
25#DEBHELPER#
diff --git a/debian/maas-proxy.dirs b/debian/maas-proxy.dirs
0new file mode 10064426new file mode 100644
index 0000000..173c64b
--- /dev/null
+++ b/debian/maas-proxy.dirs
@@ -0,0 +1,2 @@
1var/log/maas/proxy
2var/lib/maas
diff --git a/debian/maas-proxy.install b/debian/maas-proxy.install
0new file mode 1006443new file mode 100644
index 0000000..cedd838
--- /dev/null
+++ b/debian/maas-proxy.install
@@ -0,0 +1 @@
1debian/extras/maas-proxy-common.sh usr/share/maas/
diff --git a/debian/maas-proxy.logrotate b/debian/maas-proxy.logrotate
0new file mode 1006442new file mode 100644
index 0000000..5d79452
--- /dev/null
+++ b/debian/maas-proxy.logrotate
@@ -0,0 +1,24 @@
1#
2# Logrotate fragment for squid-deb-proxy.
3#
4/var/log/maas/proxy/*.log {
5 daily
6 compress
7 delaycompress
8 rotate 2
9 missingok
10 nocreate
11 sharedscripts
12 postrotate
13 if [ -x /usr/sbin/squid ]; then
14 SQUID=/usr/sbin/squid
15 elif [ -x /usr/sbin/squid3 ]; then
16 SQUID=/usr/sbin/squid3
17 else
18 echo "No squid binary found"
19 exit 1
20 fi
21
22 test ! -e /var/run/maas-proxy.pid || $SQUID -f /var/lib/maas/maas-proxy.conf -k rotate
23 endscript
24}
diff --git a/debian/maas-proxy.maas-proxy.service b/debian/maas-proxy.maas-proxy.service
0new file mode 10064425new file mode 100644
index 0000000..95ebc9f
--- /dev/null
+++ b/debian/maas-proxy.maas-proxy.service
@@ -0,0 +1,19 @@
1[Unit]
2Description=MAAS Proxy
3Requires=network-online.target
4After=network-online.target
5ConditionPathExists=/var/lib/maas/maas-proxy.conf
6
7[Service]
8Type=forking
9PIDFile=/run/squid.pid
10Restart=always
11ExecStartPre=/bin/mkdir -p /run/maas/proxy
12ExecStartPre=/bin/sh -ec '\
13 . /usr/share/maas/maas-proxy-common.sh; \
14 pre_start'
15ExecStart=/usr/sbin/squid -Y -f /var/lib/maas/maas-proxy.conf
16ExecReload=/usr/sbin/squid -k reconfigure
17
18[Install]
19WantedBy=multi-user.target
diff --git a/debian/maas-proxy.postinst b/debian/maas-proxy.postinst
0new file mode 10064420new file mode 100644
index 0000000..74dd16a
--- /dev/null
+++ b/debian/maas-proxy.postinst
@@ -0,0 +1,28 @@
1#!/bin/sh
2
3set -e
4
5if [ "$1" = "configure" ]
6then
7 # Stop the squid3 instance that came with the squid3 package.
8 # We run our own squid3 instances.
9 # Handle both versions of the name, for safety.
10 for SQUID in squid squid3; do
11 systemctl stop ${SQUID} >/dev/null 2>&1 || true
12 systemctl disable ${SQUID} >/dev/null 2>&1 || true
13 done
14
15 # Ensure log folder is created.
16 mkdir -p /var/log/maas/proxy
17 chown -R proxy:proxy /var/log/maas/proxy
18
19 # maas-proxy.conf is now generated by MAAS itself and if we are
20 # upgrading from an earlier version that used to ship maas-proxy.conf
21 # in /etc/maas, it is safe to remove
22 if [ -f /etc/maas/maas-proxy.conf ]; then
23 rm /etc/maas/maas-proxy.conf
24 fi
25
26fi
27
28#DEBHELPER#
diff --git a/debian/maas-proxy.postrm b/debian/maas-proxy.postrm
0new file mode 10064429new file mode 100644
index 0000000..14cab88
--- /dev/null
+++ b/debian/maas-proxy.postrm
@@ -0,0 +1,12 @@
1#!/bin/sh
2
3set -e
4
5if [ "$1" = "purge" ]; then
6 rm -rf /var/cache/maas-proxy
7 rm -rf /var/log/maas/proxy
8 rm -rf /var/spool/maas-proxy
9 rm -rf /var/lib/maas/maas-proxy.conf
10fi
11
12#DEBHELPER#
diff --git a/debian/maas-rack-controller.config b/debian/maas-rack-controller.config
0new file mode 10064413new file mode 100644
index 0000000..baafb19
--- /dev/null
+++ b/debian/maas-rack-controller.config
@@ -0,0 +1,36 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6db_version 2.0
7
8# Only ask for new installations and reconfiguring.
9# XXX Fix to not ask when installing from the CD.
10if ([ "$1" = "configure" ] && [ -z "$2" ]); then
11
12 db_get maas-rack-controller/maas-url || true
13 if [ -z "$RET" ]; then
14 # Attempt to pre-populate if installing on the region controller.
15 if [ -f /usr/sbin/maas-region ]; then
16 url=$(maas-region local_config_get --maas-url --plain)
17 # If the URL doesn't end in /MAAS then add it. This helps upgrades from
18 # precise for which the URL didn't contain /MAAS, which is now required
19 if ! echo $url | grep -qs "/MAAS$"; then
20 url="${url}/MAAS"
21 fi
22 db_set maas-rack-controller/maas-url "$url"
23 else
24 # Will only get here if dbconf value not already set, or
25 # /etc/maas/regiond.conf doesn't exist.
26 db_input medium maas-rack-controller/maas-url || true
27 db_go
28 fi
29 fi
30fi
31
32if [ "$1" = "reconfigure" ]; then
33 db_input high maas-rack-controller/maas-url || true
34 db_go
35fi
36#DEBHELPER#
diff --git a/debian/maas-rack-controller.dirs b/debian/maas-rack-controller.dirs
0new file mode 10064437new file mode 100644
index 0000000..2d69491
--- /dev/null
+++ b/debian/maas-rack-controller.dirs
@@ -0,0 +1,4 @@
1etc/maas
2var/lib/maas
3var/lib/maas/boot-resources
4var/log/maas
diff --git a/debian/maas-rack-controller.install b/debian/maas-rack-controller.install
0new file mode 1006445new file mode 100644
index 0000000..a641331
--- /dev/null
+++ b/debian/maas-rack-controller.install
@@ -0,0 +1,17 @@
1# Install uec2roottar
2debian/tmp/usr/bin/uec2roottar
3
4# Install maas-dhcp-helper
5debian/tmp/usr/sbin/maas-dhcp-helper
6
7# Install network monitoring scripts
8debian/tmp/usr/lib/maas/maas-network-monitor
9debian/tmp/usr/lib/maas/maas-beacon-monitor
10debian/tmp/usr/lib/maas/maas-dhcp-monitor
11
12# Install test scripts
13debian/tmp/usr/lib/maas/maas-test-enlistment
14
15# Install all other stuff
16debian/extras/99-maas-sudoers etc/sudoers.d
17debian/extras/maas-rack usr/sbin
diff --git a/debian/maas-rack-controller.links b/debian/maas-rack-controller.links
0new file mode 10064418new file mode 100644
index 0000000..cde76b9
--- /dev/null
+++ b/debian/maas-rack-controller.links
@@ -0,0 +1 @@
1usr/sbin/maas-rack usr/sbin/maas-provision
diff --git a/debian/maas-rack-controller.lintian-overrides b/debian/maas-rack-controller.lintian-overrides
0new file mode 1006442new file mode 100644
index 0000000..a434dac
--- /dev/null
+++ b/debian/maas-rack-controller.lintian-overrides
@@ -0,0 +1 @@
1maas-rack-controller: binary-without-manpage usr/bin/uec2roottar usr/sbin/maas-dhcp-helper usr/lib/maas/maas-network-monitor usr/lib/maas/maas-beacon-monitor usr/lib/maas/maas-dhcp-monitor usr/lib/maas/maas-test-enlistment
diff --git a/debian/maas-rack-controller.logrotate b/debian/maas-rack-controller.logrotate
0new file mode 1006442new file mode 100644
index 0000000..de7dc19
--- /dev/null
+++ b/debian/maas-rack-controller.logrotate
@@ -0,0 +1,15 @@
1/var/log/maas/rackd.log {
2 rotate 5
3 weekly
4 compress
5 missingok
6 # copytruncate may lose log messages at the moment of rotation, but
7 # there is no better way to integrate twistd and logrotate.
8 copytruncate
9 # The logs are all owned by the `maas` user, so drop privs.
10 su maas maas
11 # Don't rotate unless the log is at least 10MB.
12 minsize 10M
13 # Force rotation if the log grows beyond 50MB.
14 maxsize 50M
15}
diff --git a/debian/maas-rack-controller.maas-rackd.service b/debian/maas-rack-controller.maas-rackd.service
0new file mode 10064416new file mode 100644
index 0000000..b9bb22c
--- /dev/null
+++ b/debian/maas-rack-controller.maas-rackd.service
@@ -0,0 +1,28 @@
1[Unit]
2Description=MAAS Rack Controller
3Documentation=https://maas.io/
4Requires=network-online.target
5After=network-online.target
6
7[Service]
8User=maas
9Group=maas
10Restart=always
11RestartSec=10s
12Environment="LOGFILE=/var/log/maas/rackd.log"
13# Prevent maas-dhcpd and maas-dhcpd6 from starting until maas-rackd
14# has regenerated the configurations and told the services to start.
15ExecStartPre=/bin/rm -f /var/lib/maas/dhcpd.sock
16ExecStartPre=/bin/rm -f /var/lib/maas/dhcpd.conf
17ExecStartPre=/bin/rm -f /var/lib/maas/dhcpd6.conf
18# Logs go to the journal; read them with
19# journalctl -u maas-rackd
20# Logs also go to $LOGFILE for backward compatibility. The journal
21# should now be preferred as the $LOGFILE will be removed.
22ExecStart=/bin/sh -c \
23 'exec /usr/bin/authbind --deep /usr/bin/twistd3 --nodaemon --pidfile= \
24 --logger=provisioningserver.logger.EventLogger maas-rackd 2>&1 | \
25 tee -a $LOGFILE'
26
27[Install]
28WantedBy=multi-user.target
diff --git a/debian/maas-rack-controller.maintscript b/debian/maas-rack-controller.maintscript
0new file mode 10064429new file mode 100644
index 0000000..6c4be25
--- /dev/null
+++ b/debian/maas-rack-controller.maintscript
@@ -0,0 +1,9 @@
1rm_conffile /etc/maas/bootresources.yaml 1.7.0~beta1+bzr2781-0ubuntu1
2rm_conffile /etc/maas/maas_local_celeryconfig_cluster.py 1.7.0~beta3+bzr3043-0ubuntu1
3rm_conffile /etc/init/maas-cluster-celery.conf 1.7.0~beta3+bzr3043-0ubuntu1
4rm_conffile /etc/init/maas-pserv.conf 1.7.0~beta3+bzr3043-0ubuntu1
5rm_conffile /etc/init/maas-cluster.conf 1.7.0~beta6+bzr3231-0ubuntu1
6rm_conffile /etc/init/maas-cluster-register.conf 1.7.0~beta6+bzr3231-0ubuntu1
7rm_conffile /etc/maas/maas-cluster-http.conf 1.8.0~alpha1+bzr3522-0ubuntu1
8rm_conffile /etc/init/maas-clusterd.conf 2.0.0~alpha1+bzr4635-0ubuntu1
9rm_conffile /lib/systemd/system/maas-clusterd.service 2.0.0~alpha1+bzr4635-0ubuntu1
diff --git a/debian/maas-rack-controller.postinst b/debian/maas-rack-controller.postinst
0new file mode 10064410new file mode 100644
index 0000000..a033a1b
--- /dev/null
+++ b/debian/maas-rack-controller.postinst
@@ -0,0 +1,168 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6db_version 2.0
7
8RELEASE=`lsb_release -rs` || RELEASE=""
9
10configure_logging() {
11 # Give appropriate permissions
12 if [ ! -f /var/log/maas/rackd.log ]; then
13 touch /var/log/maas/rackd.log
14 fi
15 chown maas:maas /var/log/maas/rackd.log
16}
17
18configure_libdir() {
19 # create var dir
20 if [ ! -d /var/lib/maas/boot-resources ]; then
21 mkdir -p /var/lib/maas/boot-resources
22 fi
23 # Ensure /var/lib/maas/boot-resources has correct ownership
24 chown -R maas:maas /var/lib/maas/boot-resources
25
26 # If /var/lib/maas/secret exists, ensure ownership and
27 # permissions are correct
28 if [ -f /var/lib/maas/secret ]; then
29 chown maas:maas /var/lib/maas/secret
30 chmod 0640 /var/lib/maas/secret
31 fi
32
33 if [ -f /var/lib/maas/maas_id ]; then
34 chown maas:maas /var/lib/maas/maas_id
35 fi
36
37 # Ensure dhcpd related files have the correct permissions
38 if [ -f /var/lib/maas/dhcpd.conf ]; then
39 chown root:maas /var/lib/maas/dhcpd.conf
40 fi
41 if [ -f /var/lib/maas/dhcpd-interfaces ]; then
42 chown root:maas /var/lib/maas/dhcpd-interfaces
43 fi
44 if [ -f /var/lib/maas/dhcpd6.conf ]; then
45 chown maas:maas /var/lib/maas/dhcpd6.conf
46 fi
47 if [ -f /var/lib/maas/dhcpd6-interfaces ]; then
48 chown maas:maas /var/lib/maas/dhcpd6-interfaces
49 fi
50 if [ -S /var/lib/maas/dhcpd.sock ]; then
51 chown maas:maas /var/lib/maas/dhcpd.sock
52 fi
53}
54
55configure_maas_tgt() {
56 # Ensure that iSCSI targets get re-defined on reboot.
57 # Creates a softlink in /etc/tgt/conf.d/ that points to the current
58 # boot images' tgt configuration.
59 mkdir -p /etc/tgt/conf.d
60 ln -sf /var/lib/maas/boot-resources/current/maas.tgt /etc/tgt/conf.d/maas.conf
61}
62
63extract_cluster_uuid(){
64 # Extract ClUSTER_UUID setting from config file $1. This will work
65 # on the old the cluster config file (which is shell).
66 awk '{ split($1,array,"\"")} END{print array[2] }' "$1"
67}
68
69extract_maas_url(){
70 # Extract the MAAS_URL setting from the config file $1.
71 grep -Eo "https?://[^ ]+" "$1" | cut -d"\"" -f1
72}
73
74configure_cluster_uuid(){
75 # This will configure a UUID if one has not previously been set.
76 maas-rack config --init
77}
78
79configure_cluster_authbind() {
80 MAAS_UID="`id -u maas`"
81 if [ ! -f "/etc/authbind/byuid/$MAAS_UID" ]; then
82 if [ ! -d "/etc/authbind/byuid" ]; then
83 mkdir -p /etc/authbind/byuid
84 chmod 755 /etc/authbind
85 chmod 755 /etc/authbind/byuid
86 fi
87 fi
88 echo '0.0.0.0/0:68,69' >/etc/authbind/byuid/$MAAS_UID
89 echo '::/0,68-69' >>/etc/authbind/byuid/$MAAS_UID
90 chown maas:maas /etc/authbind/byuid/$MAAS_UID
91 chmod 700 /etc/authbind/byuid/$MAAS_UID
92}
93
94configure_maas_url(){
95 # Get the MAAS URL on configure/reconfigure and write it to the conf files.
96 db_get maas-rack-controller/maas-url || true
97 if [ -n "$RET" ]; then
98 maas-rack config --region-url "$RET"
99 fi
100}
101
102configure_shared_secret() {
103 db_get maas-rack-controller/shared-secret || true
104 if [ -n "$RET" ]; then
105 echo "$RET" | maas-rack install-shared-secret
106 chown maas:maas /var/lib/maas/secret
107 chmod 0640 /var/lib/maas/secret
108 fi
109}
110
111upgrade_from_cluster_controller() {
112 # If we are upgrading from an older (1.7, 1.8) version, then we need
113 # to obtain the cluster UUID from the old configuration file and set
114 # it with the new configuration tool.
115 if [ -f /etc/maas/maas_cluster.conf ]; then
116 uuid=$(extract_cluster_uuid /etc/maas/maas_cluster.conf)
117 maas-rack config --uuid "$uuid"
118 maas_url=$(extract_maas_url /etc/maas/maas_cluster.conf)
119 maas-rack config --region-url "$maas_url"
120 db_set maas-rack-controller/maas-url "$maas_url"
121 mv /etc/maas/maas_cluster.conf /etc/maas/maas_cluster.conf.maas-old
122 mv /etc/maas/pserv.yaml /etc/maas/pserv.yaml.maas-old
123 fi
124 # If we are upgrading from (1.9, 1.10) version, then we need to obtain
125 # the maas_url and set it to debconf. Otherwise, the config file used
126 # is exactly the same.
127 if [ -f /etc/maas/clusterd.conf.1.10 ]; then
128 mv /etc/maas/clusterd.conf.1.10 /etc/maas/rackd.conf
129 maas_url=$(extract_maas_url /etc/maas/rackd.conf)
130 db_set maas-rack-controller/maas-url "$maas_url"
131 fi
132}
133
134# Unconditionally ensure that there is at least an empty configuration
135# file. This does *not* overwrite any existing configuration.
136maas-rack config
137
138if [ "$1" = "configure" ] && [ -z "$2" ]; then
139 configure_logging
140 configure_libdir
141 configure_maas_tgt
142 configure_maas_url
143 configure_cluster_uuid
144 configure_cluster_authbind
145 maas-rack upgrade-cluster
146 upgrade_from_cluster_controller
147 configure_shared_secret
148
149elif [ -n "$DEBCONF_RECONFIGURE" ]; then
150 configure_maas_url
151 # Only ask for a shared secret when the region is not installed
152 # on the same system.
153 if [ ! -f /usr/sbin/maas-region ]; then
154 db_input high maas-rack-controller/shared-secret
155 db_go
156 fi
157 configure_shared_secret
158
159elif [ "$1" = "configure" ] && dpkg --compare-versions "$2" gt 0.1+bzr266+dfsg-0ubuntu1; then
160 configure_logging
161 configure_libdir
162 configure_cluster_authbind
163 maas-rack upgrade-cluster
164fi
165
166db_stop
167
168#DEBHELPER#
diff --git a/debian/maas-rack-controller.postrm b/debian/maas-rack-controller.postrm
0new file mode 100644169new file mode 100644
index 0000000..c0480a6
--- /dev/null
+++ b/debian/maas-rack-controller.postrm
@@ -0,0 +1,50 @@
1#!/bin/sh
2
3set -e
4
5#DEBHELPER#
6
7RELEASE=`lsb_release -rs` || RELEASE=""
8
9case "$1" in
10 purge)
11 # remove logfile as it wasn't installed by packaging
12 rm -rf /var/log/maas/rackd.log*
13
14 # remove var directories provided it will always have files
15 # not installed or tracked by packaging
16 rm -rf /var/lib/maas/boot-resources
17
18 # remove files that were created by the rack controller
19 rm -rf /var/lib/maas/dhcpd.sock
20 rm -rf /var/lib/maas/dhcpd.conf
21 rm -rf /var/lib/maas/dhcpd-interfaces
22 rm -rf /var/lib/maas/dhcpd6.conf
23 rm -rf /var/lib/maas/dhcpd6-interfaces
24
25 # Delete symlink for iSCSI config.
26 if [ -L /etc/tgt/conf.d/maas.conf ]; then
27 rm -rf /etc/tgt/conf.d/maas.conf
28 fi
29
30 # Remove authbind
31 MAAS_UID="`id -u maas`"
32 if [ -f "/etc/authbind/byuid/$MAAS_UID" ]; then
33 rm -rf /etc/authbind/byuid/$MAAS_UID
34 fi
35
36 # Remove rackd.conf file
37 rm -rf /etc/maas/rackd.conf
38
39 # Deleting old config files if they exist
40 if [ -f /etc/maas/pserv.yaml.maas-old ]; then
41 rm -rf /etc/maas/pserv.yaml.maas-old
42 fi
43 if [ -f /etc/maas/maas_cluster.conf.maas-old ]; then
44 rm -rf /etc/maas/maas_cluster.conf.maas-old
45 fi
46 if [ -f /etc/maas/templates/dhcp.maas-old ]; then
47 rm -rf /etc/maas/templates/dhcp.maas-old
48 fi
49
50esac
diff --git a/debian/maas-rack-controller.preinst b/debian/maas-rack-controller.preinst
0new file mode 10064451new file mode 100644
index 0000000..1f42292
--- /dev/null
+++ b/debian/maas-rack-controller.preinst
@@ -0,0 +1,56 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6
7if [ "$1" = "install" ]; then
8 if [ -f /etc/init/maas-pserv.conf ]; then
9 invoke-rc.d maas-pserv stop
10 fi
11
12 if [ -f /etc/init/maas-cluster-celery.conf ]; then
13 invoke-rc.d maas-cluster-celery stop
14 fi
15
16 if [ -f /var/log/maas/celery.log ]; then
17 rm -rf /var/log/maas/celery.log
18 fi
19
20 if [ -f /etc/init/maas-cluster.conf ]; then
21 invoke-rc.d maas-cluster stop
22 fi
23
24 if [ -f /var/log/maas/pserv.log ]; then
25 rm -rf /var/log/maas/pserv.log
26 fi
27
28 if [ -f /etc/apache2/conf-enabled/maas-cluster-http.conf ]; then
29 rm -rf /etc/apache2/conf-enabled/maas-cluster-http.conf
30 fi
31
32 if [ -f /etc/init/maas-clusterd.conf ] || [ -f /lib/systemd/system/maas-clusterd.service ]; then
33 invoke-rc.d maas-clusterd stop
34 fi
35
36 if [ -f /etc/maas/clusterd.conf ]; then
37 mv /etc/maas/clusterd.conf /etc/maas/clusterd.conf.1.10
38 fi
39
40 if [ -f /var/log/maas/clusterd.log ]; then
41 mv /var/log/maas/clusterd.log /var/log/maas/rackd.log
42 fi
43
44fi
45
46if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then
47 if [ -d /etc/maas/templates/power ]; then
48 rm -rf /etc/maas/templates/power
49 fi
50
51 if [ -d /etc/maas/templates/dhcp ]; then
52 mv /etc/maas/templates/dhcp /etc/maas/templates/dhcp.maas-old
53 fi
54fi
55
56#DEBHELPER#
diff --git a/debian/maas-rack-controller.templates b/debian/maas-rack-controller.templates
0new file mode 10064457new file mode 100644
index 0000000..2ae50af
--- /dev/null
+++ b/debian/maas-rack-controller.templates
@@ -0,0 +1,15 @@
1Template: maas-rack-controller/maas-url
2Type: string
3_Description: Ubuntu MAAS API address:
4 The MAAS cluster controller and nodes need to contact the MAAS region
5 controller API. Set the URL at which they can reach the MAAS API remotely,
6 e.g. "http://192.168.1.1/MAAS".
7 Since nodes must be able to access this URL, localhost or 127.0.0.1 are not
8 useful values here.
9
10Template: maas-rack-controller/shared-secret
11Type: password
12_Description: MAAS Rack Controller Shared Secret:
13 The MAAS rack controller needs to contact the MAAS region controller
14 with the shared secret found in /var/lib/maas/secret on the region controller.
15 Set the shared secret here.
diff --git a/debian/maas-rack-udeb.postinst b/debian/maas-rack-udeb.postinst
0new file mode 10064416new file mode 100644
index 0000000..35e8104
--- /dev/null
+++ b/debian/maas-rack-udeb.postinst
@@ -0,0 +1,77 @@
1#!/bin/sh -e
2
3# Source debconf library.
4. /usr/share/debconf/confmodule
5db_version 2.0
6
7# This conf script is capable of backing up
8db_capb backup
9
10logfile=/var/lib/preseed/log
11set_question () {
12 echo "$1 $2 $3 $4" >>"$logfile"
13 if ! db_fget "$2" seen; then
14 db_register debian-installer/dummy "$2"
15 db_subst "$2" ID "$2"
16 db_fget "$2" seen
17 fi
18 if [ "$RET" = false ]; then
19 db_set "$2" "$4"
20 db_fset "$2" seen true
21 fi
22}
23
24STATE=1
25while [ "$STATE" != 0 -a "$STATE" != 4 ]; do
26 case "$STATE" in
27 1)
28 # This is a confirmation that we want to install MAAS. If we don't
29 # then we exit the MAAS installation process
30 db_input high maas-rack-udeb/rack-confirmation || true
31 ;;
32 2)
33 #Ask for MAAS url
34 db_get maas-rack-udeb/rack-confirmation
35 if [ "$RET" != "true" ]; then
36 break
37 fi
38 db_input critical maas-rack-udeb/maas-url || true
39 ;;
40
41 3)
42 # Ask for Shared Secret
43 db_input critical maas-rack-udeb/shared-secret || true
44 ;;
45
46 esac
47
48 if db_go; then
49 STATE=$(($STATE + 1))
50 else
51 STATE=$(($STATE - 1))
52 fi
53done
54db_capb
55
56db_get maas-rack-udeb/rack-confirmation
57if [ "$RET" != "true" ]; then
58 # MAAS rack controller won't be installed
59 exit 0
60fi
61
62db_get maas-rack-udeb/maas-url
63url="$RET"
64if [ -n "$url" ]; then
65 set_question maas-rack-controller maas-rack-controller/maas-url string "$url"
66fi
67
68db_get maas-rack-udeb/shared-secret
69secret="$RET"
70if [ -n "$secret" ]; then
71 set_question maas-rack-controller maas-rack-controller/shared-secret password "$secret"
72fi
73
74# Tell the package manager that we will be installing MAAS Rack Controller
75db_set pkgsel/include maas-rack-controller
76set_question tasksel tasksel/first multiselect "standard, server"
77exit 0
diff --git a/debian/maas-rack-udeb.templates b/debian/maas-rack-udeb.templates
0new file mode 10064478new file mode 100644
index 0000000..52307d1
--- /dev/null
+++ b/debian/maas-rack-udeb.templates
@@ -0,0 +1,34 @@
1Template: debian-installer/maas-rack-udeb/title
2Type: text
3_Description: Install your Metal as a Service (MAAS) Rack Controller
4
5Template: maas-rack-udeb/rack-confirmation
6Type: boolean
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, fast
9 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 of
11 trunked switches). You can attach multiple rack controllers to these
12 physical networks for high availability, with secondary rack controllers
13 automatically stepping to provide these services if the primary rack
14 controller fails.
15 .
16 By choosing to install a MAAS Rack controller, you will have to connect
17 it to a Region controller to service your machines.
18
19Template: maas-rack-udeb/maas-url
20Type: string
21_Description: Ubuntu MAAS Region API address:
22 The MAAS rack controller and nodes need to contact the MAAS region
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".
25 .
26 Since nodes must be able to access this URL, localhost or 127.0.0.1 are not
27 useful values here.
28
29Template: maas-rack-udeb/shared-secret
30Type: password
31_Description: MAAS Rack Controller shared secret:
32 The MAAS rack controller needs to contact the MAAS region controller
33 with the shared secret found in /var/lib/maas/secret on the region controller.
34 Set the shared secret here.
diff --git a/debian/maas-region-api.apport b/debian/maas-region-api.apport
0new file mode 10064435new file mode 100644
index 0000000..2a067a9
--- /dev/null
+++ b/debian/maas-region-api.apport
@@ -0,0 +1,72 @@
1#!/usr/bin/python
2
3'''apport hook for maas-region-controller
4
5(c) 2012-2014 Canonical Ltd.
6Author: Andres Rodriguez <andres.rodriguez@canonical.com>
7
8This program is free software; you can redistribute it and/or modify it
9under the terms of the GNU General Public License as published by the
10Free Software Foundation; either version 2 of the License, or (at your
11option) any later version. See http://www.gnu.org/copyleft/gpl.html for
12the full text of the license.
13'''
14
15import os.path
16import subprocess
17import tempfile
18
19from apport.hookutils import (
20 attach_conffiles,
21 attach_file,
22 attach_file_if_exists,
23 attach_related_packages,
24)
25
26
27def attach_journal_logs(report, key, *units):
28 """Capture logs from systemd's journal."""
29 if os.path.exists("/bin/journalctl"):
30 cmd = ['/bin/journalctl', '--utc', '--since=-24hours']
31 cmd.extend("--unit=%s" % unit for unit in units)
32 with tempfile.NamedTemporaryFile() as logfile:
33 subprocess.call(cmd, stdout=logfile, stderr=logfile)
34 attach_file(report, logfile.name, key)
35
36
37def add_info(report, ui):
38 response = ui.yesno(
39 "The contents of /etc/maas/regiond.conf and /etc/maas/rackd.conf "
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 "
42 "report?")
43
44 if response is None:
45 # The user cancelled.
46 raise StopIteration
47 elif response is True:
48 # The user agreed to include the configuration files.
49 attach_conffiles(report, 'maas')
50 attach_file_if_exists(
51 report, '/etc/maas/regiond.conf', 'MAASRegionConfig')
52 attach_file_if_exists(
53 report, '/etc/maas/rackd.conf', 'MAASClusterConfig')
54 else:
55 # The user declined to include the configuration files.
56 pass
57
58 # Attaching log files (Upstart).
59 attach_file_if_exists(
60 report, '/var/log/maas/regiond.log', 'MAASRegionLog')
61 attach_file_if_exists(
62 report, '/var/log/maas/rackd.log', 'MAASClusterLog')
63
64 # Attaching log files (systemd). These will overwrite the logs above on a
65 # system where systemd is available.
66 attach_journal_logs(
67 report, "MAASRegionLog", "maas-regiond", "maas-regiond-worker@*")
68 attach_journal_logs(
69 report, "MAASClusterLog", "maas-rackd")
70
71 # Attaching related packages info
72 attach_related_packages(report, ['python-django-maas', 'apparmor'])
diff --git a/debian/maas-region-api.install b/debian/maas-region-api.install
0new file mode 10064473new file mode 100644
index 0000000..0f18a1e
--- /dev/null
+++ b/debian/maas-region-api.install
@@ -0,0 +1,20 @@
1# Install static files
2debian/tmp/usr/share/maas/web/static
3
4# Install Apache Config
5debian/tmp/usr/share/maas/maas-http.conf
6
7# Install new preseed files
8debian/tmp/etc/maas/preseeds
9
10# Install driver configuration file
11debian/tmp/etc/maas/drivers.yaml
12
13# Install winrm certificate generation script
14debian/tmp/usr/bin/maas-generate-winrm-cert
15
16# Install all other stuff
17debian/extras/maas-region usr/sbin
18debian/extras/20-maas.conf etc/rsyslog.d
19debian/extras/maas_remote_syslog_compress etc/cron.d
20debian/extras/99-maas-region-sudoers etc/sudoers.d
diff --git a/debian/maas-region-api.links b/debian/maas-region-api.links
0new file mode 10064421new file mode 100644
index 0000000..820b207
--- /dev/null
+++ b/debian/maas-region-api.links
@@ -0,0 +1,8 @@
1# dh-systemd does not yet appear to fully grok template units, so we
2# install unit dependencies directly instead.
3lib/systemd/system/maas-regiond-worker@.service lib/systemd/system/maas-regiond.service.wants/maas-regiond-worker@1.service
4lib/systemd/system/maas-regiond-worker@.service lib/systemd/system/maas-regiond.service.wants/maas-regiond-worker@2.service
5lib/systemd/system/maas-regiond-worker@.service lib/systemd/system/maas-regiond.service.wants/maas-regiond-worker@3.service
6lib/systemd/system/maas-regiond-worker@.service lib/systemd/system/maas-regiond.service.wants/maas-regiond-worker@4.service
7
8usr/sbin/maas-region usr/sbin/maas-region-admin
diff --git a/debian/maas-region-api.lintian-overrides b/debian/maas-region-api.lintian-overrides
0new file mode 1006449new file mode 100644
index 0000000..b76fff5
--- /dev/null
+++ b/debian/maas-region-api.lintian-overrides
@@ -0,0 +1,5 @@
1maas-region-api: binary-without-manpage usr/sbin/maas
2maas-region-api: script-not-executable etc/maas/templates/commissioning-user-data/snippets/maas_ipmi_autodetect.py
3maas-region-api: script-not-executable etc/maas/templates/commissioning-user-data/snippets/maas_signal.py
4maas-region-api: script-not-executable etc/maas/templates/commissioning-user-data/user_data.template
5maas-region-api: script-not-executable etc/maas/templates/commissioning-user-data/snippets/maas_get.py
diff --git a/debian/maas-region-api.logrotate b/debian/maas-region-api.logrotate
0new file mode 1006446new file mode 100644
index 0000000..ca16243
--- /dev/null
+++ b/debian/maas-region-api.logrotate
@@ -0,0 +1,15 @@
1/var/log/maas/regiond.log {
2 rotate 5
3 weekly
4 compress
5 missingok
6 # copytruncate may lose log messages at the moment of rotation, but
7 # there is no better way to integrate twistd and logrotate.
8 copytruncate
9 # The logs are all owned by the `maas` user, so drop privs.
10 su maas maas
11 # Don't rotate unless the log is at least 10MB.
12 minsize 10M
13 # Force rotation if the log grows beyond 50MB.
14 maxsize 50M
15}
diff --git a/debian/maas-region-api.maas-regiond-worker@.service b/debian/maas-region-api.maas-regiond-worker@.service
0new file mode 10064416new file mode 100644
index 0000000..fc5e338
--- /dev/null
+++ b/debian/maas-region-api.maas-regiond-worker@.service
@@ -0,0 +1,28 @@
1[Unit]
2Description=MAAS Region Controller (Worker %i)
3Documentation=https://maas.io/
4Requires=network-online.target
5After=network-online.target
6PartOf=maas-regiond.service
7# This will go away one we support new config files.
8ConditionPathExists=/etc/maas/regiond.conf
9
10[Service]
11User=maas
12Group=maas
13Restart=always
14RestartSec=10s
15Environment="MAAS_REGIOND_WORKER_ID=%i"
16Environment="DJANGO_SETTINGS_MODULE=maasserver.djangosettings.settings"
17Environment="LOGFILE=/var/log/maas/regiond.log"
18# Logs go to the journal; read them with:
19# journalctl -u maas-regiond-worker@*
20# Logs also go to $LOGFILE for backward compatibility. The journal
21# should now be preferred as $LOGFILE will be removed.
22ExecStart=/bin/sh -c \
23 'exec twistd3 --nodaemon --pidfile= \
24 --logger=provisioningserver.logger.EventLogger maas-regiond 2>&1 | \
25 tee -a $LOGFILE'
26
27[Install]
28WantedBy=maas-regiond.service
diff --git a/debian/maas-region-api.maas-regiond.service b/debian/maas-region-api.maas-regiond.service
0new file mode 10064429new file mode 100644
index 0000000..043287e
--- /dev/null
+++ b/debian/maas-region-api.maas-regiond.service
@@ -0,0 +1,24 @@
1[Unit]
2Description=MAAS Region Controller
3Documentation=https://maas.io/
4
5[Service]
6Type=oneshot
7RemainAfterExit=yes
8# systemd.service(5) clearly states that ExecStart can be specified zero
9# times when Type=oneshot, but it does appears to be needed at present.
10ExecStart=/bin/true
11
12#
13# The maas-region-api package configures four workers. This
14# should work for most people. However:
15#
16# * `systemctl start maas-regiond-worker@x` (where 'x' can be anything,
17# though integers >= 5 seem logical) will start an additional worker.
18#
19# * `systemctl enable maas-regiond-worker@x` will configure that worker
20# so that it's persistent across reboots.
21#
22
23[Install]
24WantedBy=multi-user.target
diff --git a/debian/maas-region-api.maintscript b/debian/maas-region-api.maintscript
0new file mode 10064425new file mode 100644
index 0000000..676463b
--- /dev/null
+++ b/debian/maas-region-api.maintscript
@@ -0,0 +1,7 @@
1rm_conffile /etc/maas/txlongpoll.yaml 1.7.0~beta4+bzr3124-0ubuntu1
2rm_conffile /etc/init/maas-txlongpoll.conf 1.7.0~beta4+bzr3124-0ubuntu1
3rm_conffile /etc/init/maas-region-celery.conf 1.7.0~beta4+bzr3124-0ubuntu1
4rm_conffile /etc/maas/maas_local_celerconfig.py 1.7.0~beta4+bzr3124-0ubuntu1
5rm_conffile /usr/share/maas/maas_local_celerconfig.py 1.7.0~beta4+bzr3124-0ubuntu1
6rm_conffile /etc/maas/maas_local_celeryconfig.py 1.7.0~beta4+bzr3124-0ubuntu1
7rm_conffile /etc/maas/maas-http.conf 1.9.0~alpha1+bzr4190-0ubuntu1
diff --git a/debian/maas-region-api.postinst b/debian/maas-region-api.postinst
0new file mode 1006448new file mode 100644
index 0000000..900caa4
--- /dev/null
+++ b/debian/maas-region-api.postinst
@@ -0,0 +1,82 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6db_version 2.0
7
8RELEASE=`lsb_release -rs` || RELEASE=""
9
10configure_region_http() {
11 # handle apache configs
12 if [ -e /usr/share/maas/maas-http.conf -a \
13 ! -e /etc/apache2/conf-enabled/maas-http.conf ]; then
14 ln -sf /usr/share/maas/maas-http.conf /etc/apache2/conf-enabled/maas-http.conf
15 fi
16
17 # enable apache modules needed
18 a2enmod proxy_http
19 a2enmod proxy_wstunnel
20 a2enmod expires
21 a2enmod rewrite
22}
23
24configure_logging() {
25 # Give appropriate permissions
26 if [ ! -f /var/log/maas/regiond.log ]; then
27 touch /var/log/maas/regiond.log
28 fi
29 chown maas:maas /var/log/maas/regiond.log
30
31 # Create log directory base
32 mkdir -p /var/log/maas/rsyslog
33 chown -R syslog:syslog /var/log/maas/rsyslog
34
35 # Make sure rsyslog reads our config after creating the
36 # destination folder.
37 systemctl restart rsyslog >/dev/null 2>&1 || true
38
39 # apache2 log symlinks
40 ln -sf /var/log/apache2 /var/log/maas/
41}
42
43configure_libdir() {
44 # If /var/lib/maas/secret exists, ensure ownership and
45 # permissions are correct
46 if [ -f /var/lib/maas/secret ]; then
47 chown maas:maas /var/lib/maas/secret
48 chmod 0640 /var/lib/maas/secret
49 fi
50
51 if [ -f /var/lib/maas/maas_id ]; then
52 chown maas:maas /var/lib/maas/maas_id
53 fi
54}
55
56# Unconditionally ensure that there is at least an empty configuration
57# file. This does *not* overwrite any existing configuration.
58maas-region local_config_set
59
60if [ "$1" = "configure" ] && [ -z "$2" ]; then
61 configure_region_http
62 configure_logging
63 configure_libdir
64
65elif [ "$1" = "configure" ] && dpkg --compare-versions "$2" gt 0.1+bzr266+dfsg-0ubuntu1; then
66 # Logging changed at r2611, ensure it is set up.
67 configure_logging
68 configure_libdir
69
70 # If upgrading to any later package version, then upgrade db.
71 invoke-rc.d apache2 stop || true
72
73 # make sure maas http config is symlinked
74 configure_region_http
75
76fi
77
78invoke-rc.d apache2 restart || true
79
80db_stop
81
82#DEBHELPER#
diff --git a/debian/maas-region-api.postrm b/debian/maas-region-api.postrm
0new file mode 10064483new file mode 100644
index 0000000..a37547b
--- /dev/null
+++ b/debian/maas-region-api.postrm
@@ -0,0 +1,50 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6
7RELEASE=`lsb_release -rs` || RELEASE=""
8
9case "$1" in
10 purge)
11 # Remove logging files & foldesr
12 rm -rf /var/log/maas/regiond.log*
13 rm -rf /var/log/maas/apache2
14 rm -rf /var/log/maas/rsyslog
15
16 # Remove libgdir related files
17 rm -rf /var/lib/maas/media
18
19 case $RELEASE in
20 12.04|12.10|13.04)
21 if [ -h /etc/apache2/conf.d/maas-http.conf ]; then
22 rm -rf /etc/apache2/conf.d/maas-http.conf
23 fi
24 ;;
25 *)
26 if [ -h /etc/apache2/conf-enabled/maas-http.conf ]; then
27 rm -rf /etc/apache2/conf-enabled/maas-http.conf
28 fi
29 ;;
30 esac
31
32 # Restarting apache2
33 if [ -x /usr/sbin/invoke-rc.d ]; then
34 invoke-rc.d apache2 restart || true
35 fi
36
37 # Delete symlink
38 if [ -L /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas ]; then
39 rm -rf /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas
40 fi
41
42 # Delete any remaining / leftover file
43 rm -rf /usr/share/maas/maas/
44 rm -rf /etc/maas/regiond.conf
45 rm -rf /etc/maas/templates.maas-old
46esac
47
48#DEBHELPER#
49
50db_stop
diff --git a/debian/maas-region-api.preinst b/debian/maas-region-api.preinst
0new file mode 10064451new file mode 100644
index 0000000..d4d0709
--- /dev/null
+++ b/debian/maas-region-api.preinst
@@ -0,0 +1,38 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6
7if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then
8
9 if [ -f /etc/init/maas-txlongpoll.conf ]; then
10 invoke-rc.d maas-txlongpoll stop
11 fi
12
13 if [ -f /var/log/maas/txlongpoll.log ]; then
14 rm -rf /var/log/maas/txlongpoll.log
15 fi
16
17 if [ -f /etc/init/maas-region-celery.conf ]; then
18 invoke-rc.d maas-region-celery stop
19 fi
20
21 if [ -f /var/log/maas/celery-region.log ]; then
22 rm -rf /var/log/maas/celery-region.log
23 fi
24
25 if [ -f /var/log/maas/maas-django.log ]; then
26 rm -rf /var/log/maas/maas-django.log
27 fi
28
29 if [ -d /var/lib/maas/media ]; then
30 rm -rf /var/lib/maas/media
31 fi
32
33 if [ -d /etc/maas/templates ]; then
34 mv /etc/maas/templates /etc/maas/templates.maas-old
35 fi
36
37fi
38#DEBHELPER#
diff --git a/debian/maas-region-api.prerm b/debian/maas-region-api.prerm
0new file mode 10064439new file mode 100644
index 0000000..ea71d9a
--- /dev/null
+++ b/debian/maas-region-api.prerm
@@ -0,0 +1,9 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6
7#DEBHELPER#
8
9invoke-rc.d apache2 stop || true
diff --git a/debian/maas-region-controller.config b/debian/maas-region-controller.config
0new file mode 10064410new file mode 100644
index 0000000..b92a90c
--- /dev/null
+++ b/debian/maas-region-controller.config
@@ -0,0 +1,49 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6db_version 2.0
7
8# creates question
9set_question() {
10 if ! db_fget "$1" seen; then
11 db_register dbconfig-common/dbconfig-install "$1"
12 db_subst "$1" ID "$1"
13 db_fget "$1" seen
14 fi
15 if [ "$RET" = false ]; then
16 db_set "$1" "$2"
17 db_fset "$1" seen true
18 fi
19}
20
21# source dbconfig-common shell library, and call the hook function
22if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then
23 . /usr/share/dbconfig-common/dpkg/config.pgsql
24fi
25
26if [ "$1" = "configure" ] && [ -z "$2" ]; then
27 # Hide maas/dbconfig-install question by setting default.
28 set_question maas-region-controller/dbconfig-install true
29 set_question maas-region-controller/pgsql/app-pass ""
30 set_question maas-region-controller/remote/host "localhost"
31
32 dbc_dbname="maasdb"
33 dbc_dbuser="maas"
34 dbc_remove="true"
35
36 if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then
37 dbc_go maas-region-controller $@
38 fi
39
40elif [ -n "$DEBCONF_RECONFIGURE" ]; then
41 db_get maas/default-maas-url || true
42 if [ -z "$RET" ]; then
43 ipaddr=$(maas-region local_config_get --maas-url --plain)
44 db_set maas/default-maas-url "$ipaddr"
45 fi
46 db_input low maas/default-maas-url || true
47 db_go
48
49fi
diff --git a/debian/maas-region-controller.postinst b/debian/maas-region-controller.postinst
0new file mode 10064450new file mode 100644
index 0000000..77ca81c
--- /dev/null
+++ b/debian/maas-region-controller.postinst
@@ -0,0 +1,194 @@
1#!/bin/sh
2
3set -e
4
5. /usr/share/debconf/confmodule
6db_version 2.0
7
8if [ -f /usr/share/dbconfig-common/dpkg/postinst.pgsql ]; then
9 . /usr/share/dbconfig-common/dpkg/postinst.pgsql
10fi
11
12RELEASE=`lsb_release -rs` || RELEASE=""
13
14maas_sync_migrate_db(){
15 maas-region dbupgrade
16}
17
18restart_postgresql(){
19 deb-systemd-invoke restart postgresql || true
20}
21
22configure_maas_default_url() {
23 local ipaddr="$1"
24 # The given address is either "[IPv6_IP]" or "IPv4_IP" or "name", such as
25 # [2001:db8::3:1]:5555 or 127.0.0.1 or maas.example.com.
26 # The ugly sed splits the given thing as:
27 # (string of anything but ":", or [ipv6_ip]),
28 # optionally followed by :port.
29 local address=$(echo "$ipaddr" |
30 sed -rn 's/^([^:]*|\[[0-9a-fA-F:]*\])(|:[0-9]*)?$/\1/p')
31 local port=$(echo "$ipaddr" |
32 sed -rn 's/^([^:]*|\[[0-9a-fA-F:]*\])(|:[0-9]*)?$/\2/p')
33 test -n "$port" || port=":5240"
34 ipaddr="${ipaddr}${port}"
35 maas-region local_config_set --maas-url "http://${ipaddr}/MAAS"
36}
37
38get_default_route_ip6() {
39 while read Src SrcPref Dest DestPref Gateway Metric RefCnt Use Flags Iface
40 do
41 [ "$SrcPref" = 00 ] && [ "$Iface" != lo ] && break
42 done < /proc/net/ipv6_route
43 if [ -n "$Iface" ]; then
44 LC_ALL=C /sbin/ip -6 addr list dev "$Iface" scope global permanent |
45 sed -n '/ inet6 /s/.*inet6 \([0-9a-fA-F:]*\).*/[\1]/p' | head -1
46 fi
47}
48
49get_default_route_ip4() {
50 while read Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
51 do
52 [ "$Mask" = "00000000" ] && break
53 done < /proc/net/route
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches