Merge lp:~andreserl/maas/rename_maas-region-controller-min into lp:~maas-committers/maas/trunk

Proposed by Andres Rodriguez
Status: Superseded
Proposed branch: lp:~andreserl/maas/rename_maas-region-controller-min
Merge into: lp:~maas-committers/maas/trunk
Diff against target: 4446 lines (+4041/-0)
80 files modified
debian/changelog (+1914/-0)
debian/compat (+1/-0)
debian/control (+273/-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/rename_maas-region-controller-min
Reviewer Review Type Date Requested Status
MAAS Maintainers Pending
Review via email: mp+290138@code.launchpad.net

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

To post a comment you must log in.

Unmerged revisions

467. By Andres Rodriguez

Rename maas-reigon-controller-min to maas-region-api (LP: #1562069)

466. By Andres Rodriguez

* New upstream release, 2.0.0 alpha 4 bzr4837 (Standing FFe LP: #1553261)
* debian/control: Update homepage and package descriptions.
  (LP: #1562036, LP: #1562034, LP: #1562062)

465. By Andres Rodriguez

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

464. By Blake Rouse

[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

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

462. By LaMont Jones

[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

[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.

460. By Andres Rodriguez

[r=andreserl,blake-rouse][bug=][author=andreserl] Update dhcpd permissions to conform with most recent paranoia described on LP: 1543794, so capability dac_override is not granted.

459. By Blake Rouse

[r=andreserl][bug=1556360][author=blake-rouse] Set KillSignal not KillMode.

458. By Blake Rouse

[r=andreserl][bug=1556354][author=blake-rouse] Set KillMode=SIGKILL for maas-dhcpd and maas-dhcpd6.

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