[Bug 1804861] Re: MTU size defined on /etc/netplan/50-cloud-init.yaml not applied

Launchpad Bug Tracker 1804861 at bugs.launchpad.net
Wed May 8 00:00:42 UTC 2019


This bug was fixed in the package netplan.io - 0.96-0ubuntu0.18.04.4

---------------
netplan.io (0.96-0ubuntu0.18.04.4) bionic; urgency=medium

  * debian/patches/git_revert_explicit_renderer_def_ebc212a.patch: revert
    commit ebc212a: make renderer values explicit at the end of each parsing
    pass; it breaks "default" renderer behavior when multiple files may set
    a global renderer and expect the last to take effect globally.
    (LP: #1825206)
  * debian/patches/git_reorg_netdef_validation_181b583.patch: correct the
    fallout from the above change: validate netdefs in a single pass at the
    very end of parsing, once we know which is the applicable renderer. This
    makes sure tunnels get validated correctly.

netplan.io (0.96-0ubuntu0.18.04.3) bionic; urgency=medium

  * debian/patches/disable-networkd-tunnels-ipip-gre.patch: disable IPIP and
    GRE tunnel tests; those appear to be broken because neither the kernel nor
    networkd bring up the device automatically as in other releases.

netplan.io (0.96-0ubuntu0.18.04.2) bionic; urgency=medium

  * d/p/0001-Partially-revert-the-change-for-enabling-systemd-net.patch:
    Partially revert changes to networkd jobs ordering: leave systemd-networkd
    enabled in multi-user.target instead of network-online.target, as in some
    minimal setups there might be no job requiring network-online.target,
    whereas the natural target to reach for booting is multi-user.target.
    (LP: #1821867)

netplan.io (0.96-0ubuntu0.18.04.1) bionic; urgency=medium

  * Backport netplan.io 0.96 to 18.04.
  * debian/patches/glib_changes.patch: Patch tests to work again on older GLib.
  * debian/control: adjust Depends for bionic / re-add nplan package.

netplan.io (0.96-0ubuntu1) disco; urgency=medium

  * New upstream release 0.96.
    - Moved netplan-wpa@ services to earlier at boot (LP: #1819014)
    - Restart services when unconfiguring (LP: #1811868)
    - Use the .nmconnection extension for NM keyfiles (LP: #1817655)
    - Fixed integration tests runner to correctly report failures
    - Enforce integrity for use-routes in networkd backend.
    - Ensure terminal state at end of test (LP: #1817660)
    - Various small test fixes.
    - Fix typos in documentation.
  * debian/control: Update Maintainer for ubuntu upload.

netplan.io (0.95-2) unstable; urgency=medium

  * Set Priority to optional (Closes: #920327).

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

  * New upstream release.
  * Update autopkgtests from the upstream.
  * Add debian/watch following GitHub releases.
  * Add Homepage (Closes: #917233).

netplan.io (0.95) disco; urgency=medium

  * New upstream release:
    - Added support for WPA Enterprise / 802.1x authentication (LP: #1739578)
    - Added support for setting up IP tunnels; supporting the types: ipip,
      gretap, VTI, ISATAP (NetworkManager only), sit, gre, ipip6 and ip6ip6.
      + Fixes sit (ipv6) tunnels using Hurricane Electric (LP: #1799487)
    - Add support to override networkd UseMTU setting (LP: #1807273)
    - Generate output files in dependency order
    - Refactored unit and integration tests, along with various cleanups.
    - Add DHCP overrides to control route usage and default metric for DHCP
      routes. (LP: #1776228)
    - Mitigate against bad matching on devices behind bonds then they share
      the same MAC from a physical interface. (LP: #1804861)
    - Added snapcraft.yaml.

netplan.io (0.90.1) disco; urgency=medium

  * Do not assume /etc/network exists in postinst, as netbase 5.5 no longer
    creates it.
  * netplan/cli/commands/ip.py: fix a flake.

netplan.io (0.90) disco; urgency=medium

  * New upstream release:
    - build: fixes for building on RPM-based distros
    - build: code prettiness changes (make indentation consistent)
    - Fix device name-changes detection (LP: #1770082)
    - Add support for IPv6 Privacy Extensions (LP: #1750392)
    - Add dhcp{4,6}-overrides to control DNS, NTP, hostname updates via DHCP
      (LP: #1759014)
    - Clarify MAC and MTU setting requirements (LP: #1800668)
    - Various documentation fixes (LP: #1800669)
    - Improve error reporting to give clearer messages and context
      (LP: #1800670)
    - Skip non-physical/bond interfaces when applying renames (LP: #1802322)

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

  * Upload to Debian (Closes: #882661).

netplan.io (0.40.2) cosmic; urgency=medium

  * tests/integration.py: Mark regexes with r to pacify pycodestyle's
W605.

 -- Mathieu Trudel-Lapierre <cyphermox at ubuntu.com>  Fri, 26 Apr 2019
15:19:47 -0400

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

** Changed in: netplan.io (Ubuntu Cosmic)
       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/1804861

Title:
  MTU size defined on /etc/netplan/50-cloud-init.yaml not applied

Status in netplan:
  Fix Released
Status in maas package in Ubuntu:
  Invalid
Status in netplan.io package in Ubuntu:
  Fix Released
Status in netplan.io source package in Bionic:
  Fix Released
Status in netplan.io source package in Cosmic:
  Fix Released

Bug description:
  [Impact]
  Users of netplan with complex bridge or bond configurations, where setting MTU or renaming is required and matching is done by MAC address.

  [Test case]
  1) Configure netplan with a bond, and device members that use different MTU values:

  network:
      version: 2
      ethernets:
          ens6:
              set-name: ens6
              match:
                  macaddress: 52:54:00:25:ba:4f
              mtu: 9000
          ens7:
              set-name: ens7
              match:
                  macaddress: 52:54:00:02:86:3b
              mtu: 9000
      bonds:
          bond0:
              interfaces:
              - ens6
              - ens7
              mtu: 9000
              parameters:
                  down-delay: 0
                  lacp-rate: fast
                  mii-monitor-interval: 100
                  mode: 802.3ad
                  up-delay: 0
                  transmit-hash-policy: layer3+4
      vlans:
          bond0.804:
              mtu: 1500
              id: 804
              link: bond0
              addresses:
                  - 10.20.16.50/24
          bond0.1:
              mtu: 1500
              id: 1
              link: bond0
              addresses:
              - 10.3.67.31/20
              gateway4: 10.3.67.1
              nameservers:
                  addresses:
                  - 10.3.67.22
                  search:
                  - cloud

  2) Verify that the correct MTU has been applied to each interface:
  ens6: 9000
  ens7: 9000
  bond0: 9000
  bond0.804: 1500
  bond0.1: 1500

  
  [Regression potential]
  Minimal risk of regression: this changes the generated configuation in a very targetted way, where only when dealing with an interface added to bond or a bridge *and* matching by MAC address is in use, the generated configuration for networkd is further qualified by device Type to ensure it does not match on extra devices (ie. because some may share the same MAC address). Other configurations (such has when no matching is in use) are not affected.

  
  ---

  
  netplan version: 0.36.3
  Ubuntu Bionic

  """
  network:
      version: 2
      vlans:
          bond0.810:
              addresses:
              - 10.20.33.3/29
              id: 810
              link: bond0
              mtu: 1500
              nameservers: *id001
  """

  Note: bond0 and its slaves have mtu=9000 configured (there are other
  vlans using 9000, too).

  On netplan source code deployed by the package, only "migrate.py" has
  references to "MTU", however, a command does not exist for "migrate".

  I also tried to add /etc/udev/rules.d/70-net.rules:
  """
  SUBSYSTEM=="net", ACTION=="add", KERNEL=="bond0.810", ATTR{mtu}=="9000", ATTR{mtu}="1500"
  """

  But it doesn't get applied.

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



More information about the foundations-bugs mailing list