** Description changed: - Starting in oracular, systemd-networkd network interface configuration - remain stuck in "pending" state in buildd images used by snapcraft and - other *craft tools. Snapcraft adds its own network configuration file to - /etc/systemd/network before starting the container, and expects the - network to be configured as part of the system initialization. + [ Impact ] - # cat /etc/systemd/network/10-eth0.network + * buildd hooks create minimal images used by launchpad and craft tools. + Snapcraft relies on LXD images to create its build environment. + Launching LXD buildd images with an injected network configuration + will fail to configure the NIC in the absence of udev. The NIC will + stay as "pending" according to networkctl. + + * bootable buildd images (for VMs) already include udev and are + unaffected. + + [ Test Plan ] + + * get an image or build one with: --project ubuntu-base --subproject buildd + wget -O image.tar.gz https://cloud-images.ubuntu.com/buildd/daily/oracular/current/oracular-server-cloudimg-amd64-lxd_combined.tar.gz + img=$(sha256sum image.tar.gz | awk '{print $1}') + lxc image import image.tar.gz + + * create a test instance with basic dhcp network: + lxc init $img testbuildd + lxc file push --uid 0 --gid 0 --mode 0644 - testbuildd/etc/systemd/network/lxd.network <<EOF [Match] Name=eth0 + [Network] + DHCP=yes + EOF + lxc start testbuildd + lxc exec testbuildd networkctl - [Network] - DHCP=ipv4 - LinkLocalAddressing=ipv6 + * The eth0 network should show as configured - [DHCP] - RouteMetric=100 - UseMTU=true + [ Where problems could occur ] - # networkctl - IDX LINK TYPE OPERATIONAL SETUP - 1 lo loopback carrier pending - 450 eth0 ether routable pending + * Although udev is a standard package which is already exercised + in bootable buildd images, there is a possibility that issues might + surface when LP ingests and modifies this updated LXD image. + * Specialized build environments relying on the non-VM buildd image + (other than snapcraft and Launchpad) might be affected by the newly + exercised udev rules. - If the udev package and dependencies are present in the buildd image, network configuration completes as expected: + [ Other Info ] - # networkctl - IDX LINK TYPE OPERATIONAL SETUP - 1 lo loopback carrier unmanaged - 456 eth0 ether routable configured + * Launchpad doesn't directly consume buildd images from cloud-images.ubuntu.com + but rather repackages them and validates them in staging. + I did check LP devs to give them a heads-up about this change. + + * This change isn't related to the recent launchpad buildd failures with udev + and snap installation failures.
** Also affects: livecd-rootfs (Ubuntu) Importance: Undecided Status: New ** Also affects: livecd-rootfs (Ubuntu Oracular) Importance: Undecided Status: New ** Also affects: livecd-rootfs (Ubuntu Plucky) 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/2092196 Title: udev package missing in oracular buildd image To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-images/+bug/2092196/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs