MAAS Breaks historical custom images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Christian Grabowski | ||
3.1 |
Fix Released
|
High
|
Christian Grabowski | ||
3.2 |
Fix Released
|
High
|
Christian Grabowski |
Bug Description
Hello There!
This was reported by a client and I'm filing the bug report on their behalf.
MAAS 3.1/3.2 introduce a new condition in src/maasserver/
https:/
https:/
I am proposing the following change to fix this issue:
diff --git a/src/maasserve
index 2eae1db66.
--- a/src/maasserve
+++ b/src/maasserve
@@ -235,7 +235,10 @@ def get_boot_
if install_
- osystem, series = install_
+ if "/" not in install_
+ series = install_
+ else:
+ osystem, series = install_
if install_image is None or osystem != "ubuntu":
# Use only the commissioning osystem and series, for operating
Although re-importing the images fixes the deployment issues, some clients have hundreds of historical images in their system and re-deployment is not really an option.
This simple change resolves the issue and preserves the intended condition for the rest of the images.
It would be great if this can be applied to 3.1/3.2 and future branches. Please let me know if you have any questions.
Thank you.
Related branches
- MAAS Lander: Approve
- MAAS Maintainers: Pending requested
-
Diff: 316 lines (+187/-14)6 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)
src/maasserver/rpc/boot.py (+1/-4)
src/maasserver/rpc/tests/test_boot.py (+106/-1)
- MAAS Lander: Approve
- MAAS Maintainers: Pending requested
-
Diff: 138 lines (+107/-5)2 files modifiedsrc/maasserver/rpc/boot.py (+1/-4)
src/maasserver/rpc/tests/test_boot.py (+106/-1)
- MAAS Lander: Approve
- Alexsander de Souza: Approve
-
Diff: 138 lines (+107/-5)2 files modifiedsrc/maasserver/rpc/boot.py (+1/-4)
src/maasserver/rpc/tests/test_boot.py (+106/-1)
summary: |
- [3.2][3.1] MAAS Breaks historical custom images + MAAS Breaks historical custom images |
tags: | added: bug-council |
Changed in maas: | |
importance: | Medium → High |
tags: | removed: bug-council |
Changed in maas: | |
assignee: | nobody → Christian Grabowski (cgrabowski) |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 3.3.0 → 3.3.0-beta1 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
We believe the issue is related to the custom image names in the database and need to investigate more. We suspect the names may need to be aligned with the required naming schema, e.g. during migration on MAAS version upgrade.