Unable to deploy Ubuntu 22.04/20.04 via MAAS—cloud‑init bug workaround not working

Hello,

I’m running MAAS 3.4 (Deb‑packaged) on Ubuntu 24.04 with UEFI‑only boot, and I cannot deploy any Ubuntu release older than 24.04 (for example 22.04 or 20.04) from the MAAS image repository. I understand there is a known cloud‑init bug (Launchpad bug #2106671) affecting bonded interfaces, but I am not using any bonds and still see the same failure.

What I’ve tried so far:

Removed all network bonds and deployed on a single interface (UEFI‑only).

Imported an OVA of a MAAS server that successfully deployed 22.04 one year ago.

Applied the official workaround by pinning cloud‑init to version 24.4.0 via custom curtin early_commands/late_commands.

Despite these efforts, the deployment still fails with the same error. Can you please advise on any updated images, packages, configurations, or additional debugging steps to resolve this?

Thank you for your assistance.

If you can login to the machine could you please execute ‘cloud-init collect-logs’ and upload the tarball?

I can try, are you able to share a working curtin that downgrades it for me? I think I might have an issue with mine. Thank you.

place

#cloud-config
debconf_selections:
 maas: |
  {{for line in str(curtin_preseed).splitlines()}}
  {{line}}
  {{endfor}}
late_commands:
  maas: [wget, '--no-proxy', {{node_disable_pxe_url|escape.json}}, '--post-data', {{node_disable_pxe_data|escape.json}}, '-O', '/dev/null']
  cloud_init_00: ["curtin", "in-target", "--", "add-apt-repository", "-y", "ppa:cloud-init-dev/daily"]
  cloud_init_01: ["curtin", "in-target", "--", "apt-get", "install", "-y", "cloud-init"]

under /var/snap/maas/current/preseeds/curtin_userdata. This would use the daily ppa of cloud-init that is supposed to have the fix.

Thank you. I am testing that curtin now. Here is a URL for the Tar files as requested. It wouldn’t let me upload them here.

https://we.tl/t-iL6PJdZ2UJ

Why is this still breaking? Is it only with bonded network devices?

The new version of cloud-init that contains the fix hasn’t landed to the archive yet. It’s available in the daily ppa only right now

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.