Image import does not work via CLI

Bug #1886243 reported by Peter Matulis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
Medium
Unassigned

Bug Description

On a fresh install of the snap on Ubuntu 20.04 LTS I am trying to import images:

$ maas admin boot-source-selections create 1 os="ubuntu" release="focal" arches="amd64"
$ maas admin boot-resources import

This does not appear to work at all. Waiting does not help. I get no output for the following:

$ maas admin boot-resources read | grep 20.04

When I go to the web UI I see that Focal is selected but it is waiting for the green button to be pressed. When I do so the download commences. See attachment.

MAAS version: 2.8.1~rc1 (8566-g.e2cce5b2f)

Revision history for this message
Peter Matulis (petermatulis) wrote :
Revision history for this message
Lee Trager (ltrager) wrote :

You have to tell MAAS which subarches and labels to download as well through the API. Try

maas admin boot-source-selections create 1 os="ubuntu" release="focal" arches="amd64" subarches='*' labels='*'

The subarches and labels options should be optional. Really we should remove them. The label can only be daily currently. While the subarches can be filtered it will break selecting a kernel.

Changed in maas:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 2.9.0b1
Revision history for this message
Peter Matulis (petermatulis) wrote :

@Lee, thanks your suggestion worked.

Lee Trager (ltrager)
Changed in maas:
milestone: 2.9.0b1 → 2.9.0b2
Lee Trager (ltrager)
Changed in maas:
milestone: 2.9.0b2 → 2.9.0b3
milestone: 2.9.0b3 → 2.9.0b4
Lee Trager (ltrager)
Changed in maas:
milestone: 2.9.0b4 → 2.9.0b7
Lee Trager (ltrager)
Changed in maas:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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