[Bug 2078009] Re: "netplan apply" not applying after cloud-init hotplug

Launchpad Bug Tracker 2078009 at bugs.launchpad.net
Thu Nov 7 23:14:57 UTC 2024


This bug was fixed in the package netplan.io - 1.1.1-1

---------------
netplan.io (1.1.1-1) unstable; urgency=medium

  * New upstream release: 1.1.1
    - NM: add support for stable-ssid MAC option !524 (LP: #2084234)
    - wpa_supplicant: add ExecReload to the service unit !523
    - Create snippet files for single-sourcing repetitive instructions !505
    - doc: Add initial 'Cryptography' section !517
    - Several code cleanup & fixes for TiCS !507
    - tests: ethernets: Add ipv6-address-generation integration tests !509
    - cli: drop python-netifaces !503 (LP: #2065870, LP: #2017585)
    - parse-nm: account for veth and dummy when checking for virtual types !513
    - Avoid dependency on dbus-python !511
    - tests: Improve vrf/wireguard modprobe check inside containers !510
    - tests:ethernets: avoid flaky test_ip6_eui64 results !514
    - ovs: quote external-ids and other-config values !512 (LP: #2070318)
    - Handle implicit conversions !496
    - Use more permissive umask for .service units !516 (LP: #2072486)
    - Revert "apply: make sure that networkd is restarted when needed" !518
      (LP: #2078009)
    - Handling encoding issues on netplan status !521 (LP: #2079975)
    - include: fix apidoc warnings about undocumented parameters
  * d/patches: Drop patches, applied upstream
  * d/control: Drop python3-{dbus,netifaces} dependencies, not needed anymore
  * d/{rules,control}: Utilize dh-python

 -- Lukas Märdian <slyon at debian.org>  Wed, 16 Oct 2024 09:46:10 +0200

** Changed in: netplan.io (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/2078009

Title:
  "netplan apply" not applying after cloud-init hotplug

Status in Netplan:
  Fix Released
Status in netplan.io package in Ubuntu:
  Fix Released

Bug description:
  When using cloud-init's network hotplug functionality on LXD, `netplan
  apply` will not bring up the new interface.

  Procedure using LXD:
  $ lxc network create my-eth2 --type=bridge ipv4.address=10.10.42.1/24 ipv4.nat=true
  $ cat > ./cloud-config.yaml << EOF
  #cloud-config
  updates:
    network:
      when: ["hotplug"]
  EOF

  $ cat > ./my-network-config.yaml << EOF
  version: 2
  ethernets:
      eth0:
          dhcp4: true
      eth2:
          dhcp4: true
  EOF

  $ lxc launch ubuntu-daily:oracular doh --config user.user-data="$(cat ./cloud-config.yaml)"
  $ lxc config set doh cloud-init.network-config="$(cat ./my-network-config.yaml)"  # Note that this must be after launch
  $ lxc config device add doh eth2 nic name=eth2 nictype=bridged parent=my-eth2
  $ lxc exec doh -- netplan status --all
  $ lxc exec doh -- netplan apply
  $ lxc exec doh -- netplan status --all

  On 1.0.1-1ubuntu2~22.04.1, eth2 comes up when the new nic is added.

  On 1.1-1, eth2 does not come up and `netplan apply` will not bring it up.
  However, a reboot or `networkctl reload` does bring it up.

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2078009/+subscriptions




More information about the foundations-bugs mailing list