[SRU] maas needs utopic support
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Blake Rouse | ||
1.5 |
Fix Released
|
Medium
|
Blake Rouse | ||
1.6 |
Fix Released
|
Medium
|
Blake Rouse | ||
maas (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Trusty |
Fix Released
|
Medium
|
Greg Lutostanski |
Bug Description
[Impact]
* Remove no longer supported distro releases and add utopic to list of releases. (Will only actually be able to be installable if simplestream has utopic entries)
[Testcase]
* Install utopic onto a maas node
[Regression Potential]
* Minimal; change to new releases and add pretty strings for it
It looks like maas needs support added for utopic. Could you also consider implementing this so that it is configurable in a config file? It would be much better than needing a hard-coded update each release.
Here's the diff showing code needed in maasserver/enum.py (thanks roaksoax):
=== modified file 'maasserver/
--- maasserver/enum.py 2014-07-03 16:54:15 +0000
+++ maasserver/enum.py 2014-07-03 16:56:20 +0000
@@ -100,6 +100,8 @@
saucy = 'saucy'
#:
trusty = 'trusty'
+ #:
+ utopic = 'utopic'
DISTRO_
(DISTRO_
@@ -108,6 +110,7 @@
(DISTRO_
(DISTRO_
(DISTRO_
+ (DISTRO_
)
Related branches
- Raphaël Badin (community): Approve
-
Diff: 50 lines (+6/-8)2 files modifiedsrc/maasserver/enum.py (+4/-6)
src/maasserver/models/tests/test_node.py (+2/-2)
- Raphaël Badin (community): Approve
-
Diff: 15 lines (+1/-2)1 file modifiedsrc/provisioningserver/drivers/osystem/ubuntu.py (+1/-2)
- Gavin Panella (community): Approve
-
Diff: 606 lines (+184/-138)13 files modifiedsrc/provisioningserver/drivers/osystem/__init__.py (+44/-15)
src/provisioningserver/drivers/osystem/centos.py (+3/-6)
src/provisioningserver/drivers/osystem/suse.py (+3/-3)
src/provisioningserver/drivers/osystem/tests/test_base.py (+54/-1)
src/provisioningserver/drivers/osystem/tests/test_centos.py (+4/-15)
src/provisioningserver/drivers/osystem/tests/test_suse.py (+4/-15)
src/provisioningserver/drivers/osystem/tests/test_ubuntu.py (+21/-27)
src/provisioningserver/drivers/osystem/tests/test_windows.py (+4/-15)
src/provisioningserver/drivers/osystem/ubuntu.py (+25/-26)
src/provisioningserver/drivers/osystem/windows.py (+3/-3)
src/provisioningserver/rpc/testing/doubles.py (+3/-0)
src/provisioningserver/rpc/tests/test_osystems.py (+13/-12)
src/provisioningserver/testing/os.py (+3/-0)
- Blake Rouse (community): Approve
-
Diff: 3218 lines (+1122/-844)34 files modifiedsrc/maasserver/api/tests/test_boot_source_selections.py (+6/-13)
src/maasserver/api/tests/test_licensekey.py (+27/-29)
src/maasserver/api/tests/test_node.py (+9/-10)
src/maasserver/api/tests/test_pxeconfig.py (+3/-5)
src/maasserver/clusterrpc/osystems.py (+55/-0)
src/maasserver/clusterrpc/testing/osystems.py (+66/-0)
src/maasserver/clusterrpc/tests/test_osystems.py (+124/-0)
src/maasserver/forms.py (+68/-46)
src/maasserver/forms_settings.py (+40/-12)
src/maasserver/models/node.py (+0/-4)
src/maasserver/models/tests/test_node.py (+2/-4)
src/maasserver/testing/factory.py (+0/-13)
src/maasserver/testing/osystems.py (+21/-40)
src/maasserver/tests/test_compose_preseed.py (+14/-6)
src/maasserver/tests/test_forms_deploy.py (+4/-5)
src/maasserver/tests/test_forms_licensekey.py (+84/-92)
src/maasserver/tests/test_forms_node.py (+147/-53)
src/maasserver/tests/test_preseed.py (+16/-15)
src/maasserver/utils/osystems.py (+71/-76)
src/maasserver/utils/tests/test_osystems.py (+167/-278)
src/maasserver/views/tests/test_settings.py (+15/-5)
src/provisioningserver/drivers/osystem/__init__.py (+44/-15)
src/provisioningserver/drivers/osystem/centos.py (+3/-6)
src/provisioningserver/drivers/osystem/suse.py (+3/-3)
src/provisioningserver/drivers/osystem/tests/test_base.py (+53/-1)
src/provisioningserver/drivers/osystem/tests/test_centos.py (+4/-15)
src/provisioningserver/drivers/osystem/tests/test_suse.py (+4/-15)
src/provisioningserver/drivers/osystem/tests/test_ubuntu.py (+21/-27)
src/provisioningserver/drivers/osystem/tests/test_windows.py (+4/-15)
src/provisioningserver/drivers/osystem/ubuntu.py (+25/-26)
src/provisioningserver/drivers/osystem/windows.py (+3/-3)
src/provisioningserver/rpc/testing/doubles.py (+3/-0)
src/provisioningserver/rpc/tests/test_osystems.py (+13/-12)
src/provisioningserver/testing/os.py (+3/-0)
Changed in maas: | |
status: | Confirmed → Triaged |
description: | updated |
summary: |
- maas needs utopic support + [SRU] maas needs utopic support |
Changed in maas (Ubuntu Trusty): | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
milestone: | none → trusty-updates |
assignee: | nobody → Greg Lutostanski (lutostag) |
Changed in maas (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in maas: | |
milestone: | none → 1.7.0 |
assignee: | Gavin Panella (allenap) → Blake Rouse (blake-rouse) |
importance: | Medium → High |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
We should not use a static file for this, that's why we have python-distro-info. We should use it to automatically figure out the supported Ubuntu releases.
in 1.5.: Support for trusty should be added manually and SRU'd.
In 1.6., we should switch to use python-distro-info.
This additionally mean that MAAS, on the Settings Page, should only show the currently available Ubuntu Releases for Commissioning if the boot images are imported.