Merge lp:~ltrager/maas/hwe_kernel_with_release into lp:~maas-committers/maas/trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Lee Trager | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 4418 | ||||
Proposed branch: | lp:~ltrager/maas/hwe_kernel_with_release | ||||
Merge into: | lp:~maas-committers/maas/trunk | ||||
Diff against target: |
364 lines (+143/-15) 10 files modified
src/maasserver/forms_settings.py (+6/-5) src/maasserver/static/js/angular/directives/os_select.js (+1/-1) src/maasserver/static/partials/node-details.html (+1/-1) src/maasserver/tests/test_forms_commissioning.py (+23/-0) src/maasserver/utils/osystems.py (+35/-5) src/maasserver/utils/tests/test_osystems.py (+27/-0) src/maasserver/websockets/handlers/general.py (+3/-1) src/maasserver/websockets/handlers/node.py (+2/-1) src/maasserver/websockets/handlers/tests/test_general.py (+43/-0) src/maasserver/websockets/handlers/tests/test_node.py (+2/-1) |
||||
To merge this branch: | bzr merge lp:~ltrager/maas/hwe_kernel_with_release | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Review via email: mp+275592@code.launchpad.net |
Commit message
Display the release the hwe-kernel comes from in the UI
Description of the change
Display the release the hwe-kernel comes from in the UI. To find this information I first check the BootSourceCache, if it isn't found there I then check UbuntuDistroInfo from the distro_info package. We do have supported hwe-kernels from releases we no longer support. For example Precise has hwe-q but because Quantal is no longer in our simplestreams(due to it being EOL) we need to fall back on UbuntuDistroInfo to get our mapping. I made the hwe-kernel label 'hwe-kernel (release)' e.g 'hwe-v (vivid)' or 'hwe-t (trusty)'. If MAAS can't find a mapping it just displays the kernel e.g 'hwe-q' or 'hwe-r'.
This all looks good except for the conspicuous absence of tests.