MAAS 3.1 no longer supports arbitrary custom images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Christian Grabowski |
Bug Description
I have a customer who has used a custom image on MAAS 3.0 that can no longer be deployed on 3.1.
The specific image is based on a vyos-equuleus iso which in turn is based on debian/buster. It took some curtin preseed magic to get the image to deploy properly but it worked.
After upgrading to 3.1, attempts to deploy with the custom image uploaded with 3.0 were met with this error:
not enough values to unpack (expected 2, got 1)
We deleted the image and tried to re-upload it:
$ maas root boot-resources create name=custom/
{"base_image": ["custom images require a valid base image name"]}
We tried adding a base_image parameter (debian/buster as this is what it is based on) and this provided a new error.
$ maas root boot-resources create name=custom/
{"base_image": ["custom images require a valid non-custom OS type base image"]}
In an attempt to "trick" maas into accepting the image, we tried ubuntu/focal as the base_image. The upload was successful but when trying to deploy the new image it failed "'curtin' executing late commands". Also in the logs:
Marking node failed - Missing boot image custom/
Related branches
- MAAS Lander: Approve
- Alexsander de Souza: Approve
-
Diff: 178 lines (+80/-9)4 files modifiedsrc/maasserver/forms/__init__.py (+17/-4)
src/maasserver/forms/tests/test_bootresource.py (+40/-5)
src/maasserver/models/bootresource.py (+11/-0)
src/maasserver/models/tests/test_bootresource.py (+12/-0)
Changed in maas: | |
status: | Incomplete → New |
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in maas: | |
assignee: | nobody → Christian Grabowski (cgrabowski) |
milestone: | none → next |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | next → 3.2.0-beta2 |
status: | Fix Committed → Fix Released |
Would it be possible to provide the image (or a similar image that has the same problems), together with the curtin preseed changes you did?