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

Proposed by Andres Rodriguez on 2016-03-28
Status: Superseded
Proposed branch: lp:~andreserl/maas/packaging_release_alpha4
Merge into: lp:maas/trunk
Diff against target: 4457 lines (+4052/-0)
80 files modified
debian/changelog (+1923/-0)
debian/compat (+1/-0)
debian/control (+275/-0)
debian/copyright (+45/-0)
debian/extras/20-maas.conf (+32/-0)
debian/extras/99-maas (+5/-0)
debian/extras/99-maas-region-sudoers (+4/-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-proxy.conf (+40/-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 (+2/-0)
debian/maas-cli.links (+1/-0)
debian/maas-cli.lintian-overrides (+1/-0)
debian/maas-common.install (+1/-0)
debian/maas-common.logrotate (+9/-0)
debian/maas-common.maintscript (+2/-0)
debian/maas-common.postinst (+31/-0)
debian/maas-common.postrm (+17/-0)
debian/maas-dhcp.apparmor (+9/-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 (+32/-0)
debian/maas-dhcp.postrm (+17/-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 (+1/-0)
debian/maas-proxy.install (+2/-0)
debian/maas-proxy.logrotate (+24/-0)
debian/maas-proxy.maas-proxy.service (+15/-0)
debian/maas-proxy.postinst (+24/-0)
debian/maas-proxy.postrm (+12/-0)
debian/maas-rack-controller.config (+36/-0)
debian/maas-rack-controller.dirs (+2/-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 (+136/-0)
debian/maas-rack-controller.postrm (+36/-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 (+28/-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 (+26/-0)
debian/maas-region-api.maas-regiond.service (+24/-0)
debian/maas-region-api.maintscript (+7/-0)
debian/maas-region-api.postinst (+78/-0)
debian/maas-region-api.postrm (+42/-0)
debian/maas-region-api.preinst (+30/-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 (+161/-0)
debian/maas-region-controller.postrm (+49/-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 (+1/-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/packaging_release_alpha4
Reviewer Review Type Date Requested Status
MAAS Maintainers 2016-03-28 Pending
Review via email: mp+290260@code.launchpad.net

This proposal has been superseded by a proposal from 2016-03-28.

Description of the change

selfie!

To post a comment you must log in.

Unmerged revisions

470. By Andres Rodriguez on 2016-03-28

Open beta1

469. By Andres Rodriguez on 2016-03-28

Release alpha4

468. By Andres Rodriguez on 2016-03-25

[r=andreserl][bug=][author=andreserl] Improve package descriptions. Thanks to Mark S.

467. By Andres Rodriguez on 2016-03-25

[r=andreserl][bug=1562069][author=andreserl] Rename maas-region-controller-min to maas-region-api

466. By Andres Rodriguez on 2016-03-25

[r=andreserl][bug=1562034,1562036,1562062][author=andreserl] Update package descriptions!

465. By Andres Rodriguez on 2016-03-25

[r=andreserl][bug=][author=andreserl] Fix packaging to address templates that no longer exist

464. By Blake Rouse on 2016-03-22

[r=mpontillo][bug=1559398][author=blake-rouse] Packaging change that is required to fix bug 1559398. Allows dhcpd to run maas-dhcp-notify and installs that command into /usr/sbin.

463. By Andres Rodriguez on 2016-03-21

[r=andreserl][bug=][author=andreserl] Release a3

462. By LaMont Jones on 2016-03-18

[r=blake-rouse][bug=][author=lamont] Update versioned depend on isc-dhcp-server, so that we miss the broken ones in xenial.

461. By Blake Rouse on 2016-03-17

[r=mpontillo][bug=1558640][author=blake-rouse] Add to apparmor profile to allow dhcpd to call maas-rackd. Fix maas-rack command to allow dhcpd user to call dhcp-notify only. Remove KillSignal from maas-dhcpd and maas-dhcpd6 as the fixed isc-dhcp-server no longer requires that kill signal to stop.

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