Merge lp:~andreserl/maas/lp1677005 into lp:maas/trunk

Proposed by Andres Rodriguez
Status: Superseded
Proposed branch: lp:~andreserl/maas/lp1677005
Merge into: lp:maas/trunk
Diff against target: 5409 lines (+4974/-0)
86 files modified
debian/changelog (+2448/-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 (+15/-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 (+85/-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 (+13/-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/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 (+84/-0)
debian/source/format (+1/-0)
debian/watch (+3/-0)
To merge this branch: bzr merge lp:~andreserl/maas/lp1677005
Reviewer Review Type Date Requested Status
MAAS Maintainers Pending
Review via email: mp+321210@code.launchpad.net
To post a comment you must log in.

Unmerged revisions

551. By Andres Rodriguez on 2017-03-28

* New upstream release, MAAS 2.2.0 Beta 5.
* debian/maas-common.logrotate: Rotate maas.log weekly, instead of daily.
  Store logs for 8 weeks. (LP: #1677005)

550. By Andres Rodriguez on 2017-03-28

Open 2.2.0~beta5

549. By Andres Rodriguez on 2017-03-28

Release 2.2.0~beta4+bzr5856-0ubuntu1

548. By Gavin Panella on 2017-03-24

[r=andreserl][bug=1650481][author=allenap] Move maas-delete-file and maas-write-file to maas-common.

547. By Gavin Panella on 2017-03-23

[r=blake-rouse][bug=1650481][author=allenap] Restrict sudo rules for maas-rack to only the scan-network command, with any arguments.

546. By Gavin Panella on 2017-03-23

[r=blake-rouse][bug=1650481][author=allenap] Install new scripts maas-delete-file and maas-write-file to /usr/lib/maas.

545. By Andres Rodriguez on 2017-03-21

Update package

544. By Andres Rodriguez on 2017-03-16

Release Beta3

543. By Andres Rodriguez on 2017-02-15

Open MAAS 2.2.2b3

542. By Andres Rodriguez on 2017-02-15

Fix packaging changelog

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'debian'
2=== added file 'debian/changelog'
3--- debian/changelog 1970-01-01 00:00:00 +0000
4+++ debian/changelog 2017-03-28 19:35:45 +0000
5@@ -0,0 +1,2448 @@
6+maas (2.2.0~beta5+bzr5865-0ubuntu1) UNRELEASED; urgency=medium
7+
8+ * New upstream release, MAAS 2.2.0 Beta 5.
9+ * debian/maas-common.logrotate: Rotate maas.log weekly, instead of daily.
10+ Store logs for 8 weeks. (LP: #1677005)
11+
12+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 28 Mar 2017 11:08:38 -0400
13+
14+maas (2.2.0~beta4+bzr5856-0ubuntu1) zesty; urgency=medium
15+
16+ * New upstream release, MAAS 2.2.0 Beta 4. (FFe LP: #1667141)
17+ - Add support to disable components.
18+ - Improve RSD details page. Show composed machines and power tab.
19+ - Add NTP & Internet connectivity tests.
20+ - UX improvements - Change to new tab system to improve navigation.
21+ - Error surfacing - For interfaces of Machines & Devices.
22+ - Windows deployments - support to select the root/boot disk.
23+
24+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 16 Mar 2017 16:10:26 +0000
25+
26+maas (2.2.0~beta3+bzr5815-0ubuntu1) zesty; urgency=medium
27+
28+ * New upstream release. MAAS 2.2.0 Beta 3 (FFe LP: #1667141):
29+ - Introduce storage verification smoke tests.
30+ - Introduce notifications API.
31+ - Add device details page.
32+ - Introduce Wedge BMC discovery during commissioning.
33+ - Add pod listing & details page.
34+ - Add dynamic composition for virsh devices.
35+
36+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 15 Feb 2017 08:37:25 -0500
37+
38+maas (2.2.0~beta2+bzr5717-0ubuntu1) zesty; urgency=medium
39+
40+ * New upstream release. MAAS 2.2.0 Beta 2 (bzr5717):
41+ - Introduce initial support for Intel RSD.
42+ - Introduce IPv6 IPMI auto-discovery.
43+ - Introduce notifications.
44+
45+ -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 30 Jan 2017 15:55:02 -0500
46+
47+maas (2.2.0~beta1+bzr5675-0ubuntu1) zesty; urgency=medium
48+
49+ * New upstream release. MAAS 2.2.0 Beta 1 (bzr5675):
50+ - Changing the concept of Spaces to a L2 layer.
51+ - Support for DHCP relays.
52+ - Introduce the concept of UNMANAGED subnets.
53+
54+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 11 Jan 2017 13:34:46 +0200
55+
56+maas (2.2.0~alpha1+bzr5614-0ubuntu1) zesty; urgency=medium
57+
58+ * New upstream release. MAAS 2.2.0 Alpha 1 (bzr5614):
59+ - Don't install Django settings into /usr/share/maas/maas. For
60+ regiond these were squatting the `maas` namespace, preventing its
61+ use elsewhere (LP: #1646748)
62+
63+ -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 21 Nov 2016 20:01:31 -0500
64+
65+maas (2.1.1+bzr5501-0ubuntu1) zesty; urgency=medium
66+
67+ * MAAS new upstream bugfix release. MAAS 2.1.1 bzr 5544.
68+
69+ -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 24 Oct 2016 11:28:59 -0400
70+
71+maas (2.1.0+bzr5480-0ubuntu1) yakkety; urgency=medium
72+
73+ * MAAS new upstream bugfix release. MAAS 2.1.0 (0-day SRU LP: #1633064):
74+ - TestPartition.test_get_partition_number_returns_starting_at_2_for_ppc64el
75+ fails spuriously (LP: #1569365)
76+ - "Deployed" and "Deploying" are too similar (LP: #1598470)
77+ - Users' maas api keys do not have a name (LP: #1536354)
78+ - [2.1] Incorrect logging message - showing SERVICE_STATE.ON (LP: #1631358)
79+ - [2.1 UI] Images page "Queued for download" is confusing when selections
80+ are not saved (LP: #1631420)
81+ - [2.1b1] Dashboard column widths for discovered items are
82+ wonky (LP: #1631024)
83+ - [2.1b1] 'Registering existing rack controller' (LP: #1631022)
84+ - [2.1] Command 'interface link-subnet' does not work (LP: #1629604)
85+ - [FUJ] SSH input field not indicated for invalid username & the error
86+ is incomprehensible (LP: #1628114)
87+ - [2.1 ipv6] DHCP generation should not fail when address-family
88+ conflicts are present (LP: #1629475)
89+ - [2.0rc2] Commissioning node with gateway_link_v4 set fails. (LP: #1603466)
90+ - [2.1, 2.0 UI] Error when using dhcp range with pre-existing dynamic
91+ reservation (LP: #1608555)
92+ - [2.1b2] Node failed to be released, because of the following error:
93+ 'NoneType' object has no attribute 'addErrback' (LP: #1632815)
94+ - [2.1, Yakkety, UI] UI error when adding a chassis (LP: #1632395)
95+ - [2.0, 2.1 UI] Other reserved IP ranges disappear when one of them is
96+ deleted on Subnet details page. (LP: #1631079)
97+ - [2.1b1] MAAS fails to deploy systems with 3+ TB disks (LP: #1630667)
98+ - [2.1 Yakkety UI] Unable to select nodes (LP: #1630633)
99+ - [2.0, 2.1] Release and list IPs reserved by another user (LP: #1629061)
100+ - [2.0rc2] Changing DNSSEC validation does not trigger configuration
101+ file update (LP: #1605476)
102+ - [2.1] Failed to mount a partition and it doesn't surface error. (LP: #1631152)
103+ - [2.1. Yakkety] "Map subnet" action doesn't work. (LP: #1632862)
104+
105+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 05 Oct 2016 21:47:25 -0400
106+
107+maas (2.1.0~beta2+bzr5454-0ubuntu1) yakkety; urgency=medium
108+
109+ * MAAS new upstream bugfix release. MAAS 2.1.0 beta 2 (bzr5454):
110+ - [2.1] Bootloaders not downloaded on initial import (LP: #1630394)
111+ - Cryptic error when PXE-boot requires an image not yet imported (LP: #1611949)
112+ - [2.0, 2.1, UI] MAAS webui allows boot disk to be changed on an
113+ already deployed node (LP: #1625676)
114+ - [2.1] Rename "Networks" tab to "Subnets" (LP: #1630591)
115+ - [2.1] netaddr assumes MAC OUI is ascii (LP: #1628761)
116+ - [2.1, 2.0] Can't input dynamic range on "Enable DHCP" after I deleted
117+ the dynamic range (LP: #1619262)
118+ - Machine unable to pxe with no-such-image while non-related images are
119+ being imported (LP: #1612203)
120+ - External DHCP detection is broken for a variety of reasons (LP: #1628645)
121+ - [2.1] expected string or bytes-like object (LP: #1627362)
122+ - [2.1] When trying to release a node, it gets stuck in releasing if
123+ there is no rack controller to power control (LP: #1614659)
124+ - WebUI needs a filter for deployed OS (LP: #1445941)
125+
126+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 05 Oct 2016 10:59:45 -0400
127+
128+maas (2.1.0~beta1+bzr5433-0ubuntu1) yakkety; urgency=medium
129+
130+ * MAAS new upstream release. MAAS 2.1.0 beta 1 (bzr5433):
131+ - Support for new version of streams.
132+ - Bootloaders are now downloaded from the streams.
133+ - Support for Low Latency kernels.
134+ - Support for new hardware enablement kernels.
135+ - Device discovery
136+ - UI ability to Map a network as an action.
137+ - Ability to select interval of active discovery.
138+ - Ability to enable active discovery per subnet.
139+ * Remove old template files on package removal.
140+
141+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 27 Sep 2016 14:44:26 -0400
142+
143+maas (2.1.0~alpha4+bzr5397-0ubuntu1) yakkety; urgency=medium
144+
145+ * MAAS new upstream release, MAAS 2.1.0 alpha 4 (bzr5397):
146+ - Complete First User Journey (Ability to import keys from GH/LP).
147+ - User profile has ability to import keys from GH/LP as well.
148+ - Device discovery:
149+ - Ability to clear records that may be incorrect.
150+ - Ability to 'Map networks' via the API.
151+ - Import NTP configuration via vendor-data and DHCP.
152+
153+ -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 19 Sep 2016 17:21:47 -0400
154+
155+maas (2.1.0~alpha3+bzr5368-0ubuntu1) yakkety; urgency=medium
156+
157+ * New upstream release, MAAS 2.1.0 Alpha 3 (bzr5363):
158+ - First user journey (SSH key import not yet available).
159+ - Allow the user to import SSH keys from LP or GH (only API/CLI).
160+ - Provide NTP services. Region and Rack Controllers now provide NTP
161+ services. Machines are also deployed with NTP configuration via.
162+ + Add cloud-init vendor data to support configuring the machine with
163+ NTP settings.
164+ - Images page complete redesign and transition to AngularJS.
165+
166+ -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 19 Sep 2016 17:21:20 -0400
167+
168+maas (2.1.0~alpha2+bzr5321-0ubuntu1) yakkety; urgency=medium
169+
170+ * New upstream release, MAAS 2.1.0 Alpha 2 (bzr5321):
171+ - Commissioning user data and PXE templates no longer user configs.
172+ They are no longer shipped on /etc/maas.
173+ - Adds support for Device Discovery (Backend and API).
174+ - [UI] Better error surfacing for DHCP snippets and Package Repositories.
175+ * Add depends on avahi-utils, ntp, and tcpdump.
176+ * Old templates still exist. Move them so users know they are no longer
177+ user (LP: #1619202)
178+ * Create the /etc/ntp directory. MAAS writes custom NTP configuration
179+ to /etc/ntp/maas.conf because ntpd is allowed by AppArmor to read
180+ configuration only from /etc/ntp.conf and /etc/ntp/**.
181+
182+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 31 Aug 2016 20:25:17 +0100
183+
184+maas (2.1.0~alpha1+bzr5300-0ubuntu1) yakkety; urgency=medium
185+
186+ * New upstream release, MAAS 2.1.0 Alpha 1 (bzr5300):
187+ - Advanced networking - static routes.
188+ - Machine networking - bridge configuration.
189+ - Machine networking - UI redesign and tags.
190+ - Derived (mirrors) and additional repositories.
191+ - Maintenance - Rescue Mode.
192+ - Device discovery - backend.
193+ - NTP support - backend.
194+ * Give MAAS on both region and rack the ability to start, restart, and
195+ get the status of the local NTP service.
196+ * Depend on python3-attr for the region and rack controllers.
197+
198+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 03 Aug 2016 10:51:50 -0400
199+
200+maas (2.0.0~rc3+bzr5180-0ubuntu2) yakkety; urgency=medium
201+
202+ * Really fix by the determination of the default gateway, otherwise
203+ automatically chose localhost. (LP: #1607112)
204+
205+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 27 Jul 2016 22:20:09 -0400
206+
207+maas (2.0.0~rc3+bzr5180-0ubuntu1) yakkety; urgency=medium
208+
209+ * New upstream release, 2.0.0 RC3 bzr5180:
210+ - CLI version command doesn't work (2.0) (LP: #1557434)
211+ - [2.0rc1] MAAS does not respect default subnet's DNS server when
212+ choosing default DNS (LP: #1576116)
213+ - [2.0RC1] MAAS displays every power query on the summarized view of
214+ node event log (LP: #1594991)
215+ - [2.0] Loading latest machine events can make web browser
216+ unresponsive (LP: #1598028)
217+ - [2.0rc1] MAAS doesn't honor DNS settings for a subnet for
218+ DHCP (LP: #1600720)
219+ - [2.0rc1] drop arm64/efi grub module workaround (LP: #1600285)
220+ - maas login yields "ImportError: No module named
221+ 'maasserver'" (LP: #1604169)
222+ - [doc] events API limit,before, after options not
223+ documented (LP: #1604901)
224+ - RackController.get_image_sync_status causes huge load
225+ on regiond process (LP: #1604465)
226+ - [2.0b8] MAAS is automatically monitoring timeouts. (LP: #1598149)
227+ - [2.0] Error messaging about monitor expiry has been
228+ dropped (LP: #1605252)
229+ - [2.0rc2] Can't get node-results via cli/api (LP: #1602721)
230+ - node set to "failed deployment" for no visible reason (LP: #1604962)
231+ - Event log should always include a reason why a node was
232+ marked Failed Deployment (LP: #1604987)
233+ * If no default route is present in the system, configure maas_url on
234+ regiond.conf to localhost to allow the user to tell MAAS what IP to use.
235+
236+ -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 22 Jul 2016 18:05:45 -0400
237+
238+maas (2.0.0~rc2+bzr5156-0ubuntu1) yakkety; urgency=medium
239+
240+ * New upstream release, 2.0.0 RC2 bzr5156:
241+ - Pick up wrong grub.cfg if another filesystem exists (LP: #1582070)
242+ - [2.0] confusing reverse DNS lookups because MAAS creates multiple
243+ PTR records (LP: #1599223)
244+ - [2.0] reverse DNS sometimes assigns FQDN where it should assign
245+ IFACE.FQDN (LP: #1600259)
246+ - [2.0rc1] after upgrade from 2.0b3, Error on request (13)
247+ subnet.list: 'NoneType' object is not iterable (LP: #1599997)
248+ - [2.0rc1] Image import dates are inconsistent (LP: #1598461)
249+ - [2.0rc1] Following fresh install maas command fails
250+ PermissionError: [Errno 13] Permission denied:
251+ '/home/ubuntu/.maascli.db' (LP: #1598937)
252+ - [1.9.3,2.0] cannot create more than 4 partitions when disk is
253+ configured with mbr (LP: #1597787)
254+ - [1.9,2.0,UX] Can't add aliases when parent interface is set to
255+ 'DCHP' (LP: #1600267)
256+ - [1.9,2.0,UX] Creating a Bcache disk is not prevented when is not
257+ created in partition (LP: #1600198)
258+
259+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 06 Jul 2016 09:49:41 -0400
260+
261+maas (2.0.0~rc1+bzr5143-0ubuntu1) xenial; urgency=medium
262+
263+ * New upstream release, 2.0.0 RC1 bzr5143:
264+ - Determine a method for how to reconnect a deleted rack controller (LP: #1576357)
265+ - [2.0b7, regression] maas-rack register makes up a new hostname (LP: #1592246)
266+ - [2.0b8] HMC power driver regression -- Not able to connect via SSH. (LP: #1595753)
267+ - [2.0b7] Date and time format should be consistent accross logs (LP: #1592885)
268+ - [2.0b8] Unable to set default gateway interface (LP: #1597324)
269+ - [1.9] VMware power management fails when VMs are organized in nested subfolders (LP: #1515188)
270+ - [2.0] maas 2.0 pxeboot fails on PowerNV (LP: #1596046)
271+
272+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 28 Jun 2016 16:58:20 -0400
273+
274+maas (2.0.0~beta8+bzr5134-0ubuntu1) xenial; urgency=medium
275+
276+ * New upstream release, 2.0.0 beta8 bzr5134:
277+ - Allow ed25519 and ecdsa ssh keys (LP: #1590081)
278+ - [2.0b2, UI] Can't add a device and it does not show why. (LP: #1462078)
279+ - [2.0b3] Interfaces on region controllers are not
280+ discovered (LP: #1573626)
281+ - [2.0b4, UI] No feedback when failing to assign static IP address on
282+ the Node Details Page (LP: #1562107)
283+ - [2.0b5] No way to read settings, like proxy, for non-admin
284+ users (LP: #1583670)
285+ - [2.0b5] Commissing with LVM breaks deployments (LP: #1585016)
286+ - [2.0b5] dns templates still in /etc/maas/templates (LP: #1581729)
287+ - [2.0b6] django.db.utils.IntegrityError: insert or update on
288+ table "piston3_consumer" (LP: #1588907)
289+ - [2.0b6] Image status stays out-of-sync after adding custom image (LP: #1581130)
290+ - [2.0b6] core count not updated during commissioning if MAAS
291+ previously stored a higher core count (LP: #1590144)
292+ - [2.0b7] Adding rack controller instructions could be in the
293+ GUI (LP: #1592282)
294+ - [2.0b7] Enlisting output returns objects (LP: #1592132)
295+ - [2.0b7, UI] Can't sort IP addresses under a subnet details
296+ page (LP: #1592137)
297+ - [2.0b7] Nodes API doesn't show regions (LP: #1593789)
298+ * /etc/maas/templates/dns is obsolete. (LP: #1581729)
299+ * Switch to OpenSSH for SSH public key validation. Previously
300+ Twisted's conch was used but it does not yet support the newer ecdsa
301+ and ed25519 key types. (LP: #1590081)
302+ * debian/control: maas-region-api depends on maas-cli.
303+ * debian/maas-region-api.postinst: Ensure rsyslog is restarted.
304+ * debian/maas-region-controller.postinst: Ensure maas_url ends with 5240.
305+ * Versioned Depend on squid
306+ * debian/maas-region-controller.config: Ensure dbc_go is not run when
307+ dbconfig common is not yet installed.
308+ * Wait for squid to finish starting before returning from the start command.
309+ LP: #1592954
310+
311+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 14 Jun 2016 17:08:48 -0400
312+
313+maas (2.0.0~beta7+bzr5112-0ubuntu1) xenial; urgency=medium
314+
315+ * New upstream release, 2.0.0 beta 7 bzr5112:
316+ - [2.0b5] p.refresh.get_swap_size misconverting units (LP: #1587896)
317+ - get_interfaces_definition is not thread-safe (LP: #1587896)
318+ - [2.0] Cannot create an IP reservation with a hostname (LP: #1590021)
319+ - [2.0b5] request to http://.../MAAS/metadata/status/<systemdid>/latest
320+ failed (LP: #1581723)
321+ - [2.0b4] Rack Controller fail to update commissioning info? (LP: #1577953)
322+ - [2.0b6, UI] When I delete a fabric, it takes me back to the
323+ Node listing page (LP: #1589562)
324+ - [2.0b6, UI] When I delete a space, it takes me back to the
325+ Node listing page (LP: #1589596)
326+ - [2.0b5, UI] No form validation when adding a subnet, space,
327+ fabric or vlan (LP: #1588298)
328+ - [2.0b6, UI] Message "No IP ranges have been reserved for this subnet."
329+ doesn't go away after adding IP Range (LP: #1589606)
330+ - [2.0b6, UI] Can't add a VLAN over the WebUI (LP: #1589583)
331+ - [2.6b6, UI] Adding a fabric with an optional name ends up with a new
332+ fabric with automatically assigned name (LP: #1589560)
333+ - [2.6b6, UI] Adding a space with an optional name ends up with a new
334+ space with automatically assigned name (LP: #1589595)
335+ - Auto detection of running virtual environment during commissioning
336+ almost always fails (LP: #1590946)
337+ - [2.0b6] Cannot allocate a node based on its system_id (LP: #1590991)
338+ - [2.0,1.9] 3rd party HP drivers (archive hostname renamed) - deployment
339+ fails (LP: #1591093)
340+ - [2.0b4 UI] MAAS WebUI doesn't quickly refresh when deleting
341+ machines (LP: #1581219)
342+ - [2.0b4] Can attempt to commission enlisted nodes without chosen
343+ power type (LP: #1579215)
344+ - [2.0b6] Can edit fabric and subnet on deployed node (LP: #1590499)
345+ - [2.0b6] some arm64 systems need ipmi_ssif module in addition to
346+ ipmi_si (LP: #1591395)
347+ - [2.0] maas createadmin fails (LP: #1591346)
348+ - [2.0b6] Attempting to delete a VLAN that cannot be deleted, shows
349+ traceback in regiond.log (LP: #1589587)
350+ - [2.0b6] Commisioning fails on machines without HW
351+ virtualization (LP: #1591958)
352+
353+ -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 06 Jun 2016 18:54:19 -0400
354+
355+maas (2.0.0~beta6+bzr5073-0ubuntu1) xenial; urgency=medium
356+
357+ * New upstream release, 2.0.0 beta 6 bzr5073:
358+ - Spurious failures in test_regionservice (LP: #1572646)
359+ - use http for stream mirror, not https (LP: #1582836)
360+ - MAAS version API call should not require authentication (LP: #1583715)
361+ - Detect and identify NIC SR-IOV capability (LP: #1572740)
362+ - [1.9,2.0]Commissioning fails when BIOS reports floppy drive,
363+ but there is none installed (LP: #1584211)
364+ - [1.9,2.0] DNS record created against IPv6 address when it is not
365+ on the PXE interface (LP: #1584850)
366+ - [2.0] MaaS 2.0 BMC information not removed when nodes are removed (LP: #1586555)
367+ - [2.0] IPMI driver does not handle timeouts correctly (LP: #1508741)
368+ - [2.0] Display RAM amount to the first decimal place in the UI (LP: #1585759)
369+ - [2.0] Expose the refresh rack controller action over the UI (LP: #1585760)
370+ - [2.0] Rename maas-nodegrou-worker to MAAS (LP: #1585768)
371+ - [2.0a1] MAAS should ensure that BMC password is correct before
372+ saving (LP: #1553841)
373+ - [2.0b2] DNS zone serials are not stable (LP: #1571645)
374+ - [2.0b2] If you deploy a machine in MAAS, and manually install a
375+ rack controller in it, it disappears from the machine list" (LP: #1570985)
376+ - [2.0b3] rack / region controllers are visible to non-admins (LP: #1576417)
377+ - [2.0b4] external maas-rack-controller logs to syslog instead of
378+ maas.log (LP: #1577972)
379+ - [2.0b4] twisted.internet.error.ConnectionDone: Connection was
380+ closed cleanly. (LP: #1580817)
381+ - [2.0b4 UI/API] No notifications rack controller is disconnected.
382+ No power type available (LP: #1581318)
383+ - [2.0b5] AMT machines using wsman do not netboot (LP: #1580350)
384+ - [2.0b5] When installing secondary region controller on its on,
385+ last image sync is never (LP: #1581737)
386+ - [2.0b5] Can't force the import of images per Rack Controller (LP: #1583685)
387+ - [2.0b5] After changing proxy, MAAS cannot install images (LP: #1585649)
388+ - [2.0b5] MAAS doesn't import default images automatically (LP: #1584936)
389+ - [2.0b5] Trying to assign an IP address statically to a device results
390+ in builtins.AttributeError: 'NoneType' object has no attribute
391+ 'link_subnet' (LP: #1558635)
392+ - [2.0b5] duplicate key on startup: Key (vid, fabric_id)=(2, 0)
393+ already exists. (LP: #1583333)
394+ - [2.0b5] Deployed regions should be able to transistion back to
395+ machines (LP: #1588531)
396+ - [2.0b5] domain details page does not update as the domain contents
397+ change (LP: #1581224)
398+ - [2.0b5] Cannot disable DHCP if you remove the subnet first ("Cannot
399+ configure DHCP: At least one dynamic range is required.") (LP: #1583392)
400+ - [2.0b5] builtins.ValueError: invalid literal for int() with base 10 (LP: #1588846)
401+ - [2.0, UI] Bulk actions-Nodes action doesn’t apply should be red (LP: #1585628)
402+ - [2.0, UI] Add fabric, VLAN, Space show's badly place form (LP: #1587936)
403+ - [2.0, UI] 'Commission' a node under the Node Listing Page shows actions
404+ not correctly formatted. (LP: #1587939)
405+ - [2.0, UI] Add domain show's badly place form (LP: #1587998)
406+ - [2.0, UI] There's no spacing between combo boxes under the Machine
407+ Details page (LP: #1588000)
408+
409+ -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 03 Jun 2016 18:05:32 -0400
410+
411+maas (2.0.0~beta5+bzr5026-0ubuntu1) xenial; urgency=medium
412+
413+ * New upstream release, 2.0.0 beta 5 bzr5026:
414+ - [UI 2.0b1] Impossible to change subnet CIDR or gateway with
415+ instant editing (LP: #1572076)
416+ - [UI 2.0b1] Network details page doesn't have CSS for
417+ editting (LP: #1568102)
418+ - [UI 2.0b2] Can't edit fabric's, vlans, subnets from the
419+ WebUI (LP: #1571670)
420+ - [UI 2.0b2] Can't add/edit/delete IP ranges through UI (LP: #1571672)
421+ - [UI/Backend 2.0b2] Can't delete a rack controller from the Rack
422+ Details Page (LP: #1570990)
423+ - [UI 2.0b3] interface addresses on rack controller details page
424+ not updated automatically (LP: #1576267)
425+ - [UI 2.0b4] Actions list is unordered (LP: #1577386)
426+ - [UI 2.0b4] I can 'add special filesystem' when the machine is
427+ deployed (LP: #1580827)
428+ - [1.9] wrong subnet in DHCP answer when multiple networks are
429+ present (LP: #1521618)
430+ - [2.0] include maas resetMachine() API primitive (LP: #1536346)
431+ - [2.0] Re-commissioning doesn't detect storage changes (LP: #1575567)
432+ - [2.0] Expose custom network in non ubuntu deployments (LP: #1570002)
433+ - [2.0a4] Reserved IP ranges should be allowed to be created by
434+ standard users (LP: #1580260)
435+ - [2.0b2] 6 Core system is listed as having a single CPU (LP: #1542353)
436+ - [2.0b2] Cannot delete a rack controller that was previously a
437+ 'machine' (LP: #1570995)
438+ - [2.0b3] IP Ranges section on the subnet page should be shown
439+ even if no ranges (LP: #1576758)
440+ - [2.0b3] Tag changes depend on rack / cluster connection (LP: #1372544)
441+ - [2.0b4] Rack Controller fail to update commissioning info? (LP: #1577953)
442+ - [2.0b4] Rack Controller mark-broken / mark-fixed (LP: #1577954)
443+ - [2.0b4] Registering external rack controller tracebacks (LP: #1577970)
444+ - [2.0b4] RackControllerService flooding log with:
445+ 'RegionAdvertisingService' object has no attribute 'processId' (LP: #1578800)
446+ - [2.0b4] set_initial_networking_configuration shouldn't raise
447+ ValidationError (LP: #1580405)
448+ - [2.0b4] Disks less than 4MB in size cause a traceback on the
449+ MAAS server (LP: #1580280)
450+ - [2.0b4] Rack Controller details page shows "never" under last
451+ image sync (LP: #1577974)
452+ - [2.0b4] Machines successfully commission but don't get marked
453+ 'Ready' (LP: #1580285)
454+ - [2.0b4] Region RPC losing connection and raising exception (LP: #1581654)
455+ - [2.0b4] unregisterConnection() missing 1 required positional
456+ argument: 'host' (LP: #1580771)
457+ * debian/maas-dhcp.posinst: Pipe error messages correctly to not show
458+ messages when disabling isc-dhcp-server init scripts. (LP: #1570911)
459+
460+ -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 06 May 2016 09:56:40 -0500
461+
462+maas (2.0.0~beta4+bzr4985-0ubuntu1) xenial; urgency=medium
463+
464+ * New upstream release, 2.0.0 beta 4 bzr4985:
465+ - Disk erasing with Xenial results it abnormal poweroff (LP: #1527634)
466+ - UI Nodes page shows 'ascii' codec can't decode byte (LP: #1555864)
467+ - When power_type changed to manual "power_state" was not set to "unknown" (LP: #1574003)
468+ - MAAS Rack Controller doesn't log when it is importing images. (LP: #1571007)
469+ - rackd fails to register vlan interfaces with "vlan" naming scheme (LP: #1575945)
470+ - Traceback deleting fabric (LP: #1573492)
471+ - adding files with paths in the filename confuses maas (LP: #1566108)
472+ - MAAS does not add node to DNS Domain (LP: #1571621)
473+ - tag only supports 'nodes' and and not 'machines' or 'controller's (LP: #1573644)
474+ - enlistment fails: /tmp/sh.UZ7qJT/bin/maas-enlist: archdetect: not found (LP: #1573264)
475+ - creating a dnsresource-record at the root of a zone should allow fqdn= (LP: #1562919)
476+ - In the domain details pages, sometimes names have links to nodes when they should not (LP: #1573690)
477+ - Can't power on/off Rack Controller (LP: #1576854)
478+ - ipranges create raises incorrect error for missing type (LP: #1573660)
479+ - fabric and space pages fail to update automatically (LP: #1557597)
480+ - Subnet page doesn't show which machine or device owns an IP address (LP: #1567150)
481+ - MAAS Controller listing page doesn't indicate whne a rack is downloading images (LP: #1571680)
482+ - Deleting user in UI leads to 500 (LP: #1573219)
483+ - maas enlistment of power8 found ipmi 1.5 should do ipmi 2.0 (LP: #1556219)
484+ * debian/extras/20-maas.conf: Better organize rsyslog logs.
485+
486+ -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 30 Apr 2016 18:40:26 -0400
487+
488+maas (2.0.0~beta3+bzr4941-0ubuntu1) xenial; urgency=medium
489+
490+ * New upstream release, 2.0.0 beta 3 bzr4941 (Standing FFe LP: #1553261)
491+ * Remove some leftover references to Cluster.
492+ * Run debconf-updatepo.
493+
494+ -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 15 Apr 2016 22:27:56 -0400
495+
496+maas (2.0.0~beta2+bzr4920-0ubuntu2) xenial; urgency=medium
497+
498+ * debian/control: Add missing dep on python3-httplib2
499+
500+ -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 15 Apr 2016 22:23:55 -0400
501+
502+maas (2.0.0~beta2+bzr4920-0ubuntu1) xenial; urgency=medium
503+
504+ * New upstream release, 2.0.0 beta 2 bzr4920 (Standing FFe LP: #1553261)
505+ * Only create the squid cache if we have a configuration file.
506+ LP: #1568847
507+ * Re-add shared debconf templates.
508+
509+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 07 Apr 2016 18:22:00 -0400
510+
511+maas (2.0.0~beta1+bzr4873-0ubuntu2) xenial; urgency=medium
512+
513+ * Add maas-region-udeb and maas-rack-udeb to be used as part of the
514+ Ubuntu Server Installer (LP: #1561954)
515+ - ensure maas-rack-controller and maas-region-controller can be fully
516+ preseeded.
517+
518+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 05 Apr 2016 17:02:32 -0400
519+
520+maas (2.0.0~beta1+bzr4873-0ubuntu1) xenial; urgency=medium
521+
522+ * New upstream release, 2.0.0 beta 1 bzr4873 (Standing FFe LP: #1553261)
523+ - DHCP Snippets WebUI.
524+ - Ensure proxy configuration ACL's subnets MAAS knows about.
525+ - DNS High Availability.
526+ * debian/control: Move 'maascli' package install to
527+ python3-maas-client (LP: #1563859)
528+ * Improve way on how upgrades ensures correct permissions
529+ and ownership (LP: #1563799 , LP: #1563779)
530+ * Improve the way how removals clean the system (LP: #1563337)
531+ * Reflect new names and website for systemd units (LP: #1563807)
532+ * maas-proxy now uses a custom-built config, instead of a boilerplate.
533+ LP: #1379567
534+
535+ -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 28 Mar 2016 16:47:58 -0400
536+
537+maas (2.0.0~alpha4+bzr4843-0ubuntu1) xenial; urgency=medium
538+
539+ * New upstream release, 2.0.0 alpha 4 bzr4843 (Standing FFe LP: #1553261)
540+ - DHCP Snippets backend and API.
541+ - Rack controller WebUI Served VLANs & Service Tracking
542+ - Rsyslog during enlistment/commissioning.
543+ * Ensure /etc/maas/templates/power gets removed on upgrade
544+ * debian/control: Update homepage and package descriptions.
545+ (LP: #1562036, LP: #1562034, LP: #1562062)
546+ * Rename maas-reigon-controller-min to maas-region-api (LP: #1562069)
547+
548+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 23 Mar 2016 12:27:27 -0400
549+
550+maas (2.0.0~alpha3+bzr4810-0ubuntu1) xenial; urgency=medium
551+
552+ * New upstream release, 2.0.0 bzr 4810 (Standing FFe LP: #1553261)
553+ - New Networks WebUI
554+ + Add Fabrics and Spaces details page.
555+ + Actions to Add/Remove Fabrics, VLANs, Spaces, Subnets.
556+ - Storage WebUI
557+ + Mount options
558+ + Swap Partitions
559+ - WebUI to change a Machine's domain.
560+ - Rack Controller details page now shows 'Server VLANs'
561+ - Add maas-rack support-dump command.
562+ - Fixes:
563+ + python3-maas-client API 2.0 no loger use op but MAASClient.post
564+ requires it (LP: #1555393)
565+ + Fail to commission when Fabric on Machine Interface doesn't match
566+ Rack Controller Fabric. (LP: #1554566)
567+ + TFTP back-end crashes (LP: #1553848)
568+ + Can't deploy a node, no interfaces on rack controller (LP: #1554999)
569+ * Update dhcpd permissions to conform with most recent paranoia described
570+ on LP: 1543794, so capability dac_override is not granted.
571+ * Update versioned depend on isc-dhcp-server
572+
573+ -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 14 Mar 2016 18:34:53 -0400
574+
575+maas (2.0.0~alpha2+bzr4776-0ubuntu1) xenial; urgency=medium
576+
577+ * New usptream release, 2.0.0 bzr 4776 (LP: #1553261).
578+ * maas-dns Depends: bind9 >= 1:9.10.3.dfsg.P2-5 for better system time.
579+ LP: #1553176.
580+ * debian/extras/maas-{region,rack}: Replace maas-region-admin
581+ and maas-provision, respectively (LP: #1553791)
582+ * debian/maas-region-controller.postrm: Correctly handle removal by
583+ dbconfig-common. (LP: #1553648)
584+ * debian/extras/99-maas-region-sudoers: Allow running systemctl for
585+ bind9 and maas-proxy to support service tracking. (LP: #1555308)
586+
587+ -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 01 Feb 2016 18:18:52 +0100
588+
589+maas (2.0.0~alpha1+bzr4736-0ubuntu1) xenial; urgency=medium
590+
591+ * New usptream release, 2.0.0 bzr 4736 (LP: #1553261):
592+ - Deprecate Cluster Controllers in favor of Rack Controllers.
593+ - Deprecate API 1.0 in favor if API 2.0.
594+ - DHCP & Rack Controller High Availability.
595+ - Networking - IP Ranges.
596+ - Networking - DNS.
597+ - BMC Model.
598+ * Rename maas-cluster* to maas-rack* and handle the upgrade path.
599+ * Fix installation of init scripts and daemon systemd units.
600+ * Allow 'dhcpd' to access /usr/sbin/maas-provision via
601+ sudoers file (LP: #1552775)
602+ * debian/extras/maas: Replace shell wrapper with python. (LP: #1553605)
603+ * debian/control: Depends on iproute2 instead. (LP: #1553647)
604+
605+ -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 01 Feb 2016 18:18:52 +0100
606+
607+maas (1.10.0+bzr4572-0ubuntu2) xenial; urgency=medium
608+
609+ * debian/maas-region-controller.config: Ensure we truly preseed db
610+ setting so we always use localhost and it never asks the user.
611+ * debian/control: Suggests on python3-pyvmomi
612+
613+ -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 01 Feb 2016 17:04:27 +0100
614+
615+maas (1.10.0+bzr4572-0ubuntu1) xenial; urgency=medium
616+
617+ * New upstram release, 1.10.0 bzr 4572:
618+ - Support python3, drop support for python2.
619+ - Support django 1.8+.
620+ * debian/control:
621+ - Remove all Upstart related services.
622+ - Remove python-django16 dependency.
623+ - Add python-petname dependency.
624+ - Change dependency python-django-piston to python-django-piston3.
625+ - Depends on dbconfig-pgsql instead of dbconfig-common.
626+ * debian/maas-region-controller.config:
627+ - Preseed dbconfig common to not ask for PG server to use.
628+ * debian/maas-region-controller-min.maas-regiond-worker@.service: Don't
629+ depend on postgresql.service anymore, as it would prevent regiond
630+ to run on machines with a remote PostgreSQL.
631+ * debian/rules: Refactor installation of init scripts so that they are
632+ correctly handled, and maas-regiond is not started on install.
633+
634+ -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 13 Nov 2015 13:13:42 +0000
635+
636+maas (1.9.0~rc1+bzr4496-0ubuntu1) wily; urgency=medium
637+
638+ * New upstream release, 1.9.0 rc1, bzr4496
639+ - MAAS uses wrong IP for DNS record (creates against the
640+ bond). (LP: #LP: #1515498)
641+ - Local archive ignored for deployment. Works for commissioning
642+ and enlistment. (LP: #1515671)
643+ - Fix handling of multiple StaticIPAddress rows with empty IP
644+ addresses. (LP: #1513485)
645+ - Lease parser failure - doesn't update IP on the PXE
646+ NIC. (LP: #1513485)
647+ - Cannot claim sticky IP address for device with
648+ parent. (LP: #1514486)
649+ - Cluster downloads boot-images from managed network (pxe) instead
650+ of network used to connect to Region. (LP: #1514883)
651+ - Updating/modifying/assigning vlans, spaces, fabrics, subnets
652+ doesn't allow specifying names and lock to ID's. (LP: #1510917)
653+ - MAAS should prevent deploying nodes with PXE interface
654+ 'unconfigured'. (LP: #1513095)
655+ - MTU should be a set on the VLAN, and able to override on the
656+ interface. (LP: #1508056)
657+ - Internal Server Error when creating/editing cluster interface
658+ when the Cluster is disconnected. (LP: #1439476)
659+ - Non-interactive way to change password. (LP: #1510224)
660+ - When a bond is created all IP address associated with the bond
661+ members should be removed. (LP: #1513111)
662+ - MAAS does not provide a dump of the config it passes to curtin for
663+ networking and storage. (LP: #1487135)
664+ - MAAS should not offer EXT3, rather VFAT, EXT2, EXT4. (LP: #1512959)
665+ - Network constraints for juju. (LP: #1505031)
666+ - Creating a partition or a Volume Group on the whole disk leaves
667+ free space. (LP: #1509535)
668+ - Should not allow partitions to be created on bcache
669+ device. (LP: #1511493)
670+ - Storage section should only be editable when Ready or
671+ Allocated. (LP: #1503475)
672+ - maasserver.api.tests.test_fannetworks.TestFanNetworksAPI.test_read
673+ fails randomly. (LP: #1512832)
674+ - creating a logical volume on a partition that is too small almost
675+ works, resulting in strange error messages. (LP: #1508754)
676+ - [UI] Keep selected nodes selected after action. (LP: #1503925)
677+ - [UI] Refresh UI cache after an upgrade to avoid seeing
678+ garbage. (LP: #1515380)
679+ - [UI] Boot disk is not lighted nor can be changed. (LP: #1510106)
680+ - [UI] Can't remove / delete a partition with a filesystem under
681+ 'Available disks and partitions'. (LP: #1510118)
682+ - [UI] Creating a partition should allow to select filesystem and
683+ mountpoint. (LP: #1510153)
684+ - [UI] When selecting a device, ensure padding between buttons is
685+ 20px. (LP: #1510468)
686+ - [UI] Misaligned mount point column on used disks table. (LP: #1510455)
687+ - [UI] Align the individual storage actions with the name field,
688+ rather than the tickbox. (LP: #1510469)
689+ - [UI] can't add physical interface. (LP: #1503479)
690+ - [UI] Containers (lxc, kvm) data missing on node details. (LP: #1503474)
691+ - [UI] Unable to unmount a filesystem in the UI. (LP: #1513271)
692+ - [UI] Animation missing on show members and select node. (LP: #1503536)
693+ - [UI] Add tooltips to icons. (LP: #1510482)
694+ - [UI] Add tooltips to inactive buttons. (LP: #1510486)
695+
696+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 05 Nov 2015 08:29:06 -0500
697+
698+maas (1.9.0~beta2+bzr4456-0ubuntu1) wily; urgency=medium
699+
700+ * New upstream release, 1.9.0 beta2, bzr4456:
701+ - New capabilities for subnets, vlan, spaces and
702+ fabrics. (LP: #LP: #1511257)
703+ - Upgrade left a PXE NIC"s on nodes without a subnet associated
704+ causing deploy issues. (LP: #LP: #1509077)
705+ - DNS record doesn't get created against the PXE
706+ interface (LP: #1512109)
707+ - bcache cache_mode setting not configured on
708+ servers (LP: #1510334)
709+ - Administrators unable to delete users using the API (LP: #1510210)
710+ - Can create a VolumeGroup (vg0) without having created
711+ a partition on the boot disk (LP: #1509536)
712+ - set-boot-disk yields in a machine not being able to
713+ deploy (LP: #1501400)
714+ - Deploying Other OS' (CentOS, Windows) should not configure
715+ custom storage (LP: #1504956)
716+ - Add RAID 10 support (LP: #1509164)
717+ - MAAS should download grub from grub-efi-amd64-signed package
718+ instead of the archive path (LP: #1511437)
719+ - Fails to deploy with UEFI (LP: #1510120)
720+ - previous owner of node can use oauth creds to retrieve current
721+ owner's user-data (LP: #1507586)
722+ - IP range validation for too small ranges (LP: #1507630)
723+ - test__calls_update_host_maps_for_next_ip_managed_subnet
724+ can fail randomly (LP: #1507630)
725+ - No way to disable maas-proxy (LP: #1511071)
726+ - [UI] HWE naming needs to be clearer (LP: #1505034))
727+ - [UI] Angular $digest loop issue on node details page (LP: #1509476)
728+ - [UI] New nodes interfaces doesn't show which interface is the
729+ PXE interface (LP: #1509473)
730+ - [UI] When partitioning, there should be 20px padding between
731+ the sizing fields (LP: #1510471)
732+ - [UI] On the available table, add model and serial to the
733+ name column (LP: #1510467)
734+ - [UI] On the available table, change “available space” to
735+ “size” for consistency (LP: #1510466)
736+ - [UI] when formatting/mounting, the button says “Format & Mount”
737+ this should just be “Mount” (LP: #1510472)
738+ - [UI] Tickbox on create bond networking (LP: #1503533)
739+ - [UI] On the file system table, change name to “File system”
740+ (lower case S) (LP: #1510447)
741+ - [UI] When creating bcache and raid, remove the empty column
742+ between the config fields. (LP: #1510474)
743+ - [UI] On the available table, make sure all buttons are
744+ lowercase (LP: #1510488)
745+ - [UI] Subnets filter doesn't show network, it shows name
746+ instead (LP: #1511174)
747+ - [UI] can't edit / add storage tags (LP: #1509417)
748+ - [UI] Hover state for networking doesn't work (LP: #1510891)
749+ - [UI] change "edit tag" link to icon storage (LP: #1510458)
750+ - [UI] Can no longer see the IP address PXE interface gets
751+ on commissioning (LP: #1510629)
752+ * debian/control: Bump Dep on python-curtin to > 0.1.0~bzr275.
753+
754+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 28 Oct 2015 21:20:39 -0400
755+
756+maas (1.9.0~beta1+bzr4417-0ubuntu1) wily; urgency=medium
757+
758+ * New upstream release, 1.9.0 beta1, bzr4415:
759+ - Various UI fixes and improvements
760+ - Add ability to create LVM.
761+ - Add ability to create RAID.
762+
763+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 22 Oct 2015 14:05:50 -0400
764+
765+maas (1.9.0~alpha5+bzr4398-0ubuntu1) wily; urgency=medium
766+
767+ * New upstream release, 1.9.0 Alpha 5, bzr4398:
768+ - Various UI fixes and improvements.
769+ - Add ability to create partitions in the UI.
770+ - Add ability to create Bcache (create cache sets and backing devices).
771+ - Check and warns users about missing power driver tools (LP: #1381000).
772+ - Add fabric class_type.
773+
774+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Oct 2015 21:22:44 -0700
775+
776+maas (1.9.0~alpha4+bzr4371-0ubuntu1) wily; urgency=medium
777+
778+ * New upstream release, 1.9.0 Alpha 4, bzr4371:
779+ - Various UI fixes and improvements.
780+ - Various concurrency issues fixed.
781+ - Do not create MBR bigger than 2 TiB, otherwise MAAS will fail to
782+ deploy on disks larger than 2 TiB.
783+ - Fix broken migration due to missing import (LP: #1504340)
784+
785+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 07 Oct 2015 13:02:53 -0700
786+
787+maas (1.9.0~alpha3+bzr4355-0ubuntu1) wily; urgency=medium
788+
789+ * New upstream release, 1.9.0 Alpha 3, bzr4355
790+ - Node network configuration (VLAN, aliases, bond's).
791+ - Subnets page.
792+ - Mount, Unmount filesystems. Formatting, unformatting.
793+ - Create partitions.
794+ - Checks for missing power drivers tool and warns the users.
795+ * debian/control: Recommends on apache2.
796+
797+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 29 Sep 2015 12:53:36 -0400
798+
799+maas (1.9.0~alpha2+bzr4322-0ubuntu1) wily; urgency=medium
800+
801+ * New upstream release, 1.9.0 Alpha 2, bzr4322:
802+ - Native support for Network Configuration (IP assignment, VLANs, bonds)
803+ - First class support for CentOS
804+ - Status updates from curtin/cloud-init
805+ - Support for fabrics, spaces, subnets and fans.
806+ - Support for commissioning actions.
807+
808+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 01 Sep 2015 19:04:39 -0400
809+
810+maas (1.9.0~alpha1+bzr4221-0ubuntu1) wily; urgency=medium
811+
812+ * New upstream release, 1.9.0 Alpha 1, bzr4218:
813+ - Native storage support (Flat, LVM, bcache, RAID).
814+ - New config files (regiond.conf, clusterd.conf)
815+ - New Python Power Drivers.
816+ - Better support for HWE Kernels.
817+
818+ [ Scott Moser ]
819+ * maas-proxy: sync apt specific squid config with squid-deb-proxy
820+ (LP: #1474417)
821+
822+ [ Raphaël Badin ]
823+ * Enable proxy_wstunnel module.
824+ * Drop dependency on python-iscpy: the code has been integrated into
825+ MAAS. (LP: #1413388).
826+
827+ [ Gavin Panella ]
828+ * Use new local configuration support for the cluster.
829+
830+ [ Andres Rodriguez ]
831+ * Refactor maas-dns upgrade code so it doesn't break local DNS config
832+ and it gets migrated (LP: #1413388)
833+ - debian/maas-region-controller.postinst: Ensure DNS config
834+ migration is always run.
835+ * debian/control: Make maas-dns a Dependy of maas-region-controller.
836+ * Update the location of dhcpd.conf and dhcpd6.conf to be /var/lib/maas/
837+ and handle upgrades. (LP: #1482857)
838+ * Move /etc/maas/maas-proxy.conf to /usr/share/maas/maas-proxy.conf as
839+ this is not a config we want users to modify. (LP: #1482859)
840+ * Move /etc/maas/maas-http.conf to /usr/share/maas/maas-http.conf as
841+ this is not a config we want users to modify. (LP: #1482858)
842+ * debian/control:
843+ - Add missing dependency on python-curtin.
844+ - Drop python-lockfile as it is no longer used.
845+ - Depend on python-curtin >= 0.1.0~bzr247.
846+
847+ -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 12 Jun 2015 14:16:47 -0400
848+
849+maas (1.8.0+bzr4001-0ubuntu1) trusty; urgency=medium
850+
851+ * New upstream release, 1.8.0.
852+
853+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 09 Jun 2015 20:57:42 -0400
854+
855+maas (1.8.0~rc3+bzr4000-0ubuntu1) trusty; urgency=medium
856+
857+ * New upstream release, 1.8.0 RC3 bzr4000.
858+
859+ [ Raphaël Badin ]
860+ * Remove unused dependencies: python-amqp and python-txamqp.
861+
862+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 04 Jun 2015 16:32:02 -0400
863+
864+maas (1.8.0~rc2+bzr3989-0ubuntu1) trusty; urgency=medium
865+
866+ * New upstream release, 1.8.0 RC2 bzr3983.
867+
868+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 02 Jun 2015 09:27:54 -0400
869+
870+maas (1.8.0~rc1+bzr3972-0ubuntu1) trusty; urgency=medium
871+
872+ * New upstream release, 1.8.0 RC1 bzr3972.
873+ * debian/copyright: Add copyright headers for ng-tags-input.js.
874+ * debian/control: Bump Standards-Version
875+
876+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 27 May 2015 20:16:40 -0400
877+
878+maas (1.8.0~beta8+bzr3951-0ubuntu1) trusty; urgency=medium
879+
880+ * New upstream release, 1.8.0 beta 8 bzr3951.
881+
882+ [ Raphaël Badin ]
883+ * debian/extras/99-maas-sudoers: Allow maas to check the status of
884+ maas-dhcpd and maas-dhcp6 and start these services (LP: #1457708).
885+
886+ [ Andres Rodriguez ]
887+ * debian/rules: Ensure maas-regiond-worker is not started in packaging.
888+
889+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 21 May 2015 19:18:22 -0400
890+
891+maas (1.8.0~beta7+bzr3926-0ubuntu1) trusty; urgency=medium
892+
893+ * New upstream release, 1.8.0 beta 7 bzr3926.
894+
895+ [ Andres Rodriguez ]
896+ * debian/{maas-cluster-controller,maas-common,
897+ maas-region-controller-min}.postinst: Cleaned up to correctly create
898+ log dir permissions (LP: #1457191)
899+
900+ [ Gavin Panella ]
901+ * Create maas-regiond workers for systemd.
902+
903+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 20 May 2015 17:03:13 -0400
904+
905+maas (1.8.0~beta6+bzr3891-0ubuntu1) trusty; urgency=medium
906+
907+ * New upstream release, 1.8.0 beta 6 bzr3904:
908+
909+ [ Gavin Panella ]
910+ * Drop the use of daemontools in favor of having upstart track
911+ thread processes:
912+ - d/maas-region-controller-min.maas-regiond.upstart: Drop use of
913+ daemontools; use maas-regiond-worker
914+ - d/maas-region-controller-min.maas-regiond-worker.upstart: Add.
915+ - d/control: Drop depends on daemontools.
916+
917+ [ Andres Rodriguez ]
918+ * debian/maas-common.{postinst,logrotate}: Create maas.log if non-existent
919+ and add log rotation, provided maas.log exists both in the Region
920+ and in the Cluster (LP: #1381603)
921+
922+ -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 09 May 2015 15:03:17 +0100
923+
924+maas (1.8.0~beta5+bzr3867-0ubuntu1) trusty; urgency=medium
925+
926+ * New upstream release, 1.8.0 Beta 5 bzr3867.
927+
928+ [ Andres Rodriguez ]
929+ * d/p/02-pserv.yaml: Fix config file (LP: #1449862)
930+
931+ [ Mike Pontillo ]
932+ * Run DNS reconfiguration if either 'forwarders' or 'dnssec-validation'
933+ keywords exist in named.conf.options (LP: #1384334)
934+
935+ -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 24 Apr 2015 18:55:47 -0400
936+
937+maas (1.8.0~beta4+bzr3844-0ubuntu1) trusty; urgency=medium
938+
939+ * New upstream release. 1.8.0 Beta 4 bzr2344
940+ * debian/maas-dhcpd.maas-dhcpd.service: Remove whitespace in unit that
941+ was making systemd crash (LP: #1446699)
942+ * debian/maas-proxy.maas-proxy.service: Fix proxy to correctly run
943+ pre-start script.
944+ * debian/maas-dns.postinst: Ensure permissions are fixed also on upgrade.
945+
946+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 21 Apr 2015 13:00:49 -0400
947+
948+maas (1.8.0~beta3+bzr3825-0ubuntu1) trusty; urgency=medium
949+
950+ * New upstream release. 1.8.0 Beta3 bzr3825 (LP: #1432666):
951+ - Fixx issues with concurrent DB access and the isolation level
952+ that made MAAS unusable in highload environments.
953+
954+ [ Gavin Panella ]
955+ * Run one maas-regiond per CPU core.
956+
957+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 16 Apr 2015 21:26:21 +0200
958+
959+maas (1.8.0~beta2+bzr3814-0ubuntu1) trusty; urgency=medium
960+
961+ * New upstream release. 1.8.0 Beta2 bzr3814.
962+
963+ [ Andres Rodriguez ]
964+ * Restart apache2 after the region is restarted on a install. (LP: #1438782)
965+
966+ [ Mike Pontillo ]
967+ * Stop maas-clusterd in prerm so that database purge succeeds (LP: #1044559)
968+
969+ -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 06 Apr 2015 11:00:00 -0400
970+
971+maas (1.8.0~beta1+bzr3777-0ubuntu1) trusty; urgency=medium
972+
973+ * New upstream release. 1.8.0 Beta1 bzr 3777.
974+
975+ [ Mike Pontillo ]
976+ * debian/extras/maas-region-admin: Fix Path setting.
977+ * debian/control: Properly depend on python-apt
978+
979+ [ Andres Rodriguez ]
980+ * debian/maas-dhcp.maas-dhcpd[6].service: Fix units to correctly run
981+ in vivid.
982+ * debian/maas-proxy.maas-proxy.service: Fix unit to use correct daemon.
983+
984+ -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 30 Mar 2015 19:17:47 -0400
985+
986+maas (1.8.0~alpha9+bzr3750-0ubuntu1) trusty; urgency=medium
987+
988+ * New upstream release. MAAS 1.9.0 Alpha 9 bzr3692:
989+ - fix bulk actions for isolation level changes.
990+ - fix commissioning related isolation level / transaction issues.
991+
992+ [ Andres Rodriguez ]
993+ * Make sure MAAS works with python-django16 in vivid.
994+
995+ [Gavin Panella]
996+ * debian/extras/99-maas-sudoers
997+ debian/maas-cluster-controller.install
998+ - Do not install maas-import-pxe-files; it is no longer used, and is
999+ not present in upstream.
1000+
1001+ -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 20 Mar 2015 20:27:02 -0400
1002+
1003+maas (1.8.0~alpha8+bzr3692-0ubuntu1) trusty; urgency=medium
1004+
1005+ * New upstream release, 1.8.0~alpha8 bzr 3692:
1006+ - Fix bulk actions to not fail due to transaction errors.
1007+
1008+ [ Steve Langasek ]
1009+ * Depend on pxelinux for pxelinux.0, not on syslinux-dev. (LP: #1433697)
1010+
1011+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Mar 2015 18:46:41 -0400
1012+
1013+maas (1.8.0~alpha7+bzr3664-0ubuntu1) trusty; urgency=medium
1014+
1015+ * New upstream release, 1.8.0~alpha7 bzr3664
1016+
1017+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 10 Mar 2015 16:36:40 -0400
1018+
1019+maas (1.8.0~alpha6+bzr3625-0ubuntu1) trusty; urgency=medium
1020+
1021+ * New upstream release, 1.8.0~alpha6 bzr3625:
1022+ - Add ability to select OS when we Deploy via a bulk action.
1023+
1024+ -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 06 Mar 2015 18:10:46 -0500
1025+
1026+maas (1.8.0~alpha5+bzr3609-0ubuntu1) trusty; urgency=medium
1027+
1028+ * New upstream release, 1.8.0~alpha5 bzr3601:
1029+ - Add new 'Devices' page in the WebUI.
1030+ - Add support for VMWare's vSphere.
1031+ * debian/control:
1032+ - Add Depends on python-pyvmomi; Drop Depends on python-pyscss.
1033+
1034+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 05 Mar 2015 11:31:14 -0500
1035+
1036+maas (1.8.0~alpha4+bzr3581-0ubuntu1) trusty; urgency=medium
1037+
1038+ * New upstream release, 1.8.0~alpha4 bzr3581:
1039+ - Adds new 'Add Hardware' button on the WebUI.
1040+ - Adds new 'Add Chassis' button on the WebUI.
1041+
1042+ -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 27 Feb 2015 19:50:00 -0500
1043+
1044+maas (1.8.0~alpha3+bzr3568-0ubuntu1) trusty; urgency=medium
1045+
1046+ * New upstream release, 1.8.0~alpha3 bzr3568
1047+ - Adds support for Microsoft OCP Chassis.
1048+ * debian/control:
1049+ - Add python-bson as a depends.
1050+ - Remove python-pyscss as a build dependency.
1051+
1052+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 24 Feb 2015 15:47:07 -0500
1053+
1054+maas (1.8.0~alpha2+bzr3545-0ubuntu1) trusty; urgency=medium
1055+
1056+ * New upstream release, 1.8.0~alpha2 bzr3545
1057+ * debian/control:
1058+ - Depends on libjs-angularjs (LP: #1423457)
1059+ - Depends on ubuntu-cloudimage-keyring for region (LP: #1424287)
1060+
1061+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 18 Feb 2015 16:31:02 -0500
1062+
1063+maas (1.8.0~alpha1+bzr3523-0ubuntu1) trusty; urgency=medium
1064+
1065+ * New upstream release, 1.8.0~alpha1 bzr3523
1066+
1067+ [ Blake Rouse ]
1068+ * debian/control: added python-pyscss as a build dependency.
1069+ * debian/rules: build scss files to maas-styles.css and remove scss files
1070+ from the static files directory.
1071+
1072+ [ Jeroen Vermeulen ]
1073+ * debian/maas-cluster-controller.postinst: configure MAAS_URL through new
1074+ "maas-provision configure-maas-url" sub-command instead of with "sed".
1075+
1076+ [ Andres Rodriguez ]
1077+ * Set 'maas' homedir to '/var/lib/maas' (LP: #1399016):
1078+ - debian/maas-common.postinst: Do not try to update 'maas'
1079+ home user dir on upgrade.
1080+ * debian/control: Tighten Dependency versioning of some packages.
1081+ * debian/maas-region-controller-min.preinst: Handle upgrades to remove
1082+ legacy files.
1083+ * debian/maas-region-controller{-min}.postinst: Simplify postinsts.
1084+ * Drop depends on python-celery, python-oops, python-oops-twisted,
1085+ python-oops-datedir-repo, python-oosp-wsgi
1086+ * Drop maas-cluster-http.conf; Drop depends on apache2 for
1087+ maas-cluster-controller.
1088+
1089+ [ Gavin Panella ]
1090+ * debian/maas-region-controller-min.maas-regiond.upstart
1091+ - Upstart script for the new maas-regiond.
1092+ - Use setuid/setgid to drop root privs before running script.
1093+ - Don't write a pid file.
1094+ * debian/maas-cluster-controller.maas-clusterd.upstart
1095+ - Start maas-clusterd; it's no longer called maas-pserv.
1096+ * debian/maas-region-controller-min.install
1097+ - Don't install wsgi.py; it's no longer used.
1098+ * debian/rules
1099+ - Install maas-regiond plugin.
1100+ * debian/maas-region-controller-min.apport
1101+ debian/maas-region-controller-min.logrotate
1102+ debian/maas-region-controller-min.postinst
1103+ debian/maas-region-controller.postinst
1104+ - Change maas-django.log to regiond.log.
1105+ * debian/maas-region-controller.postinst
1106+ - Restart maas-regiond after installation.
1107+ - a2enmod rewrite module (LP: #1236544)
1108+ * debian/maas-region-controller.postinst
1109+ - Restart maas-regiond after installation.
1110+ * debian/control
1111+ debian/maas-region-controller-min.postinst
1112+ debian/maas-region-controller.postinst
1113+ - mod_wsgi is no longer used.
1114+ * debian/maas-region-controller-min.logrotate
1115+ - No longer used; maas-regiond uses rotatelogs.
1116+ - a2enmod rewrite module (LP: #1236544)
1117+ * debian/patches/01-fix-database-settings.patch
1118+ - Move STATIC_ROOT setting upstream.
1119+ - Simplify database configuration hunk.
1120+ * debian/maas-cluster-controller.logrotate
1121+ debian/maas-region-controller.logrotate
1122+ - Use copytruncate; even though it's sub-optimal, this is currently
1123+ the best way to integrate logrotate with twistd.
1124+ - Limit the size of the logs to 50MB, but don't rotate unless
1125+ they're more than 10MB.
1126+ - Drop privileges and run as maas/maas.
1127+ * debian/maas-region-controller-min.maas-regiond.upstart
1128+ debian/maas-cluster-controller.maas-clusterd.upstart
1129+ - Redirect stdout and stderr from twistd directly to the daemon's
1130+ respective log file.
1131+ * debian/maas-region-controller-min.apport
1132+ - pserv.log has been renamed to clusterd.log.
1133+
1134+ -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 14 Nov 2014 09:04:29 -0500
1135+
1136+maas (1.7.0+bzr3299-0ubuntu1) utopic; urgency=medium
1137+
1138+ * New upstream release, 1.7.0.
1139+
1140+ -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 14 Nov 2014 08:38:39 -0500
1141+
1142+maas (1.7.0~rc3+bzr3299-0ubuntu1) utopic; urgency=medium
1143+
1144+ * New upstream release, RC3 bzr 3299
1145+ - Fix dashboard tooltip messages which had stopped being displayed
1146+ (LP: #1390434)
1147+
1148+ -- Julian Edwards <julian.edwards@canonical.com> Tue, 11 Nov 2014 12:23:07 +1000
1149+
1150+maas (1.7.0~rc2+bzr3297-0ubuntu1) utopic; urgency=medium
1151+
1152+ * New upstream release, RC2 bzr 3297
1153+ - Allow marking a node in the DISK_ERASING state as broken (LP: #1388919)
1154+ - Prevent concurrent allocations of static IP addresses from returning
1155+ the same clashing address. (LP: #1387262)
1156+
1157+ [ Andres Rodriguez ]
1158+ * debian/maas-cluster-controller.postinst: Make sure that cluster sets
1159+ the correct permissions for proxy log dir if running on the same
1160+ system. (LP: #1377964)
1161+
1162+ -- Julian Edwards <julian.edwards@canonical.com> Fri, 07 Nov 2014 09:30:52 +1000
1163+
1164+maas (1.7.0~rc1+bzr3295-0ubuntu1) trusty; urgency=medium
1165+
1166+ * New Upstream Release, RC1 bzr 3295
1167+ - If using MSCM (Moonshot Chassis Manager) on a M300, do not overwrite
1168+ power parameters (LP: #1382075)
1169+ - Do not write DNS hostmaps if its PXE Mac is not on a managed cluster
1170+ interface. (LP: #1382108)
1171+ - Show os field in boot source selections API. (LP: #1384383)
1172+ - Add documentation for new Import Images features (LP: #1384010)
1173+ - Allow releasing if Failed to Disk Wipe or Release (LP: #1384821)
1174+ - Handle missing subarch when creating a node via RPC for
1175+ probe-and-enlist methods (LP: #1384778)
1176+ - Update default waiting policy for power actions to increase time of
1177+ wait to handle different type of BMC's (LP: #1384758)
1178+ - Use HTTP_PROXY to download images if configured (LP: #1384464)
1179+ - Return 503 response for PowerActionAlreadyInProgress and add a
1180+ 'Retry-after' Header. (LP: #1384001)
1181+ - Stop ImportResourcesService from crashing when an import fails
1182+ (LP: #1386722)
1183+ - Convert TFTP request paths that contain backslashes to forward
1184+ slashes. (LP: #1387191)
1185+ - Do not try to delete synced boot images if not new ones are present
1186+ to handle a weird race. (LP: #1387133)
1187+ - Fix storage unit shown on the node edit page (LP: #1387431)
1188+ - Use CompressedAmpList in UpdateLeases to now parse
1189+ ~3500 leases (LP: #1387515, LP: #1387515)
1190+ - Updated XPath expression for discovering storage capacity from new
1191+ lshw changes. (LP: #1387380)
1192+ - Add sub status field on API.
1193+ - Generate DNS mappings for the Dynamic IP range. Hostname generation
1194+ is limited to /16. (LP: #1382190)
1195+ - Use configured HTTP Proxy to download boot images (LP: #1384464)
1196+ * debian/extras/maas-proxy-common.sh: Ensure that permissions are correct
1197+ before starting maas-proxy. (LP: #1382266)
1198+
1199+ -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 27 Oct 2014 21:53:43 -0400
1200+
1201+maas (1.7.0~beta8+bzr3272-0ubuntu1) utopic; urgency=medium
1202+
1203+ * New Upstream Release, Beta 8 bzr 3272.
1204+ - Maintain backward compatibility with status codes to not break
1205+ client MAAS API users. (LP: #1383609)
1206+ - Allow users to disable DHCP NIC scanning during commissioning otherwise
1207+ this can lead machines not being able to commission (LP: #1383384)
1208+ - Ensure that MAAS can correctly download, and install HWE Kernels, and
1209+ not crash in the process. (LP: #1357532, LP: #1382281)
1210+ - Add a lock to ensure we don't give the same 2 systems to two different
1211+ users when acquiring a machine. (LP: #1382575)
1212+
1213+ [ Michael McCracken ]
1214+ * debian/maas-dns.postrm: ensure named.conf is cleaned of maas
1215+ includes (LP: #1346538)
1216+
1217+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 22 Oct 2014 12:55:08 -0400
1218+
1219+maas (1.7.0~beta7+bzr3266-0ubuntu1) utopic; urgency=medium
1220+
1221+ * New Upstream Snapshot, Beta 7 bzr3266
1222+
1223+ [ Jeroen Vermeulen ]
1224+ * debian/extras/99-maas-sudoers
1225+ debian/maas-dhcp.postinst
1226+ debian/rules
1227+ - Add second DHCP server instance for IPv6.
1228+ * debian/maas-region-controller-min.install
1229+ debian/maas-region-controller-min.lintian-overrides
1230+ - Install deployment user-data: maas_configure_interfaces.py script.
1231+ * debian/maas-cluster-controller.links
1232+ debian/maas-cluster-controller.install
1233+ debian/maas-cluster-controller.postinst
1234+ - Reflect Celery removal changes made in trunk r3067.
1235+ - Don't install celeryconfig_cluster.py any longer.
1236+ - Don't install maas_local_celeryconfig_cluster.py any longer.
1237+ - Don't symlink maas_local_celeryconfig_cluster.py from /etc to /usr.
1238+ - Don't insert UUID into maas_local_celeryconfig_cluster.py.
1239+
1240+ [ Andres Rodriguez ]
1241+ * debian/maas-region-controller-min.postrm: Cleanup lefover files.
1242+ * debian/maas-dhcp.postrm: Clean leftover configs.
1243+ * Provide new maas-proxy package that replaces the usage of
1244+ squid-deb-proxy:
1245+ - debian/control: New maas-proxy package that replaces the usage
1246+ of squid-deb-proxy; Drop depends on squid-deb-proxy.
1247+ - Add upstrart job.
1248+ - Ensure squid3 is stopped as maas-proxy uses a caching proxy.
1249+ * Remove Celery references to cluster controller:
1250+ - Rename upstart job from maas-pserv to maas-cluster; rename
1251+ maas-cluster-celery to maas-cluster-register. Ensure services
1252+ are stopped on upgrade.
1253+ - debian/maintscript: Cleanup config files.
1254+ - Remove all references to the MAAS celery daemon and config
1255+ files as we don't use it like that anymore
1256+ * Move some entries in debian/maintscript to
1257+ debian/maas-cluster-controller.maintscript
1258+ * Remove usage of txlongpoll and rabbitmq-server. Handle upgrades
1259+ to ensure these are removed correctly.
1260+
1261+ [ Jason Hobbs ]
1262+ * debian/maas-region-controller-min.install: Install
1263+ maas-generate-winrm-cert script.
1264+
1265+ [ Raphaël Badin ]
1266+ * debian/extras/maas-region-admin: Bypass django-admin as it prints
1267+ spurious messages to stdout (LP: #1365130).
1268+
1269+ [Louis Bouchard]
1270+ * debian/maas-cluster-controller.postinst:
1271+ - Exclude /var/log/maas/rsyslog when changing ownership
1272+ (LP: #1346703)
1273+
1274+ [Gavin Panella]
1275+ * debian/maas-cluster-controller.maas-clusterd.upstart:
1276+ - Don't start-up the cluster controller unless a shared-secret has
1277+ been installed.
1278+ * debian/maas-cluster-controller.maas-cluster-register.upstart: Drop.
1279+
1280+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 21 Aug 2014 19:36:30 -0400
1281+
1282+maas (1.7.0~beta1+bzr2781-0ubuntu1) utopic; urgency=medium
1283+
1284+ * New upstream release, 1.7.0 Beta 1
1285+
1286+ [Diogo Matsubara]
1287+ * debian/control:
1288+ - maas-cluster-controller depends on syslinux-dev |
1289+ syslinux-common (LP: #1328659)
1290+ - python-maas-provisioningserver depends on
1291+ python-paramiko (LP: #1334401)
1292+
1293+ [Jeroen Vermeulen]
1294+ * debian/extras/99-maas-sudoers:
1295+ - Let maas user import, including sudo tgt-admin and sudo uec2roottar.
1296+ * debian/maas-cluster-controller.install:
1297+ - Stop installing obsolete file bootresources.yaml.
1298+
1299+ [ Raphaël Badin ]
1300+ * debian/control:
1301+ - maas-cluster-controller depends on python-pexpect
1302+ * debian/extras/99-maas-sudoers:
1303+ - Add rule 'maas-dhcp-server stop' job.
1304+
1305+ [ Greg Lutostanski ]
1306+ * debian/control:
1307+ - maas-cluster-controller depends on grub-common
1308+ - maas-provisioningserver not maas-cluster-controller depends on
1309+ python-pexpect (LP: #1352273)
1310+ - maas-provisioningserver not maas-cluster-controller depends on
1311+ python-seamicroclient (LP: #1332532)
1312+
1313+ [ Gavin Panella ]
1314+ * debian/maas-cluster-controller.postinst
1315+ - Allow maas-pserv to bind to all IPv6 addresses too.
1316+
1317+ [ Julian Edwards ]
1318+ * debian/maas-region-controller-min.apport
1319+ debian/maas-region-controller-min.logrotate
1320+ debian/maas-region-controller-min.postinst
1321+ debian/maas-region-controller.postinst
1322+ - Change the log file name maas.log to maas-django.log
1323+ * debian/maas-cluster-controller.postinst
1324+ debian/maas-common.install
1325+ debian/maas-region-controller-min.postinst
1326+ debian/maas-region-controller.postinst
1327+ - Install /var/log/maas/maas.log as a syslog file.
1328+ - Ensure logging is set up for upgrades
1329+
1330+ [ Graham Binns ]
1331+ * debian/maas-region-controller.postinst:
1332+ - Add symlinks for squid3, squid-deb-proxy and apache log directories to
1333+ /var/log/maas.
1334+
1335+ [ Andres Rodriguez ]
1336+ * debian/maas-region-controller.postinst: Force symlink creation
1337+ for external logs.
1338+ * debian/maas-region-controller.postinst: Do not change celery's
1339+ rabbitmq password on upgrade that to not lock remote
1340+ Cluster Controllers if upgrading from 1.5+. (LP: #1300507)
1341+
1342+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 21 Aug 2014 14:05:40 -0400
1343+
1344+maas (1.5+bzr2252-0ubuntu1) trusty; urgency=medium
1345+
1346+ * New upstream release
1347+ - Add support to install Third Party Drivers. In order for this to be
1348+ used the user will have to go to the Settings page to enable the
1349+ installation of these drivers. (LP: #1305839)
1350+ - Use release images instead of daily. (LP: #1306701)
1351+ - Quote interface name in dhcpd.template, otherwise DHCP server fails
1352+ to start. (LP: #1306335)
1353+ - Fix IntegrityError, when multiple processes are trying to register
1354+ the same component. (LP: #1307415)
1355+ - Add missing armhf commissioning template (LP: #1307780)
1356+ * debian/maas-region-controller-min.install: Install drivers.yaml.
1357+ * debian/maas-region-controller.postinst: No longer show the
1358+ installation note by default. (LP: #1284652)
1359+
1360+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 09 Apr 2014 19:02:00 -0400
1361+
1362+maas (1.5+bzr2236-0ubuntu1) trusty; urgency=medium
1363+
1364+ * New upstream bugfix release.
1365+ - Fix simplestreams path to use the new data source path. (LP: #1305118)
1366+ - Fix commissioning_distro_series validation failure. (LP: #1304408)
1367+ - Fix DB migration 0072_remove_ipmi_autodetec. (LP: #1302156)
1368+ - Update documentation.
1369+ * debian/maas-region-controller-min.maas-region-celery.upstart,
1370+ debian/maas-region-controller-min.maas-txlongpoll.upstart: Fix ISO
1371+ install by making sure rabbitmq user is really created if it does not
1372+ exist (LP: #1298559)
1373+
1374+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 09 Apr 2014 18:36:55 -0400
1375+
1376+maas (1.5+bzr2230-0ubuntu1) trusty; urgency=medium
1377+
1378+ * New upstream bugfix release:
1379+ - Fix Cluster Controller to handle deprecated config items gracefull.
1380+ Otherwise it fails on upgrades. (LP: #1302772)
1381+ - Fix documentation generation and referencing. (LP: #1302956)
1382+ - Ensure we PXE boot when we turn on SM15K systems. (LP: #1303915)
1383+
1384+ -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 07 Apr 2014 10:26:51 -0400
1385+
1386+maas (1.5+bzr2227-0ubuntu1) trusty; urgency=medium
1387+
1388+ * New upstream bugfix release:
1389+ - Fix catching exceptions raised by
1390+ twisted.conch.ssh.keys.Key.fromString (LP: #1298788)
1391+ - Fix validationg in default NodeGroupInterface.broadcast_ip making it
1392+ optional. (LP: #1299374)
1393+ - Drop install-pxe-bootloader as it conflicts with newer import script.
1394+ - Remove references to old import script.
1395+ - Fix changes that cause overwriting of existing entries.
1396+ - Fix inappropriate ValidationError when defining networks with nested
1397+ (but non-identical) address ranges. (LP: #1299114)
1398+ - Fix issue where if a node does not provide an architecture type on dhcp
1399+ request, or no other boot method is available for that architecture,
1400+ the node still uses pxelinux.0 to boot. (LP: #1300285)
1401+ - Take an advisory lock to prevent concurrent creation of the
1402+ eventloops table. (LP: #1300363)
1403+ - Remove the cloud_images_archive setting, as it conflicts with new
1404+ import script. (LP: #1300587)
1405+ - Add a 'logout confirmation' page. Using this, the logout action is
1406+ protected against CSRF attacks because it uses a POST request, in
1407+ conjunction with Django's CSRF protection feature. (LP: #1298790)
1408+ - Fix cluster listings when dealing with large number of clusters by
1409+ paginating it. (LP: #1301242)
1410+ - Change list_boot_images() so that it can cope with a missing boot
1411+ images directory: this happens if the reporting task runs before the
1412+ images have been imported. (LP: #213984)
1413+ - Fix internal server error on fast path installer. (LP: #1293676)
1414+ - Fix uploading files using maas-cli. (LP: #1187826)
1415+ - Fix SM15k Invalid Power Control and Fix enlisting machines with
1416+ 2.0 api. (LP: #1302818, LP: #1302819)
1417+
1418+ [ Andres Rodriguez ]
1419+ * debian/maas-cluster-controller.install: Install UEFI templates
1420+ * debian/maas-cluster-controller.dirs: Create 'boot-resources' dir.
1421+
1422+ [ Jason Hobbs ]
1423+ * debian/extras/99-maas: Allow access to keyserver.ubuntu.com via
1424+ squid-deb-proxy.
1425+
1426+ [Jeroen Vermeulen]
1427+ * debian/maas-cluster-controller.postinst:
1428+ - Make the tgt config link point to the new boot-resources dir.
1429+ * debian/maas-region-controller-min.dirs:
1430+ - Don't create /var/lib/maas/tftp.
1431+
1432+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 03 Apr 2014 13:45:02 -0400
1433+
1434+maas (1.5+bzr2204-0ubuntu1) trusty; urgency=low
1435+
1436+ * New upstream release (LP: #1281881)
1437+
1438+ [ Andres Rodriguez ]
1439+ * debian/maas-region-controller-min.templates: Set installation note to false
1440+ by default.
1441+ * Check rabbitmqctl is present before running commands:
1442+ - debian/maas-region-controller-min.maas-region-celery.upstart.
1443+ - debian/maas-region-controller-min.maas-txlongpoll.upstart.
1444+ * make sure maas_longpoll rabbitmq user is created/with correct password on
1445+ a package reconfigure.
1446+ * debian/maas-dns.postinst: Fix upgrade setup of named.conf.options.
1447+ * debian/maas-cluster-controller.install: Install UEFI templates (LP: #1299143)
1448+
1449+ [ Julian Edwards ]
1450+ * debian/extas/maas: Echo warning to stderr so json stdout is not polluted
1451+ * debian/maas-cluster-controller.postinst: Run upgrade-cluster on each
1452+ upgrade
1453+ * debian/maas-dns.postinst: Call edit_named_options to add a line in
1454+ /etc/bind/named.conf.options that includes the
1455+ /etc/named/maas/named.conf.options.inside.maas file.
1456+ * debian/control:
1457+ - maas-dns depends on python-iscpy
1458+ - maas-cluster-controller depends on python-seamicroclient
1459+ * debian/maas-cluster-controller.install: Install bootresources.yaml
1460+
1461+ [ Dustin Kirkland ]
1462+ * debian/control: LP: #1297097
1463+ - clean up package descriptions, modernize, and more clearly/simply
1464+ explain what each package does
1465+ - drop "Ubuntu" in front of MAAS, clean up command line/API description
1466+
1467+ -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 28 Mar 2014 10:43:53 -0400
1468+
1469+maas (1.5+bzr1977-0ubuntu1) trusty; urgency=low
1470+
1471+ * New upstream bugfix release.
1472+ - setup.py: Install missing shell snippet
1473+
1474+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 19 Feb 2014 16:31:45 -0500
1475+
1476+maas (1.5+bzr1976-0ubuntu1) trusty; urgency=low
1477+
1478+ * New upstream release.
1479+ * debian/maas-cluster-controller.postinst: Make sure upgrades handle
1480+ authbind upgrades too.
1481+
1482+ -- Andres Rodriguez <andreserl@ubuntu.com> Sun, 16 Feb 2014 22:56:36 -0500
1483+
1484+maas (1.5+bzr1951-0ubuntu1) trusty; urgency=low
1485+
1486+ * New upstream release
1487+ * debian/maas-cluster-controller.postinst: Also authbind port 69.
1488+ * debian/maas-cluster-controller.maas-pserv.upstart: Export MAAS_URL.
1489+
1490+ -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 15 Feb 2014 16:16:38 -0500
1491+
1492+maas (1.5+bzr1948-0ubuntu2) trusty; urgency=low
1493+
1494+ * debian/maas-cluster-controller.postinst: Make sure generator on
1495+ pserv.yaml is updated on upgrade or reconfigure. (LP: #1273197)
1496+ * debian/maas-cluster-controller.maas-pserv.upstart: Make sure maas-pserv
1497+ is started with authbind.
1498+
1499+ -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 15 Feb 2014 13:55:20 -0500
1500+
1501+maas (1.5+bzr1948-0ubuntu1) trusty; urgency=low
1502+
1503+ * New upstream release.
1504+
1505+ [ Graham Binns ]
1506+ * debian/control: Depends on python-jsonschema.
1507+
1508+ [ Andres Rodriguez ]
1509+ * debian/maas-region-controller-min.posinst: Make txlongpoll.yaml only
1510+ readable by the app and not world readeable.
1511+ * debian/patches/02-pserv-config.patch: Refreshed.
1512+
1513+ [ Julian Edwards ]
1514+ * debian/extras/maas-cli renamed to debian/extras/maas, and introduce
1515+ a deprecation warning in favour of using maas over maas-cli.
1516+ * debian/extras/maas renamed to debian/extras/maas-region-admin
1517+ * debian/maas-cli.install: install debian/extras/maas
1518+ * debian/maas-dns.postinst: Invoke maas-region-admin instead of maas
1519+ * debian/maas-region-controller-min.install: install maas-region-admin
1520+ instead of maas
1521+ * debian/maas-region-controller.postinst: Invoke maas-region-admin instead
1522+ of maas
1523+ * debian/maas-cli.links: Link from maas to maas-cli for backward compat.
1524+
1525+ [ Seth Arnold ]
1526+ * debian/maas-region-controller-min.postinst: Make sure txlongpoll.yaml
1527+ gets correct permissions on upgrade (LP: #1254034)
1528+
1529+ -- Andres Rodriguez <andreserl@ubuntu.com> Sat, 15 Feb 2014 12:08:23 -0500
1530+
1531+maas (1.5+bzr1909-0ubuntu1) trusty; urgency=low
1532+
1533+ * New upstream release.
1534+
1535+ [ Dustin Kirkland ]
1536+ * debian/maas-region-controller-min.postinst: Fix typo in sed. Remove
1537+ double quotes. (LP: #1274448)
1538+
1539+ [ Andres Rodriguez ]
1540+ * debian/control: Add depends on python-crochet.
1541+ * Get rid of dfsg on the versioning as we no longer strip any code from
1542+ the orig tarball.
1543+ - debian/rules: Do not strip any files out of the tarball.
1544+ * debian/patches/*: Refreshed.
1545+
1546+ -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 31 Jan 2014 09:38:51 -0500
1547+
1548+maas (1.4+bzr1853+dfsg-0ubuntu1) trusty; urgency=low
1549+
1550+ * New upstream release
1551+
1552+ -- Dustin Kirkland <kirkland@ubuntu.com> Tue, 28 Jan 2014 08:41:41 +0000
1553+
1554+maas (1.4+bzr1849+dfsg-0ubuntu1) trusty; urgency=low
1555+
1556+ * New upstream release.
1557+
1558+ [ Gavin Panella ]
1559+ * debian/control: Remove all dependencies on Avahi and DBUS.
1560+
1561+ -- Julian Edwards <julian.edwards@canonical.com> Tue, 28 Jan 2014 17:12:22 +1000
1562+
1563+maas (1.4+bzr1820+dfsg-0ubuntu1) trusty; urgency=low
1564+
1565+ * New upstream Release.
1566+
1567+ [ Jeroen Vermeulen ]
1568+ * Move maas-probe-dhcp from maas-dhcp to python-maas-provisioningserver.
1569+
1570+ [ Andres Rodriguez ]
1571+ * debian/maas-region-controller.postinst: Make sure maas-txlongpoll and
1572+ maas-region-celery get restarted.
1573+ * debian/control:
1574+ - python-maas-provisioningserver Breaks/Replaces for maas-dhcp due to
1575+ moving files around packages.
1576+ - Suggests ipmitool, libvirt-bin, amtterm.
1577+
1578+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 15 Jan 2014 00:24:58 -0500
1579+
1580+maas (1.4+bzr1817+dfsg-0ubuntu1) trusty; urgency=low
1581+
1582+ * New upstream release
1583+
1584+ [ Andres Rodriguez ]
1585+ * debian/maas-dns.postinst: Drop write_dns_config as this is run by
1586+ celery jobs.
1587+ * debian/maas-region-controller.templates: Rename template to
1588+ maas-region-controller-min.templates
1589+ * debian/control: Depends on python-amqp; Conflicts on python-librabbitmq.
1590+
1591+ [ Julian Edwards ]
1592+ * New maas-probe-dhcp script to detect DHCP servers
1593+ - debian/extras/maas-probe-dhcp: New script
1594+ - debian/maas-dhcp.install: Install new maas-probe-dhcp script
1595+ - maas-dhcp.lintian-overrides: New maas-probe-dhcp script has no manpage
1596+
1597+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 15 Jan 2014 00:23:44 -0500
1598+
1599+maas (1.4+bzr1789+dfsg-0ubuntu1) trusty; urgency=low
1600+
1601+ * New upstream release
1602+
1603+ [ Jeroen Vermeulen ]
1604+ * Keep legacy import_ephemerals config for now.
1605+
1606+ [ Andres Rodriguez ]
1607+ * debian/maas-region-controller.postinst: Allo default-maas-url debconf
1608+ option to be preseeded.
1609+ * Make use of authbind to allow maas-cluster-celery bind port as non-root.
1610+ - debian/control: Depends on authbind for maas-cluster-controller.
1611+ - debian/maas-cluster-controller.{postinst,postrm}: Handle creation
1612+ and removal of required authbind file.
1613+ * Split maas-region-controller into maas-region-controller-min.
1614+ - debian/maas-region-controller-min.{postinst,postrm,prerm}: Handle
1615+ basic configuration for rsyslogd, squid-deb-proxy, and maas-url.
1616+ - debian/control: Depends on maas-region-controller-min, postgresql
1617+ and rabbitmq-server for maas-region-controller.
1618+
1619+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 10 Oct 2013 17:07:51 -0400
1620+
1621+maas (1.4+bzr1693+dfsg-0ubuntu1) saucy; urgency=low
1622+
1623+ * New Upstream Release (LP: #1218526)
1624+ - This new upstream release contains fixes and improvements of the
1625+ features approved by the FFe above.
1626+ - Fixes commissioning failure on Saucy with 'Failed Test' (LP: #1237364)
1627+ - Fixes access of static images over http (LP: #1236544)
1628+ * d/maas-cluster-controller.postinst: a2enmod version module (LP: #1236544)
1629+ * d/control: Bump depends on python-django to 1.4. (LP: #1236572)
1630+ * d/maas-dhcp.postinst: Fail gracefully if apparmor_parser fails, allowing
1631+ to install maas-dhcp during an ISO install. (LP: #1236786)
1632+
1633+ -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 04 Oct 2013 12:33:05 -0400
1634+
1635+maas (1.4+bzr1656+dfsg-0ubuntu2) saucy; urgency=low
1636+
1637+ * debian/control: Recommends on maas-dns instead of Depends for region
1638+ because maas-dns needs the region installed first.
1639+
1640+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 03 Oct 2013 10:36:20 -0400
1641+
1642+maas (1.4+bzr1656+dfsg-0ubuntu1) saucy; urgency=low
1643+
1644+ [ Andres Rodriguez ]
1645+ * New upstream bugfix release.
1646+ - Respect filters for ephemerals_script.py.
1647+ * debian/control: Depends on ubuntu-cloudimage-keyring instead of
1648+ ubuntu-cloud-keyring; depends on python-distro-info.
1649+ * debian/control: Remove suggests on maas-dhcp and maas-dns as they are
1650+ now dependencies.
1651+
1652+ [ Scott Moser ]
1653+ * debian/control: Bump depends on isc-dhcp-server to 4.2.4
1654+ * debian/maas-dhcp.maas-dhcp-server.upstart: Change ownership of leases
1655+ file to root:root, and run the daemon as dhcpd:dhcpd.
1656+
1657+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 01 Oct 2013 15:26:34 -0400
1658+
1659+maas (1.4+bzr1655+dfsg-0ubuntu1) saucy; urgency=low
1660+
1661+ * New Upstream release. (LP: #1218526)
1662+ * debian/control:
1663+ - Depends on python-djorm-ext-pgarray, python-curtin,
1664+ python-simplestreams, ubuntu-cloud-keyring.
1665+ - Depends on maas-dns, maas-dhcp to get them seeded and
1666+ into main (LP: #1227353)
1667+
1668+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 28 Aug 2013 11:17:44 -0400
1669+
1670+maas (1.4+bzr1551+dfsg-0ubuntu1) saucy; urgency=low
1671+
1672+ * New upstream release
1673+
1674+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Aug 2013 16:20:41 -0400
1675+
1676+maas (1.4+bzr1548+dfsg-0ubuntu1) saucy; urgency=low
1677+
1678+ * New upstream release
1679+
1680+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 18 Jul 2013 10:15:10 -0400
1681+
1682+maas (1.4+bzr1539+dfsg-0ubuntu1) saucy; urgency=low
1683+
1684+ * New upstream release
1685+ * Symlink apache2 config into /etc/apache2/conf-enabled/ instead of
1686+ /etc/apache2/conf.d as apache2.4 no longer supports the latter.
1687+ - debian/maas-cluster-controller.{postinst,postrm}
1688+ - debian/maas-region-controller.{postinst,postrm}
1689+ * debian/control: Bump Standards-Version to 3.9.4.
1690+ * debian/maas-cluster-controller.lintian-overrides: Remove unneeded
1691+ override and add a new one.
1692+ * debian/maas-region-controller.lintian-overrides: Add extra overrides.
1693+
1694+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 03 Jul 2013 17:11:02 -0400
1695+
1696+maas (1.4+bzr1538+dfsg-0ubuntu1) saucy; urgency=low
1697+
1698+ * New upstream release
1699+ * debian/patches/04-setup-dont-user-list-snippets.patch: Drop. Merged
1700+ Upstream.
1701+
1702+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 13 Jun 2013 20:06:35 -0400
1703+
1704+maas (1.4+bzr1527+dfsg-0ubuntu1) saucy; urgency=low
1705+
1706+ * debian/patches/04-setup-dont-user-list-snippets.patch: Drop importing
1707+ maasserver modules to list snippets in favor to using glob. Otherwise
1708+ we would have to add various non necessary Build-Dependencies.
1709+
1710+ [ Jeroen Vermeulen ]
1711+ * Install templates into /etc/maas/templates/.
1712+
1713+ -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 03 Jun 2013 17:59:31 -0400
1714+
1715+maas (1.4+bzr1505+dfsg-0ubuntu1) saucy; urgency=low
1716+
1717+ * New upstream release
1718+
1719+ [ Steve Langasek ]
1720+ * Add missing dependency on iproute to maas-region-controller, for use of
1721+ /sbin/ip in postinst.
1722+
1723+ [ Julian Edwards ]
1724+ * debian/maas-dhcp.maas-dhcp-server.upstart:
1725+ - Detect 12.04 as the host OS and install with correct permissions. This
1726+ allows the same packaging to be used in the 12.04 backport.
1727+
1728+ [ Andres Rodriguez ]
1729+ * Update packaging to support FPI:
1730+ - debian/control: Depends on apache2 for maas-cluster-controller.
1731+ - debian/maas-cluster-controller.install: Install http config file.
1732+ - debian/maas-cluster-controller.{postinst,postrm}: Handle symlink creation
1733+ and deletion.
1734+ * debian/maas-region-controller.install: Install preseeds in
1735+ etc/maas/preseeds. (LP: #1073463)
1736+
1737+ [ Jeroen Vermeulen ]
1738+ * In the source tree, /etc/maas/pserv.yaml has moved from etc/ to etc/maas/.
1739+ * Install templates into /etc/maas/templates/.
1740+
1741+ -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 03 Jun 2013 16:53:14 -0400
1742+
1743+maas (1.3+bzr1455+dfsg-0ubuntu1) raring; urgency=low
1744+
1745+ * New upstream bugfix release.
1746+ - Fixes and returns the 'resource_url' with the 'canonical' url for
1747+ a file that is fetched using the API (LP: #1154142)
1748+
1749+ [ Andres Rodriguez ]
1750+ * debian/control:
1751+ - Change Conflicts/Replaces for Breaks/Replaces.
1752+ - Conflicts on tftpd-hpa and dnsmasq.
1753+ - Do not pre-depends, but Depends on ${misc:Depends} for 'maas'.
1754+
1755+ [ Steve Langasek ]
1756+ * postinst scripts are never called with 'reconfigure' as the script
1757+ argument. Remove references to this (mythical) invocation.
1758+ * always call 'set -e' from maintainer scripts instead of passing 'sh -e'
1759+ as the interpreter, so that scripts will behave correctly when run via
1760+ 'sh -x'.
1761+ * invoke-rc.d is never allowed to not exist - simplify scripts (and make
1762+ them better policy-compliant) by invoking unconditionally. (The only
1763+ possible exception is in the postrm, where it's *theoretically* possible
1764+ for invoke-rc.d to be missing if the user has completely stripped
1765+ down their system; that's a fairly unreasonable corner case, but we
1766+ might as well be correct if it ever happens.)
1767+ * db_get+db_set is a no-op; don't call db_set to push back a value we just
1768+ got from db_get.
1769+ * Omit superfluous calls to 'exit 0' at the end of each script.
1770+ * Remove maas-cluster-controller prerm script, which called debconf for no
1771+ reason.
1772+ * Don't invoke debconf in the postrm script either, debhelper already does
1773+ this for us.
1774+ * Other miscellaneous maintainer script fixes
1775+ * debian/maas-common.postinst: call adduser and addgroup unconditionally;
1776+ the tools are already designed to DTRT, we don't need to check for the
1777+ user/group existence before calling them nor should we worry about
1778+ calling them only once on first install.
1779+ * debian/maas-common.postrm: delete the maas group, not just the user,
1780+ as the comment in the code implies we should do.
1781+
1782+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 19 Mar 2013 15:38:22 -0400
1783+
1784+maas (1.3+bzr1452+dfsg-0ubuntu1) raring; urgency=low
1785+
1786+ * New upstream release.
1787+ - MAAS file storage mechanism is shifting from a single shared
1788+ namespace to a per-user namespace. Operators of the majority
1789+ of MAAS systems will not notice any change. However, operators
1790+ of the most complex installations may find that a new
1791+ "shared-environment" user is created, and that some resources
1792+ are reassigned to it, such as API credentials and SSH public
1793+ keys. This provides a transitional environment that mimics the
1794+ behaviour of a shared namespace.
1795+
1796+ [ Raphaël Badin ]
1797+ * debian/control: maas-region-controller depends on bind9utils.
1798+ (LP: #1103195)
1799+ * debian/maas-dns.postinst: Call write_dns_config.
1800+ (LP: #1085865).
1801+ * debian/maas-cluster-controller.postinst: Fix the name of the config
1802+ file (/etc/maas/pserv.yaml and not /etc/maas/pserv.conf)
1803+ (LP: #1083542).
1804+ * debian/extras/99-maas-sudoers: Add 'SETENV:' to sudo rule
1805+ to allow preserving the environment when running
1806+ /usr/sbin/maas-import-pxe-files via sudo.
1807+ * debian/maas-dns.postinst: fix permissions and group ownership of
1808+ file /etc/bind/maas/named.conf.rndc.maas. (LP: #1066935)
1809+ * debian/control: Remove the dependency of maas-cluster-controller
1810+ on rabbitmq-server. (LP: #1072744)
1811+ * debian/extras/99-maas-sudoers: Add sudo rule for script
1812+ /usr/sbin/maas-import-pxe-files.
1813+ * debian/maas-cluster-controller.install: Removed commissioning-user-data
1814+ script.
1815+
1816+ [ Julian Edwards ]
1817+ * debian/maas-region-controller.install: Remove installation of maas-gc; it
1818+ is no longer required as upstream no longer stores files in the filesystem.
1819+ (LP: #1069734)
1820+ * debian/maas-cluster-controller.postinst: Ensure that /etc/maas/pserv.yaml
1821+ is updated when reconfiguring. (LP: #1081212)
1822+
1823+ [ Jeroen Vermeulen ]
1824+ * debian/maas-cluster-controller.install: Install import scripts.
1825+ * debian/maas-cluster-controller.postinst: Configure tgt (the iSCSI server)
1826+ so the import script can install files to it.
1827+ * debian/maas-cluster-controller.postrm: Clean up tgt config.
1828+ * debian/maas-region-controller.install: Move import scripts out to the
1829+ cluster controller, and drop the maas-import-isos compatibility script.
1830+ * debian/maas-region-controller.postinst: Remove tgt config.
1831+ * debian/maas-region-controller.postrm: Remove tgt config cleanup.
1832+ * Bump code revision to include latest user_data.template fixes.
1833+
1834+ [ Gavin Panella ]
1835+ * debian/extras/99-maas: squashfs image download is no longer needed.
1836+ * debian/maas-cluster-controller.install: maas-import-squashfs and its
1837+ configuration file are no longer part of upstream.
1838+ * debian/maas-cluster-controller.install: The maas-import-pxe-files cron
1839+ task is no longer used.
1840+ * debian/maas-cluster-controller.postinst: Remove leading comment
1841+ markers from the 'generator' line in pserv.yaml.
1842+
1843+ [ Andres Rodriguez ]
1844+ * debian/control:
1845+ - maas-cluster-controller Conflicts with tftpd-hpa (LP: #1076028)
1846+ - maas-dns: Conflicts with dnsmasq
1847+ - maas-cluster-controller Conflicts/Replaces maas-region-controller as
1848+ import scripts are no longer shipped in the region.
1849+ - debian/control: Depends on distro-info for maas-cluster-controller
1850+ instead of maas-region-controller (LP: #1103194)
1851+ * debian/maas-cluster-controller.config: If URL has been detected,
1852+ add /MAAS if it doesn't contain it. This helps upgrades from versions
1853+ where DEFAULT_MAAS_URL didn't use /MAAS.
1854+
1855+ -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 04 Mar 2013 11:49:44 -0500
1856+
1857+maas (0.1+bzr1269+dfsg-0ubuntu1) quantal-proposed; urgency=low
1858+
1859+ * New upstream bugfix release
1860+ - Fixes commissioning failing to set memory attribute. (LP: #1064638)
1861+ - Fixes node listing by adding pagination (LP: #1064672)
1862+ - Changes default bind rndc key which breaks initscripts (LP: #1066938)
1863+ - Fixes invalid DNS config once node is enlisted (LP: #1066958)
1864+ - Reference documentation link to correct URL (LP: #1067261)
1865+
1866+ [ Andres Rodriguez ]
1867+ * debian/rules: Change upstream branch.
1868+
1869+ [ Gavin Panella ]
1870+ * debian/maas-dns.postinst: Remove MAAS-related include lines from named's
1871+ config before adding a new one (LP: #1066929)
1872+
1873+ [ Raphael Badin ]
1874+ * debian/extras/maas-region-celeryd: Remove whitespace that affects DNS
1875+ rabbitmq queue. (LP: #1067929)
1876+
1877+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 16 Oct 2012 10:31:37 -0400
1878+
1879+maas (0.1+bzr1264+dfsg-0ubuntu2) quantal; urgency=low
1880+
1881+ * Fix MAAS not working after CD/preseed install (LP: #1065763)
1882+ - debian/extras/maas-region-celeryd: Add wrapper to run celery from
1883+ the upstart job.
1884+ - debian/extras/maas-region-controller.maas-region-celery.upstart: Create
1885+ rabbitmq user if it does not exists.
1886+ * debian/control: Remove unneeded deps on python-txtftp for some binary pkgs.
1887+ * debian/maas-region-controller.postinst: Minor fix referencing variable.
1888+
1889+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 11 Oct 2012 17:38:08 -0400
1890+
1891+maas (0.1+bzr1264+dfsg-0ubuntu1) quantal; urgency=low
1892+
1893+ * New upstream release.
1894+
1895+ [ Raphaël Badin ]
1896+ * debian/maas-region-controller.postinst: Enable proxy_http module.
1897+ * debian/maas-cluster-controller.postinst: Create /var/lib/maas. (LP: #1065062)
1898+
1899+ [ Andres Rodriguez ]
1900+ * Install maas-provision with python-maas-provisioningserver (LP: #1065171):
1901+ - debian/python-maas-provisioningserver.install: Install
1902+ - debian/control: Add Conflicts/Replaces with maas-cluster-controller
1903+ to handle upgrades.
1904+ * debian/patches/04-fix-ipmi-enlistment.patch: Drop. Merged Upstream.
1905+ * debian/control: Depends on maas-region-controller for maas-dns.
1906+ * debian/maas-region-controller.postinst: Set the correct host for
1907+ BROKER_URL (LP: #1065080)
1908+ * Handle creation of user/group in maas-common.
1909+ * debian/maas-region-controller.config: Always source dbconfig scripts.
1910+
1911+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 10 Oct 2012 11:17:21 -0400
1912+
1913+maas (0.1+bzr1243+dfsg-0ubuntu3) quantal; urgency=low
1914+
1915+ * 04-fix-ipmi-enlistment.patch: retry maas-enlist without power parameters
1916+ on failure. This allows enlistment to continue working with Precise
1917+ ephemeral images before the Precise SRU for maas-enlist lands.
1918+ (LP: #1064922).
1919+
1920+ -- Robie Basak <robie.basak@canonical.com> Wed, 10 Oct 2012 13:29:16 +0000
1921+
1922+maas (0.1+bzr1243+dfsg-0ubuntu2) quantal; urgency=low
1923+
1924+ * debian/patches/99-ipmi-user-too-long.patch: Fix username too long for
1925+ IPMI user created on enlistment (LP: #1064832)
1926+
1927+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 10 Oct 2012 01:00:29 -0400
1928+
1929+maas (0.1+bzr1243+dfsg-0ubuntu1) quantal; urgency=low
1930+
1931+ * New upstream release. (LP: #1064596)
1932+ * debian/patches/99-temporary-fix-constraints.patch: Dropped.
1933+ * debian/control:
1934+ - ${python:Depends} for maas-common.
1935+ - Add missing Depends for python-maas-provisioningserver (LP: #1064542)
1936+ * debian/maas-cluster-controller.postinst: Create /var/log/maas if it
1937+ doesn't exist (LP: #1064539)
1938+
1939+ -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 08 Oct 2012 17:02:56 -0400
1940+
1941+maas (0.1+bzr1223+dfsg-0ubuntu1) quantal; urgency=low
1942+
1943+ * New upstream release. (LP: #1062518)
1944+
1945+ [ Julian Edwards ]
1946+ * Split packaging of 'maas' into maas-{region,cluster}-controller
1947+ - debian/control: Update accordingly.
1948+ - debian/*.install: Move files accordingly
1949+ - debian/*.{postinst,postrm,preinst}: Move files accordingly.
1950+ * Ensure isc-dhcp-server is disabled when installing maas-dhcp.
1951+ * Ensure maas-dns creates the maas user before trying to chown files.
1952+ * Make maas-cluster-controller autoconfigure itself when upgrading from the
1953+ old maas package. (LP: #1059416)
1954+ * Add missing prerm file for maas-cluster-controller so that .pyc files
1955+ are cleaned up. (LP: #1059973)
1956+
1957+ [ Raphaël Badin ]
1958+ * Install maas_local_celeryconfig.py in /etc/maas and symlink to
1959+ /usr/share/maas.
1960+ * debian/maas.postinst: Create rabbitmq celery user/vhost.
1961+ * debian/maas.postinst: Update BROKER_URL in maas_local_celeryconfig.py.
1962+ * Use maas_local_celeryconfig_cluster.py as the local celery
1963+ configuration file for the cluster worker.
1964+ * debian/maas-region-controller.maas-region-celery.upstart: Add region
1965+ worker upstart script.
1966+ * Rename cluster worker upstart script into
1967+ maas-cluster-controller.maas-clluster-celery.upstart.
1968+ * maas-cluster-controller.maas-celery.upstart: use "celeryconfig_cluster"
1969+ as the Celery config module.
1970+ * debian/maas-common.install: Install celeryconfig_common.py.
1971+ * debian/maas-cluster-controller.install: Install celeryconfig_cluster.py.
1972+ * debian/maas-region-controller.install: Install celeryconfig.py.
1973+ * Split celery config into cluster and region configs.
1974+ * Add region celeryd upstart config.
1975+ * Define CELERY_CONFIG_MODULE in
1976+ maas-cluster-controller.maas-cluster-celery.upstart
1977+
1978+ [ Jeroen Vermeulen ]
1979+ * Make maas_local_celery_config.py non-world readable.
1980+ * Make maas_local_celeryconfig_cluster.py non-world readable.
1981+ * Set root:maas ownership of local cluster config only *after*
1982+ the maas user/group have been created
1983+
1984+ [ Andres Rodriguez ]
1985+ * debian/maas.postinst:
1986+ - Always restart apache2.
1987+ - Handle upgrades for new upstream release.
1988+ - Handle upgrades for celery rabbitmq worker.
1989+ * Add binary package to install client tool.
1990+ - debian/extras/maas-cli: Add binary.
1991+ - debian/maas-cli.install: Add. Install maascli and apiclient.
1992+ - debian/control: Add binary package.
1993+ * debian/control:
1994+ - Depends on freeipmi-tools instead of ipmitool.
1995+ - Conflicts/Replaces on maas for python-maas-client.
1996+ - Depends on python-netifaces, python-lxml.
1997+ * Add python-maas-client binary package:
1998+ - debian/python-maas-client.install: Add. Install 'apiclient' python module.
1999+ - debian/control: Add package. python-django-maas and maas-cli now
2000+ Depend on it.
2001+ * debian/rules: Install maas-dhcp-server upstart job.
2002+ * debian/maas.postrm: Remove celery worker rabbitmq user and host.
2003+ * debian/extras/99-maas-sudoers: Add for maas-dhcp-server upstart job
2004+ instead of isc-dhcp-server (LP: #1055951)
2005+ * debian/maas-region-controller.postinst: Cleanup upgrade rules.
2006+ * debian/maas-cluster-controller.postinst: Fix 'local' usage.
2007+ * debian/maas-common.install: Install celeryconfig in appropriate location.
2008+ * debian/maas-cluster-controller.postrm: Add and delete maas user.
2009+ * debian/maas-dhcp.postinst: Stop isc-dhcp-server not isc_dhcp_server.
2010+ * debian/maas-region-controller.postinst:
2011+ - Always update passwords on upgrade. No longer check versioning. (LP: #1060094).
2012+ - Add MAAS server to allowed mirror in squid-deb-proxy
2013+ - Source dbconfig conf file for maas-region-controller on upgrade because
2014+ it writes a new config file and no longer preservers the previous password.
2015+ * debian/maas-cluster-controller.maas-cluster-celery.upstart: Remove set{uid/gid}.
2016+ * debian/maas-region-controller.install: Install maas-import-squashfs
2017+ * Handle removal of non existant files (LP: #1059556):
2018+ - debian/maintscript: Added to handle removal of conffiles.
2019+ - debian/control: Add Pre-depends and bump debhelper version.
2020+ * update po files for the templates.
2021+ * debian/extras/99-maas: Install in usr/share/maas/conf and symlink to the
2022+ appropriate etc dir.
2023+ * debian/maas-cluster-controller.config: Source debconf at the beginning of the
2024+ script. (LP: #1063857)
2025+ * debian/patches/99-temporary-fix-constraints.patch: Fix constraints maaping
2026+ when deploying with juju. Temporary until it gets merged upstream
2027+
2028+ [ Robie Basak ]
2029+ * Add maas-cluster-controller dependency on uuid-runtime, needed for uuidgen
2030+ by postinst.
2031+
2032+ [ Scott Moser ]
2033+ * debian/maas-dhcp.{install,apparmor,postrm} install apparmor profile into
2034+ /etc/apparmor.d/dhcpd.d (LP: #1049177), and update apparmor profile for
2035+ /usr/sbin/dhcpd on install/remove
2036+ * get the ip address for the dhcp server in config
2037+
2038+ [ Diogo Matsubara ]
2039+ * Add initial tests to be run by autotests:
2040+ - debian/control: XS-Testsuite: autopkgtest
2041+ - debian/tests/control: Add
2042+ - debian/tests/maas-package-test: Add
2043+ - tests/maas-integration.py: Add
2044+
2045+ -- Andres Rodriguez <andreserl@ubuntu.com> Mon, 08 Oct 2012 13:10:23 -0400
2046+
2047+maas (0.1+bzr971+dfsg-0ubuntu2) quantal; urgency=low
2048+
2049+ * debian/extras/99-maas-sudoers: Add missing rule for
2050+ maas-provision. (LP: #1046397)
2051+
2052+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 05 Sep 2012 12:36:58 -0400
2053+
2054+maas (0.1+bzr971+dfsg-0ubuntu1) quantal; urgency=low
2055+
2056+ * New upstream release (LP: #1044367)
2057+
2058+ [ Julian Edwards ]
2059+ * Fix 02-pserv-config.patch to handle new default tftp directory
2060+
2061+ [ Andres Rodriguez ]
2062+ * debian/maas.postinst:
2063+ - include '/MAAS' for DEFAULT_MAAS_URL.(LP: #1033956)
2064+ - Update bzr version to safely upgrade.
2065+ * Add maas-dns package that configures DNS in MAAS (LP: #1030860)
2066+ * Remove cobbler related bits
2067+ - debian/maas.postinst: Drop cobbler configuration
2068+ - debian/maas.install: Drop installation of snippets/preseeds.
2069+ - debian/control:
2070+ + Drop Depends on maas-provision. (LP: #975473)
2071+ + Depends on bind9utils.
2072+ + Depends on python-lockfile (LP: #1037400)
2073+ Add necessary Conflicts/Replaces. Add conflicts to tftpd-hpa and dnsmasq.
2074+ Depends on isc-dhcp-server for maas-dhcp, and syslinux-common.
2075+ - debian/extras/maas-provision: Add missing "$@" (LP: #1040462)
2076+ - debian/patches:
2077+ + 02-pserv-config.patch: Updated. Do not patch cobbler related bits.
2078+ patch tftp config to default.
2079+ * maas-dhcp: Re-add to handle initial configuration of MAAS DHCP server.
2080+ * Allow restart of 'isc-dhcp-server' by adding a sudoers file:
2081+ - debian/extras/99-maas-sudoers: Added.
2082+ - debian/maas.install: Install 99-maas-sudoers
2083+ * Minor improvements on dbconfig-common handling:
2084+ - debian/maas.config: Only call dbc_go when scripts present.
2085+ - debian/maas.postrm: Only call dbc_go when config file exists.
2086+ * debian/maas.maas-celery.upstart: Enable Beat and set scheduler db file.
2087+ * debian/maas-dns.postinst: Set correct permissions. (LP: #1042868)
2088+ * debian/maas-dhcp.config:
2089+ - Ask whether we want to enable DHCP (LP: #1044229)
2090+ - Add debconf question for network interfaces
2091+ * debian/maas.prerm: Stop services before removing database (LP: #1044559)
2092+
2093+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 02 Aug 2012 09:01:43 -0400
2094+
2095+maas (0.1+bzr777+dfsg-0ubuntu1) quantal-proposed; urgency=low
2096+
2097+ * New upstream release
2098+ * Only run 'maas' command as root. (LP: #974046)
2099+ - debian/extras/maas: Check id.
2100+ - debian/maas.install: Install in 'sbin'.
2101+ * debian/maas.postinst:
2102+ - restart apache2 after everything gets processed.
2103+ - Update version to handle upgrades.
2104+ * debian/extras/maas-provision: Add wrapper to access 'maasprovisiong'
2105+ command line.
2106+ * debian/patches/99_temporary_fix_path.patch: Dropped. No longer needed.
2107+
2108+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Jul 2012 08:28:36 -0400
2109+
2110+maas (0.1+bzr745+dfsg-0ubuntu2) quantal; urgency=low
2111+
2112+ * debian/control: Build-Dep on python-django instead of
2113+ python-django-configglue
2114+
2115+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Jul 2012 08:24:25 -0400
2116+
2117+maas (0.1+bzr745+dfsg-0ubuntu1) quantal; urgency=low
2118+
2119+ * New Upstream Release
2120+ * debian/patches:
2121+ - 99_power_fixes.patch: Dropped. Merged Upstream.
2122+ - 99_enums_js.patch: Dropped. No longer needed.
2123+ * Automatically build enums.js:
2124+ - debian/control: Build-Depends on python-django-configglue
2125+ - debian/rules: Build and install enums.js.
2126+ * debian/maas.postinst: Update version to handle upgrades
2127+
2128+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 12 Jul 2012 16:34:11 -0400
2129+
2130+maas (0.1+bzr740+dfsg-0ubuntu1) quantal; urgency=low
2131+
2132+ * New upstream release
2133+ * debian/control: Depends on python-txtftp.
2134+ * debian/rules: Do not ship python-tx-tftp.
2135+ * debian/maas.postinst: Update version to upgrade successfully.
2136+ * debian/patches:
2137+ - 02-pserv-config.patch: Refreshed.
2138+ - 99_enums_js.patch: Updated.
2139+ - 99_power_fixes.patch: Added temporarily to enable IPMI
2140+ - 99_temporary_fix_path.patch: Added temporarily to not fail when
2141+ importing celeryconfig
2142+
2143+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 03 Jul 2012 17:54:49 -0400
2144+
2145+maas (0.1+bzr709+dfsg-0ubuntu1) quantal; urgency=low
2146+
2147+ * New Upstream release
2148+ * debian/control:
2149+ - Depends on python-celery, python-tempita, libjs-yui3-{full,min},
2150+ libjs-raphael
2151+ * debian/maas.install:
2152+ - Install apiclient, celeryconfig.py, maas-import-pxe-files, preseeds_v2.
2153+ - Update to install various files from chroot, rather tha manually copy
2154+ them from the source.
2155+ * debian/maas.links: symlink celeryconfig.py
2156+ * debian/maas.maas-celery.upstart: Add job.
2157+ * debian/rules:
2158+ - Install celery upstart job.
2159+ - Do not install jslibs as packages are now used.
2160+ - Drop copying of maas_local_settings_sample.py as source now ships
2161+ a maas_local_settings.py
2162+ * debian/patches:
2163+ - 04-maas-http-fix.patch: Drop. Merged upstream.
2164+ - 01-fix-database-settings.patch: Refreshed.
2165+ - 99_enums_js.patch: Added until creation of enum.js / build process
2166+ is fixed.
2167+ * debian/maas.postinst: Update bzr version to correctly handle upgrades.
2168+
2169+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 03 Jul 2012 17:42:37 -0400
2170+
2171+maas (0.1+bzr482+dfsg-0ubuntu1) precise; urgency=low
2172+
2173+ * New upstream release (Fixes LP: #981103)
2174+ * debian/maas.postinst:
2175+ - Make sure rabbitmq and postgresql are started on upgrade (LP: #981282)
2176+ - Handle upgrades from any lower than 0.1+bzr462+dfsg-0ubuntu1 to
2177+ correctly re-generate passwords, and not have db sync/migrate issues
2178+ as config has changed upstream.
2179+ - Correctly set Passwords for PSERV, otherwise it won't set new passwords.
2180+ * Allow MAAS_DEFAULT_URL reconfiguration. (LP: #980970)
2181+ - debian/maas.config: Add reconfigure validation to correctly allow it,
2182+ and ask a question.
2183+ - debian/maas.postinst: Reconfigure DEFAULT_MAAS_URL as well as cobbler
2184+ server and next_server for PXE/Provisioning.
2185+ - debian/maas.templates: Add debconf question and update info.
2186+ * Do not lose MAAS_DEFAULT_URL settings on upgrade (LP: #984309)
2187+ * debian/maas.postinst:
2188+ - Set cobbler password in between quotes (LP: #984427)
2189+ - Do not change permissions to maas.log (LP: #980915)
2190+ * no longer use maas-cloudimg2ephemeral, but rather use premade images
2191+ at http://maas.ubuntu.com
2192+
2193+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 17 Apr 2012 23:44:46 -0700
2194+
2195+maas (0.1+bzr462+dfsg-0ubuntu1) precise; urgency=low
2196+
2197+ * New upstream release (LP: #980240)
2198+
2199+ [ Scott Moser ]
2200+ * add dependency on distro-info (LP: #949442)
2201+ * debian/control: add dependency on tgt for ephemeral iscsi environment
2202+
2203+ [ Andres Rodriguez ]
2204+ * Make package lintian clean:
2205+ - maas{-dhcp}.lintian-overrides: Add to make lintian clean.
2206+ - debian/control: Add missing dependencies; correct section and desc.
2207+ - debian/maas.postinst: Do not use absolute path for rabbitmqctl.
2208+ - debian/patches: Add headers to all patches.
2209+ * debian/maas-dhcp.postrm: Added to disable dnsmasq in cobbler on removal.
2210+ * debian/maas.config: Do not set a password with pwgen as it is not an
2211+ essential package; allow dbconfig-common to create a password instead by
2212+ creating an empty question. (LP: #977475)
2213+ * Run MAAS, pserv, txlongpoll as non-root user. (LP: #975436)
2214+ - debian/maas.postinst: Create user/group; set correct permissions for
2215+ directories.
2216+ - debian/maas.postrm: Remove user/group; restart apache2.
2217+ - debian/maas.maas-{pserv,txlongpoll}.upstart: Update to run as non-root
2218+ 'maas' user.
2219+ * debian/patches/01-fix-database-settings.patch: Remove adding of PSERV_URL.
2220+ * debian/maas.postinst:
2221+ - Handle config file upgrade from versions lower than 0.1+bzr445+dfsg-0ubuntu1,
2222+ by creating new passwords and updating accordingly
2223+ - use local variables in functions.
2224+ - Handle maas tgt configuration for upgrades from 0.1+bzr459+dfsg-0ubuntu1.
2225+ * debian/extras/99-maas: Add squid-deb-proxy file to enable PPAs. (LP: #979383)
2226+ * debian/maas.install: Install missing commissioning-user-data script.
2227+
2228+ [ Dave Walker (Daviey) ]
2229+ * debian/patches/02-pserv-config.patch: Refreshed to apply to updated config.
2230+
2231+ [ Gavin Panella ]
2232+ * debian/maas.postinst: Update pserv.yaml and maas_local_settings.py to use
2233+ password.
2234+
2235+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 12 Apr 2012 16:37:53 -0400
2236+
2237+maas (0.1+bzr415+dfsg-0ubuntu2) precise; urgency=low
2238+
2239+ * debian/maas-dhcp.{config,postinst}:
2240+ - Fix not setting new values on fresh install. (LP: #975321)
2241+ - Fix unsetting domain, otherwise, even if disabled, it will always be set.
2242+ * debian/control: Depends on maas for maas-dhcp.
2243+
2244+ -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 06 Apr 2012 15:30:44 -0400
2245+
2246+maas (0.1+bzr415+dfsg-0ubuntu1) precise; urgency=low
2247+
2248+ * debian/control: Update package descriptions; Suggests maas-dhcp for maas
2249+ and add a maas-dhcp binary.
2250+ * Add maas-dhcp package to configure a DHCP server.
2251+ - debian/maas-dhcp.config: Add to ask debconf questions about range,
2252+ gateway, and domain.
2253+ - debian/maas-dhcp.postinst: Handle update of config values.
2254+ - debian/maas-dhcp.templates: Debconf questions.
2255+ * debian/po: Update for templates.
2256+ * Add message telling MAAS URL after installation.
2257+ - debian/maas.templates: Add message.
2258+ - debian/maas.postinst: Display message.
2259+ * debian/maas.config: Hide dbconfig-install question.
2260+
2261+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 04 Apr 2012 14:47:13 -0400
2262+
2263+maas (0.1+bzr400+dfsg-0ubuntu1) precise; urgency=low
2264+
2265+ * debian/patches/{02-pserv-config,03-txlongpoll-config}.patch: Refreshed.
2266+ * debian/maas.install: Install maas-gc cronjob.
2267+ * Add apport hook.
2268+ - debian/maas.apport: Add hook.
2269+ - debian/rules: Install with apport.
2270+ * debian/maas.logrotate: Add logrotate for txlongpoll and pserv logs.
2271+ * Create 'var/lib/media/maas/storage' on postinst to have right permissions.
2272+ - debian/maas.dirs: Drop dir creation.
2273+ - debian/maas.postinst: Create dir with correct permissions.
2274+ - debian/maas.postrm: Remove dir on purge.
2275+
2276+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 03 Apr 2012 14:50:34 -0400
2277+
2278+maas (0.1+bzr378+dfsg-0ubuntu1) precise; urgency=low
2279+
2280+ * maas.dirs: Create var/lib/maas/media/storage for juju storage.
2281+ * maas.postinst:
2282+ - Give correct permissions to above dir.
2283+ - stop apache2 before db upgrade, and restart after.
2284+
2285+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 29 Mar 2012 19:28:13 -0400
2286+
2287+maas (0.1+bzr363+dfsg-0ubuntu1) precise; urgency=low
2288+
2289+ [ Dave Walker (Daviey) ]
2290+ * debian/control: Add openssh-server as a Recommends, and wrap-and-sort.
2291+
2292+ [ Andres Rodriguez ]
2293+ * debian/maas.postinst:
2294+ - Do not start apache with apache2ctl. Use invoke-rc.d instead to not
2295+ fail in the installer.
2296+ - For start of postgresql before creating the DB, otherwise it will
2297+ fail in the installer.
2298+ - Add check of invoke-rc.d for syslog.
2299+ - Add check of invoke-rc.d for rabbitmq-server; Add check for rabbitmqctl
2300+ - Add db_stop, in case invoke-rc.d fails.
2301+ * debian/control: Tight python-django-maas dependency.
2302+ * debian/postrm: Add check for rabbitmqctl.
2303+ * debian/maas.maas-txlongpoll.upstart: Create rabbitmq longpoll user/vhost
2304+ and set permissions if they don't exist. Start on rabbitmq-server-running.
2305+
2306+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 27 Mar 2012 14:49:56 -0400
2307+
2308+maas (0.1+bzr338+dfsg-0ubuntu1) precise; urgency=low
2309+
2310+ [ Dave Walker (Daviey) ]
2311+ * d/patches/03-txlongpoll-config.patch: Resolve typo error from prior patch.
2312+ - LP: #961031
2313+
2314+ [ Andres Rodriguez ]
2315+ * debian/maas.config: Don't allow reconfigure.
2316+ * debian/maas.postinst: Don't allow reconfigure. Run sync/migrate db on
2317+ all upgrades.
2318+
2319+ [ Scott Moser ]
2320+ * add rsylog config for logging node boots (LP: 960149)
2321+
2322+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 22 Mar 2012 10:56:58 -0400
2323+
2324+maas (0.1+bzr315+dfsg-0ubuntu1) precise; urgency=low
2325+
2326+ * New upstream snapshot.
2327+
2328+ [ Dave Walker ]
2329+ * debian/maas.postinst: Do not import ISO's at install time.
2330+ * debian/control:
2331+ - Drop run-one, it's not a requirement and currently in universe.
2332+ - Drop python-setproctitle, no longer required.
2333+
2334+ [ Andres Rodriguez ]
2335+ * debian/control: Depends on python-avahi, python-dbus, and avahi-daemon.
2336+ * debian/maas.postinst:
2337+ - Only syncdb if dbconfig db creation was selected.
2338+ - Set rabbitmq/longpoll settings
2339+ * debian/patches/03-txlongpoll-config.patch: Updated broker settings for
2340+ rabbitmq.
2341+
2342+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 20 Mar 2012 20:10:58 -0400
2343+
2344+maas (0.1+bzr300+dfsg-0ubuntu1) precise; urgency=low
2345+
2346+ * debian/patches:
2347+ - 01-fix-database-settings.patch: Update PSERV_URL port.
2348+ - 02-pserv-config.patch: Update, and set 'maas' as username.
2349+ - 03-longpoll-config.patch: Update.
2350+ * debian/maas.install: Install preseeds and snippets.
2351+ * debian/maas.postinst:
2352+ - Set password for 'maas' cobbler username (in pserv and cobbler).
2353+ - Set DEFAULT_MAAS_URL to IP of interface with default gateway.
2354+
2355+ -- Andres Rodriguez <andreserl@ubuntu.com> Fri, 16 Mar 2012 14:59:16 -0400
2356+
2357+maas (0.1+bzr295+dfsg-0ubuntu2) precise; urgency=low
2358+
2359+ * debian/patches:
2360+ - 01-fix-database-settings.patch: Update to set PSERV_URL.
2361+ - 02-pserv-config.patch: Set port to 8001.
2362+ * debian/maas.postinst: Run maas-import-isos on install.
2363+ * debian/control: Depends on rabbitmq-server.
2364+
2365+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Mar 2012 18:14:08 -0400
2366+
2367+maas (0.1+bzr295+dfsg-0ubuntu1) precise; urgency=low
2368+
2369+ * debian/maas.upstart: Specify pidfile and conffile.
2370+ * debian/maas.postinst:
2371+ - Only run syncdb if dbconfig postinst file exists.
2372+ - Fix file permissions.
2373+ * debian/maas.{postrm,prerm}: Add dbconfig-common support.
2374+ * Add txlongpoll support for packaging:
2375+ - debian/control: Depends on python-txlongpoll.
2376+ - debian/maas.maas-longpoll.upstart: Added to start txlongpoll.
2377+ - debian/maas.install: Install txlongpoll.yaml
2378+ * debian/extras/maas: Improvements.
2379+ * debian/maas.maas.upstart: Moved from debian/maas.upstart.
2380+ * debian/maas.postinst: Touch logfile to set correct permissions (LP: #955400)
2381+ * debian/maas.logrotate: Add.
2382+ * debian/patches/03-txlongpoll-config.patch: Add default settings.
2383+ * debian/maas.config: Only run dbconfig-common on configure/reconfigure.
2384+ * Install maas_local_settings.py in /etc/maas and symlink to usr/share/maas
2385+ * Update references from MaaS to MAAS.
2386+ * Remove podebconf as templates no longer exist.
2387+ - debian/po: Remove.
2388+ - debian/control: Drop Build-Depends on po-debconf
2389+
2390+ -- Andres Rodriguez <andreserl@ubuntu.com> Thu, 15 Mar 2012 15:28:14 -0400
2391+
2392+maas (0.1+bzr266+dfsg-0ubuntu1) precise; urgency=low
2393+
2394+ * Remove support for squid3 and use squid-deb-proxy instead.
2395+ * debian/extras/maas: Add to handle syncdb and creation of admin user.
2396+ * Add debconf questions to ask for user/pass:
2397+ - debian/maas.{template,config}: Add
2398+ - debian/maas.postinst: Ask debconf questions.
2399+ - debian/po: Add translation templates.i
2400+ * debian/maas.postinst: Enable wsgi module; drop squid3 steps.
2401+ * debian/maas.postrm: removed.
2402+ * debian/patches/01-fix-database-settings.patch: Custom database settings
2403+ and static files path.
2404+ * debian/{rules,maas.install}: Install maas static files in
2405+ 'usr/share/maas/web/static'.
2406+ * Integrate cobbler:
2407+ - debian/maas.install: Install pserv twisted plugin, and config.
2408+ - debian/maas.upstart: Created to start plugin daemon.
2409+ - debian/patches/02-pserv-config.patch: Custom pserv config.
2410+ * Integrate dbconfig-common:
2411+ - debian/maas.config: Added and default user/pass and database.
2412+ - debian/maas.{postinst,postrm}: Added handling for dbconfig-common
2413+ * debian/control: Depends on python-convoy.
2414+ * debian/rules: Update path to removal of dsfg files.
2415+ * debian/patches/01-fix-database-settings.patch: Updated.
2416+
2417+ -- Andres Rodriguez <andreserl@ubuntu.com> Tue, 13 Mar 2012 14:31:50 -0400
2418+
2419+maas (0.1+bzr232+dfsg-0ubuntu1) precise; urgency=low
2420+
2421+ * New upstream snapshot.
2422+
2423+ [ Dave Walker ]
2424+ * debian/control:
2425+ - Changed depends from psycopg2 to python-psycopg2 and dropped versioning.
2426+ - LP: #937982
2427+
2428+ [ Andres Rodriguez ]
2429+ * debian/maas.install: Install maas-import-isos and related files.
2430+ * Integrate squid3 as proxy solution:
2431+ - debian/extras/squid.conf: Added
2432+ - debian/control: Depend on squid3.
2433+ - debian/maas.{postinst,postrm}: Handle installation/removal of custom
2434+ squid config file.
2435+ * Split into different binary packages (maas,python-django-maas).
2436+ - debian/maas.postinst: Handle the apache2 configuration.
2437+
2438+ -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 07 Mar 2012 12:46:17 -0500
2439+
2440+maas (0.1+bzr171+dfsg-0ubuntu1) precise; urgency=low
2441+
2442+ * New upstream snapshot, post 0.1 release.
2443+ * debian/control:
2444+ - Drop depends on rabbitmq-server, no longer required.
2445+ * debian/watch: Introduced watch file.
2446+
2447+ -- Dave Walker (Daviey) <DaveWalker@ubuntu.com> Thu, 23 Feb 2012 13:08:12 +0000
2448+
2449+maas (0.1~bzr146+dfsg-0ubuntu1) precise; urgency=low
2450+
2451+ * Initial release
2452+
2453+ -- Julian Edwards <julian.edwards@canonical.com> Thu, 16 Jan 2012 15:29:07 +0000
2454
2455=== added file 'debian/compat'
2456--- debian/compat 1970-01-01 00:00:00 +0000
2457+++ debian/compat 2017-03-28 19:35:45 +0000
2458@@ -0,0 +1,1 @@
2459+7
2460
2461=== added file 'debian/control'
2462--- debian/control 1970-01-01 00:00:00 +0000
2463+++ debian/control 2017-03-28 19:35:45 +0000
2464@@ -0,0 +1,307 @@
2465+Source: maas
2466+Section: net
2467+Priority: optional
2468+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
2469+Build-Depends: debhelper (>= 8.1.0~),
2470+ dh-apport,
2471+ dh-python,
2472+ dh-systemd,
2473+ po-debconf,
2474+ python3-all,
2475+ python3-django,
2476+ python3-setuptools,
2477+ python3-twisted
2478+Standards-Version: 3.9.7
2479+X-Python3-Version: >= 3.5
2480+Homepage: http://maas.io/
2481+
2482+Package: maas
2483+Architecture: all
2484+Depends: maas-rack-controller (= ${binary:Version}),
2485+ maas-region-controller (= ${binary:Version}),
2486+ python3-django-maas (= ${binary:Version}),
2487+ ${misc:Depends}
2488+Description: "Metal as a Service" is a physical cloud and IPAM
2489+ MAAS runs a software-defined data centre - it turns a collection of physical
2490+ servers and switches into a bare metal cloud with full open source IP address
2491+ management (IPAM) and instant provisioning on demand.
2492+ .
2493+ MAAS controls the servers through IPMI or another BMC or converged chassis
2494+ controller such as Cisco UCS. It provides a full inventory of components,
2495+ and can install Ubuntu, CentOS or Windows very fast on any server under
2496+ its control. It can also track and provide DHCP and DNS for other devices
2497+ on the network.
2498+ .
2499+ MAAS handles VLANs and fabrics that span many trunked switches, as well as
2500+ the routing-centric infrastructure typically used for large-scale OpenStack
2501+ or other scale-out deployments. MAAS manages IP addresses and provides APIs
2502+ for address assignment and release. MAAS can also allocate IP addresses for
2503+ containers on machines, and release them when the machine is repurposed. MAAS
2504+ provides PXE, DHCP, DNS and other low-level services to ensure the cluster
2505+ works smoothly.
2506+ .
2507+ MAAS works with any configuration system, and is recommended by the teams
2508+ behind both Chef and Juju as a physical provisioning system.
2509+ .
2510+ MAAS provides:
2511+ .
2512+ * Hardware inventory of servers
2513+ * Dynamic provisioning based on name or attributes such as disk, RAM, cores,
2514+ nics, networking, gpu’s or architecture
2515+ * DNS and DHCP as needed
2516+ * PXE boot services
2517+ .
2518+ This package is a metapackage which installs all of the separate components
2519+ of MAAS on a single machine.
2520+
2521+Package: maas-common
2522+Architecture: all
2523+Depends: rsyslog,
2524+ ${misc:Depends}
2525+Breaks: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 )
2526+Replaces: maas ( <= 0.1+bzr1048+dfsg-0ubuntu1 )
2527+Description: MAAS server common files
2528+ This package contains the common files for any MAAS installation.
2529+
2530+Package: maas-region-api
2531+Architecture: all
2532+Depends: apache2,
2533+ bind9utils,
2534+ iproute2,
2535+ libjs-angularjs,
2536+ libjs-yui3-full,
2537+ libjs-yui3-min,
2538+ maas-cli (=${binary:Version}),
2539+ maas-common (= ${binary:Version}),
2540+ maas-proxy (= ${binary:Version}),
2541+ ntp,
2542+ python3-bson,
2543+ python3-django,
2544+ python3-django-maas (= ${binary:Version}),
2545+ python3-django-piston3,
2546+ python3-djorm-ext-pgarray,
2547+ python3-maas-provisioningserver (= ${binary:Version}),
2548+ python3-petname,
2549+ python3-requests,
2550+ ubuntu-cloudimage-keyring,
2551+ ${misc:Depends},
2552+ ${python3:Depends}
2553+Conflicts: maas-region-controller-min
2554+Replaces: maas-region-controller-min
2555+Provides: maas-region-controller-min
2556+Description: Region controller API service for MAAS
2557+ The MAAS region controller consists of REST API services and a postgres
2558+ database. This package installs only the API services (maas-regiond).
2559+ Use it to scale out the API front-end of your MAAS region controller.
2560+
2561+Package: maas-region-controller
2562+Architecture: all
2563+Depends: avahi-utils,
2564+ dbconfig-pgsql,
2565+ iputils-ping,
2566+ maas-dns (= ${binary:Version}),
2567+ maas-region-api (= ${binary:Version}),
2568+ postgresql (>= 9.1),
2569+ tcpdump,
2570+ ${misc:Depends},
2571+Recommends: openssh-server
2572+Suggests: nmap
2573+Description: Region Controller for MAAS
2574+ The MAAS region controller (maas-regiond) is the REST API server for
2575+ all MAAS clients, and the postgres database that maintains machine
2576+ state for the entire data centre (or “region”). The region controller
2577+ an be scaled-out and highly available given the appropriate postgres
2578+ setup and additional API servers.
2579+ .
2580+ This package installs the postgres database and the API server, so it
2581+ is appropriate for the initial installation of a new MAAS region. To
2582+ scale out the controller or make it highly available, install
2583+ maas-region-controller-api on additional servers and ensure the
2584+ postgres database is HA too.
2585+
2586+Package: python3-maas-provisioningserver
2587+Section: python
2588+Architecture: all
2589+Depends: archdetect-deb,
2590+ lshw,
2591+ openssh-client,
2592+ python3-attr,
2593+ python3-bson,
2594+ python3-crochet,
2595+ python3-curtin (>> 0.1.0~bzr351),
2596+ python3-distro-info,
2597+ python3-formencode,
2598+ python3-jsonschema,
2599+ python3-lxml,
2600+ python3-maas-client (= ${binary:Version}),
2601+ python3-netifaces,
2602+ python3-oauth,
2603+ python3-oauthlib,
2604+ python3-paramiko,
2605+ python3-pexpect,
2606+ python3-pyparsing,
2607+ python3-pyvmomi,
2608+ python3-seamicroclient,
2609+ python3-simplejson,
2610+ python3-simplestreams,
2611+ python3-tempita,
2612+ python3-twisted,
2613+ python3-txtftp,
2614+ python3-yaml,
2615+ python3-zope.interface,
2616+ isc-dhcp-client,
2617+ iproute2,
2618+ ${misc:Depends},
2619+ ${python3:Depends}
2620+Description: MAAS server provisioning libraries (Python 3)
2621+ This package provides the MAAS provisioning server python libraries.
2622+ .
2623+ This package contains Python 3 libraries.
2624+
2625+Package: maas-cli
2626+Architecture: all
2627+Depends: python3-maas-client (= ${binary:Version}),
2628+ ${misc:Depends},
2629+ ${python3:Depends}
2630+Conflicts: maas-region-controller-min (<= 1.5+bzr1909-0ubuntu1)
2631+Replaces: maas-region-controller-min (<= 1.5+bzr1909-0ubuntu1)
2632+Description: MAAS client and command-line interface
2633+ This package contains the 'maas' command-line interface, which
2634+ talks to the MAAS region controller REST API. Use the maas command
2635+ to login to MAAS and drive the data centre entirely from the
2636+ command-line.
2637+
2638+Package: python3-maas-client
2639+Section: python
2640+Architecture: all
2641+Depends: python3-httplib2,
2642+ python3-oauth,
2643+ ${misc:Depends},
2644+ ${python3:Depends}
2645+Breaks: python-maas-client, maas-cli ( <= 2.0.0~alpha4+bzr4843-0ubuntu1 )
2646+Replaces: python-maas-client, maas-cli ( <= 2.0.0~alpha4+bzr4843-0ubuntu1 )
2647+Description: MAAS python API client (Python 3)
2648+ This package contains the MAAS client API Python modules.
2649+ .
2650+ This package contains Python 3 modules.
2651+
2652+Package: maas-rack-controller
2653+Architecture: all
2654+Depends: authbind,
2655+ avahi-utils,
2656+ bind9utils,
2657+ distro-info,
2658+ freeipmi-tools,
2659+ grub-common,
2660+ iputils-ping,
2661+ maas-cli (=${binary:Version}),
2662+ maas-common (=${binary:Version}),
2663+ maas-dhcp (=${binary:Version}),
2664+ ntp,
2665+ pxelinux | syslinux-common (<< 3:6.00~pre4+dfsg-5),
2666+ python3-httplib2,
2667+ python3-maas-provisioningserver (=${binary:Version}),
2668+ python3-netaddr,
2669+ python3-tempita,
2670+ python3-twisted,
2671+ python3-zope.interface,
2672+ syslinux-common,
2673+ tcpdump,
2674+ tgt,
2675+ uuid-runtime,
2676+ wget,
2677+ ${misc:Depends},
2678+ ${python3:Depends}
2679+Suggests: amtterm, ipmitool, libvirt-bin, nmap, wsmancli
2680+Conflicts: tftpd-hpa
2681+Breaks: python-maas-provisioningserver,
2682+ maas-cluster-controller
2683+Replaces: python-maas-provisioningserver,
2684+ maas-cluster-controller
2685+Description: Rack Controller for MAAS
2686+ The MAAS rack controller (maas-rackd) provides highly available, fast
2687+ and local broadcast services to the machines provisioned by MAAS. You
2688+ need a MAAS rack controller attached to each fabric (which is a set of
2689+ trunked switches). You can attach multiple rack controllers to these
2690+ physical networks for high availability, with secondary rack controllers
2691+ automatically stepping to provide these services if the primary rack
2692+ controller fails.
2693+ .
2694+ A common configuration is to have a rack controller in each rack, with
2695+ a fast primary network interface to the rack switch and secondary
2696+ network interfaces on one or two other nearby racks for high
2697+ availability redundancy.
2698+ .
2699+ This package depends on the necessary components to provide iSCSI,
2700+ DHCP, TFTP and power management.
2701+
2702+Package: python3-django-maas
2703+Section: python
2704+Architecture: all
2705+Depends: python3-apt,
2706+ python3-attr,
2707+ python3-convoy,
2708+ python3-crochet,
2709+ python3-curtin (>> 0.1.0~bzr275),
2710+ python3-lxml,
2711+ python3-maas-client (= ${binary:Version}),
2712+ python3-markupsafe,
2713+ python3-netaddr,
2714+ python3-psycopg2,
2715+ python3-sphinx,
2716+ python3-tempita,
2717+ python3-twisted,
2718+ python3-zope.interface,
2719+ ${misc:Depends},
2720+ ${python3:Depends}
2721+Breaks: python-django-maas
2722+Replaces: python-django-maas
2723+Description: MAAS server Django web framework (Python 3)
2724+ This package provides the Django web framework for MAAS.
2725+ .
2726+ This package contains Python 3 modules.
2727+
2728+Package: maas-dhcp
2729+Architecture: all
2730+Depends: isc-dhcp-server (>= 4.3.3-5ubuntu10~), ${misc:Depends}
2731+Description: MAAS DHCP server
2732+ This package installs and configures a DHCP server that can be used by
2733+ MAAS, and enhances the overall MAAS user experience.
2734+
2735+Package: maas-dns
2736+Architecture: all
2737+Depends: bind9 (>= 1:9.10.3.dfsg.P2-5~),
2738+ maas-region-api (= ${binary:Version}),
2739+ ${misc:Depends}
2740+Conflicts: dnsmasq
2741+Description: MAAS DNS server
2742+ This package installs and configures a DNS server that can be used by
2743+ MAAS, and enhances the overall MAAS user experience.
2744+
2745+Package: maas-proxy
2746+Architecture: all
2747+Depends: squid (>> 3.5), ${misc:Depends}
2748+Conflicts: squid-deb-proxy
2749+Description: MAAS Caching Proxy
2750+ This package installs and configures a Caching Proxy server that can be
2751+ used by MAAS. It enhances the overall MAAS user experience.
2752+
2753+Package: maas-region-udeb
2754+Package-Type: udeb
2755+Section: debian-installer
2756+Architecture: all
2757+Depends:
2758+ ${shlibs:Depends},
2759+ ${misc:Depends}
2760+XB-Installer-Menu-Item: 2350
2761+Description: Install a MAAS server (installer integration)
2762+
2763+Package: maas-rack-udeb
2764+Package-Type: udeb
2765+Section: debian-installer
2766+Architecture: all
2767+Depends:
2768+ ${shlibs:Depends},
2769+ ${misc:Depends}
2770+XB-Installer-Menu-Item: 2350
2771+Description: Install a MAAS Rack controller (installer integration)
2772
2773=== added file 'debian/copyright'
2774--- debian/copyright 1970-01-01 00:00:00 +0000
2775+++ debian/copyright 2017-03-28 19:35:45 +0000
2776@@ -0,0 +1,45 @@
2777+Format: http://dep.debian.net/deps/dep5
2778+Upstream-Name: maas
2779+Source: https://launchpad.net/maas
2780+
2781+Files: *
2782+Copyright: 2012 Canonical Ltd.
2783+License: AGPL-3.0+
2784+
2785+Files: debian/*
2786+Copyright: 2012 Canonical Ltd.
2787+License: AGPL-3.0+
2788+
2789+License: AGPL-3.0+
2790+ This program is free software: you can redistribute it and/or modify
2791+ it under the terms of the GNU Affero General Public License as
2792+ published by the Free Software Foundation, either version 3 of the
2793+ License, or (at your option) any later version.
2794+ .
2795+ This program is distributed in the hope that it will be useful,
2796+ but WITHOUT ANY WARRANTY; without even the implied warranty of
2797+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2798+ GNU Affero General Public License for more details.
2799+ .
2800+ You should have received a copy of the GNU Affero General Public License
2801+ along with this program. If not, see <http://www.gnu.org/licenses/>.
2802+
2803+Files: src/maasserver/static/js/angular/3rdparty/ng-tags-input.js
2804+Copyright: Copyright (c) 2013-2015 Michael Benford.
2805+License: MIT
2806+ Permission is hereby granted, free of charge, to any person obtaining a copy of
2807+ this software and associated documentation files (the "Software"), to deal in
2808+ the Software without restriction, including without limitation the rights to
2809+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
2810+ the Software, and to permit persons to whom the Software is furnished to do so,
2811+ subject to the following conditions:
2812+ .
2813+ The above copyright notice and this permission notice shall be included in all
2814+ copies or substantial portions of the Software.
2815+ .
2816+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2817+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
2818+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
2819+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
2820+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
2821+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2822
2823=== added directory 'debian/extras'
2824=== added file 'debian/extras/20-maas.conf'
2825--- debian/extras/20-maas.conf 1970-01-01 00:00:00 +0000
2826+++ debian/extras/20-maas.conf 2017-03-28 19:35:45 +0000
2827@@ -0,0 +1,40 @@
2828+# Enable the udp server for installation logging
2829+$ModLoad imudp
2830+$UDPServerRun 514
2831+$ModLoad imtcp # load TCP listener
2832+
2833+# The following section (certificates) was copied from orchestra, but is
2834+# not used here. In the future, if we needed secure ssl, then re-enable.
2835+# These files were created in the orchestra-logging-server's postinst
2836+#
2837+## make gtls driver the default
2838+#$DefaultNetstreamDriver gtls
2839+#
2840+## certificate files
2841+#$DefaultNetstreamDriverCAFile /var/lib/maas/ssl-cert-orchestra-ca.pem
2842+#$DefaultNetstreamDriverCertFile /var/lib/maas/.ssl/ssl-cert-orchestra.pem
2843+#$DefaultNetstreamDriverKeyFile /var/lib/maas/.ssl/ssl-cert-orchestra-pk.pem
2844+#
2845+#$InputTCPServerStreamDriverMode 1 # run driver in TLS-only mode
2846+#$InputTCPServerStreamDriverAuthMode anon # client is NOT authenticated
2847+#$InputTCPServerRun 10514 # start up listener at port 10514
2848+
2849+# Reduce message repetition
2850+$RepeatedMsgReduction on
2851+##$RepeatedMsgContainsOrigionalMsg on
2852+
2853+# Message templating
2854+$template MAASenlist,"/var/log/maas/rsyslog/%HOSTNAME%/%$YEAR%-%$MONTH%-%$DAY%/%fromhost-ip%"
2855+$template MAASboot,"/var/log/maas/rsyslog/%HOSTNAME%/%$YEAR%-%$MONTH%-%$DAY%/messages"
2856+
2857+if $hostname == "maas-enlisting-node" then {
2858+ :fromhost-ip, !isequal, "127.0.0.1" ?MAASenlist
2859+ # Stop messages that came from anywhere else from going into other places
2860+ # like /var/log/syslog. If you want to see these messages there, then comment below
2861+ & ~
2862+} else {
2863+ :fromhost-ip, !isequal, "127.0.0.1" ?MAASboot
2864+ # Stop messages that came from anywhere else from going into other places
2865+ # like /var/log/syslog. If you want to see these messages there, then comment below
2866+ & ~
2867+}
2868
2869=== added file 'debian/extras/99-maas-common-sudoers'
2870--- debian/extras/99-maas-common-sudoers 1970-01-01 00:00:00 +0000
2871+++ debian/extras/99-maas-common-sudoers 2017-03-28 19:35:45 +0000
2872@@ -0,0 +1,12 @@
2873+maas ALL= NOPASSWD: /usr/bin/lshw
2874+maas ALL= NOPASSWD: /sbin/blockdev
2875+
2876+# Control of the NTP server: MAAS needs to reconfigure it after editing
2877+# its configuration file, and start it again if stopped manually.
2878+maas ALL= NOPASSWD: /bin/systemctl restart ntp
2879+maas ALL= NOPASSWD: /bin/systemctl start ntp
2880+maas ALL= NOPASSWD: /bin/systemctl status ntp
2881+
2882+# Writing and deleting files as root.
2883+maas ALL= NOPASSWD: /usr/lib/maas/maas-delete-file
2884+maas ALL= NOPASSWD: /usr/lib/maas/maas-write-file
2885
2886=== added file 'debian/extras/99-maas-region-sudoers'
2887--- debian/extras/99-maas-region-sudoers 1970-01-01 00:00:00 +0000
2888+++ debian/extras/99-maas-region-sudoers 2017-03-28 19:35:45 +0000
2889@@ -0,0 +1,7 @@
2890+maas ALL= NOPASSWD: /bin/systemctl status bind9
2891+maas ALL= NOPASSWD: /bin/systemctl start bind9
2892+maas ALL= NOPASSWD: /bin/systemctl status maas-proxy
2893+maas ALL= NOPASSWD: /bin/systemctl start maas-proxy
2894+maas ALL= NOPASSWD: /bin/systemctl reload maas-proxy
2895+maas ALL= NOPASSWD: /bin/systemctl restart maas-proxy
2896+maas ALL= NOPASSWD: /bin/systemctl stop maas-proxy
2897
2898=== added file 'debian/extras/99-maas-sudoers'
2899--- debian/extras/99-maas-sudoers 1970-01-01 00:00:00 +0000
2900+++ debian/extras/99-maas-sudoers 2017-03-28 19:35:45 +0000
2901@@ -0,0 +1,15 @@
2902+maas ALL= NOPASSWD: /bin/systemctl status maas-dhcpd
2903+maas ALL= NOPASSWD: /bin/systemctl start maas-dhcpd
2904+maas ALL= NOPASSWD: /bin/systemctl restart maas-dhcpd
2905+maas ALL= NOPASSWD: /bin/systemctl stop maas-dhcpd
2906+maas ALL= NOPASSWD: /bin/systemctl status maas-dhcpd6
2907+maas ALL= NOPASSWD: /bin/systemctl start maas-dhcpd6
2908+maas ALL= NOPASSWD: /bin/systemctl restart maas-dhcpd6
2909+maas ALL= NOPASSWD: /bin/systemctl stop maas-dhcpd6
2910+maas ALL= NOPASSWD: /bin/systemctl status tgt
2911+maas ALL= NOPASSWD: /bin/systemctl start tgt
2912+maas ALL= NOPASSWD: /bin/systemctl disable maas-rackd
2913+maas ALL= NOPASSWD: /bin/systemctl stop maas-rackd
2914+maas ALL= NOPASSWD: /usr/sbin/maas-rack scan-network *
2915+maas ALL= NOPASSWD: /usr/lib/maas/maas-network-monitor
2916+maas ALL= NOPASSWD: SETENV: /usr/sbin/tgt-admin, /usr/bin/uec2roottar
2917
2918=== added file 'debian/extras/isc-dhcp-server.override'
2919--- debian/extras/isc-dhcp-server.override 1970-01-01 00:00:00 +0000
2920+++ debian/extras/isc-dhcp-server.override 2017-03-28 19:35:45 +0000
2921@@ -0,0 +1,1 @@
2922+manual
2923
2924=== added file 'debian/extras/maas'
2925--- debian/extras/maas 1970-01-01 00:00:00 +0000
2926+++ debian/extras/maas 2017-03-28 19:35:45 +0000
2927@@ -0,0 +1,13 @@
2928+#!/usr/bin/env python3
2929+
2930+import sys
2931+import maascli
2932+
2933+if sys.argv[0].split('/')[-1:] == "maas-cli":
2934+ sys.stderr.write("""
2935+ WARNING: The maas-cli command is deprecated and will be removed in a future
2936+ version. From now on please use 'maas' instead.
2937+""")
2938+
2939+sys.exit(maascli.main())
2940+
2941
2942=== added file 'debian/extras/maas-proxy-common.sh'
2943--- debian/extras/maas-proxy-common.sh 1970-01-01 00:00:00 +0000
2944+++ debian/extras/maas-proxy-common.sh 2017-03-28 19:35:45 +0000
2945@@ -0,0 +1,23 @@
2946+pre_start() {
2947+ if [ -x /usr/sbin/squid ]; then
2948+ SQUID=/usr/sbin/squid
2949+ elif [ -x /usr/sbin/squid3 ]; then
2950+ SQUID=/usr/sbin/squid3
2951+ else
2952+ echo "No squid binary found"
2953+ exit 1
2954+ fi
2955+
2956+ # ensure all cache dirs are there
2957+ install -d -o proxy -g proxy -m 750 /var/cache/maas-proxy/
2958+ install -d -o proxy -g proxy -m 750 /var/log/maas/proxy/
2959+ install -m 750 -o proxy -g proxy -d /var/spool/maas-proxy/
2960+ if [ -d /var/log/maas/proxy ]; then
2961+ chown -R proxy:proxy /var/log/maas/proxy
2962+ fi
2963+ if [ -f /var/lib/maas/maas-proxy.conf ]; then
2964+ if [ ! -d /var/cache/maas-proxy/00 ]; then
2965+ $SQUID -z -N -f /var/lib/maas/maas-proxy.conf
2966+ fi
2967+ fi
2968+}
2969
2970=== added file 'debian/extras/maas-rack'
2971--- debian/extras/maas-rack 1970-01-01 00:00:00 +0000
2972+++ debian/extras/maas-rack 2017-03-28 19:35:45 +0000
2973@@ -0,0 +1,85 @@
2974+#!/usr/bin/python3
2975+# Copyright 2016 Canonical Ltd. This software is licensed under the
2976+# GNU Affero General Public License version 3 (see the file LICENSE).
2977+
2978+from __future__ import (
2979+ absolute_import,
2980+ print_function,
2981+ unicode_literals,
2982+)
2983+
2984+str = None
2985+
2986+__metaclass__ = type
2987+__all__ = []
2988+
2989+import grp
2990+import os
2991+import pwd
2992+import sys
2993+
2994+
2995+def check_users(users):
2996+ """Check that the runnig user is in users."""
2997+ uid = os.getuid()
2998+ for user in users:
2999+ if user is None:
3000+ # Special case: this means any user is allowed.
3001+ return None
3002+ user_uid = pwd.getpwnam(user)[2]
3003+ if uid == user_uid:
3004+ return user
3005+ raise SystemExit("This utility may only be run as %s." % ", ".join(users))
3006+
3007+
3008+def set_group():
3009+ # Ensure that we're running as the `maas` group.
3010+ try:
3011+ gr_maas = grp.getgrnam("maas")
3012+ except KeyError:
3013+ raise SystemExit("No such group: maas")
3014+ else:
3015+ os.setegid(gr_maas.gr_gid)
3016+
3017+
3018+def set_umask():
3019+ # Prevent creation of world-readable (or writable, executable) files.
3020+ os.umask(0o007)
3021+
3022+
3023+def run():
3024+ # Run the main provisioning script.
3025+ from provisioningserver.__main__ import main
3026+ main()
3027+
3028+
3029+def main():
3030+ if 'maas-provision' in sys.argv[0]:
3031+ sys.stderr.write(
3032+ "WARNING: The maas-provision command is deprecated and will be "
3033+ "removed in a future version. From now on please use 'maas-rack' "
3034+ "instead.\n")
3035+
3036+ # Allow dhcpd user to call dhcp-notify, and maas user to call observe-arp.
3037+ users = ["root"]
3038+ if len(sys.argv) > 1:
3039+ if sys.argv[1] == "dhcp-notify":
3040+ users.append("dhcpd")
3041+ if sys.argv[1] == "observe-arp":
3042+ users.append("maas")
3043+ if sys.argv[1] == "observe-mdns":
3044+ # Any user can call this. (It might be necessary for a normal
3045+ # user to call this for support/debugging purposes.)
3046+ users.append(None)
3047+
3048+ # Only set the group and umask when running as root.
3049+ if check_users(users) == "root":
3050+ set_group()
3051+ set_umask()
3052+
3053+ # Run the script.
3054+ run()
3055+
3056+
3057+if __name__ == "__main__":
3058+ main()
3059
3060=== added file 'debian/extras/maas-region'
3061--- debian/extras/maas-region 1970-01-01 00:00:00 +0000
3062+++ debian/extras/maas-region 2017-03-28 19:35:45 +0000
3063@@ -0,0 +1,65 @@
3064+#!/usr/bin/python3
3065+# Copyright 2016 Canonical Ltd. This software is licensed under the
3066+# GNU Affero General Public License version 3 (see the file LICENSE).
3067+
3068+from __future__ import (
3069+ absolute_import,
3070+ print_function,
3071+ unicode_literals,
3072+)
3073+
3074+str = None
3075+
3076+__metaclass__ = type
3077+__all__ = []
3078+
3079+import grp
3080+import os
3081+import sys
3082+
3083+
3084+def check_user():
3085+ # At present, only root should execute this.
3086+ if os.getuid() != 0:
3087+ raise SystemExit("This utility may only be run as root.")
3088+
3089+
3090+def set_group():
3091+ # Ensure that we're running as the `maas` group.
3092+ try:
3093+ gr_maas = grp.getgrnam("maas")
3094+ except KeyError:
3095+ raise SystemExit("No such group: maas")
3096+ else:
3097+ os.setegid(gr_maas.gr_gid)
3098+
3099+
3100+def set_umask():
3101+ # Prevent creation of world-readable (or writable, executable) files.
3102+ os.umask(0o007)
3103+
3104+
3105+def run():
3106+ # Force the production MAAS Django configuration.
3107+ os.environ.setdefault(
3108+ "DJANGO_SETTINGS_MODULE", "maasserver.djangosettings.settings")
3109+
3110+ # Let Django do the rest.
3111+ from django.core import management
3112+ management.execute_from_command_line()
3113+
3114+
3115+def main():
3116+ if 'maas-region-admin' in sys.argv[0]:
3117+ sys.stderr.write(
3118+ "WARNING: The maas-region-admin command is deprecated and will be "
3119+ "removed in a future version. From now on please use 'maas-region' "
3120+ "instead.\n")
3121+ check_user()
3122+ set_group()
3123+ set_umask()
3124+ run()
3125+
3126+
3127+if __name__ == "__main__":
3128+ main()
3129
3130=== added file 'debian/extras/maas_remote_syslog_compress'
3131--- debian/extras/maas_remote_syslog_compress 1970-01-01 00:00:00 +0000
3132+++ debian/extras/maas_remote_syslog_compress 2017-03-28 19:35:45 +0000
3133@@ -0,0 +1,2 @@
3134+# Compress log files not changed in more than 48 hours:
3135+30 4 * * * root find /var/log/maas/rsyslog -type f -mtime +2 -exec bzip2 '{}' \;
3136
3137=== added file 'debian/extras/squid3.override'
3138--- debian/extras/squid3.override 1970-01-01 00:00:00 +0000
3139+++ debian/extras/squid3.override 2017-03-28 19:35:45 +0000
3140@@ -0,0 +1,1 @@
3141+manual
3142
3143=== added file 'debian/maas-cli.install'
3144--- debian/maas-cli.install 1970-01-01 00:00:00 +0000
3145+++ debian/maas-cli.install 2017-03-28 19:35:45 +0000
3146@@ -0,0 +1,1 @@
3147+debian/extras/maas usr/bin
3148
3149=== added file 'debian/maas-cli.links'
3150--- debian/maas-cli.links 1970-01-01 00:00:00 +0000
3151+++ debian/maas-cli.links 2017-03-28 19:35:45 +0000
3152@@ -0,0 +1,1 @@
3153+usr/bin/maas usr/bin/maas-cli
3154
3155=== added file 'debian/maas-cli.lintian-overrides'
3156--- debian/maas-cli.lintian-overrides 1970-01-01 00:00:00 +0000
3157+++ debian/maas-cli.lintian-overrides 2017-03-28 19:35:45 +0000
3158@@ -0,0 +1,1 @@
3159+maas-cli: binary-without-manpage usr/bin/maas-cli
3160
3161=== added file 'debian/maas-common.dirs'
3162--- debian/maas-common.dirs 1970-01-01 00:00:00 +0000
3163+++ debian/maas-common.dirs 2017-03-28 19:35:45 +0000
3164@@ -0,0 +1,3 @@
3165+var/log/maas
3166+var/lib/maas
3167+etc/ntp
3168
3169=== added file 'debian/maas-common.install'
3170--- debian/maas-common.install 1970-01-01 00:00:00 +0000
3171+++ debian/maas-common.install 2017-03-28 19:35:45 +0000
3172@@ -0,0 +1,4 @@
3173+debian/tmp/usr/share/maas/maas-rsyslog.conf
3174+debian/extras/99-maas-common-sudoers etc/sudoers.d
3175+debian/tmp/usr/lib/maas/maas-delete-file
3176+debian/tmp/usr/lib/maas/maas-write-file
3177
3178=== added file 'debian/maas-common.lintian-overrides'
3179--- debian/maas-common.lintian-overrides 1970-01-01 00:00:00 +0000
3180+++ debian/maas-common.lintian-overrides 2017-03-28 19:35:45 +0000
3181@@ -0,0 +1,1 @@
3182+maas-common: binary-without-manpage usr/lib/maas/maas-delete-file usr/lib/maas/maas-write-file
3183
3184=== added file 'debian/maas-common.logrotate'
3185--- debian/maas-common.logrotate 1970-01-01 00:00:00 +0000
3186+++ debian/maas-common.logrotate 2017-03-28 19:35:45 +0000
3187@@ -0,0 +1,13 @@
3188+/var/log/maas/maas.log
3189+{
3190+ rotate 8
3191+ weekly
3192+ missingok
3193+ notifempty
3194+ delaycompress
3195+ compress
3196+ # Don't rotate unless the log is at least 10MB.
3197+ minsize 10M
3198+ # Force rotation if the log grows beyond 50MB.
3199+ maxsize 50M
3200+}
3201
3202=== added file 'debian/maas-common.maintscript'
3203--- debian/maas-common.maintscript 1970-01-01 00:00:00 +0000
3204+++ debian/maas-common.maintscript 2017-03-28 19:35:45 +0000
3205@@ -0,0 +1,2 @@
3206+#TODO: Figure out the right version or whether this is needed.
3207+#rm_conffile /usr/share/maas/celeryconfig_common.py 1.7.0~beta3+bzr3043-0ubuntu1
3208
3209=== added file 'debian/maas-common.postinst'
3210--- debian/maas-common.postinst 1970-01-01 00:00:00 +0000
3211+++ debian/maas-common.postinst 2017-03-28 19:35:45 +0000
3212@@ -0,0 +1,40 @@
3213+#!/bin/sh
3214+
3215+set -e
3216+
3217+configure_logging() {
3218+ # Logging directory (/var/log/maas)
3219+ chown maas:maas /var/log/maas/
3220+
3221+ if [ ! -f /var/log/maas/maas.log ]; then
3222+ touch /var/log/maas/maas.log
3223+ fi
3224+ chown syslog:syslog /var/log/maas/maas.log
3225+ # Make sure rsyslog reads our config
3226+ systemctl restart rsyslog >/dev/null 2>&1 || true
3227+}
3228+
3229+configure_lib_dir() {
3230+ # Ensure lib dir has correct permissions
3231+ chown maas:maas /var/lib/maas/
3232+
3233+ if [ -d /var/lib/maas/gnupg ]; then
3234+ chown -R maas:maas /var/lib/maas/gnupg
3235+ fi
3236+}
3237+
3238+add_user_group(){
3239+ local user="maas"
3240+ local group="maas"
3241+ local home="/var/lib/maas"
3242+ addgroup --quiet --system "$group" || true
3243+ adduser --quiet --system --group --home "$home" "$user" || true
3244+}
3245+
3246+ln -sf /usr/share/maas/maas-rsyslog.conf /etc/rsyslog.d/99-maas.conf
3247+
3248+add_user_group
3249+configure_logging
3250+configure_lib_dir
3251+
3252+#DEBHELPER#
3253
3254=== added file 'debian/maas-common.postrm'
3255--- debian/maas-common.postrm 1970-01-01 00:00:00 +0000
3256+++ debian/maas-common.postrm 2017-03-28 19:35:45 +0000
3257@@ -0,0 +1,21 @@
3258+#!/bin/sh
3259+
3260+set -e
3261+
3262+case "$1" in
3263+ purge)
3264+ # Deleting user/group
3265+ if getent passwd maas >/dev/null; then
3266+ deluser maas || true
3267+ delgroup maas || true
3268+ fi
3269+ rm -rf /var/log/maas/maas.log
3270+ rm -rf /var/lib/maas/gnupg
3271+ rm -rf /var/lib/maas/secret
3272+ rm -rf /var/lib/maas/maas_id
3273+
3274+esac
3275+
3276+rm -f /etc/rsyslog.d/99-maas.conf
3277+
3278+#DEBHELPER#
3279
3280=== added file 'debian/maas-common.templates'
3281--- debian/maas-common.templates 1970-01-01 00:00:00 +0000
3282+++ debian/maas-common.templates 2017-03-28 19:35:45 +0000
3283@@ -0,0 +1,54 @@
3284+Template: maas/installation-note
3285+Type: note
3286+Default: false
3287+_Description: Ubuntu MAAS Server
3288+ The Ubuntu MAAS Server has been installed in your system. You
3289+ can access the MAAS Web interface here:
3290+ .
3291+ http://${MAAS_URL}/MAAS
3292+ .
3293+ If the automatically detected address above is not in the same
3294+ network as the MAAS clients, you need to reconfigure it:
3295+ .
3296+ sudo dpkg-reconfigure maas-region-controller
3297+
3298+Template: maas/default-maas-url
3299+Type: string
3300+_Description: Ubuntu MAAS PXE/Provisioning network address:
3301+ The Ubuntu MAAS Server automatically detects the IP address
3302+ that is used for PXE and provisioning. However, it needs to be
3303+ in the same network as the clients. If the automatically
3304+ detected address is not in the same network as the clients, it
3305+ must be changed.
3306+
3307+Template: maas/username
3308+Type: string
3309+_Description: Ubuntu MAAS username
3310+ The Ubuntu MAAS server requires the administrator to create a
3311+ username and password combination.
3312+ .
3313+ Please provide the username for the MAAS account.
3314+
3315+Template: maas/password
3316+Type: password
3317+_Description: Ubuntu MAAS password
3318+ The Ubuntu MAAS server requires the administrator to create a
3319+ username and password combination.
3320+ .
3321+ Please provide the password for the MAAS account.
3322+
3323+Template: maas-rack-controller/maas-url
3324+Type: string
3325+_Description: Ubuntu MAAS API address:
3326+ The MAAS cluster controller and nodes need to contact the MAAS region
3327+ controller API. Set the URL at which they can reach the MAAS API remotely,
3328+ e.g. "http://192.168.1.1/MAAS".
3329+ Since nodes must be able to access this URL, localhost or 127.0.0.1 are not
3330+ useful values here.
3331+
3332+Template: maas-rack-controller/shared-secret
3333+Type: password
3334+_Description: MAAS Rack Controller Shared Secret:
3335+ The MAAS rack controller needs to contact the MAAS region controller
3336+ with the shared secret found in /var/lib/maas/secret on the region controller.
3337+ Set the shared secret here.
3338
3339=== added file 'debian/maas-dhcp.apparmor'
3340--- debian/maas-dhcp.apparmor 1970-01-01 00:00:00 +0000
3341+++ debian/maas-dhcp.apparmor 2017-03-28 19:35:45 +0000
3342@@ -0,0 +1,10 @@
3343+/run/maas/dhcp/ r,
3344+/run/maas/dhcp/** r,
3345+/run/maas/dhcp/*.pid lrw,
3346+/run/maas/dhcp/*.trace lrw,
3347+/run/maas/dhcp/*.leases* lrw,
3348+/var/lib/maas/dhcp/dhcpd*.leases* lrw,
3349+/var/lib/maas/dhcpd.conf r,
3350+/var/lib/maas/dhcpd6.conf r,
3351+/usr/sbin/maas-dhcp-helper Ux,
3352+/tmp/maas-dhcpd-* r,
3353
3354=== added file 'debian/maas-dhcp.dirs'
3355--- debian/maas-dhcp.dirs 1970-01-01 00:00:00 +0000
3356+++ debian/maas-dhcp.dirs 2017-03-28 19:35:45 +0000
3357@@ -0,0 +1,2 @@
3358+var/lib/maas
3359+var/lib/maas/dhcp
3360
3361=== added file 'debian/maas-dhcp.install'
3362--- debian/maas-dhcp.install 1970-01-01 00:00:00 +0000
3363+++ debian/maas-dhcp.install 2017-03-28 19:35:45 +0000
3364@@ -0,0 +1,1 @@
3365+/debian/tmp/etc/apparmor.d/dhcpd.d/maas
3366
3367=== added file 'debian/maas-dhcp.maas-dhcpd.service'
3368--- debian/maas-dhcp.maas-dhcpd.service 1970-01-01 00:00:00 +0000
3369+++ debian/maas-dhcp.maas-dhcpd.service 2017-03-28 19:35:45 +0000
3370@@ -0,0 +1,28 @@
3371+[Unit]
3372+Description=MAAS instance of ISC DHCP server for IPv4
3373+Documentation=man:dhcpd(8)
3374+Wants=network-online.target
3375+After=network-online.target
3376+After=time-sync.target
3377+BindsTo=maas-rackd.service
3378+ConditionPathExists=/var/lib/maas/dhcpd.conf
3379+ConditionPathExists=/var/lib/maas/dhcpd-interfaces
3380+
3381+[Service]
3382+# Allow dhcp server to write lease and pid file as 'dhcpd' user
3383+ExecStartPre=/bin/mkdir -p /run/maas/dhcp
3384+# The leases files need to be root:dhcpd even when dropping privileges
3385+ExecStartPre=/bin/mkdir -p /var/lib/maas/dhcp
3386+# Start the daemon
3387+ExecStart=/bin/sh -ec '\
3388+ INTERFACES=$(cat /var/lib/maas/dhcpd-interfaces); \
3389+ LEASES_FILE=/var/lib/maas/dhcp/dhcpd.leases; \
3390+ [ -e $LEASES_FILE ] || touch $LEASES_FILE; \
3391+ /usr/sbin/maas-dhcp-helper clean $LEASES_FILE; \
3392+ chown root:dhcpd /var/lib/maas/dhcp $LEASES_FILE; \
3393+ chmod 775 /var/lib/maas/dhcp ; chmod 664 $LEASES_FILE; \
3394+ exec dhcpd -user dhcpd -group dhcpd -f -q -4 -pf /run/maas/dhcp/dhcpd.pid \
3395+ -cf /var/lib/maas/dhcpd.conf -lf $LEASES_FILE $INTERFACES'
3396+
3397+[Install]
3398+WantedBy=multi-user.target
3399
3400=== added file 'debian/maas-dhcp.maas-dhcpd6.service'
3401--- debian/maas-dhcp.maas-dhcpd6.service 1970-01-01 00:00:00 +0000
3402+++ debian/maas-dhcp.maas-dhcpd6.service 2017-03-28 19:35:45 +0000
3403@@ -0,0 +1,28 @@
3404+[Unit]
3405+Description=MAAS instance of ISC DHCP server for IPv6
3406+Documentation=man:dhcpd(8)
3407+Wants=network-online.target
3408+After=network-online.target
3409+After=time-sync.target
3410+BindsTo=maas-rackd.service
3411+ConditionPathExists=/var/lib/maas/dhcpd6.conf
3412+ConditionPathExists=/var/lib/maas/dhcpd6-interfaces
3413+
3414+[Service]
3415+# Allow dhcp server to write lease and pid file as 'dhcpd' user
3416+ExecStartPre=/bin/mkdir -p /run/maas/dhcp
3417+# The leases files need to be root:dhcpd even when dropping privileges
3418+ExecStartPre=/bin/mkdir -p /var/lib/maas/dhcp
3419+# Start the daemon
3420+ExecStart=/bin/sh -ec '\
3421+ INTERFACES=$(cat /var/lib/maas/dhcpd6-interfaces); \
3422+ LEASES_FILE=/var/lib/maas/dhcp/dhcpd6.leases; \
3423+ [ -e $LEASES_FILE ] || touch $LEASES_FILE; \
3424+ /usr/sbin/maas-dhcp-helper clean $LEASES_FILE; \
3425+ chown root:dhcpd /var/lib/maas/dhcp $LEASES_FILE; \
3426+ chmod 775 /var/lib/maas/dhcp ; chmod 664 $LEASES_FILE; \
3427+ exec dhcpd -user dhcpd -group dhcpd -f -6 -pf /run/maas/dhcp/dhcpd6.pid \
3428+ -cf /var/lib/maas/dhcpd6.conf -lf $LEASES_FILE $INTERFACES'
3429+
3430+[Install]
3431+WantedBy=multi-user.target
3432
3433=== added file 'debian/maas-dhcp.maintscript'
3434--- debian/maas-dhcp.maintscript 1970-01-01 00:00:00 +0000
3435+++ debian/maas-dhcp.maintscript 2017-03-28 19:35:45 +0000
3436@@ -0,0 +1,2 @@
3437+rm_conffile /etc/init/maas-dhcp-server.conf 1.7.0~beta6+bzr3231-0ubuntu1
3438+rm_conffile /etc/init/maas-dhcpv6-server.conf 1.7.0~beta6+bzr3231-0ubuntu1
3439
3440=== added file 'debian/maas-dhcp.postinst'
3441--- debian/maas-dhcp.postinst 1970-01-01 00:00:00 +0000
3442+++ debian/maas-dhcp.postinst 2017-03-28 19:35:45 +0000
3443@@ -0,0 +1,35 @@
3444+#!/bin/sh
3445+
3446+set -e
3447+
3448+if [ "$1" = "configure" ]
3449+then
3450+ # Stop the dhcpd instance that came with the isc-dhcp-server package.
3451+ # We run our own dhcpd instances.
3452+ systemctl stop isc-dhcp-server >/dev/null 2>&1 || true
3453+ systemctl disable isc-dhcp-server >/dev/null 2>&1 || true
3454+ systemctl stop isc-dhcp-server6 >/dev/null 2>&1 || true
3455+ systemctl disable isc-dhcp-server6 >/dev/null 2>&1 || true
3456+
3457+ dhcpd_prof="/etc/apparmor.d/usr.sbin.dhcpd"
3458+ if [ -f "${dhcpd_prof}" ] && command -v apparmor_parser >/dev/null 2>&1
3459+ then
3460+ apparmor_parser --replace --write-cache --skip-read-cache "${dhcpd_prof}" || true
3461+ fi
3462+
3463+ # Starting from 1.9, these config files are no longer stored in
3464+ # /etc/maas, but are stored in /var/lib/maas. Note that these
3465+ # are created automatically by MAAS. On upgrades, however, these
3466+ # need to be moved to not break DHCP.
3467+ if [ -f /etc/maas/dhcpd.conf ]; then
3468+ mv /etc/maas/dhcpd.conf /var/lib/maas/
3469+ fi
3470+ if [ -f /etc/maas/dhcpd6.conf ]; then
3471+ mv /etc/maas/dhcpd6.conf /var/lib/maas/
3472+ fi
3473+
3474+ # Ensure ownership is correct
3475+ chown root:dhcpd /var/lib/maas/dhcp
3476+fi
3477+
3478+#DEBHELPER#
3479
3480=== added file 'debian/maas-dhcp.postrm'
3481--- debian/maas-dhcp.postrm 1970-01-01 00:00:00 +0000
3482+++ debian/maas-dhcp.postrm 2017-03-28 19:35:45 +0000
3483@@ -0,0 +1,16 @@
3484+#!/bin/sh
3485+
3486+set -e
3487+
3488+if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
3489+ dhcpd_prof="/etc/apparmor.d/usr.sbin.dhcpd"
3490+ if [ -f "${dhcpd_prof}" ] &&
3491+ command -v apparmor_parser >/dev/null 2>&1; then
3492+ apparmor_parser --replace --write-cache --skip-read-cache "${dhcpd_prof}" || true
3493+ fi
3494+ if [ "$1" = "purge" ]; then
3495+ rm -rf /var/lib/maas/dhcp
3496+ fi
3497+fi
3498+
3499+#DEBHELPER#
3500
3501=== added file 'debian/maas-dhcp.preinst'
3502--- debian/maas-dhcp.preinst 1970-01-01 00:00:00 +0000
3503+++ debian/maas-dhcp.preinst 2017-03-28 19:35:45 +0000
3504@@ -0,0 +1,16 @@
3505+#!/bin/sh
3506+
3507+set -e
3508+
3509+. /usr/share/debconf/confmodule
3510+
3511+if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt 1.7.0~beta6+bzr3232-0ubuntu1; then
3512+ if [ -f /etc/init/maas-dhcp-server.conf ]; then
3513+ invoke-rc.d maas-dhcp-server stop
3514+ fi
3515+ if [ -f /etc/init/maas-dhcpv6-server.conf ]; then
3516+ invoke-rc.d maas-dhcpv6-server stop
3517+ fi
3518+fi
3519+
3520+#DEBHELPER#
3521
3522=== added file 'debian/maas-dns.dirs'
3523--- debian/maas-dns.dirs 1970-01-01 00:00:00 +0000
3524+++ debian/maas-dns.dirs 2017-03-28 19:35:45 +0000
3525@@ -0,0 +1,1 @@
3526+etc/bind/maas
3527
3528=== added file 'debian/maas-dns.postinst'
3529--- debian/maas-dns.postinst 1970-01-01 00:00:00 +0000
3530+++ debian/maas-dns.postinst 2017-03-28 19:35:45 +0000
3531@@ -0,0 +1,61 @@
3532+#!/bin/sh
3533+
3534+set -e
3535+
3536+edit_named_options() {
3537+ # Remove any existing MAAS-related include line from
3538+ # /etc/bind/named.conf.local, then re-add it.
3539+ sed -i '/^include\s.*maas/d' /etc/bind/named.conf.local
3540+ maas-region get_named_conf --edit --config_path /etc/bind/named.conf.local
3541+
3542+ # Add a line in /etc/bind/named.conf.options that includes the
3543+ # /etc/named/maas/named.conf.options.inside.maas file.
3544+ maas-region edit_named_options --config-path /etc/bind/named.conf.options
3545+}
3546+
3547+fix_dns_permissions() {
3548+ if [ -d /etc/bind/maas ]; then
3549+ chown maas:root /etc/bind/maas
3550+ chown -R maas:maas /etc/bind/maas/*
3551+ fi
3552+ if [ -f /etc/bind/maas/named.conf.maas ]; then
3553+ chown maas:maas /etc/bind/maas/named.conf.maas
3554+ chmod 644 /etc/bind/maas/named.conf.maas
3555+ fi
3556+ if [ -f /etc/bind/maas/named.conf.options.inside.maas ]; then
3557+ chown maas:maas /etc/bind/maas/named.conf.options.inside.maas
3558+ chmod 644 /etc/bind/maas/named.conf.options.inside.maas
3559+ fi
3560+ if [ -f /etc/bind/maas/rndc.conf.maas ]; then
3561+ chown maas:root /etc/bind/maas/rndc.conf.maas
3562+ chmod 600 /etc/bind/maas/rndc.conf.maas
3563+ fi
3564+ if [ -f /etc/bind/maas/named.conf.rndc.maas ]; then
3565+ chown maas:bind /etc/bind/maas/named.conf.rndc.maas
3566+ chmod 640 /etc/bind/maas/named.conf.rndc.maas
3567+ fi
3568+}
3569+
3570+# This handles installs and re-configuration
3571+if ([ "$1" = "configure" ] && [ -z "$2" ]) || [ -n "$DEBCONF_RECONFIGURE" ]; then
3572+ # If /etc/bind/maas is empty, set_up_dns.
3573+ if [ ! "$(ls -A /etc/bind/maas)" ]; then
3574+ maas-region set_up_dns
3575+ fi
3576+
3577+ # Fix permissions.
3578+ fix_dns_permissions
3579+
3580+ edit_named_options
3581+
3582+elif [ "$1" = "configure" ]; then
3583+ # Fix permissions
3584+ fix_dns_permissions
3585+
3586+ # ensure that DNS config is included
3587+ edit_named_options
3588+fi
3589+
3590+invoke-rc.d bind9 restart || true
3591+
3592+#DEBHELPER#
3593
3594=== added file 'debian/maas-dns.postrm'
3595--- debian/maas-dns.postrm 1970-01-01 00:00:00 +0000
3596+++ debian/maas-dns.postrm 2017-03-28 19:35:45 +0000
3597@@ -0,0 +1,25 @@
3598+#!/bin/sh
3599+
3600+set -e
3601+
3602+if [ "$1" = "remove" ]; then
3603+ if [ -f /etc/bind/named.conf.local ]; then
3604+ sed -i '/^include.*\"\/etc\/bind\/maas\/named.conf.maas\"\;$/d' \
3605+ /etc/bind/named.conf.local
3606+ sed -i '/^include.*\"\/etc\/bind\/maas\/named.conf.options.inside.maas\"\;$/d' \
3607+ /etc/bind/named.conf.options
3608+ fi
3609+fi
3610+
3611+if [ "$1" = "purge" ]; then
3612+ # Remove zone files
3613+ if [ -d /etc/bind/maas ]; then
3614+ rm -rf /etc/bind/maas
3615+ fi
3616+fi
3617+
3618+if [ -x /usr/sbin/invoke-rc.d ]; then
3619+ invoke-rc.d bind9 restart || true
3620+fi
3621+
3622+#DEBHELPER#
3623
3624=== added file 'debian/maas-proxy.dirs'
3625--- debian/maas-proxy.dirs 1970-01-01 00:00:00 +0000
3626+++ debian/maas-proxy.dirs 2017-03-28 19:35:45 +0000
3627@@ -0,0 +1,2 @@
3628+var/log/maas/proxy
3629+var/lib/maas
3630
3631=== added file 'debian/maas-proxy.install'
3632--- debian/maas-proxy.install 1970-01-01 00:00:00 +0000
3633+++ debian/maas-proxy.install 2017-03-28 19:35:45 +0000
3634@@ -0,0 +1,1 @@
3635+debian/extras/maas-proxy-common.sh usr/share/maas/
3636
3637=== added file 'debian/maas-proxy.logrotate'
3638--- debian/maas-proxy.logrotate 1970-01-01 00:00:00 +0000
3639+++ debian/maas-proxy.logrotate 2017-03-28 19:35:45 +0000
3640@@ -0,0 +1,24 @@
3641+#
3642+# Logrotate fragment for squid-deb-proxy.
3643+#
3644+/var/log/maas/proxy/*.log {
3645+ daily
3646+ compress
3647+ delaycompress
3648+ rotate 2
3649+ missingok
3650+ nocreate
3651+ sharedscripts
3652+ postrotate
3653+ if [ -x /usr/sbin/squid ]; then
3654+ SQUID=/usr/sbin/squid
3655+ elif [ -x /usr/sbin/squid3 ]; then
3656+ SQUID=/usr/sbin/squid3
3657+ else
3658+ echo "No squid binary found"
3659+ exit 1
3660+ fi
3661+
3662+ test ! -e /var/run/maas-proxy.pid || $SQUID -f /var/lib/maas/maas-proxy.conf -k rotate
3663+ endscript
3664+}
3665
3666=== added file 'debian/maas-proxy.maas-proxy.service'
3667--- debian/maas-proxy.maas-proxy.service 1970-01-01 00:00:00 +0000
3668+++ debian/maas-proxy.maas-proxy.service 2017-03-28 19:35:45 +0000
3669@@ -0,0 +1,19 @@
3670+[Unit]
3671+Description=MAAS Proxy
3672+Requires=network-online.target
3673+After=network-online.target
3674+ConditionPathExists=/var/lib/maas/maas-proxy.conf
3675+
3676+[Service]
3677+Type=forking
3678+PIDFile=/run/squid.pid
3679+Restart=always
3680+ExecStartPre=/bin/mkdir -p /run/maas/proxy
3681+ExecStartPre=/bin/sh -ec '\
3682+ . /usr/share/maas/maas-proxy-common.sh; \
3683+ pre_start'
3684+ExecStart=/usr/sbin/squid -Y -f /var/lib/maas/maas-proxy.conf
3685+ExecReload=/usr/sbin/squid -k reconfigure
3686+
3687+[Install]
3688+WantedBy=multi-user.target
3689
3690=== added file 'debian/maas-proxy.postinst'
3691--- debian/maas-proxy.postinst 1970-01-01 00:00:00 +0000
3692+++ debian/maas-proxy.postinst 2017-03-28 19:35:45 +0000
3693@@ -0,0 +1,28 @@
3694+#!/bin/sh
3695+
3696+set -e
3697+
3698+if [ "$1" = "configure" ]
3699+then
3700+ # Stop the squid3 instance that came with the squid3 package.
3701+ # We run our own squid3 instances.
3702+ # Handle both versions of the name, for safety.
3703+ for SQUID in squid squid3; do
3704+ systemctl stop ${SQUID} >/dev/null 2>&1 || true
3705+ systemctl disable ${SQUID} >/dev/null 2>&1 || true
3706+ done
3707+
3708+ # Ensure log folder is created.
3709+ mkdir -p /var/log/maas/proxy
3710+ chown -R proxy:proxy /var/log/maas/proxy
3711+
3712+ # maas-proxy.conf is now generated by MAAS itself and if we are
3713+ # upgrading from an earlier version that used to ship maas-proxy.conf
3714+ # in /etc/maas, it is safe to remove
3715+ if [ -f /etc/maas/maas-proxy.conf ]; then
3716+ rm /etc/maas/maas-proxy.conf
3717+ fi
3718+
3719+fi
3720+
3721+#DEBHELPER#
3722
3723=== added file 'debian/maas-proxy.postrm'
3724--- debian/maas-proxy.postrm 1970-01-01 00:00:00 +0000
3725+++ debian/maas-proxy.postrm 2017-03-28 19:35:45 +0000
3726@@ -0,0 +1,12 @@
3727+#!/bin/sh
3728+
3729+set -e
3730+
3731+if [ "$1" = "purge" ]; then
3732+ rm -rf /var/cache/maas-proxy
3733+ rm -rf /var/log/maas/proxy
3734+ rm -rf /var/spool/maas-proxy
3735+ rm -rf /var/lib/maas/maas-proxy.conf
3736+fi
3737+
3738+#DEBHELPER#
3739
3740=== added file 'debian/maas-rack-controller.config'
3741--- debian/maas-rack-controller.config 1970-01-01 00:00:00 +0000
3742+++ debian/maas-rack-controller.config 2017-03-28 19:35:45 +0000
3743@@ -0,0 +1,36 @@
3744+#!/bin/sh
3745+
3746+set -e
3747+
3748+. /usr/share/debconf/confmodule
3749+db_version 2.0
3750+
3751+# Only ask for new installations and reconfiguring.
3752+# XXX Fix to not ask when installing from the CD.
3753+if ([ "$1" = "configure" ] && [ -z "$2" ]); then
3754+
3755+ db_get maas-rack-controller/maas-url || true
3756+ if [ -z "$RET" ]; then
3757+ # Attempt to pre-populate if installing on the region controller.
3758+ if [ -f /usr/sbin/maas-region ]; then
3759+ url=$(maas-region local_config_get --maas-url --plain)
3760+ # If the URL doesn't end in /MAAS then add it. This helps upgrades from
3761+ # precise for which the URL didn't contain /MAAS, which is now required
3762+ if ! echo $url | grep -qs "/MAAS$"; then
3763+ url="${url}/MAAS"
3764+ fi
3765+ db_set maas-rack-controller/maas-url "$url"
3766+ else
3767+ # Will only get here if dbconf value not already set, or
3768+ # /etc/maas/regiond.conf doesn't exist.
3769+ db_input medium maas-rack-controller/maas-url || true
3770+ db_go
3771+ fi
3772+ fi
3773+fi
3774+
3775+if [ "$1" = "reconfigure" ]; then
3776+ db_input high maas-rack-controller/maas-url || true
3777+ db_go
3778+fi
3779+#DEBHELPER#
3780
3781=== added file 'debian/maas-rack-controller.dirs'
3782--- debian/maas-rack-controller.dirs 1970-01-01 00:00:00 +0000
3783+++ debian/maas-rack-controller.dirs 2017-03-28 19:35:45 +0000
3784@@ -0,0 +1,4 @@
3785+etc/maas
3786+var/lib/maas
3787+var/lib/maas/boot-resources
3788+var/log/maas
3789
3790=== added file 'debian/maas-rack-controller.install'
3791--- debian/maas-rack-controller.install 1970-01-01 00:00:00 +0000
3792+++ debian/maas-rack-controller.install 2017-03-28 19:35:45 +0000
3793@@ -0,0 +1,13 @@
3794+# Install uec2roottar
3795+debian/tmp/usr/bin/uec2roottar
3796+
3797+# Install maas-dhcp-helper
3798+debian/tmp/usr/sbin/maas-dhcp-helper
3799+
3800+# Install network monitoring scripts
3801+debian/tmp/usr/lib/maas/maas-network-monitor
3802+debian/tmp/usr/lib/maas/maas-dhcp-monitor
3803+
3804+# Install all other stuff
3805+debian/extras/99-maas-sudoers etc/sudoers.d
3806+debian/extras/maas-rack usr/sbin
3807
3808=== added file 'debian/maas-rack-controller.links'
3809--- debian/maas-rack-controller.links 1970-01-01 00:00:00 +0000
3810+++ debian/maas-rack-controller.links 2017-03-28 19:35:45 +0000
3811@@ -0,0 +1,1 @@
3812+usr/sbin/maas-rack usr/sbin/maas-provision
3813
3814=== added file 'debian/maas-rack-controller.lintian-overrides'
3815--- debian/maas-rack-controller.lintian-overrides 1970-01-01 00:00:00 +0000
3816+++ debian/maas-rack-controller.lintian-overrides 2017-03-28 19:35:45 +0000
3817@@ -0,0 +1,1 @@
3818+maas-rack-controller: binary-without-manpage usr/bin/uec2roottar usr/sbin/maas-dhcp-helper usr/lib/maas/maas-network-monitor usr/lib/maas/maas-dhcp-monitor
3819
3820=== added file 'debian/maas-rack-controller.logrotate'
3821--- debian/maas-rack-controller.logrotate 1970-01-01 00:00:00 +0000
3822+++ debian/maas-rack-controller.logrotate 2017-03-28 19:35:45 +0000
3823@@ -0,0 +1,15 @@
3824+/var/log/maas/rackd.log {
3825+ rotate 5
3826+ weekly
3827+ compress
3828+ missingok
3829+ # copytruncate may lose log messages at the moment of rotation, but
3830+ # there is no better way to integrate twistd and logrotate.
3831+ copytruncate
3832+ # The logs are all owned by the `maas` user, so drop privs.
3833+ su maas maas
3834+ # Don't rotate unless the log is at least 10MB.
3835+ minsize 10M
3836+ # Force rotation if the log grows beyond 50MB.
3837+ maxsize 50M
3838+}
3839
3840=== added file 'debian/maas-rack-controller.maas-rackd.service'
3841--- debian/maas-rack-controller.maas-rackd.service 1970-01-01 00:00:00 +0000
3842+++ debian/maas-rack-controller.maas-rackd.service 2017-03-28 19:35:45 +0000
3843@@ -0,0 +1,28 @@
3844+[Unit]
3845+Description=MAAS Rack Controller
3846+Documentation=https://maas.io/
3847+Requires=network-online.target
3848+After=network-online.target
3849+
3850+[Service]
3851+User=maas
3852+Group=maas
3853+Restart=always
3854+RestartSec=10s
3855+Environment="LOGFILE=/var/log/maas/rackd.log"
3856+# Prevent maas-dhcpd and maas-dhcpd6 from starting until maas-rackd
3857+# has regenerated the configurations and told the services to start.
3858+ExecStartPre=/bin/rm -f /var/lib/maas/dhcpd.sock
3859+ExecStartPre=/bin/rm -f /var/lib/maas/dhcpd.conf
3860+ExecStartPre=/bin/rm -f /var/lib/maas/dhcpd6.conf
3861+# Logs go to the journal; read them with
3862+# journalctl -u maas-rackd
3863+# Logs also go to $LOGFILE for backward compatibility. The journal
3864+# should now be preferred as the $LOGFILE will be removed.
3865+ExecStart=/bin/sh -c \
3866+ 'exec /usr/bin/authbind --deep /usr/bin/twistd3 --nodaemon --pidfile= \
3867+ --logger=provisioningserver.logger.EventLogger maas-rackd 2>&1 | \
3868+ tee -a $LOGFILE'
3869+
3870+[Install]
3871+WantedBy=multi-user.target
3872
3873=== added file 'debian/maas-rack-controller.maintscript'
3874--- debian/maas-rack-controller.maintscript 1970-01-01 00:00:00 +0000
3875+++ debian/maas-rack-controller.maintscript 2017-03-28 19:35:45 +0000
3876@@ -0,0 +1,9 @@
3877+rm_conffile /etc/maas/bootresources.yaml 1.7.0~beta1+bzr2781-0ubuntu1
3878+rm_conffile /etc/maas/maas_local_celeryconfig_cluster.py 1.7.0~beta3+bzr3043-0ubuntu1
3879+rm_conffile /etc/init/maas-cluster-celery.conf 1.7.0~beta3+bzr3043-0ubuntu1
3880+rm_conffile /etc/init/maas-pserv.conf 1.7.0~beta3+bzr3043-0ubuntu1
3881+rm_conffile /etc/init/maas-cluster.conf 1.7.0~beta6+bzr3231-0ubuntu1
3882+rm_conffile /etc/init/maas-cluster-register.conf 1.7.0~beta6+bzr3231-0ubuntu1
3883+rm_conffile /etc/maas/maas-cluster-http.conf 1.8.0~alpha1+bzr3522-0ubuntu1
3884+rm_conffile /etc/init/maas-clusterd.conf 2.0.0~alpha1+bzr4635-0ubuntu1
3885+rm_conffile /lib/systemd/system/maas-clusterd.service 2.0.0~alpha1+bzr4635-0ubuntu1
3886
3887=== added file 'debian/maas-rack-controller.postinst'
3888--- debian/maas-rack-controller.postinst 1970-01-01 00:00:00 +0000
3889+++ debian/maas-rack-controller.postinst 2017-03-28 19:35:45 +0000
3890@@ -0,0 +1,168 @@
3891+#!/bin/sh
3892+
3893+set -e
3894+
3895+. /usr/share/debconf/confmodule
3896+db_version 2.0
3897+
3898+RELEASE=`lsb_release -rs` || RELEASE=""
3899+
3900+configure_logging() {
3901+ # Give appropriate permissions
3902+ if [ ! -f /var/log/maas/rackd.log ]; then
3903+ touch /var/log/maas/rackd.log
3904+ fi
3905+ chown maas:maas /var/log/maas/rackd.log
3906+}
3907+
3908+configure_libdir() {
3909+ # create var dir
3910+ if [ ! -d /var/lib/maas/boot-resources ]; then
3911+ mkdir -p /var/lib/maas/boot-resources
3912+ fi
3913+ # Ensure /var/lib/maas/boot-resources has correct ownership
3914+ chown -R maas:maas /var/lib/maas/boot-resources
3915+
3916+ # If /var/lib/maas/secret exists, ensure ownership and
3917+ # permissions are correct
3918+ if [ -f /var/lib/maas/secret ]; then
3919+ chown maas:maas /var/lib/maas/secret
3920+ chmod 0640 /var/lib/maas/secret
3921+ fi
3922+
3923+ if [ -f /var/lib/maas/maas_id ]; then
3924+ chown maas:maas /var/lib/maas/maas_id
3925+ fi
3926+
3927+ # Ensure dhcpd related files have the correct permissions
3928+ if [ -f /var/lib/maas/dhcpd.conf ]; then
3929+ chown root:maas /var/lib/maas/dhcpd.conf
3930+ fi
3931+ if [ -f /var/lib/maas/dhcpd-interfaces ]; then
3932+ chown root:maas /var/lib/maas/dhcpd-interfaces
3933+ fi
3934+ if [ -f /var/lib/maas/dhcpd6.conf ]; then
3935+ chown maas:maas /var/lib/maas/dhcpd6.conf
3936+ fi
3937+ if [ -f /var/lib/maas/dhcpd6-interfaces ]; then
3938+ chown maas:maas /var/lib/maas/dhcpd6-interfaces
3939+ fi
3940+ if [ -S /var/lib/maas/dhcpd.sock ]; then
3941+ chown maas:maas /var/lib/maas/dhcpd.sock
3942+ fi
3943+}
3944+
3945+configure_maas_tgt() {
3946+ # Ensure that iSCSI targets get re-defined on reboot.
3947+ # Creates a softlink in /etc/tgt/conf.d/ that points to the current
3948+ # boot images' tgt configuration.
3949+ mkdir -p /etc/tgt/conf.d
3950+ ln -sf /var/lib/maas/boot-resources/current/maas.tgt /etc/tgt/conf.d/maas.conf
3951+}
3952+
3953+extract_cluster_uuid(){
3954+ # Extract ClUSTER_UUID setting from config file $1. This will work
3955+ # on the old the cluster config file (which is shell).
3956+ awk '{ split($1,array,"\"")} END{print array[2] }' "$1"
3957+}
3958+
3959+extract_maas_url(){
3960+ # Extract the MAAS_URL setting from the config file $1.
3961+ grep -Eo "https?://[^ ]+" "$1" | cut -d"\"" -f1
3962+}
3963+
3964+configure_cluster_uuid(){
3965+ # This will configure a UUID if one has not previously been set.
3966+ maas-rack config --init
3967+}
3968+
3969+configure_cluster_authbind() {
3970+ MAAS_UID="`id -u maas`"
3971+ if [ ! -f "/etc/authbind/byuid/$MAAS_UID" ]; then
3972+ if [ ! -d "/etc/authbind/byuid" ]; then
3973+ mkdir -p /etc/authbind/byuid
3974+ chmod 755 /etc/authbind
3975+ chmod 755 /etc/authbind/byuid
3976+ fi
3977+ fi
3978+ echo '0.0.0.0/0:68,69' >/etc/authbind/byuid/$MAAS_UID
3979+ echo '::/0,68-69' >>/etc/authbind/byuid/$MAAS_UID
3980+ chown maas:maas /etc/authbind/byuid/$MAAS_UID
3981+ chmod 700 /etc/authbind/byuid/$MAAS_UID
3982+}
3983+
3984+configure_maas_url(){
3985+ # Get the MAAS URL on configure/reconfigure and write it to the conf files.
3986+ db_get maas-rack-controller/maas-url || true
3987+ if [ -n "$RET" ]; then
3988+ maas-rack config --region-url "$RET"
3989+ fi
3990+}
3991+
3992+configure_shared_secret() {
3993+ db_get maas-rack-controller/shared-secret || true
3994+ if [ -n "$RET" ]; then
3995+ echo "$RET" | maas-rack install-shared-secret
3996+ chown maas:maas /var/lib/maas/secret
3997+ chmod 0640 /var/lib/maas/secret
3998+ fi
3999+}
4000+
4001+upgrade_from_cluster_controller() {
4002+ # If we are upgrading from an older (1.7, 1.8) version, then we need
4003+ # to obtain the cluster UUID from the old configuration file and set
4004+ # it with the new configuration tool.
4005+ if [ -f /etc/maas/maas_cluster.conf ]; then
4006+ uuid=$(extract_cluster_uuid /etc/maas/maas_cluster.conf)
4007+ maas-rack config --uuid "$uuid"
4008+ maas_url=$(extract_maas_url /etc/maas/maas_cluster.conf)
4009+ maas-rack config --region-url "$maas_url"
4010+ db_set maas-rack-controller/maas-url "$maas_url"
4011+ mv /etc/maas/maas_cluster.conf /etc/maas/maas_cluster.conf.maas-old
4012+ mv /etc/maas/pserv.yaml /etc/maas/pserv.yaml.maas-old
4013+ fi
4014+ # If we are upgrading from (1.9, 1.10) version, then we need to obtain
4015+ # the maas_url and set it to debconf. Otherwise, the config file used
4016+ # is exactly the same.
4017+ if [ -f /etc/maas/clusterd.conf.1.10 ]; then
4018+ mv /etc/maas/clusterd.conf.1.10 /etc/maas/rackd.conf
4019+ maas_url=$(extract_maas_url /etc/maas/rackd.conf)
4020+ db_set maas-rack-controller/maas-url "$maas_url"
4021+ fi
4022+}
4023+
4024+# Unconditionally ensure that there is at least an empty configuration
4025+# file. This does *not* overwrite any existing configuration.
4026+maas-rack config
4027+
4028+if [ "$1" = "configure" ] && [ -z "$2" ]; then
4029+ configure_logging
4030+ configure_libdir
4031+ configure_maas_tgt
4032+ configure_maas_url
4033+ configure_cluster_uuid
4034+ configure_cluster_authbind
4035+ maas-rack upgrade-cluster
4036+ upgrade_from_cluster_controller
4037+ configure_shared_secret
4038+
4039+elif [ -n "$DEBCONF_RECONFIGURE" ]; then
4040+ configure_maas_url
4041+ # Only ask for a shared secret when the region is not installed
4042+ # on the same system.
4043+ if [ ! -f /usr/sbin/maas-region ]; then
4044+ db_input high maas-rack-controller/shared-secret
4045+ db_go
4046+ fi
4047+ configure_shared_secret
4048+
4049+elif [ "$1" = "configure" ] && dpkg --compare-versions "$2" gt 0.1+bzr266+dfsg-0ubuntu1; then
4050+ configure_logging
4051+ configure_libdir
4052+ configure_cluster_authbind
4053+ maas-rack upgrade-cluster
4054+fi
4055+
4056+db_stop
4057+
4058+#DEBHELPER#
4059
4060=== added file 'debian/maas-rack-controller.postrm'
4061--- debian/maas-rack-controller.postrm 1970-01-01 00:00:00 +0000
4062+++ debian/maas-rack-controller.postrm 2017-03-28 19:35:45 +0000
4063@@ -0,0 +1,50 @@
4064+#!/bin/sh
4065+
4066+set -e
4067+
4068+#DEBHELPER#
4069+
4070+RELEASE=`lsb_release -rs` || RELEASE=""
4071+
4072+case "$1" in
4073+ purge)
4074+ # remove logfile as it wasn't installed by packaging
4075+ rm -rf /var/log/maas/rackd.log*
4076+
4077+ # remove var directories provided it will always have files
4078+ # not installed or tracked by packaging
4079+ rm -rf /var/lib/maas/boot-resources
4080+
4081+ # remove files that were created by the rack controller
4082+ rm -rf /var/lib/maas/dhcpd.sock
4083+ rm -rf /var/lib/maas/dhcpd.conf
4084+ rm -rf /var/lib/maas/dhcpd-interfaces
4085+ rm -rf /var/lib/maas/dhcpd6.conf
4086+ rm -rf /var/lib/maas/dhcpd6-interfaces
4087+
4088+ # Delete symlink for iSCSI config.
4089+ if [ -L /etc/tgt/conf.d/maas.conf ]; then
4090+ rm -rf /etc/tgt/conf.d/maas.conf
4091+ fi
4092+
4093+ # Remove authbind
4094+ MAAS_UID="`id -u maas`"
4095+ if [ -f "/etc/authbind/byuid/$MAAS_UID" ]; then
4096+ rm -rf /etc/authbind/byuid/$MAAS_UID
4097+ fi
4098+
4099+ # Remove rackd.conf file
4100+ rm -rf /etc/maas/rackd.conf
4101+
4102+ # Deleting old config files if they exist
4103+ if [ -f /etc/maas/pserv.yaml.maas-old ]; then
4104+ rm -rf /etc/maas/pserv.yaml.maas-old
4105+ fi
4106+ if [ -f /etc/maas/maas_cluster.conf.maas-old ]; then
4107+ rm -rf /etc/maas/maas_cluster.conf.maas-old
4108+ fi
4109+ if [ -f /etc/maas/templates/dhcp.maas-old ]; then
4110+ rm -rf /etc/maas/templates/dhcp.maas-old
4111+ fi
4112+
4113+esac
4114
4115=== added file 'debian/maas-rack-controller.preinst'
4116--- debian/maas-rack-controller.preinst 1970-01-01 00:00:00 +0000
4117+++ debian/maas-rack-controller.preinst 2017-03-28 19:35:45 +0000
4118@@ -0,0 +1,56 @@
4119+#!/bin/sh
4120+
4121+set -e
4122+
4123+. /usr/share/debconf/confmodule
4124+
4125+if [ "$1" = "install" ]; then
4126+ if [ -f /etc/init/maas-pserv.conf ]; then
4127+ invoke-rc.d maas-pserv stop
4128+ fi
4129+
4130+ if [ -f /etc/init/maas-cluster-celery.conf ]; then
4131+ invoke-rc.d maas-cluster-celery stop
4132+ fi
4133+
4134+ if [ -f /var/log/maas/celery.log ]; then
4135+ rm -rf /var/log/maas/celery.log
4136+ fi
4137+
4138+ if [ -f /etc/init/maas-cluster.conf ]; then
4139+ invoke-rc.d maas-cluster stop
4140+ fi
4141+
4142+ if [ -f /var/log/maas/pserv.log ]; then
4143+ rm -rf /var/log/maas/pserv.log
4144+ fi
4145+
4146+ if [ -f /etc/apache2/conf-enabled/maas-cluster-http.conf ]; then
4147+ rm -rf /etc/apache2/conf-enabled/maas-cluster-http.conf
4148+ fi
4149+
4150+ if [ -f /etc/init/maas-clusterd.conf ] || [ -f /lib/systemd/system/maas-clusterd.service ]; then
4151+ invoke-rc.d maas-clusterd stop
4152+ fi
4153+
4154+ if [ -f /etc/maas/clusterd.conf ]; then
4155+ mv /etc/maas/clusterd.conf /etc/maas/clusterd.conf.1.10
4156+ fi
4157+
4158+ if [ -f /var/log/maas/clusterd.log ]; then
4159+ mv /var/log/maas/clusterd.log /var/log/maas/rackd.log
4160+ fi
4161+
4162+fi
4163+
4164+if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then
4165+ if [ -d /etc/maas/templates/power ]; then
4166+ rm -rf /etc/maas/templates/power
4167+ fi
4168+
4169+ if [ -d /etc/maas/templates/dhcp ]; then
4170+ mv /etc/maas/templates/dhcp /etc/maas/templates/dhcp.maas-old
4171+ fi
4172+fi
4173+
4174+#DEBHELPER#
4175
4176=== added file 'debian/maas-rack-controller.templates'
4177--- debian/maas-rack-controller.templates 1970-01-01 00:00:00 +0000
4178+++ debian/maas-rack-controller.templates 2017-03-28 19:35:45 +0000
4179@@ -0,0 +1,15 @@
4180+Template: maas-rack-controller/maas-url
4181+Type: string
4182+_Description: Ubuntu MAAS API address:
4183+ The MAAS cluster controller and nodes need to contact the MAAS region
4184+ controller API. Set the URL at which they can reach the MAAS API remotely,
4185+ e.g. "http://192.168.1.1/MAAS".
4186+ Since nodes must be able to access this URL, localhost or 127.0.0.1 are not
4187+ useful values here.
4188+
4189+Template: maas-rack-controller/shared-secret
4190+Type: password
4191+_Description: MAAS Rack Controller Shared Secret:
4192+ The MAAS rack controller needs to contact the MAAS region controller
4193+ with the shared secret found in /var/lib/maas/secret on the region controller.
4194+ Set the shared secret here.
4195
4196=== added file 'debian/maas-rack-udeb.postinst'
4197--- debian/maas-rack-udeb.postinst 1970-01-01 00:00:00 +0000
4198+++ debian/maas-rack-udeb.postinst 2017-03-28 19:35:45 +0000
4199@@ -0,0 +1,77 @@
4200+#!/bin/sh -e
4201+
4202+# Source debconf library.
4203+. /usr/share/debconf/confmodule
4204+db_version 2.0
4205+
4206+# This conf script is capable of backing up
4207+db_capb backup
4208+
4209+logfile=/var/lib/preseed/log
4210+set_question () {
4211+ echo "$1 $2 $3 $4" >>"$logfile"
4212+ if ! db_fget "$2" seen; then
4213+ db_register debian-installer/dummy "$2"
4214+ db_subst "$2" ID "$2"
4215+ db_fget "$2" seen
4216+ fi
4217+ if [ "$RET" = false ]; then
4218+ db_set "$2" "$4"
4219+ db_fset "$2" seen true
4220+ fi
4221+}
4222+
4223+STATE=1
4224+while [ "$STATE" != 0 -a "$STATE" != 4 ]; do
4225+ case "$STATE" in
4226+ 1)
4227+ # This is a confirmation that we want to install MAAS. If we don't
4228+ # then we exit the MAAS installation process
4229+ db_input high maas-rack-udeb/rack-confirmation || true
4230+ ;;
4231+ 2)
4232+ #Ask for MAAS url
4233+ db_get maas-rack-udeb/rack-confirmation
4234+ if [ "$RET" != "true" ]; then
4235+ break
4236+ fi
4237+ db_input critical maas-rack-udeb/maas-url || true
4238+ ;;
4239+
4240+ 3)
4241+ # Ask for Shared Secret
4242+ db_input critical maas-rack-udeb/shared-secret || true
4243+ ;;
4244+
4245+ esac
4246+
4247+ if db_go; then
4248+ STATE=$(($STATE + 1))
4249+ else
4250+ STATE=$(($STATE - 1))
4251+ fi
4252+done
4253+db_capb
4254+
4255+db_get maas-rack-udeb/rack-confirmation
4256+if [ "$RET" != "true" ]; then
4257+ # MAAS rack controller won't be installed
4258+ exit 0
4259+fi
4260+
4261+db_get maas-rack-udeb/maas-url
4262+url="$RET"
4263+if [ -n "$url" ]; then
4264+ set_question maas-rack-controller maas-rack-controller/maas-url string "$url"
4265+fi
4266+
4267+db_get maas-rack-udeb/shared-secret
4268+secret="$RET"
4269+if [ -n "$secret" ]; then
4270+ set_question maas-rack-controller maas-rack-controller/shared-secret password "$secret"
4271+fi
4272+
4273+# Tell the package manager that we will be installing MAAS Rack Controller
4274+db_set pkgsel/include maas-rack-controller
4275+set_question tasksel tasksel/first multiselect "standard, server"
4276+exit 0
4277
4278=== added file 'debian/maas-rack-udeb.templates'
4279--- debian/maas-rack-udeb.templates 1970-01-01 00:00:00 +0000
4280+++ debian/maas-rack-udeb.templates 2017-03-28 19:35:45 +0000
4281@@ -0,0 +1,34 @@
4282+Template: debian-installer/maas-rack-udeb/title
4283+Type: text
4284+_Description: Install your Metal as a Service (MAAS) Rack Controller
4285+
4286+Template: maas-rack-udeb/rack-confirmation
4287+Type: boolean
4288+_Description: Would you like to proceed with the installation of your MAAS Rack Controller?
4289+ The MAAS rack controller (maas-rackd) provides highly available, fast
4290+ and local broadcast services to the machines provisioned by MAAS. You
4291+ need a MAAS rack controller attached to each fabric (which is a set of
4292+ trunked switches). You can attach multiple rack controllers to these
4293+ physical networks for high availability, with secondary rack controllers
4294+ automatically stepping to provide these services if the primary rack
4295+ controller fails.
4296+ .
4297+ By choosing to install a MAAS Rack controller, you will have to connect
4298+ it to a Region controller to service your machines.
4299+
4300+Template: maas-rack-udeb/maas-url
4301+Type: string
4302+_Description: Ubuntu MAAS Region API address:
4303+ The MAAS rack controller and nodes need to contact the MAAS region
4304+ controller API. Set the URL at which they can reach the MAAS API remotely,
4305+ e.g. "http://192.168.1.1:5240/MAAS".
4306+ .
4307+ Since nodes must be able to access this URL, localhost or 127.0.0.1 are not
4308+ useful values here.
4309+
4310+Template: maas-rack-udeb/shared-secret
4311+Type: password
4312+_Description: MAAS Rack Controller shared secret:
4313+ The MAAS rack controller needs to contact the MAAS region controller
4314+ with the shared secret found in /var/lib/maas/secret on the region controller.
4315+ Set the shared secret here.
4316
4317=== added file 'debian/maas-region-api.apport'
4318--- debian/maas-region-api.apport 1970-01-01 00:00:00 +0000
4319+++ debian/maas-region-api.apport 2017-03-28 19:35:45 +0000
4320@@ -0,0 +1,72 @@
4321+#!/usr/bin/python
4322+
4323+'''apport hook for maas-region-controller
4324+
4325+(c) 2012-2014 Canonical Ltd.
4326+Author: Andres Rodriguez <andres.rodriguez@canonical.com>
4327+
4328+This program is free software; you can redistribute it and/or modify it
4329+under the terms of the GNU General Public License as published by the
4330+Free Software Foundation; either version 2 of the License, or (at your
4331+option) any later version. See http://www.gnu.org/copyleft/gpl.html for
4332+the full text of the license.
4333+'''
4334+
4335+import os.path
4336+import subprocess
4337+import tempfile
4338+
4339+from apport.hookutils import (
4340+ attach_conffiles,
4341+ attach_file,
4342+ attach_file_if_exists,
4343+ attach_related_packages,
4344+)
4345+
4346+
4347+def attach_journal_logs(report, key, *units):
4348+ """Capture logs from systemd's journal."""
4349+ if os.path.exists("/bin/journalctl"):
4350+ cmd = ['/bin/journalctl', '--utc', '--since=-24hours']
4351+ cmd.extend("--unit=%s" % unit for unit in units)
4352+ with tempfile.NamedTemporaryFile() as logfile:
4353+ subprocess.call(cmd, stdout=logfile, stderr=logfile)
4354+ attach_file(report, logfile.name, key)
4355+
4356+
4357+def add_info(report, ui):
4358+ response = ui.yesno(
4359+ "The contents of /etc/maas/regiond.conf and /etc/maas/rackd.conf "
4360+ "may help developers diagnose your bug more quickly. However, it may "
4361+ "contain sensitive information. Do you want to include it in your bug "
4362+ "report?")
4363+
4364+ if response is None:
4365+ # The user cancelled.
4366+ raise StopIteration
4367+ elif response is True:
4368+ # The user agreed to include the configuration files.
4369+ attach_conffiles(report, 'maas')
4370+ attach_file_if_exists(
4371+ report, '/etc/maas/regiond.conf', 'MAASRegionConfig')
4372+ attach_file_if_exists(
4373+ report, '/etc/maas/rackd.conf', 'MAASClusterConfig')
4374+ else:
4375+ # The user declined to include the configuration files.
4376+ pass
4377+
4378+ # Attaching log files (Upstart).
4379+ attach_file_if_exists(
4380+ report, '/var/log/maas/regiond.log', 'MAASRegionLog')
4381+ attach_file_if_exists(
4382+ report, '/var/log/maas/rackd.log', 'MAASClusterLog')
4383+
4384+ # Attaching log files (systemd). These will overwrite the logs above on a
4385+ # system where systemd is available.
4386+ attach_journal_logs(
4387+ report, "MAASRegionLog", "maas-regiond", "maas-regiond-worker@*")
4388+ attach_journal_logs(
4389+ report, "MAASClusterLog", "maas-rackd")
4390+
4391+ # Attaching related packages info
4392+ attach_related_packages(report, ['python-django-maas', 'apparmor'])
4393
4394=== added file 'debian/maas-region-api.install'
4395--- debian/maas-region-api.install 1970-01-01 00:00:00 +0000
4396+++ debian/maas-region-api.install 2017-03-28 19:35:45 +0000
4397@@ -0,0 +1,20 @@
4398+# Install static files
4399+debian/tmp/usr/share/maas/web/static
4400+
4401+# Install Apache Config
4402+debian/tmp/usr/share/maas/maas-http.conf
4403+
4404+# Install new preseed files
4405+debian/tmp/etc/maas/preseeds
4406+
4407+# Install driver configuration file
4408+debian/tmp/etc/maas/drivers.yaml
4409+
4410+# Install winrm certificate generation script
4411+debian/tmp/usr/bin/maas-generate-winrm-cert
4412+
4413+# Install all other stuff
4414+debian/extras/maas-region usr/sbin
4415+debian/extras/20-maas.conf etc/rsyslog.d
4416+debian/extras/maas_remote_syslog_compress etc/cron.d
4417+debian/extras/99-maas-region-sudoers etc/sudoers.d
4418
4419=== added file 'debian/maas-region-api.links'
4420--- debian/maas-region-api.links 1970-01-01 00:00:00 +0000
4421+++ debian/maas-region-api.links 2017-03-28 19:35:45 +0000
4422@@ -0,0 +1,8 @@
4423+# dh-systemd does not yet appear to fully grok template units, so we
4424+# install unit dependencies directly instead.
4425+lib/systemd/system/maas-regiond-worker@.service lib/systemd/system/maas-regiond.service.wants/maas-regiond-worker@1.service
4426+lib/systemd/system/maas-regiond-worker@.service lib/systemd/system/maas-regiond.service.wants/maas-regiond-worker@2.service
4427+lib/systemd/system/maas-regiond-worker@.service lib/systemd/system/maas-regiond.service.wants/maas-regiond-worker@3.service
4428+lib/systemd/system/maas-regiond-worker@.service lib/systemd/system/maas-regiond.service.wants/maas-regiond-worker@4.service
4429+
4430+usr/sbin/maas-region usr/sbin/maas-region-admin
4431
4432=== added file 'debian/maas-region-api.lintian-overrides'
4433--- debian/maas-region-api.lintian-overrides 1970-01-01 00:00:00 +0000
4434+++ debian/maas-region-api.lintian-overrides 2017-03-28 19:35:45 +0000
4435@@ -0,0 +1,5 @@
4436+maas-region-api: binary-without-manpage usr/sbin/maas
4437+maas-region-api: script-not-executable etc/maas/templates/commissioning-user-data/snippets/maas_ipmi_autodetect.py
4438+maas-region-api: script-not-executable etc/maas/templates/commissioning-user-data/snippets/maas_signal.py
4439+maas-region-api: script-not-executable etc/maas/templates/commissioning-user-data/user_data.template
4440+maas-region-api: script-not-executable etc/maas/templates/commissioning-user-data/snippets/maas_get.py
4441
4442=== added file 'debian/maas-region-api.logrotate'
4443--- debian/maas-region-api.logrotate 1970-01-01 00:00:00 +0000
4444+++ debian/maas-region-api.logrotate 2017-03-28 19:35:45 +0000
4445@@ -0,0 +1,15 @@
4446+/var/log/maas/regiond.log {
4447+ rotate 5
4448+ weekly
4449+ compress
4450+ missingok
4451+ # copytruncate may lose log messages at the moment of rotation, but
4452+ # there is no better way to integrate twistd and logrotate.
4453+ copytruncate
4454+ # The logs are all owned by the `maas` user, so drop privs.
4455+ su maas maas
4456+ # Don't rotate unless the log is at least 10MB.
4457+ minsize 10M
4458+ # Force rotation if the log grows beyond 50MB.
4459+ maxsize 50M
4460+}
4461
4462=== added file 'debian/maas-region-api.maas-regiond-worker@.service'
4463--- debian/maas-region-api.maas-regiond-worker@.service 1970-01-01 00:00:00 +0000
4464+++ debian/maas-region-api.maas-regiond-worker@.service 2017-03-28 19:35:45 +0000
4465@@ -0,0 +1,28 @@
4466+[Unit]
4467+Description=MAAS Region Controller (Worker %i)
4468+Documentation=https://maas.io/
4469+Requires=network-online.target
4470+After=network-online.target
4471+PartOf=maas-regiond.service
4472+# This will go away one we support new config files.
4473+ConditionPathExists=/etc/maas/regiond.conf
4474+
4475+[Service]
4476+User=maas
4477+Group=maas
4478+Restart=always
4479+RestartSec=10s
4480+Environment="MAAS_REGIOND_WORKER_ID=%i"
4481+Environment="DJANGO_SETTINGS_MODULE=maasserver.djangosettings.settings"
4482+Environment="LOGFILE=/var/log/maas/regiond.log"
4483+# Logs go to the journal; read them with:
4484+# journalctl -u maas-regiond-worker@*
4485+# Logs also go to $LOGFILE for backward compatibility. The journal
4486+# should now be preferred as $LOGFILE will be removed.
4487+ExecStart=/bin/sh -c \
4488+ 'exec twistd3 --nodaemon --pidfile= \
4489+ --logger=provisioningserver.logger.EventLogger maas-regiond 2>&1 | \
4490+ tee -a $LOGFILE'
4491+
4492+[Install]
4493+WantedBy=maas-regiond.service
4494
4495=== added file 'debian/maas-region-api.maas-regiond.service'
4496--- debian/maas-region-api.maas-regiond.service 1970-01-01 00:00:00 +0000
4497+++ debian/maas-region-api.maas-regiond.service 2017-03-28 19:35:45 +0000
4498@@ -0,0 +1,24 @@
4499+[Unit]
4500+Description=MAAS Region Controller
4501+Documentation=https://maas.io/
4502+
4503+[Service]
4504+Type=oneshot
4505+RemainAfterExit=yes
4506+# systemd.service(5) clearly states that ExecStart can be specified zero
4507+# times when Type=oneshot, but it does appears to be needed at present.
4508+ExecStart=/bin/true
4509+
4510+#
4511+# The maas-region-api package configures four workers. This
4512+# should work for most people. However:
4513+#
4514+# * `systemctl start maas-regiond-worker@x` (where 'x' can be anything,
4515+# though integers >= 5 seem logical) will start an additional worker.
4516+#
4517+# * `systemctl enable maas-regiond-worker@x` will configure that worker
4518+# so that it's persistent across reboots.
4519+#
4520+
4521+[Install]
4522+WantedBy=multi-user.target
4523
4524=== added file 'debian/maas-region-api.maintscript'
4525--- debian/maas-region-api.maintscript 1970-01-01 00:00:00 +0000
4526+++ debian/maas-region-api.maintscript 2017-03-28 19:35:45 +0000
4527@@ -0,0 +1,7 @@
4528+rm_conffile /etc/maas/txlongpoll.yaml 1.7.0~beta4+bzr3124-0ubuntu1
4529+rm_conffile /etc/init/maas-txlongpoll.conf 1.7.0~beta4+bzr3124-0ubuntu1
4530+rm_conffile /etc/init/maas-region-celery.conf 1.7.0~beta4+bzr3124-0ubuntu1
4531+rm_conffile /etc/maas/maas_local_celerconfig.py 1.7.0~beta4+bzr3124-0ubuntu1
4532+rm_conffile /usr/share/maas/maas_local_celerconfig.py 1.7.0~beta4+bzr3124-0ubuntu1
4533+rm_conffile /etc/maas/maas_local_celeryconfig.py 1.7.0~beta4+bzr3124-0ubuntu1
4534+rm_conffile /etc/maas/maas-http.conf 1.9.0~alpha1+bzr4190-0ubuntu1
4535
4536=== added file 'debian/maas-region-api.postinst'
4537--- debian/maas-region-api.postinst 1970-01-01 00:00:00 +0000
4538+++ debian/maas-region-api.postinst 2017-03-28 19:35:45 +0000
4539@@ -0,0 +1,82 @@
4540+#!/bin/sh
4541+
4542+set -e
4543+
4544+. /usr/share/debconf/confmodule
4545+db_version 2.0
4546+
4547+RELEASE=`lsb_release -rs` || RELEASE=""
4548+
4549+configure_region_http() {
4550+ # handle apache configs
4551+ if [ -e /usr/share/maas/maas-http.conf -a \
4552+ ! -e /etc/apache2/conf-enabled/maas-http.conf ]; then
4553+ ln -sf /usr/share/maas/maas-http.conf /etc/apache2/conf-enabled/maas-http.conf
4554+ fi
4555+
4556+ # enable apache modules needed
4557+ a2enmod proxy_http
4558+ a2enmod proxy_wstunnel
4559+ a2enmod expires
4560+ a2enmod rewrite
4561+}
4562+
4563+configure_logging() {
4564+ # Give appropriate permissions
4565+ if [ ! -f /var/log/maas/regiond.log ]; then
4566+ touch /var/log/maas/regiond.log
4567+ fi
4568+ chown maas:maas /var/log/maas/regiond.log
4569+
4570+ # Create log directory base
4571+ mkdir -p /var/log/maas/rsyslog
4572+ chown -R syslog:syslog /var/log/maas/rsyslog
4573+
4574+ # Make sure rsyslog reads our config after creating the
4575+ # destination folder.
4576+ systemctl restart rsyslog >/dev/null 2>&1 || true
4577+
4578+ # apache2 log symlinks
4579+ ln -sf /var/log/apache2 /var/log/maas/
4580+}
4581+
4582+configure_libdir() {
4583+ # If /var/lib/maas/secret exists, ensure ownership and
4584+ # permissions are correct
4585+ if [ -f /var/lib/maas/secret ]; then
4586+ chown maas:maas /var/lib/maas/secret
4587+ chmod 0640 /var/lib/maas/secret
4588+ fi
4589+
4590+ if [ -f /var/lib/maas/maas_id ]; then
4591+ chown maas:maas /var/lib/maas/maas_id
4592+ fi
4593+}
4594+
4595+# Unconditionally ensure that there is at least an empty configuration
4596+# file. This does *not* overwrite any existing configuration.
4597+maas-region local_config_set
4598+
4599+if [ "$1" = "configure" ] && [ -z "$2" ]; then
4600+ configure_region_http
4601+ configure_logging
4602+ configure_libdir
4603+
4604+elif [ "$1" = "configure" ] && dpkg --compare-versions "$2" gt 0.1+bzr266+dfsg-0ubuntu1; then
4605+ # Logging changed at r2611, ensure it is set up.
4606+ configure_logging
4607+ configure_libdir
4608+
4609+ # If upgrading to any later package version, then upgrade db.
4610+ invoke-rc.d apache2 stop || true
4611+
4612+ # make sure maas http config is symlinked
4613+ configure_region_http
4614+
4615+fi
4616+
4617+invoke-rc.d apache2 restart || true
4618+
4619+db_stop
4620+
4621+#DEBHELPER#
4622
4623=== added file 'debian/maas-region-api.postrm'
4624--- debian/maas-region-api.postrm 1970-01-01 00:00:00 +0000
4625+++ debian/maas-region-api.postrm 2017-03-28 19:35:45 +0000
4626@@ -0,0 +1,50 @@
4627+#!/bin/sh
4628+
4629+set -e
4630+
4631+. /usr/share/debconf/confmodule
4632+
4633+RELEASE=`lsb_release -rs` || RELEASE=""
4634+
4635+case "$1" in
4636+ purge)
4637+ # Remove logging files & foldesr
4638+ rm -rf /var/log/maas/regiond.log*
4639+ rm -rf /var/log/maas/apache2
4640+ rm -rf /var/log/maas/rsyslog
4641+
4642+ # Remove libgdir related files
4643+ rm -rf /var/lib/maas/media
4644+
4645+ case $RELEASE in
4646+ 12.04|12.10|13.04)
4647+ if [ -h /etc/apache2/conf.d/maas-http.conf ]; then
4648+ rm -rf /etc/apache2/conf.d/maas-http.conf
4649+ fi
4650+ ;;
4651+ *)
4652+ if [ -h /etc/apache2/conf-enabled/maas-http.conf ]; then
4653+ rm -rf /etc/apache2/conf-enabled/maas-http.conf
4654+ fi
4655+ ;;
4656+ esac
4657+
4658+ # Restarting apache2
4659+ if [ -x /usr/sbin/invoke-rc.d ]; then
4660+ invoke-rc.d apache2 restart || true
4661+ fi
4662+
4663+ # Delete symlink
4664+ if [ -L /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas ]; then
4665+ rm -rf /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas
4666+ fi
4667+
4668+ # Delete any remaining / leftover file
4669+ rm -rf /usr/share/maas/maas/
4670+ rm -rf /etc/maas/regiond.conf
4671+ rm -rf /etc/maas/templates.maas-old
4672+esac
4673+
4674+#DEBHELPER#
4675+
4676+db_stop
4677
4678=== added file 'debian/maas-region-api.preinst'
4679--- debian/maas-region-api.preinst 1970-01-01 00:00:00 +0000
4680+++ debian/maas-region-api.preinst 2017-03-28 19:35:45 +0000
4681@@ -0,0 +1,38 @@
4682+#!/bin/sh
4683+
4684+set -e
4685+
4686+. /usr/share/debconf/confmodule
4687+
4688+if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then
4689+
4690+ if [ -f /etc/init/maas-txlongpoll.conf ]; then
4691+ invoke-rc.d maas-txlongpoll stop
4692+ fi
4693+
4694+ if [ -f /var/log/maas/txlongpoll.log ]; then
4695+ rm -rf /var/log/maas/txlongpoll.log
4696+ fi
4697+
4698+ if [ -f /etc/init/maas-region-celery.conf ]; then
4699+ invoke-rc.d maas-region-celery stop
4700+ fi
4701+
4702+ if [ -f /var/log/maas/celery-region.log ]; then
4703+ rm -rf /var/log/maas/celery-region.log
4704+ fi
4705+
4706+ if [ -f /var/log/maas/maas-django.log ]; then
4707+ rm -rf /var/log/maas/maas-django.log
4708+ fi
4709+
4710+ if [ -d /var/lib/maas/media ]; then
4711+ rm -rf /var/lib/maas/media
4712+ fi
4713+
4714+ if [ -d /etc/maas/templates ]; then
4715+ mv /etc/maas/templates /etc/maas/templates.maas-old
4716+ fi
4717+
4718+fi
4719+#DEBHELPER#
4720
4721=== added file 'debian/maas-region-api.prerm'
4722--- debian/maas-region-api.prerm 1970-01-01 00:00:00 +0000
4723+++ debian/maas-region-api.prerm 2017-03-28 19:35:45 +0000
4724@@ -0,0 +1,9 @@
4725+#!/bin/sh
4726+
4727+set -e
4728+
4729+. /usr/share/debconf/confmodule
4730+
4731+#DEBHELPER#
4732+
4733+invoke-rc.d apache2 stop || true
4734
4735=== added file 'debian/maas-region-controller.config'
4736--- debian/maas-region-controller.config 1970-01-01 00:00:00 +0000
4737+++ debian/maas-region-controller.config 2017-03-28 19:35:45 +0000
4738@@ -0,0 +1,49 @@
4739+#!/bin/sh
4740+
4741+set -e
4742+
4743+. /usr/share/debconf/confmodule
4744+db_version 2.0
4745+
4746+# creates question
4747+set_question() {
4748+ if ! db_fget "$1" seen; then
4749+ db_register dbconfig-common/dbconfig-install "$1"
4750+ db_subst "$1" ID "$1"
4751+ db_fget "$1" seen
4752+ fi
4753+ if [ "$RET" = false ]; then
4754+ db_set "$1" "$2"
4755+ db_fset "$1" seen true
4756+ fi
4757+}
4758+
4759+# source dbconfig-common shell library, and call the hook function
4760+if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then
4761+ . /usr/share/dbconfig-common/dpkg/config.pgsql
4762+fi
4763+
4764+if [ "$1" = "configure" ] && [ -z "$2" ]; then
4765+ # Hide maas/dbconfig-install question by setting default.
4766+ set_question maas-region-controller/dbconfig-install true
4767+ set_question maas-region-controller/pgsql/app-pass ""
4768+ set_question maas-region-controller/remote/host "localhost"
4769+
4770+ dbc_dbname="maasdb"
4771+ dbc_dbuser="maas"
4772+ dbc_remove="true"
4773+
4774+ if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then
4775+ dbc_go maas-region-controller $@
4776+ fi
4777+
4778+elif [ -n "$DEBCONF_RECONFIGURE" ]; then
4779+ db_get maas/default-maas-url || true
4780+ if [ -z "$RET" ]; then
4781+ ipaddr=$(maas-region local_config_get --maas-url --plain)
4782+ db_set maas/default-maas-url "$ipaddr"
4783+ fi
4784+ db_input low maas/default-maas-url || true
4785+ db_go
4786+
4787+fi
4788
4789=== added file 'debian/maas-region-controller.postinst'
4790--- debian/maas-region-controller.postinst 1970-01-01 00:00:00 +0000
4791+++ debian/maas-region-controller.postinst 2017-03-28 19:35:45 +0000
4792@@ -0,0 +1,194 @@
4793+#!/bin/sh
4794+
4795+set -e
4796+
4797+. /usr/share/debconf/confmodule
4798+db_version 2.0
4799+
4800+if [ -f /usr/share/dbconfig-common/dpkg/postinst.pgsql ]; then
4801+ . /usr/share/dbconfig-common/dpkg/postinst.pgsql
4802+fi
4803+
4804+RELEASE=`lsb_release -rs` || RELEASE=""
4805+
4806+maas_sync_migrate_db(){
4807+ maas-region dbupgrade
4808+}
4809+
4810+restart_postgresql(){
4811+ deb-systemd-invoke restart postgresql || true
4812+}
4813+
4814+configure_maas_default_url() {
4815+ local ipaddr="$1"
4816+ # The given address is either "[IPv6_IP]" or "IPv4_IP" or "name", such as
4817+ # [2001:db8::3:1]:5555 or 127.0.0.1 or maas.example.com.
4818+ # The ugly sed splits the given thing as:
4819+ # (string of anything but ":", or [ipv6_ip]),
4820+ # optionally followed by :port.
4821+ local address=$(echo "$ipaddr" |
4822+ sed -rn 's/^([^:]*|\[[0-9a-fA-F:]*\])(|:[0-9]*)?$/\1/p')
4823+ local port=$(echo "$ipaddr" |
4824+ sed -rn 's/^([^:]*|\[[0-9a-fA-F:]*\])(|:[0-9]*)?$/\2/p')
4825+ test -n "$port" || port=":5240"
4826+ ipaddr="${ipaddr}${port}"
4827+ maas-region local_config_set --maas-url "http://${ipaddr}/MAAS"
4828+}
4829+
4830+get_default_route_ip6() {
4831+ while read Src SrcPref Dest DestPref Gateway Metric RefCnt Use Flags Iface
4832+ do
4833+ [ "$SrcPref" = 00 ] && [ "$Iface" != lo ] && break
4834+ done < /proc/net/ipv6_route
4835+ if [ -n "$Iface" ]; then
4836+ LC_ALL=C /sbin/ip -6 addr list dev "$Iface" scope global permanent |
4837+ sed -n '/ inet6 /s/.*inet6 \([0-9a-fA-F:]*\).*/[\1]/p' | head -1
4838+ fi
4839+}
4840+
4841+get_default_route_ip4() {
4842+ while read Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
4843+ do
4844+ [ "$Mask" = "00000000" ] && break
4845+ done < /proc/net/route
4846+ if [ -n "$Iface" ]; then
4847+ ipaddr=$(LC_ALL=C /sbin/ip -4 addr list dev "$Iface" scope global)
4848+ ipaddr=${ipaddr#* inet }
4849+ ipaddr=${ipaddr%%/*}
4850+ echo $ipaddr
4851+ fi
4852+}
4853+
4854+extract_default_maas_url() {
4855+ # Extract DEFAULT_MAAS_URL IP/host setting from config file $1.
4856+ grep "^DEFAULT_MAAS_URL" "$1" | cut -d"/" -f3
4857+}
4858+
4859+configure_migrate_maas_dns() {
4860+ # This only runs on upgrade. We only run this if the
4861+ # there are forwarders to migrate or no
4862+ # named.conf.options.inside.maas are present.
4863+ maas-region edit_named_options \
4864+ --migrate-conflicting-options --config-path \
4865+ /etc/bind/named.conf.options
4866+ invoke-rc.d bind9 restart || true
4867+}
4868+
4869+if [ "$1" = "configure" ] && [ -z "$2" ]; then
4870+ #########################################################
4871+ ########## Configure DEFAULT_MAAS_URL #################
4872+ #########################################################
4873+
4874+ # Obtain IP address of default route and change DEFAULT_MAAS_URL
4875+ # if default-maas-url has not been preseeded. Prefer ipv4 addresses if
4876+ # present, and use "localhost" only if there is no default route in either
4877+ # address family.
4878+ db_get maas/default-maas-url
4879+ ipaddr="$RET"
4880+ if [ -z "$ipaddr" ]; then
4881+ ipaddr=$(get_default_route_ip4)
4882+ fi
4883+ if [ -z "$ipaddr" ]; then
4884+ ipaddr=$(get_default_route_ip6)
4885+ fi
4886+ # Fallback default is "localhost"
4887+ if [ -z "$ipaddr" ]; then
4888+ ipaddr=localhost
4889+ fi
4890+ # Set the IP address of the interface with default route
4891+ configure_maas_default_url "$ipaddr"
4892+ db_subst maas/installation-note MAAS_URL "$ipaddr"
4893+ db_set maas/default-maas-url "$ipaddr"
4894+
4895+ #########################################################
4896+ ################ Configure Database ###################
4897+ #########################################################
4898+
4899+ # Need to for postgresql start so it doesn't fail on the installer
4900+ restart_postgresql
4901+
4902+ # Create the database
4903+ dbc_go maas-region-controller $@
4904+ maas-region local_config_set \
4905+ --database-host "localhost" --database-port 5432 --database-name "$dbc_dbname" \
4906+ --database-user "$dbc_dbuser" --database-pass "$dbc_dbpass"
4907+
4908+ # Only syncdb if we have selected to install it with dbconfig-common.
4909+ db_get maas-region-controller/dbconfig-install
4910+ if [ "$RET" = "true" ]; then
4911+ maas_sync_migrate_db
4912+ configure_migrate_maas_dns
4913+ fi
4914+
4915+ db_get maas/username
4916+ username="$RET"
4917+ if [ -n "$username" ]; then
4918+ db_get maas/password
4919+ password="$RET"
4920+ if [ -n "$password" ]; then
4921+ maas-region createadmin --username "$username" --password "$password" --email "$username@maas"
4922+ fi
4923+ fi
4924+
4925+ # Display installation note
4926+ db_input low maas/installation-note || true
4927+ db_go
4928+
4929+elif [ -n "$DEBCONF_RECONFIGURE" ]; then
4930+ # Set the IP address of the interface with default route
4931+ db_get maas/default-maas-url
4932+ ipaddr="$RET"
4933+ if [ -n "$ipaddr" ]; then
4934+ configure_maas_default_url "$ipaddr"
4935+ fi
4936+
4937+elif [ "$1" = "configure" ] && dpkg --compare-versions "$2" gt 0.1+bzr266+dfsg-0ubuntu1; then
4938+ # If upgrading to any later package version, then upgrade db.
4939+ deb-systemd-invoke restart apache2 || true
4940+
4941+ # make sure postgresql is running
4942+ restart_postgresql
4943+
4944+ # If the version we are upgrading from ("$2") is less than
4945+ # 1.9.0~alpha1+bzr4038-0ubuntu1 then we need migrate to new
4946+ # config file.
4947+ if dpkg --compare-versions "$2" lt 1.9.0~alpha1+bzr4038-0ubuntu1 && [ -f /etc/maas/maas_local_settings.py ]; then
4948+ ipaddr=$(extract_default_maas_url /etc/maas/maas_local_settings.py)
4949+ if [ -n "$ipaddr" ]; then
4950+ configure_maas_default_url "$ipaddr"
4951+ db_set maas/default-maas-url "$ipaddr"
4952+ fi
4953+ # handle database upgrade
4954+ if [ -f /etc/dbconfig-common/maas-region-controller.conf ]; then
4955+ # source dbconfig-common db config for maas-region-controller
4956+ # before upgrading database, otherwise a new config is written
4957+ # but the password is no longer preserved.
4958+ . /etc/dbconfig-common/maas-region-controller.conf
4959+ else
4960+ dbc_go maas-region-controller $@
4961+ fi
4962+
4963+ # Reconfigure the config file.
4964+ maas-region local_config_set \
4965+ --database-host "localhost" --database-port 5432 --database-name "$dbc_dbname" \
4966+ --database-user "$dbc_dbuser" --database-pass "$dbc_dbpass"
4967+
4968+ mv /etc/maas/maas_local_settings.py /etc/maas/maas_local_settings.py.maas-old
4969+ fi
4970+
4971+ maas_sync_migrate_db
4972+
4973+ configure_migrate_maas_dns
4974+fi
4975+
4976+deb-systemd-invoke enable maas-regiond >/dev/null || true
4977+deb-systemd-invoke restart maas-regiond >/dev/null || true
4978+deb-systemd-invoke restart apache2 || true
4979+
4980+if [ -f /lib/systemd/system/maas-rackd.service ]; then
4981+ deb-systemd-invoke restart maas-rackd >/dev/null || true
4982+fi
4983+
4984+db_stop
4985+
4986+#DEBHELPER#
4987
4988=== added file 'debian/maas-region-controller.postrm'
4989--- debian/maas-region-controller.postrm 1970-01-01 00:00:00 +0000
4990+++ debian/maas-region-controller.postrm 2017-03-28 19:35:45 +0000
4991@@ -0,0 +1,22 @@
4992+#!/bin/sh
4993+
4994+set -e
4995+
4996+. /usr/share/debconf/confmodule
4997+
4998+RELEASE=`lsb_release -rs` || RELEASE=""
4999+
5000+if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
The diff has been truncated for viewing.