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