← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1826608] Re: sysconfig rendering ignores vlan name

 

This bug is believed to be fixed in cloud-init in version 20.4. If this
is still a problem for you, please make a comment and set the state back
to New

Thank you.

** Changed in: cloud-init
       Status: In Progress => Fix Released

-- 
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/1826608

Title:
  sysconfig rendering ignores vlan name

Status in cloud-init:
  Fix Released

Bug description:
  sysconfig rendering currently just does not pay attention to the vlan
  device's name.  Instead it attempts to set the name to the backing
  device with .* stripped from the end.

  Here is an example of current master output.
  The 'PHYSDEV' entry should be 'eth0', not 'infra'.

  $ cat my2.yaml
  version: 2
  ethernets:
    eth0:
      addresses: ["192.10.1.2/24"]
      match:
         macaddress: "00:16:3e:60:7c:df"
  vlans:
    infra0:
      id: 1001
      link: eth0
      addresses: ["10.0.1.2/16"]

  $ tox-venv py3 python3 -m cloudinit.cmd.main devel net-convert \
    --mac en0,00:16:3e:60:7c:df \
    --network-data=my2.yaml --kind=yaml \
    --distro=centos --output-kind=sysconfig \
    --directory=out.test

  $ cat out.test/etc/sysconfig/network-scripts/ifcfg-eth0
  # Created by cloud-init on instance boot automatically, do not edit.
  #
  BOOTPROTO=none
  DEVICE=eth0
  HWADDR=00:16:3e:60:7c:df
  IPADDR=192.10.1.2
  NETMASK=255.255.255.0
  NM_CONTROLLED=no
  ONBOOT=yes
  STARTMODE=auto
  TYPE=Ethernet
  USERCTL=no

  $ cat out.test/etc/sysconfig/network-scripts/ifcfg-infra0
  # Created by cloud-init on instance boot automatically, do not edit.
  #
  BOOTPROTO=none
  DEVICE=infra0
  IPADDR=10.0.1.2
  NETMASK=255.255.0.0
  NM_CONTROLLED=no
  ONBOOT=yes
  PHYSDEV=infra
  STARTMODE=auto
  TYPE=Ethernet
  USERCTL=no
  VLAN=yes

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


References