Hi Mario, thanks for the additional testing and logs. Ok, that the modification of the yaml file will not have an impact was kind of expected, but it was to make sure that the parsing itself is fine - since netplan try and apply comes back w/o an error, everything else would have surprised me.
But interesting is that it works for you using the ip command. That makes me think that it's probably an issue with systemd-networkd. So please could you share the output of: networkctl status enP53p0s0.171 --no-pager after the interface got an IP address assigned (so after 'ip addr add ...') and again after such an un-successful netplan apply (so when an address did not got assigned). And while doing that I recommend to update the systemd-networkd loglevel to debug with the following so that we get as much details as possible: $ cat /etc/systemd/system/systemd-networkd.service.d/override.conf [Service] Environment=SYSTEMD_LOG_LEVEL=debug $ systemctl restart systemd-networkd I'll also ave a look at systemd upstream (https://github.com/systemd/systemd/issues/), checking if s/t similar got already reported ... -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1929657 Title: [Ubuntu 20.4.2] vLan not getting static IP assigned (on s390x) Status in Ubuntu on IBM z Systems: Incomplete Status in linux package in Ubuntu: New Status in netplan.io package in Ubuntu: New Bug description: ---Problem Description--- Doing vLAN configuration one of the vLANs is not getting static IP assigned when the rest are workin without problems Contact Information = Mario Alvarado/mario.alberto.gali...@ibm.com ---uname output--- Linux ilabg13.tuc.stglabs.ibm.com 5.4.0-73-generic #82-Ubuntu SMP Wed Apr 14 17:29:32 UTC 2021 s390x s390x s390x GNU/Linux Machine Type = z15 ---Debugger--- A debugger is not configured ---Steps to Reproduce--- 1)Configure the netplan file as follow: root@ilabg13:~# cat /etc/netplan/01-iscsi-config.yaml # This is the network config written by 'subiquity' network: ethernets: encdb0: addresses: - 11.111.114.213/22 macaddress: 02:76:54:00:00:03 encdc0: addresses: - 11.111.112.213/22 macaddress: 02:76:54:00:00:04 enP50s3832 : addresses: - 11.111.112.214/22 enP53p0s0: addresses: - 11.111.112.215/22 vlans: encdb0.160: id: 160 link: encdb0 mtu: 9000 addresses: - 192.168.160.53/24 encdc0.150: id: 150 link: encdc0 mtu: 9000 addresses: - 192.168.150.53/24 enP50s3832.170: id: 170 link: enP50s3832 mtu: 9000 addresses: - 192.168.170.53/24 enP53p0s0.171: id: 171 link: enP53p0s0 mtu: 9000 addresses: - 192.168.171.53/24 version: 2 2)run net plan apply: root@ilabg13:~# netplan --debug apply ** (generate:59965): DEBUG: 14:55:15.046: Processing input file /etc/netplan/00-installer-config.yaml.. ** (generate:59965): DEBUG: 14:55:15.046: starting new processing pass ** (generate:59965): DEBUG: 14:55:15.046: Processing input file /etc/netplan/01-iscsi-config.yaml.. ** (generate:59965): DEBUG: 14:55:15.046: starting new processing pass ** (generate:59965): DEBUG: 14:55:15.046: We have some netdefs, pass them through a final round of validation ** (generate:59965): DEBUG: 14:55:15.046: encdc0: setting default backend to 1 ** (generate:59965): DEBUG: 14:55:15.046: Configuration is valid ** (generate:59965): DEBUG: 14:55:15.046: encdb0: setting default backend to 1 ** (generate:59965): DEBUG: 14:55:15.046: Configuration is valid ** (generate:59965): DEBUG: 14:55:15.046: ence0f: setting default backend to 1 ** (generate:59965): DEBUG: 14:55:15.046: Configuration is valid ** (generate:59965): DEBUG: 14:55:15.046: encdb0.160: setting default backend to 1 ** (generate:59965): DEBUG: 14:55:15.046: Configuration is valid ** (generate:59965): DEBUG: 14:55:15.046: enP50s3832: setting default backend to 1 ** (generate:59965): DEBUG: 14:55:15.046: Configuration is valid ** (generate:59965): DEBUG: 14:55:15.046: enP53p0s0.171: setting default backend to 1 ** (generate:59965): DEBUG: 14:55:15.046: Configuration is valid ** (generate:59965): DEBUG: 14:55:15.046: enP50s3832.170: setting default backend to 1 ** (generate:59965): DEBUG: 14:55:15.046: Configuration is valid ** (generate:59965): DEBUG: 14:55:15.046: enP53p0s0: setting default backend to 1 ** (generate:59965): DEBUG: 14:55:15.046: Configuration is valid ** (generate:59965): DEBUG: 14:55:15.046: encdc0.150: setting default backend to 1 ** (generate:59965): DEBUG: 14:55:15.046: Configuration is valid ** (generate:59965): DEBUG: 14:55:15.047: Generating output files.. ** (generate:59965): DEBUG: 14:55:15.047: openvswitch: definition ence0f is not for us (backend 1) ** (generate:59965): DEBUG: 14:55:15.047: NetworkManager: definition ence0f is not for us (backend 1) ** (generate:59965): DEBUG: 14:55:15.047: openvswitch: definition encdb0 is not for us (backend 1) ** (generate:59965): DEBUG: 14:55:15.047: NetworkManager: definition encdb0 is not for us (backend 1) ** (generate:59965): DEBUG: 14:55:15.047: openvswitch: definition encdc0 is not for us (backend 1) ** (generate:59965): DEBUG: 14:55:15.047: NetworkManager: definition encdc0 is not for us (backend 1) ** (generate:59965): DEBUG: 14:55:15.047: openvswitch: definition enP50s3832 is not for us (backend 1) ** (generate:59965): DEBUG: 14:55:15.047: NetworkManager: definition enP50s3832 is not for us (backend 1) ** (generate:59965): DEBUG: 14:55:15.047: openvswitch: definition enP53p0s0 is not for us (backend 1) ** (generate:59965): DEBUG: 14:55:15.047: NetworkManager: definition enP53p0s0 is not for us (backend 1) ** (generate:59965): DEBUG: 14:55:15.047: openvswitch: definition encdb0.160 is not for us (backend 1) ** (generate:59965): DEBUG: 14:55:15.047: NetworkManager: definition encdb0.160 is not for us (backend 1) ** (generate:59965): DEBUG: 14:55:15.047: openvswitch: definition encdc0.150 is not for us (backend 1) ** (generate:59965): DEBUG: 14:55:15.047: NetworkManager: definition encdc0.150 is not for us (backend 1) ** (generate:59965): DEBUG: 14:55:15.047: openvswitch: definition enP50s3832.170 is not for us (backend 1) ** (generate:59965): DEBUG: 14:55:15.047: NetworkManager: definition enP50s3832.170 is not for us (backend 1) ** (generate:59965): DEBUG: 14:55:15.047: openvswitch: definition enP53p0s0.171 is not for us (backend 1) ** (generate:59965): DEBUG: 14:55:15.047: NetworkManager: definition enP53p0s0.171 is not for us (backend 1) (generate:59965): GLib-DEBUG: 14:55:15.047: posix_spawn avoided (fd close requested) (generate:59965): GLib-DEBUG: 14:55:15.048: posix_spawn avoided (fd close requested) DEBUG:netplan generated networkd configuration changed, restarting networkd DEBUG:ence0f not found in {} DEBUG:encdb0 not found in {'ence0f': {'addresses': ['9.11.116.213/24'], 'gateway4': '9.11.116.1', 'nameservers': {'addresses': ['9.11.227.25']}}} DEBUG:encdc0 not found in {'ence0f': {'addresses': ['9.11.116.213/24'], 'gateway4': '9.11.116.1', 'nameservers': {'addresses': ['9.11.227.25']}}, 'encdb0': {'addresses': ['11.111.114.213/22'], 'macaddress': '02:76:54:00:00:03'}} DEBUG:enP50s3832 not found in {'ence0f': {'addresses': ['9.11.116.213/24'], 'gateway4': '9.11.116.1', 'nameservers': {'addresses': ['9.11.227.25']}}, 'encdb0': {'addresses': ['11.111.114.213/22'], 'macaddress': '02:76:54:00:00:03'}, 'encdc0': {'addresses': ['11.111.112.213/22'], 'macaddress': '02:76:54:00:00:04'}} DEBUG:enP53p0s0 not found in {'ence0f': {'addresses': ['9.11.116.213/24'], 'gateway4': '9.11.116.1', 'nameservers': {'addresses': ['9.11.227.25']}}, 'encdb0': {'addresses': ['11.111.114.213/22'], 'macaddress': '02:76:54:00:00:03'}, 'encdc0': {'addresses': ['11.111.112.213/22'], 'macaddress': '02:76:54:00:00:04'}, 'enP50s3832': {'addresses': ['11.111.112.214/22']}} DEBUG:encdb0.160 not found in {} DEBUG:encdc0.150 not found in {'encdb0.160': {'id': 160, 'link': 'encdb0', 'mtu': 9000, 'addresses': ['192.168.160.53/24']}} DEBUG:enP50s3832.170 not found in {'encdb0.160': {'id': 160, 'link': 'encdb0', 'mtu': 9000, 'addresses': ['192.168.160.53/24']}, 'encdc0.150': {'id': 150, 'link': 'encdc0', 'mtu': 9000, 'addresses': ['192.168.150.53/24']}} DEBUG:enP53p0s0.171 not found in {'encdb0.160': {'id': 160, 'link': 'encdb0', 'mtu': 9000, 'addresses': ['192.168.160.53/24']}, 'encdc0.150': {'id': 150, 'link': 'encdc0', 'mtu': 9000, 'addresses': ['192.168.150.53/24']}, 'enP50s3832.170': {'id': 170, 'link': 'enP50s3832', 'mtu': 9000, 'addresses': ['192.168.170.53/24']}} DEBUG:Merged config: network: ethernets: enP50s3832: addresses: - 11.111.112.214/22 enP53p0s0: addresses: - 11.111.112.215/22 encdb0: addresses: - 11.111.114.213/22 macaddress: 02:76:54:00:00:03 encdc0: addresses: - 11.111.112.213/22 macaddress: 02:76:54:00:00:04 ence0f: addresses: - 9.11.116.213/24 gateway4: 9.11.116.1 nameservers: addresses: - 9.11.227.25 version: 2 vlans: enP50s3832.170: addresses: - 192.168.170.53/24 id: 170 link: enP50s3832 mtu: 9000 enP53p0s0.171: addresses: - 192.168.171.53/24 id: 171 link: enP53p0s0 mtu: 9000 encdb0.160: addresses: - 192.168.160.53/24 id: 160 link: encdb0 mtu: 9000 encdc0.150: addresses: - 192.168.150.53/24 id: 150 link: encdc0 mtu: 9000 DEBUG:no netplan generated NM configuration exists DEBUG:ence0f not found in {} DEBUG:encdb0 not found in {'ence0f': {'addresses': ['9.11.116.213/24'], 'gateway4': '9.11.116.1', 'nameservers': {'addresses': ['9.11.227.25']}}} DEBUG:encdc0 not found in {'ence0f': {'addresses': ['9.11.116.213/24'], 'gateway4': '9.11.116.1', 'nameservers': {'addresses': ['9.11.227.25']}}, 'encdb0': {'addresses': ['11.111.114.213/22'], 'macaddress': '02:76:54:00:00:03'}} DEBUG:enP50s3832 not found in {'ence0f': {'addresses': ['9.11.116.213/24'], 'gateway4': '9.11.116.1', 'nameservers': {'addresses': ['9.11.227.25']}}, 'encdb0': {'addresses': ['11.111.114.213/22'], 'macaddress': '02:76:54:00:00:03'}, 'encdc0': {'addresses': ['11.111.112.213/22'], 'macaddress': '02:76:54:00:00:04'}} DEBUG:enP53p0s0 not found in {'ence0f': {'addresses': ['9.11.116.213/24'], 'gateway4': '9.11.116.1', 'nameservers': {'addresses': ['9.11.227.25']}}, 'encdb0': {'addresses': ['11.111.114.213/22'], 'macaddress': '02:76:54:00:00:03'}, 'encdc0': {'addresses': ['11.111.112.213/22'], 'macaddress': '02:76:54:00:00:04'}, 'enP50s3832': {'addresses': ['11.111.112.214/22']}} DEBUG:encdb0.160 not found in {} DEBUG:encdc0.150 not found in {'encdb0.160': {'id': 160, 'link': 'encdb0', 'mtu': 9000, 'addresses': ['192.168.160.53/24']}} DEBUG:enP50s3832.170 not found in {'encdb0.160': {'id': 160, 'link': 'encdb0', 'mtu': 9000, 'addresses': ['192.168.160.53/24']}, 'encdc0.150': {'id': 150, 'link': 'encdc0', 'mtu': 9000, 'addresses': ['192.168.150.53/24']}} DEBUG:enP53p0s0.171 not found in {'encdb0.160': {'id': 160, 'link': 'encdb0', 'mtu': 9000, 'addresses': ['192.168.160.53/24']}, 'encdc0.150': {'id': 150, 'link': 'encdc0', 'mtu': 9000, 'addresses': ['192.168.150.53/24']}, 'enP50s3832.170': {'id': 170, 'link': 'enP50s3832', 'mtu': 9000, 'addresses': ['192.168.170.53/24']}} DEBUG:Merged config: network: ethernets: enP50s3832: addresses: - 11.111.112.214/22 enP53p0s0: addresses: - 11.111.112.215/22 encdb0: addresses: - 11.111.114.213/22 macaddress: 02:76:54:00:00:03 encdc0: addresses: - 11.111.112.213/22 macaddress: 02:76:54:00:00:04 ence0f: addresses: - 9.11.116.213/24 gateway4: 9.11.116.1 nameservers: addresses: - 9.11.227.25 version: 2 vlans: enP50s3832.170: addresses: - 192.168.170.53/24 id: 170 link: enP50s3832 mtu: 9000 enP53p0s0.171: addresses: - 192.168.171.53/24 id: 171 link: enP53p0s0 mtu: 9000 encdb0.160: addresses: - 192.168.160.53/24 id: 160 link: encdb0 mtu: 9000 encdc0.150: addresses: - 192.168.150.53/24 id: 150 link: encdc0 mtu: 9000 DEBUG:Link changes: {} DEBUG:netplan triggering .link rules for lo DEBUG:netplan triggering .link rules for encdb0 DEBUG:netplan triggering .link rules for ence0f DEBUG:netplan triggering .link rules for encdc0 DEBUG:netplan triggering .link rules for enP50s3832 DEBUG:netplan triggering .link rules for enP53p0s0 DEBUG:netplan triggering .link rules for enP53p0s0.171 DEBUG:netplan triggering .link rules for enP50s3832.170 DEBUG:netplan triggering .link rules for encdc0.150 DEBUG:netplan triggering .link rules for encdb0.160 DEBUG:ence0f not found in {} DEBUG:encdb0 not found in {'ence0f': {'addresses': ['9.11.116.213/24'], 'gateway4': '9.11.116.1', 'nameservers': {'addresses': ['9.11.227.25']}}} DEBUG:encdc0 not found in {'ence0f': {'addresses': ['9.11.116.213/24'], 'gateway4': '9.11.116.1', 'nameservers': {'addresses': ['9.11.227.25']}}, 'encdb0': {'addresses': ['11.111.114.213/22'], 'macaddress': '02:76:54:00:00:03'}} DEBUG:enP50s3832 not found in {'ence0f': {'addresses': ['9.11.116.213/24'], 'gateway4': '9.11.116.1', 'nameservers': {'addresses': ['9.11.227.25']}}, 'encdb0': {'addresses': ['11.111.114.213/22'], 'macaddress': '02:76:54:00:00:03'}, 'encdc0': {'addresses': ['11.111.112.213/22'], 'macaddress': '02:76:54:00:00:04'}} DEBUG:enP53p0s0 not found in {'ence0f': {'addresses': ['9.11.116.213/24'], 'gateway4': '9.11.116.1', 'nameservers': {'addresses': ['9.11.227.25']}}, 'encdb0': {'addresses': ['11.111.114.213/22'], 'macaddress': '02:76:54:00:00:03'}, 'encdc0': {'addresses': ['11.111.112.213/22'], 'macaddress': '02:76:54:00:00:04'}, 'enP50s3832': {'addresses': ['11.111.112.214/22']}} DEBUG:encdb0.160 not found in {} DEBUG:encdc0.150 not found in {'encdb0.160': {'id': 160, 'link': 'encdb0', 'mtu': 9000, 'addresses': ['192.168.160.53/24']}} DEBUG:enP50s3832.170 not found in {'encdb0.160': {'id': 160, 'link': 'encdb0', 'mtu': 9000, 'addresses': ['192.168.160.53/24']}, 'encdc0.150': {'id': 150, 'link': 'encdc0', 'mtu': 9000, 'addresses': ['192.168.150.53/24']}} DEBUG:enP53p0s0.171 not found in {'encdb0.160': {'id': 160, 'link': 'encdb0', 'mtu': 9000, 'addresses': ['192.168.160.53/24']}, 'encdc0.150': {'id': 150, 'link': 'encdc0', 'mtu': 9000, 'addresses': ['192.168.150.53/24']}, 'enP50s3832.170': {'id': 170, 'link': 'enP50s3832', 'mtu': 9000, 'addresses': ['192.168.170.53/24']}} DEBUG:Merged config: network: ethernets: enP50s3832: addresses: - 11.111.112.214/22 enP53p0s0: addresses: - 11.111.112.215/22 encdb0: addresses: - 11.111.114.213/22 macaddress: 02:76:54:00:00:03 encdc0: addresses: - 11.111.112.213/22 macaddress: 02:76:54:00:00:04 ence0f: addresses: - 9.11.116.213/24 gateway4: 9.11.116.1 nameservers: addresses: - 9.11.227.25 version: 2 vlans: enP50s3832.170: addresses: - 192.168.170.53/24 id: 170 link: enP50s3832 mtu: 9000 enP53p0s0.171: addresses: - 192.168.171.53/24 id: 171 link: enP53p0s0 mtu: 9000 encdb0.160: addresses: - 192.168.160.53/24 id: 160 link: encdb0 mtu: 9000 encdc0.150: addresses: - 192.168.150.53/24 id: 150 link: encdc0 mtu: 9000 And check the network configuration: root@ilabg13:~# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: encdb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq state UP group default qlen 1000 link/ether 02:76:54:00:00:03 brd ff:ff:ff:ff:ff:ff inet 11.111.114.213/22 brd 11.111.115.255 scope global encdb0 valid_lft forever preferred_lft forever inet6 fe80::76:54ff:fe00:3/64 scope link valid_lft forever preferred_lft forever 3: ence0f: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 02:76:54:00:00:08 brd ff:ff:ff:ff:ff:ff inet 9.11.116.213/24 brd 9.11.116.255 scope global ence0f valid_lft forever preferred_lft forever inet6 2002:90b:e006:116:76:54ff:fe00:8/64 scope global dynamic mngtmpaddr noprefixroute valid_lft 2591895sec preferred_lft 604695sec inet6 fe80::76:54ff:fe00:8/64 scope link valid_lft forever preferred_lft forever 4: encdc0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq state UP group default qlen 1000 link/ether 02:76:54:00:00:04 brd ff:ff:ff:ff:ff:ff inet 11.111.112.213/22 brd 11.111.115.255 scope global encdc0 valid_lft forever preferred_lft forever inet6 fe80::76:54ff:fe00:4/64 scope link valid_lft forever preferred_lft forever 5: enP50s3832: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq state UP group default qlen 1000 link/ether 82:0c:9b:a8:a1:b2 brd ff:ff:ff:ff:ff:ff inet 11.111.112.214/22 brd 11.111.115.255 scope global enP50s3832 valid_lft forever preferred_lft forever inet6 fe80::800c:9bff:fea8:a1b2/64 scope link valid_lft forever preferred_lft forever 6: enP53p0s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq state UP group default qlen 1000 link/ether 82:0c:9b:c9:78:f8 brd ff:ff:ff:ff:ff:ff inet 11.111.112.215/22 brd 11.111.115.255 scope global enP53p0s0 valid_lft forever preferred_lft forever inet6 fe80::800c:9bff:fec9:78f8/64 scope link valid_lft forever preferred_lft forever 7: enP53p0s0.171@enP53p0s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP group default qlen 1000 link/ether 82:0c:9b:c9:78:f8 brd ff:ff:ff:ff:ff:ff inet6 fe80::800c:9bff:fec9:78f8/64 scope link valid_lft forever preferred_lft forever 8: enP50s3832.170@enP50s3832: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP group default qlen 1000 link/ether 82:0c:9b:a8:a1:b2 brd ff:ff:ff:ff:ff:ff inet 192.168.170.53/24 brd 192.168.170.255 scope global enP50s3832.170 valid_lft forever preferred_lft forever inet6 fe80::800c:9bff:fea8:a1b2/64 scope link valid_lft forever preferred_lft forever 9: encdc0.150@encdc0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP group default qlen 1000 link/ether 02:76:54:00:00:04 brd ff:ff:ff:ff:ff:ff inet 192.168.150.53/24 brd 192.168.150.255 scope global encdc0.150 valid_lft forever preferred_lft forever inet6 fe80::76:54ff:fe00:4/64 scope link valid_lft forever preferred_lft forever 10: encdb0.160@encdb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc noqueue state UP group default qlen 1000 link/ether 02:76:54:00:00:03 brd ff:ff:ff:ff:ff:ff inet 192.168.160.53/24 brd 192.168.160.255 scope global encdb0.160 valid_lft forever preferred_lft forever inet6 fe80::76:54ff:fe00:3/64 scope link valid_lft forever preferred_lft forever The vLAN 171 is not getting the IP assigned *Additional Instructions for Mario Alvarado/mario.alberto.gali...@ibm.com: -Post a private note with access information to the machine that the bug is occuring on. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1929657/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp