Merge lp:~ltrager/maas/xenial_default into lp:~maas-committers/maas/trunk
- xenial_default
- Merge into trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Lee Trager | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 4887 | ||||
Proposed branch: | lp:~ltrager/maas/xenial_default | ||||
Merge into: | lp:~maas-committers/maas/trunk | ||||
Diff against target: |
338 lines (+47/-31) 19 files modified
README (+1/-1) docs/_static/versions.js (+1/-1) docs/about.rst (+3/-3) docs/bootsources.rst (+1/-1) docs/index.rst (+1/-1) docs/sstreams-mirror.rst (+1/-1) src/maascli/parser.py (+1/-1) src/maasserver/bootresources.py (+4/-4) src/maasserver/bootsources.py (+6/-3) src/maasserver/enum.py (+1/-1) src/maasserver/forms.py (+1/-1) src/maasserver/models/tests/test_bootresourceset.py (+1/-1) src/maasserver/testing/factory.py (+1/-1) src/maasserver/tests/test_bootresources.py (+1/-1) src/maasserver/tests/test_bootsources.py (+4/-4) src/provisioningserver/config.py (+1/-1) src/provisioningserver/drivers/osystem/tests/test_ubuntu.py (+7/-2) src/provisioningserver/drivers/osystem/ubuntu.py (+10/-2) src/provisioningserver/import_images/tests/test_download_resources.py (+1/-1) |
||||
To merge this branch: | bzr merge lp:~ltrager/maas/xenial_default | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Blake Rouse (community) | Approve | ||
Review via email: mp+291210@code.launchpad.net |
Commit message
Set Xenial as the default image and commissioing release. Set images.maas.io as the default simplestream.
Description of the change
The default commissioning release and image to deploy are both set by looking at what UbuntuOS.lts() is set to. This is a child class of UbuntuDistroInfo, an external package. Because Xenial isn't released yet its still showing trusty. I modified UbuntuOS to return Xenial for now, once Xenial is released we can remove this work around. The default image was actually hard coded so I modified it to also get its data from UbuntuOS.
I also noticed that the default simplestream was still set to maas.ubuntu.com, which redirects to images.maas.io. I set the default stream to https:/
MAAS Lander (maas-lander) wrote : | # |
The attempt to merge lp:~ltrager/maas/xenial_default into lp:maas failed. Below is the output from the failed tests.
Hit:1 http://
Get:2 http://
Hit:3 http://
Hit:4 http://
Get:5 http://
Get:6 http://
Fetched 2,792 kB in 0s (3,390 kB/s)
Reading package lists...
sudo DEBIAN_
--no-
Reading package lists...
Building dependency tree...
Reading state information...
apache2 is already the newest version (2.4.18-2ubuntu1).
archdetect-deb is already the newest version (1.117ubuntu1).
authbind is already the newest version (2.1.1+nmu1).
bash is already the newest version (4.3-14ubuntu1).
bind9 is already the newest version (1:9.10.
bind9utils is already the newest version (1:9.10.
build-essential is already the newest version (12.1ubuntu2).
curl is already the newest version (7.47.0-1ubuntu2).
debhelper is already the newest version (9.20160115ubun
dh-apport is already the newest version (2.20.1-0ubuntu1).
dh-systemd is already the newest version (1.29ubuntu1).
distro-info is already the newest version (0.14build1).
dnsutils is already the newest version (1:9.10.
firefox is already the newest version (45.0.1+
freeipmi-tools is already the newest version (1.4.11-1ubuntu1).
git is already the newest version (1...
Scott Moser (smoser) wrote : | # |
just an fyi, for anyone ever looking here, i opened bug at https:/
Preview Diff
1 | === modified file 'README' | |||
2 | --- README 2014-03-26 11:11:08 +0000 | |||
3 | +++ README 2016-04-07 07:49:45 +0000 | |||
4 | @@ -29,4 +29,4 @@ | |||
5 | 29 | 29 | ||
6 | 30 | For more information see the `MAAS guide`_. | 30 | For more information see the `MAAS guide`_. |
7 | 31 | 31 | ||
9 | 32 | .. _MAAS guide: https://maas.ubuntu.com/ | 32 | .. _MAAS guide: https://maas.io/ |
10 | 33 | 33 | ||
11 | === modified file 'docs/_static/versions.js' | |||
12 | --- docs/_static/versions.js 2014-04-14 21:42:00 +0000 | |||
13 | +++ docs/_static/versions.js 2016-04-07 07:49:45 +0000 | |||
14 | @@ -2,7 +2,7 @@ | |||
15 | 2 | 2 | ||
16 | 3 | This is mostly done, but not limited to support creating links | 3 | This is mostly done, but not limited to support creating links |
17 | 4 | between the different versions of the MAAS documentation on | 4 | between the different versions of the MAAS documentation on |
19 | 5 | maas.ubuntu.com. | 5 | maas.io. |
20 | 6 | 6 | ||
21 | 7 | */ | 7 | */ |
22 | 8 | 8 | ||
23 | 9 | 9 | ||
24 | === modified file 'docs/about.rst' | |||
25 | --- docs/about.rst 2014-11-10 16:39:12 +0000 | |||
26 | +++ docs/about.rst 2016-04-07 07:49:45 +0000 | |||
27 | @@ -23,10 +23,10 @@ | |||
28 | 23 | However, it is also possible that there have been additional sections, | 23 | However, it is also possible that there have been additional sections, |
29 | 24 | or more helpful and clearer bits added since the package you are using | 24 | or more helpful and clearer bits added since the package you are using |
30 | 25 | was made. For this reason you can always find the latest documentation | 25 | was made. For this reason you can always find the latest documentation |
32 | 26 | online here: `http://maas.ubuntu.com`_. | 26 | online here: `http://maas.io/`_. |
33 | 27 | 27 | ||
36 | 28 | .. _http://maas.ubuntu.com: | 28 | .. _http://maas.io/: |
37 | 29 | http://maas.ubuntu.com | 29 | http://maas.io |
38 | 30 | 30 | ||
39 | 31 | 31 | ||
40 | 32 | Contributing | 32 | Contributing |
41 | 33 | 33 | ||
42 | === modified file 'docs/bootsources.rst' | |||
43 | --- docs/bootsources.rst 2015-08-21 20:35:25 +0000 | |||
44 | +++ docs/bootsources.rst 2016-04-07 07:49:45 +0000 | |||
45 | @@ -20,7 +20,7 @@ | |||
46 | 20 | $ maas $PROFILE boot-sources read | 20 | $ maas $PROFILE boot-sources read |
47 | 21 | [ | 21 | [ |
48 | 22 | { | 22 | { |
50 | 23 | "url": "http://maas.ubuntu.com/images/ephemeral-v2/releases/", | 23 | "url": "https://images.maas.io/ephemeral-v2/releases/", |
51 | 24 | "keyring_data": "", | 24 | "keyring_data": "", |
52 | 25 | "resource_uri": "<url omitted for readability>", | 25 | "resource_uri": "<url omitted for readability>", |
53 | 26 | "keyring_filename": "/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg", | 26 | "keyring_filename": "/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg", |
54 | 27 | 27 | ||
55 | === modified file 'docs/index.rst' | |||
56 | --- docs/index.rst 2016-03-28 13:54:47 +0000 | |||
57 | +++ docs/index.rst 2016-04-07 07:49:45 +0000 | |||
58 | @@ -25,7 +25,7 @@ | |||
59 | 25 | compute nodes and redeploy it to Hadoop. When you're done, it's just | 25 | compute nodes and redeploy it to Hadoop. When you're done, it's just |
60 | 26 | as easy to give the node back to Nova. | 26 | as easy to give the node back to Nova. |
61 | 27 | 27 | ||
63 | 28 | .. _MAAS project: http://maas.ubuntu.com | 28 | .. _MAAS project: http://maas.io/ |
64 | 29 | .. _Juju: https://juju.ubuntu.com/ | 29 | .. _Juju: https://juju.ubuntu.com/ |
65 | 30 | 30 | ||
66 | 31 | MAAS is ideal where you want the flexibility of the cloud, and the | 31 | MAAS is ideal where you want the flexibility of the cloud, and the |
67 | 32 | 32 | ||
68 | === modified file 'docs/sstreams-mirror.rst' | |||
69 | --- docs/sstreams-mirror.rst 2015-12-04 19:33:29 +0000 | |||
70 | +++ docs/sstreams-mirror.rst 2016-04-07 07:49:45 +0000 | |||
71 | @@ -15,7 +15,7 @@ | |||
72 | 15 | This example gets the daily trusty (14.04) and precise (12.04) images for the | 15 | This example gets the daily trusty (14.04) and precise (12.04) images for the |
73 | 16 | amd64/generic and amd64/hwe-t architectures:: | 16 | amd64/generic and amd64/hwe-t architectures:: |
74 | 17 | 17 | ||
76 | 18 | $ sudo sstream-mirror --keyring=/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg http://maas.ubuntu.com/images/ephemeral-v2/daily/ /var/www/html/maas/images/ephemeral-v2/daily 'arch=amd64' 'subarch~(generic|hwe-t)' 'release~(trusty|precise)' --max=1 | 18 | $ sudo sstream-mirror --keyring=/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg https://images.maas.io/ephemeral-v2/daily/ /var/www/html/maas/images/ephemeral-v2/daily 'arch=amd64' 'subarch~(generic|hwe-t)' 'release~(trusty|precise)' --max=1 |
77 | 19 | 19 | ||
78 | 20 | This may take a while as hundreds of megabytes will be downloaded. | 20 | This may take a while as hundreds of megabytes will be downloaded. |
79 | 21 | 21 | ||
80 | 22 | 22 | ||
81 | === modified file 'src/maascli/parser.py' | |||
82 | --- src/maascli/parser.py 2015-12-15 22:44:22 +0000 | |||
83 | +++ src/maascli/parser.py 2016-04-07 07:49:45 +0000 | |||
84 | @@ -66,7 +66,7 @@ | |||
85 | 66 | help_title, help_body = parse_docstring(api) | 66 | help_title, help_body = parse_docstring(api) |
86 | 67 | parser = ArgumentParser( | 67 | parser = ArgumentParser( |
87 | 68 | description=help_body, prog=argv[0], | 68 | description=help_body, prog=argv[0], |
89 | 69 | epilog="http://maas.ubuntu.com/") | 69 | epilog="http://maas.io/") |
90 | 70 | register_cli_commands(parser) | 70 | register_cli_commands(parser) |
91 | 71 | api.register_api_commands(parser) | 71 | api.register_api_commands(parser) |
92 | 72 | parser.add_argument( | 72 | parser.add_argument( |
93 | 73 | 73 | ||
94 | === modified file 'src/maasserver/bootresources.py' | |||
95 | --- src/maasserver/bootresources.py 2016-03-28 13:54:47 +0000 | |||
96 | +++ src/maasserver/bootresources.py 2016-04-07 07:49:45 +0000 | |||
97 | @@ -459,7 +459,7 @@ | |||
98 | 459 | architecture = '%s/%s' % (arch, subarch) | 459 | architecture = '%s/%s' % (arch, subarch) |
99 | 460 | 460 | ||
100 | 461 | # Allow a generated resource to be replaced by a sycned resource. This | 461 | # Allow a generated resource to be replaced by a sycned resource. This |
102 | 462 | # gives the ability for maas.ubuntu.com to start providing images that | 462 | # gives the ability for maas.io to start providing images that |
103 | 463 | # MAAS used to generate itself. | 463 | # MAAS used to generate itself. |
104 | 464 | supported_rtypes = [ | 464 | supported_rtypes = [ |
105 | 465 | BOOT_RESOURCE_TYPE.SYNCED, | 465 | BOOT_RESOURCE_TYPE.SYNCED, |
106 | @@ -484,7 +484,7 @@ | |||
107 | 484 | # replaced with this synced image. | 484 | # replaced with this synced image. |
108 | 485 | resource.rtype = BOOT_RESOURCE_TYPE.SYNCED | 485 | resource.rtype = BOOT_RESOURCE_TYPE.SYNCED |
109 | 486 | 486 | ||
111 | 487 | # Simplestreams content from maas.ubuntu.com includes the following | 487 | # Simplestreams content from maas.io includes the following |
112 | 488 | # extra fields. Looping through the extra product data and adding it to | 488 | # extra fields. Looping through the extra product data and adding it to |
113 | 489 | # extra will not work as the product data that is passed into this | 489 | # extra will not work as the product data that is passed into this |
114 | 490 | # object store contains additional data that should not be stored into | 490 | # object store contains additional data that should not be stored into |
115 | @@ -517,7 +517,7 @@ | |||
116 | 517 | """Get existing `BootResourceFile` for the given resource set and | 517 | """Get existing `BootResourceFile` for the given resource set and |
117 | 518 | product or create a new one if one does not exist.""" | 518 | product or create a new one if one does not exist.""" |
118 | 519 | # For synced resources the filename is the same as the filetype. This | 519 | # For synced resources the filename is the same as the filetype. This |
120 | 520 | # is the way the data is from maas.ubuntu.com so we emulate that here. | 520 | # is the way the data is from maas.io so we emulate that here. |
121 | 521 | filetype = product['ftype'] | 521 | filetype = product['ftype'] |
122 | 522 | filename = filetype | 522 | filename = filetype |
123 | 523 | rfile = get_one(resource_set.files.filter(filename=filename)) | 523 | rfile = get_one(resource_set.files.filter(filename=filename)) |
124 | @@ -529,7 +529,7 @@ | |||
125 | 529 | rfile.filetype = filetype | 529 | rfile.filetype = filetype |
126 | 530 | rfile.extra = {} | 530 | rfile.extra = {} |
127 | 531 | 531 | ||
129 | 532 | # Simplestreams content from maas.ubuntu.com includes the following | 532 | # Simplestreams content from maas.io includes the following |
130 | 533 | # extra fields. Looping through the extra product data and adding it to | 533 | # extra fields. Looping through the extra product data and adding it to |
131 | 534 | # extra will not work as the product data that is passed into this | 534 | # extra will not work as the product data that is passed into this |
132 | 535 | # object store contains additional data that should not be stored into | 535 | # object store contains additional data that should not be stored into |
133 | 536 | 536 | ||
134 | === modified file 'src/maasserver/bootsources.py' | |||
135 | --- src/maasserver/bootsources.py 2015-12-01 18:12:59 +0000 | |||
136 | +++ src/maasserver/bootsources.py 2016-04-07 07:49:45 +0000 | |||
137 | @@ -1,4 +1,4 @@ | |||
139 | 1 | # Copyright 2014-2015 Canonical Ltd. This software is licensed under the | 1 | # Copyright 2014-2016 Canonical Ltd. This software is licensed under the |
140 | 2 | # GNU Affero General Public License version 3 (see the file LICENSE). | 2 | # GNU Affero General Public License version 3 (see the file LICENSE). |
141 | 3 | 3 | ||
142 | 4 | """Boot Sources.""" | 4 | """Boot Sources.""" |
143 | @@ -26,6 +26,7 @@ | |||
144 | 26 | from maasserver.utils.orm import transactional | 26 | from maasserver.utils.orm import transactional |
145 | 27 | from maasserver.utils.threads import deferToDatabase | 27 | from maasserver.utils.threads import deferToDatabase |
146 | 28 | from provisioningserver.auth import get_maas_user_gpghome | 28 | from provisioningserver.auth import get_maas_user_gpghome |
147 | 29 | from provisioningserver.drivers.osystem.ubuntu import UbuntuOS | ||
148 | 29 | from provisioningserver.import_images.download_descriptions import ( | 30 | from provisioningserver.import_images.download_descriptions import ( |
149 | 30 | download_all_image_descriptions, | 31 | download_all_image_descriptions, |
150 | 31 | ) | 32 | ) |
151 | @@ -48,13 +49,15 @@ | |||
152 | 48 | """Set default boot source if none is currently defined.""" | 49 | """Set default boot source if none is currently defined.""" |
153 | 49 | if not BootSource.objects.exists(): | 50 | if not BootSource.objects.exists(): |
154 | 50 | source = BootSource.objects.create( | 51 | source = BootSource.objects.create( |
156 | 51 | url='http://maas.ubuntu.com/images/ephemeral-v2/releases/', | 52 | url='https://images.maas.io/ephemeral-v2/releases/', |
157 | 52 | keyring_filename=( | 53 | keyring_filename=( |
158 | 53 | '/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg')) | 54 | '/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg')) |
159 | 54 | # Default is to import newest Ubuntu LTS releases, for only amd64 | 55 | # Default is to import newest Ubuntu LTS releases, for only amd64 |
160 | 55 | # release versions only. | 56 | # release versions only. |
161 | 57 | ubuntu = UbuntuOS() | ||
162 | 56 | BootSourceSelection.objects.create( | 58 | BootSourceSelection.objects.create( |
164 | 57 | boot_source=source, os='ubuntu', release='trusty', | 59 | boot_source=source, os=ubuntu.name, |
165 | 60 | release=ubuntu.get_default_commissioning_release(), | ||
166 | 58 | arches=['amd64'], subarches=['*'], labels=['release']) | 61 | arches=['amd64'], subarches=['*'], labels=['release']) |
167 | 59 | 62 | ||
168 | 60 | 63 | ||
169 | 61 | 64 | ||
170 | === modified file 'src/maasserver/enum.py' | |||
171 | --- src/maasserver/enum.py 2016-03-31 23:34:55 +0000 | |||
172 | +++ src/maasserver/enum.py 2016-04-07 07:49:45 +0000 | |||
173 | @@ -310,7 +310,7 @@ | |||
174 | 310 | ROOT_DD = 'root-dd' | 310 | ROOT_DD = 'root-dd' |
175 | 311 | 311 | ||
176 | 312 | # Following are not allowed on user upload. Only used for syncing | 312 | # Following are not allowed on user upload. Only used for syncing |
178 | 313 | # from another simplestreams source. (Most likely maas.ubuntu.com) | 313 | # from another simplestreams source. (Most likely maas.io) |
179 | 314 | 314 | ||
180 | 315 | #: Root Image (gets converted to root-image root-tgz, on Cluster) | 315 | #: Root Image (gets converted to root-image root-tgz, on Cluster) |
181 | 316 | ROOT_IMAGE = 'root-image.gz' | 316 | ROOT_IMAGE = 'root-image.gz' |
182 | 317 | 317 | ||
183 | === modified file 'src/maasserver/forms.py' | |||
184 | --- src/maasserver/forms.py 2016-03-28 13:54:47 +0000 | |||
185 | +++ src/maasserver/forms.py 2016-04-07 07:49:45 +0000 | |||
186 | @@ -1348,7 +1348,7 @@ | |||
187 | 1348 | label="Sync URL", required=True, | 1348 | label="Sync URL", required=True, |
188 | 1349 | help_text=( | 1349 | help_text=( |
189 | 1350 | "URL to sync boot image from. E.g. " | 1350 | "URL to sync boot image from. E.g. " |
191 | 1351 | "http://maas.ubuntu.com/images/ephemeral-v2/releases/")) | 1351 | "https://images.maas.io/ephemeral-v2/releases/")) |
192 | 1352 | 1352 | ||
193 | 1353 | def __init__(self, *args, **kwargs): | 1353 | def __init__(self, *args, **kwargs): |
194 | 1354 | super(BootSourceSettingsForm, self).__init__(*args, **kwargs) | 1354 | super(BootSourceSettingsForm, self).__init__(*args, **kwargs) |
195 | 1355 | 1355 | ||
196 | === modified file 'src/maasserver/models/tests/test_bootresourceset.py' | |||
197 | --- src/maasserver/models/tests/test_bootresourceset.py 2016-03-28 13:54:47 +0000 | |||
198 | +++ src/maasserver/models/tests/test_bootresourceset.py 2016-04-07 07:49:45 +0000 | |||
199 | @@ -24,7 +24,7 @@ | |||
200 | 24 | for filetype in filetypes: | 24 | for filetype in filetypes: |
201 | 25 | # We set the filename to the same value as filetype, as in most | 25 | # We set the filename to the same value as filetype, as in most |
202 | 26 | # cases this will always be true. The simplestreams content from | 26 | # cases this will always be true. The simplestreams content from |
204 | 27 | # maas.ubuntu.com, is formatted this way. | 27 | # maas.io, is formatted this way. |
205 | 28 | factory.make_boot_resource_file_with_content( | 28 | factory.make_boot_resource_file_with_content( |
206 | 29 | resource_set, filename=filetype, filetype=filetype) | 29 | resource_set, filename=filetype, filetype=filetype) |
207 | 30 | 30 | ||
208 | 31 | 31 | ||
209 | === modified file 'src/maasserver/testing/factory.py' | |||
210 | --- src/maasserver/testing/factory.py 2016-03-28 13:54:47 +0000 | |||
211 | +++ src/maasserver/testing/factory.py 2016-04-07 07:49:45 +0000 | |||
212 | @@ -1318,7 +1318,7 @@ | |||
213 | 1318 | for filetype in filetypes: | 1318 | for filetype in filetypes: |
214 | 1319 | # We set the filename to the same value as filetype, as in most | 1319 | # We set the filename to the same value as filetype, as in most |
215 | 1320 | # cases this will always be true. The simplestreams content from | 1320 | # cases this will always be true. The simplestreams content from |
217 | 1321 | # maas.ubuntu.com, is formatted this way. | 1321 | # maas.io, is formatted this way. |
218 | 1322 | self.make_boot_resource_file_with_content( | 1322 | self.make_boot_resource_file_with_content( |
219 | 1323 | resource_set, filename=filetype, filetype=filetype) | 1323 | resource_set, filename=filetype, filetype=filetype) |
220 | 1324 | return resource | 1324 | return resource |
221 | 1325 | 1325 | ||
222 | === modified file 'src/maasserver/tests/test_bootresources.py' | |||
223 | --- src/maasserver/tests/test_bootresources.py 2016-03-28 13:54:47 +0000 | |||
224 | +++ src/maasserver/tests/test_bootresources.py 2016-04-07 07:49:45 +0000 | |||
225 | @@ -479,7 +479,7 @@ | |||
226 | 479 | filetype = factory.pick_enum(BOOT_RESOURCE_FILE_TYPE) | 479 | filetype = factory.pick_enum(BOOT_RESOURCE_FILE_TYPE) |
227 | 480 | # We set the filename to the same value as filetype, as in most | 480 | # We set the filename to the same value as filetype, as in most |
228 | 481 | # cases this will always be true. The simplestreams content from | 481 | # cases this will always be true. The simplestreams content from |
230 | 482 | # maas.ubuntu.com, is formatted this way. | 482 | # maas.io, is formatted this way. |
231 | 483 | filename = filetype | 483 | filename = filetype |
232 | 484 | size = randint(1024, 2048) | 484 | size = randint(1024, 2048) |
233 | 485 | content = factory.make_bytes(size=size) | 485 | content = factory.make_bytes(size=size) |
234 | 486 | 486 | ||
235 | === modified file 'src/maasserver/tests/test_bootsources.py' | |||
236 | --- src/maasserver/tests/test_bootsources.py 2016-03-28 13:54:47 +0000 | |||
237 | +++ src/maasserver/tests/test_bootsources.py 2016-04-07 07:49:45 +0000 | |||
238 | @@ -102,7 +102,7 @@ | |||
239 | 102 | self.assertAttributes( | 102 | self.assertAttributes( |
240 | 103 | source, | 103 | source, |
241 | 104 | { | 104 | { |
243 | 105 | 'url': 'http://maas.ubuntu.com/images/ephemeral-v2/releases/', | 105 | 'url': 'https://images.maas.io/ephemeral-v2/releases/', |
244 | 106 | 'keyring_filename': ( | 106 | 'keyring_filename': ( |
245 | 107 | '/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg'), | 107 | '/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg'), |
246 | 108 | }) | 108 | }) |
247 | @@ -111,11 +111,11 @@ | |||
248 | 111 | selection.release: selection | 111 | selection.release: selection |
249 | 112 | for selection in selections | 112 | for selection in selections |
250 | 113 | } | 113 | } |
252 | 114 | self.assertItemsEqual(['trusty'], by_release.keys()) | 114 | self.assertItemsEqual(['xenial'], by_release.keys()) |
253 | 115 | self.assertAttributes( | 115 | self.assertAttributes( |
255 | 116 | by_release['trusty'], | 116 | by_release['xenial'], |
256 | 117 | { | 117 | { |
258 | 118 | 'release': 'trusty', | 118 | 'release': 'xenial', |
259 | 119 | 'arches': ['amd64'], | 119 | 'arches': ['amd64'], |
260 | 120 | 'subarches': ['*'], | 120 | 'subarches': ['*'], |
261 | 121 | 'labels': ['release'], | 121 | 'labels': ['release'], |
262 | 122 | 122 | ||
263 | === modified file 'src/provisioningserver/config.py' | |||
264 | --- src/provisioningserver/config.py 2016-03-28 13:54:47 +0000 | |||
265 | +++ src/provisioningserver/config.py 2016-04-07 07:49:45 +0000 | |||
266 | @@ -181,7 +181,7 @@ | |||
267 | 181 | if_key_missing = None | 181 | if_key_missing = None |
268 | 182 | 182 | ||
269 | 183 | url = UnicodeString( | 183 | url = UnicodeString( |
271 | 184 | if_missing="http://maas.ubuntu.com/images/ephemeral-v2/releases/") | 184 | if_missing="https://images.maas.io/ephemeral-v2/releases/") |
272 | 185 | keyring = UnicodeString( | 185 | keyring = UnicodeString( |
273 | 186 | if_missing="/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg") | 186 | if_missing="/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg") |
274 | 187 | keyring_data = UnicodeString(if_missing="") | 187 | keyring_data = UnicodeString(if_missing="") |
275 | 188 | 188 | ||
276 | === modified file 'src/provisioningserver/drivers/osystem/tests/test_ubuntu.py' | |||
277 | --- src/provisioningserver/drivers/osystem/tests/test_ubuntu.py 2015-12-18 00:07:25 +0000 | |||
278 | +++ src/provisioningserver/drivers/osystem/tests/test_ubuntu.py 2016-04-07 07:49:45 +0000 | |||
279 | @@ -1,4 +1,4 @@ | |||
281 | 1 | # Copyright 2014-2015 Canonical Ltd. This software is licensed under the | 1 | # Copyright 2014-2016 Canonical Ltd. This software is licensed under the |
282 | 2 | # GNU Affero General Public License version 3 (see the file LICENSE). | 2 | # GNU Affero General Public License version 3 (see the file LICENSE). |
283 | 3 | 3 | ||
284 | 4 | """Tests for the UbuntuOS module.""" | 4 | """Tests for the UbuntuOS module.""" |
285 | @@ -18,7 +18,12 @@ | |||
286 | 18 | class TestUbuntuOS(MAASTestCase): | 18 | class TestUbuntuOS(MAASTestCase): |
287 | 19 | 19 | ||
288 | 20 | def get_lts_release(self): | 20 | def get_lts_release(self): |
290 | 21 | return UbuntuDistroInfo().lts() | 21 | # XXX ltrager 2016-04-06 - python3-distro-info won't set the latest lts |
291 | 22 | # to Xenial until its been released. So we can start testing MAAS 2.0 | ||
292 | 23 | # with Xenial by default override it here. Once Xenial is released this | ||
293 | 24 | # can be removed | ||
294 | 25 | # return UbuntuDistroInfo().lts() | ||
295 | 26 | return "xenial" | ||
296 | 22 | 27 | ||
297 | 23 | def get_release_title(self, release): | 28 | def get_release_title(self, release): |
298 | 24 | info = UbuntuDistroInfo() | 29 | info = UbuntuDistroInfo() |
299 | 25 | 30 | ||
300 | === modified file 'src/provisioningserver/drivers/osystem/ubuntu.py' | |||
301 | --- src/provisioningserver/drivers/osystem/ubuntu.py 2015-12-17 03:22:59 +0000 | |||
302 | +++ src/provisioningserver/drivers/osystem/ubuntu.py 2016-04-07 07:49:45 +0000 | |||
303 | @@ -1,4 +1,4 @@ | |||
305 | 1 | # Copyright 2014-2015 Canonical Ltd. This software is licensed under the | 1 | # Copyright 2014-2016 Canonical Ltd. This software is licensed under the |
306 | 2 | # GNU Affero General Public License version 3 (see the file LICENSE). | 2 | # GNU Affero General Public License version 3 (see the file LICENSE). |
307 | 3 | 3 | ||
308 | 4 | """Ubuntu Operating System.""" | 4 | """Ubuntu Operating System.""" |
309 | @@ -39,7 +39,15 @@ | |||
310 | 39 | 39 | ||
311 | 40 | def get_lts_release(self): | 40 | def get_lts_release(self): |
312 | 41 | """Return the latest Ubuntu LTS release.""" | 41 | """Return the latest Ubuntu LTS release.""" |
314 | 42 | return self.ubuntu_distro_info.lts() | 42 | lts_release = self.ubuntu_distro_info.lts() |
315 | 43 | # XXX ltrager 2016-04-06 - python3-distro-info won't set the latest lts | ||
316 | 44 | # to Xenial until its been released. So we can start testing MAAS 2.0 | ||
317 | 45 | # with Xenial by default override it here. Once Xenial is released this | ||
318 | 46 | # can be removed | ||
319 | 47 | if lts_release == "trusty": | ||
320 | 48 | return "xenial" | ||
321 | 49 | else: | ||
322 | 50 | return lts_release | ||
323 | 43 | 51 | ||
324 | 44 | def get_default_release(self): | 52 | def get_default_release(self): |
325 | 45 | """Gets the default release to use when a release is not | 53 | """Gets the default release to use when a release is not |
326 | 46 | 54 | ||
327 | === modified file 'src/provisioningserver/import_images/tests/test_download_resources.py' | |||
328 | --- src/provisioningserver/import_images/tests/test_download_resources.py 2016-03-28 13:54:47 +0000 | |||
329 | +++ src/provisioningserver/import_images/tests/test_download_resources.py 2016-04-07 07:49:45 +0000 | |||
330 | @@ -73,7 +73,7 @@ | |||
331 | 73 | snapshot_path = self.make_dir() | 73 | snapshot_path = self.make_dir() |
332 | 74 | cache_path = os.path.join(storage_path, 'cache') | 74 | cache_path = os.path.join(storage_path, 'cache') |
333 | 75 | file_store = FileStore(cache_path) | 75 | file_store = FileStore(cache_path) |
335 | 76 | source_url = "http://maas.ubuntu.com/images/ephemeral-v2/releases/" | 76 | source_url = "https://images.maas.io/ephemeral-v2/releases/" |
336 | 77 | 77 | ||
337 | 78 | download_resources.download_boot_resources( | 78 | download_resources.download_boot_resources( |
338 | 79 | source_url, file_store, snapshot_path, None, None) | 79 | source_url, file_store, snapshot_path, None, None) |
Looks good. Thanks for fixing the import url.