MAAS shouldn't show newer kernels when edge kernels are added
Bug #1654450 reported by
Lee Trager
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Lee Trager |
Bug Description
Each BootResource contains a list of subarchs that kernel supports. For example hwe-16.04 has a subarchs list of hwe-p, hwe-q, hwe-r, hwe-s, hwe-t, hwe-u, hwe-v, hwe-w, hwe-16.04. MAAS prunes this list to only show the actual kernels available. Edge kernels include the next subarch as edge kernels are a preview of the next subarch. For hwe-16.04-edge this is causing hwe-16.10 to be added to the list when that kernel isn't actually available.
Related branches
lp://staging/~ltrager/maas/lp1654450
- Gavin Panella (community): Approve
-
Diff: 184 lines (+55/-19)6 files modifiedsrc/maasserver/models/bootresource.py (+28/-5)
src/maasserver/models/tests/test_bootresource.py (+16/-1)
src/maasserver/tests/test_forms_commissioning.py (+4/-4)
src/maasserver/utils/osystems.py (+4/-6)
src/maasserver/utils/tests/test_osystems.py (+1/-1)
src/maasserver/websockets/handlers/general.py (+2/-2)
lp://staging/~ltrager/maas/lp1654450_2.1
- Lee Trager (community): Approve
-
Diff: 196 lines (+56/-19)7 files modifieddocs/changelog.rst (+1/-0)
src/maasserver/models/bootresource.py (+28/-5)
src/maasserver/models/tests/test_bootresource.py (+16/-1)
src/maasserver/tests/test_forms_commissioning.py (+4/-4)
src/maasserver/utils/osystems.py (+4/-6)
src/maasserver/utils/tests/test_osystems.py (+1/-1)
src/maasserver/websockets/handlers/general.py (+2/-2)
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
milestone: | 2.1.3 → 2.1.4 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.