Public bug reported: 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 ** Affects: cloud-init Importance: Undecided Status: New -- 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: New 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 -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp