In 3.5.0 HA a new MAAS installation has no available architecture for deployments after the images are in synch
Bug #2058377 reported by
Jacopo Rota
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Committed
|
High
|
Jacopo Rota | ||
3.5 |
Fix Committed
|
High
|
Jacopo Rota |
Bug Description
Install MAAS HA on more than 2 nodes and wait for the images to be in sync. Then on both the CLI and the UI there are failures as no architectures are available.
CLI:
$ maas root machines create hostname=node1 power_type=virsh architecture=
-> {"architecture": ["'amd64/generic' is not a valid architecture. It should be one of: ''."]}
UI: see screenshot
The same works fine when MAAS is on a single node (no HA)
Related branches
~r00ta/maas:lp-2058377-fix-ha-architectures-3.5
- Jacopo Rota: Approve
-
Diff: 181 lines (+110/-5)3 files modifiedsrc/maasserver/models/bootresource.py (+22/-2)
src/maasserver/testing/factory.py (+3/-3)
src/maasserver/tests/test_bootresources.py (+85/-0)
~r00ta/maas:lp-2058377-fix-ha-architectures
Merged
into
maas:master
- MAAS Lander: Approve
- Alexsander de Souza: Approve
-
Diff: 181 lines (+110/-5)3 files modifiedsrc/maasserver/models/bootresource.py (+22/-2)
src/maasserver/testing/factory.py (+3/-3)
src/maasserver/tests/test_bootresources.py (+85/-0)
Changed in maas: | |
milestone: | 3.6.x → 3.6.0 |
Changed in maas: | |
assignee: | nobody → Jacopo Rota (r00ta) |
Changed in maas: | |
status: | Triaged → Fix Committed |
To post a comment you must log in.
The issue comes from
>>> BootResource. objects. all() efi-signed/ uefi, arch=amd64/generic, kflavor=None, base= rtype=0>>, <BootResource: <BootResource name=ubuntu/focal, arch=amd64/ hwe-20. 04-lowlatency- edge, kflavor=lowlatency, base= rtype=0>>, <BootResource: <BootResource name=grub-efi/uefi, arch=arm64/generic, kflavor=None, base= rtype=0>>, <BootResource: <BootResource name=grub- ieee1275/ open-firmware, arch=ppc64el/ generic, kflavor=None, base= rtype=0>>, <BootResource: <BootResource name=pxelinux/pxe, arch=i386/generic, kflavor=None, base= rtype=0>>, <BootResource: <BootResource name=ubuntu/focal, arch=amd64/ ga-20.04, kflavor=generic, base= rtype=0>>, <BootResource: <BootResource name=ubuntu/focal, arch=amd64/ ga-20.04- lowlatency, kflavor=lowlatency, base= rtype=0>>, <BootResource: <BootResource name=ubuntu/focal, arch=amd64/ hwe-20. 04, kflavor=generic, base= rtype=0>>, <BootResource: <BootResource name=ubuntu/focal, arch=amd64/ hwe-20. 04-edge, kflavor=generic, base= rtype=0>>, <BootResource: <BootResource name=ubuntu/focal, arch=amd64/ hwe-20. 04-lowlatency, kflavor=lowlatency, base= rtype=0>>]>
<QuerySet [<BootResource: <BootResource name=grub-
>>> BootResource. objects. get_usable_ architectures( )
[]