I found out that we can avoid upgrading cloud-init to the newer version during deployment, so I'm sending the patch.
In any case, cloud-init 24.04.1 has a regression that needs to be fixed (I expect also Plucky to be affected right now) ** Changed in: maas Status: Invalid => In Progress ** Changed in: maas Assignee: (unassigned) => Jacopo Rota (r00ta) ** Changed in: maas Importance: Undecided => High ** Changed in: maas Milestone: None => 3.7.0 ** Also affects: maas/3.6 Importance: Undecided Status: New ** Also affects: maas/3.5 Importance: Undecided Status: New ** Changed in: maas/3.5 Milestone: None => 3.6.x ** Changed in: maas/3.5 Milestone: 3.6.x => 3.5.x ** Changed in: maas/3.6 Milestone: None => 3.6.x ** Changed in: maas/3.6 Importance: Undecided => High ** Changed in: maas/3.5 Importance: Undecided => High ** Merge proposal linked: https://code.launchpad.net/~r00ta/maas/+git/maas/+merge/483379 -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to cloud-init. https://bugs.launchpad.net/bugs/2103903 Title: Deployment fails when using interface with OVS bridge Status in cloud-init: New Status in MAAS: In Progress Status in MAAS 3.5 series: New Status in MAAS 3.6 series: New Bug description: Describe the bug: When trying to deploy a 24.04 Ubuntu node with OVS bridge configured on the interface as primary network, deployment will fail over cloud-init error ("cannot apply final stage"). Notes: Commissioning of the node is ok. Deploying the same node with linux bridge instead of OVS is ok. Deploying 22.04 with OVS is ok. It was working for us with 24.04 as well, however at some point is stopped working. Steps to reproduce: 1. Commission a node 2. Configure node network to have OVS bridge on the primary interface (MAAS-provided, static IP) 3. Deploy node with cloud-init for adding a user and additional configuration (attached) 4. Node will start PXE-based deployment and will re-start the node to boot from local disk, then it will fail with network configuration error Expected behavior (what should have happened?): Node deployment with OVS networking should be completed with no errors. Actual behavior (what actually happened?): Node deployment is not completed, cloud-init is not applied. MAAS version and installation type (deb, snap): # snap list maas Name Version Rev Tracking Publisher Notes maas 3.5.4-16349-g.4dbbed5f4 38907 3.5/stable canonical? # apt list maas Listing... Done MAAS setup (HA, single node, multiple regions/racks): single node Host OS distro and version: # cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=24.04 DISTRIB_CODENAME=noble DISTRIB_DESCRIPTION="Ubuntu 24.04.2 LTS" Additional context: - cloud-init: #cloud-config system_info: default_user: name: depuser passwd: "$6$jOKPZPHD9...0kn/" lock_passwd: false groups: [adm, audio, cdrom, dialout, dip, floppy, lxd, netdev, plugdev, sudo, video] sudo: ["ALL=(ALL) NOPASSWD:ALL"] shell: /bin/bash ssh_pwauth: True package_upgrade: true runcmd: - apt-get update - apt-get -y install nfs-common openvswitch-switch - | UPLINK_MAC=$(cat /sys/class/net/enp1s0/address) ovs-vsctl set Bridge brenp1s0 other-config:hwaddr=$UPLINK_MAC ovs-vsctl br-set-external-id brenp1s0 bridge-id brenp1s0 -- br-set-external-id brenp1s0 bridge-uplink enp1s0 Attached: - screenshots of network interface configuration with ovs - journalctl logs attached (machine name test-master-ovs) To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/2103903/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp