"Error: An architecture is required" on compose VM screen

Bug #1955912 reported by Anton Smith
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
MAAS
Triaged
Medium
Unassigned
3.3
Won't Fix
Medium
Unassigned
3.4
Won't Fix
Medium
Unassigned

Bug Description

On a freshly installed MAAS 3.1 (using the tutorial), it is not possible to create any VMs. The architecture box is empty, and a red message states: Error: An architecture is required.

One image is downloaded (arm64). There are also reports from other users that this is preventing them from followoing the tutorial, and it is likely it's a regression since they state it works when downgrading to 3.0.

I think that if this is preventing creation of VMs with LXD then this is critical.

Revision history for this message
Anton Smith (anton5mith) wrote :

logs.

Also:
lxc query /1.0 | jq .environment.architectures
To start your first instance, try: lxc launch ubuntu:20.04

[
  "aarch64",
  "armv7l"
]

Revision history for this message
Alberto Donato (ack) wrote :

Looking at logs, the issue seems to be that the LXD server is too old (probably 4.0.8, which is the default on focal):

Please upgrade your LXD host to 4.16 or higher to support the following extensions: custom_block_volumes

Revision history for this message
Alberto Donato (ack) wrote :

Currently, when creating VM hosts from the API, failures from discovery are not fatal. This is intended to allow authentication to fail as certificates might not be yet trusted when adding the vmhost.

This ends up also trapping other kinds of error (such as the required extensions check above), because they're all PodProblem errors.

We should differentiate errors and still fail on this kind of errors.

Changed in maas:
status: New → Triaged
importance: Undecided → High
milestone: none → next
Revision history for this message
Jerzy Husakowski (jhusakowski) wrote :

The error reported by LXD should likely be exposed to the operator to aid in troubleshooting.

no longer affects: maas/3.1
Changed in maas:
importance: High → Medium
milestone: next → 3.3.0
Changed in maas:
milestone: 3.3.0 → 3.4.0
Alberto Donato (ack)
Changed in maas:
milestone: 3.4.0 → 3.4.x
Changed in maas:
milestone: 3.4.x → 3.5.x
no longer affects: maas/3.3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.