Public bug reported:

MTU values get lost in translation when input is netplan (v2 yaml).

I'm attaching a recreate script, but basically the mtu setting gets lost
when writing ENI or sysconfig if the input is v2 yaml.

input of:
  version: 2
  vlans:
    bond0.1000:
      addresses: ["192.6.1.9/24"]
      id: 1000
      link: bond0
      mtu: 1496
    bond0.1001:
      id: 1001
      link: bond0
  bonds:
    bond0:
      interfaces: ["enp0s0", "enp0s1"]
      parameters: {}
      mtu: 1496

Renders output files like etc/sysconfig/network-scripts/ifcfg-bond0:
  # Created by cloud-init on instance boot automatically, do not edit.
  #
  BONDING_MASTER=yes
  BONDING_SLAVE0=enp0s0
  BONDING_SLAVE1=enp0s1
  BOOTPROTO=none
  DEVICE=bond0
  NM_CONTROLLED=no
  ONBOOT=yes
  STARTMODE=auto
  TYPE=Bond
  USERCTL=no

Where the same config from v1 would have the 'MTU=1496'

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: cloud-init 19.1-1-gbaa47854-0ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-54.58-generic 4.15.18
Uname: Linux 4.15.0-54-generic x86_64
ApportVersion: 2.20.11-0ubuntu5
Architecture: amd64
CloudName: LXD
Date: Wed Jul 17 18:37:04 2019
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=C.UTF-8
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
user_data.txt:
 #cloud-config
 {}

** Affects: cloud-init
     Importance: Undecided
         Status: Confirmed

** Affects: cloud-init (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug eoan uec-images

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1836949

Title:
  mtu gets lost in translation from netplan (v2) yaml

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1836949/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to