Merge lp:~andreserl/maas/beta1_packaging into lp:~maas-committers/maas/trunk

Proposed by Andres Rodriguez
Status: Superseded
Proposed branch: lp:~andreserl/maas/beta1_packaging
Merge into: lp:~maas-committers/maas/trunk
Diff against target: 4481 lines (+4076/-0)
80 files modified
debian/changelog (+1940/-0)
debian/compat (+1/-0)
debian/control (+274/-0)
debian/copyright (+45/-0)
debian/extras/20-maas.conf (+32/-0)
debian/extras/99-maas-region-sudoers (+7/-0)
debian/extras/99-maas-sudoers (+14/-0)
debian/extras/isc-dhcp-server.override (+1/-0)
debian/extras/maas (+13/-0)
debian/extras/maas-probe-dhcp (+7/-0)
debian/extras/maas-proxy-common.sh (+21/-0)
debian/extras/maas-rack (+76/-0)
debian/extras/maas-region (+67/-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 (+2/-0)
debian/maas-common.install (+1/-0)
debian/maas-common.logrotate (+9/-0)
debian/maas-common.maintscript (+2/-0)
debian/maas-common.postinst (+38/-0)
debian/maas-common.postrm (+21/-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 (+16/-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 (+14/-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 (+27/-0)
debian/maas-rack-controller.maintscript (+9/-0)
debian/maas-rack-controller.postinst (+167/-0)
debian/maas-rack-controller.postrm (+50/-0)
debian/maas-rack-controller.preinst (+56/-0)
debian/maas-rack-controller.templates (+16/-0)
debian/maas-region-api.apport (+72/-0)
debian/maas-region-api.install (+27/-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 (+27/-0)
debian/maas-region-api.maas-regiond.service (+24/-0)
debian/maas-region-api.maintscript (+7/-0)
debian/maas-region-api.postinst (+80/-0)
debian/maas-region-api.postrm (+49/-0)
debian/maas-region-api.preinst (+34/-0)
debian/maas-region-api.prerm (+9/-0)
debian/maas-region-api.templates (+22/-0)
debian/maas-region-controller.config (+47/-0)
debian/maas-region-controller.postinst (+155/-0)
debian/maas-region-controller.postrm (+22/-0)
debian/maas-region-controller.prerm (+13/-0)
debian/maintscript (+2/-0)
debian/po/POTFILES.in (+2/-0)
debian/po/templates.pot (+82/-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/beta1_packaging
Reviewer Review Type Date Requested Status
MAAS Maintainers Pending
Review via email: mp+291045@code.launchpad.net

This proposal has been superseded by a proposal from 2016-04-05.

To post a comment you must log in.

Unmerged revisions

478. By Andres Rodriguez

UNRELEASED

477. By Andres Rodriguez

Release 2.0.0~beta1+bzr4873-0ubuntu1

476. By LaMont Jones

[r=lamont][bug=1565139][author=lamont] maas-proxy's service file needs to know how to do reloads, too.

475. By LaMont Jones

[r=andreserl][bug=1565139][author=lamont] Fix sudoers to allow maas-proxy to be reloaded, restarted, and stopped.

474. By LaMont Jones

[r=andreserl][bug=1379567][author=lamont] Packaging changes for maas-proxy lockdown.

473. By Andres Rodriguez

[r=andreserl][bug=1563337,1563779,1563799,1563807][author=andreserl] Improve the way how the packaging changes ownership and removes files.

472. By Andres Rodriguez

[r=lamont][bug=1563859][author=andreserl] Move 'maascli' python package to python3-maas-client.

471. By Blake Rouse

[r=mpontillo][bug=][author=blake-rouse] Set the MAAS_REGIOND_WORKER_ID environment variable when starting the regiond process with systemd.

470. By Lee Trager

[r=andreserl][bug=][author=ltrager] Allow dhcpd to read /tmp/maas-dhcpd-* for validation

469. By Andres Rodriguez

[r=andreserl][bug=][author=andreserl] Release 2.0.0~alpha4+bzr4843-0ubuntu1
Open beta1

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