Bionic not available for commissioning on pro-enabled systems
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Committed
|
High
|
Jacopo Rota | ||
3.4 |
Fix Committed
|
High
|
MAAS Lander | ||
3.5 |
Fix Committed
|
High
|
MAAS Lander |
Bug Description
Maas does not support using Bionic image for commissioning, even though the systems are pro-enabled and therefore still have support for Bionic.
The problem is that we're running an airgapped system and cannot simply sync all necessary focal packages for commissioning (even if the deploy is bionic again). This causes commissioning to fail due to the missing packages.
Maas uses the distro-info package to check get the supported releases by calling the `supported()` function [1]. Changing this to `supported_esm()` fixes the issue.
To fix that on a running and snapped system, you can use an overlay mount like this:
```
cp /snap/maas/
# change line 57 to use supported_esm().
vim ubuntu.py
mount -o ro,bind ubuntu.py /snap/maas/
```
Above is a rather dirty hack, so use at your own risk.
[1] https:/
Related branches
- Jacopo Rota: Approve
- MAAS Lander: Needs Fixing
-
Diff: 49 lines (+10/-8)2 files modifiedsrc/provisioningserver/drivers/osystem/tests/test_ubuntu.py (+8/-6)
src/provisioningserver/drivers/osystem/ubuntu.py (+2/-2)
- MAAS Lander: Needs Fixing
- Jacopo Rota: Approve
-
Diff: 49 lines (+10/-8)2 files modifiedsrc/provisioningserver/drivers/osystem/tests/test_ubuntu.py (+8/-6)
src/provisioningserver/drivers/osystem/ubuntu.py (+2/-2)
- MAAS Lander: Approve
- Alexsander de Souza: Approve
-
Diff: 49 lines (+10/-8)2 files modifiedsrc/provisioningserver/drivers/osystem/tests/test_ubuntu.py (+8/-6)
src/provisioningserver/drivers/osystem/ubuntu.py (+2/-2)
Changed in maas: | |
assignee: | nobody → Jacopo Rota (r00ta) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
MAAS should always look at the supported-esm list.