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