Public bug reported:

Good morning, I hope this is the right category.

I posted this exact same message on the Canonical forum and packer-maas
github as well, hoping that maybe I'm doing something wrong in the
configuration.

I’ll explain the problem and try to be as specific as possible:

I installed MAAS 3.8.0-18720-g.445005fe4  43385  3.8/stable using Snap by 
following this guide:
https://canonical.com/maas/docs/stable/how-to-guides/get-started/install-maas/

MAAS was installed on a PROXMOX-managed VM with 8 cores and 16 GB of
RAM, running Ubuntu 24.04.5 LTS

On the same machine, I copied the entire packer-maas suite from this site: 
https://github.com/canonical/packer-maas/tree/main

Following the guide to build an `ubuntu/resolute` image as described in
the README, these are the exact commands I ran:

make custom-cloudimg.tar.gz SERIES=resolute
(the build was successful)

maas admin boot-resources create \
    name=‘custom/ubuntu-tgz’ \
    title=‘26.04 LTS’ \
    architecture=‘amd64/generic’ \
    filetype=‘tgz’ \
    content@=/var/snap/maas/common/custom-cloudimg.tar.gz
(The upload is successful, and I can see the image directly from the MAAS UI)

When I try to deploy this image to a test VM, the UI always displays this error:
Failed to retrieve current config: ‘custom’

In the logs, using the command: journalctl -xeu snap.maas.pebble.service 
--no-pager -f
I always find these errors here:
maas.preseed: [warn] vm1: cannot deploy ‘custom’ (‘ubuntu-tgz’); cannot 
identify base image compatible with amd64/generic.

maas-regiond[1222]: {“level”: ‘error’, “message”: “Bulk action (deploy)
for sse86g failed: Failed to retrieve curtain config: ‘custom’”, “name”:
“maasserver.websockets.handlers.machine”, “trace_id”:
‘38c957fb96044d3eac4238729b546337’, “thread”: “PoolThread-
database-1:140375100487360”}

This error occurs every single time I try to build any image with the
“custom” tag, following the packer-maas guide.

The problem also occurs with Rocky, RHEL, and similar machines.

Every time, I’m forced to change the tag from “custom” to “ubuntu” (for
Ubuntu machines)—for example, `ubuntu/test123`—and for EL systems,
`RHEL/rocky9`. This, of course, leads to other issues during deployment.

Please help me—I’ve been driving myself crazy over this for several weekends 
now.
For completeness, this is the uploaded image that MAAS sees:
    {
        “id”: 11,
        “type”: “Uploaded”,
        “name”: “custom/ubuntu-tgz”,
        “architecture”: “amd64/generic”,
        “resource_uri”: “/MAAS/api/2.0/boot-resources/11/”,
        “last_deployed”: null,
        “title”: “26.04 LTS”,
        “subarches”: “generic”,
        “base_image”: “ubuntu/noble”
    }

This problem doesn't occur if I use Maas 3.7

Thank you for your time,

Diego

** Affects: maas (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2178350

Title:
  Failed to retrieve curtin config: 'custom' on maas 3.8 snap provided

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/maas/+bug/2178350/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to