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

Proposed by Andres Rodriguez on 2016-03-25
Status: Superseded
Proposed branch: lp:~andreserl/maas/update_package_descriptions
Merge into: lp:maas/trunk
Diff against target: 4447 lines (+4042/-0)
80 files modified
debian/changelog (+1913/-0)
debian/compat (+1/-0)
debian/control (+270/-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-controller-min.apport (+72/-0)
debian/maas-region-controller-min.install (+28/-0)
debian/maas-region-controller-min.links (+8/-0)
debian/maas-region-controller-min.lintian-overrides (+5/-0)
debian/maas-region-controller-min.logrotate (+15/-0)
debian/maas-region-controller-min.maas-regiond-worker@.service (+26/-0)
debian/maas-region-controller-min.maas-regiond.service (+24/-0)
debian/maas-region-controller-min.maintscript (+7/-0)
debian/maas-region-controller-min.postinst (+78/-0)
debian/maas-region-controller-min.postrm (+42/-0)
debian/maas-region-controller-min.preinst (+35/-0)
debian/maas-region-controller-min.prerm (+9/-0)
debian/maas-region-controller-min.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/update_package_descriptions
Reviewer Review Type Date Requested Status
MAAS Maintainers 2016-03-25 Pending
Review via email: mp+290131@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

466. By Andres Rodriguez on 2016-03-25

* 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 on 2016-03-25

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

464. By Blake Rouse on 2016-03-22

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

463. By Andres Rodriguez on 2016-03-21

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

462. By LaMont Jones on 2016-03-18

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

461. By Blake Rouse on 2016-03-17

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

460. By Andres Rodriguez on 2016-03-16

[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 on 2016-03-15

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

458. By Blake Rouse on 2016-03-12

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

457. By Andres Rodriguez on 2016-03-12

[r=blake-rouse][bug=1555308][author=andreserl] Add sudoers file for region

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