[Bug 2022030] Re: vlan network device lost after the ubuntu 23.04 install complete

Lukas Märdian 2022030 at bugs.launchpad.net
Mon Jul 3 14:50:45 UTC 2023


Hi mayijie, indeed from your latest systemd-networkd debug log it looks
like the enc1000.1300 vlan interface was created successfully, I wonder
why it doesn't show up in your "ip link" output..


What I find interesting, though it that the enc1000 interface seems to come UP during boot, but then looses carrier briefly (cable disconnected? underlying VM reconfigured?), which interrupts the creation of the enc1000.1300 vlan.

Would you mind adding the "ignore-carrier: true" setting to your enc1000
Netplan configuration and check if this makes any difference?

Here's the relevant log where carrier is lost:
```
Jun 19 03:00:33 a90ubut15 systemd-networkd[964]: enc1000: Flags change: +UP +LOWER_UP +RUNNING
Jun 19 03:00:33 a90ubut15 systemd-networkd[964]: enc1000: Link UP
Jun 19 03:00:33 a90ubut15 systemd-networkd[964]: enc1000: Gained carrier
Jun 19 03:00:33 a90ubut15 systemd-networkd[964]: enc1000: found matching network '/run/systemd/network/10-netplan-enc1000.network'.
Jun 19 03:00:33 a90ubut15 systemd-networkd[964]: enc1000: LLDP Rx: Started LLDP client
Jun 19 03:00:33 a90ubut15 systemd-networkd[964]: enc1000: link_check_ready(): link is not activated.
Jun 19 03:00:33 a90ubut15 systemd-networkd[964]: enc1000: link_check_ready(): link is not activated.
Jun 19 03:00:33 a90ubut15 systemd-networkd[964]: enc1000: link_check_ready(): link is not activated.
Jun 19 03:00:33 a90ubut15 systemd-networkd[964]: enc1000: link_check_ready(): link is not activated.
Jun 19 03:00:33 a90ubut15 systemd-networkd[964]: enc1000: link_check_ready(): link is not activated.
Jun 19 03:00:33 a90ubut15 systemd-networkd[964]: enc1000: link_check_ready(): link is not activated.
Jun 19 03:00:33 a90ubut15 systemd-networkd[964]: enc1000: link_check_ready(): link is not activated.
Jun 19 03:00:33 a90ubut15 systemd-networkd[964]: enc1000: link_check_ready(): link is not activated.
Jun 19 03:00:33 a90ubut15 systemd-networkd[964]: enc1000: link_check_ready(): link is not activated.
Jun 19 03:00:33 a90ubut15 systemd-networkd[964]: enc1000: Received new foreign route (configured): dst: ff00::/8, src: n/a, gw: n/a, prefsrc: n/a, scope: global, table: local(255), proto: kernel, type: multicast, nexthop: 0, priority: 256, flags: n/a
Jun 19 03:00:33 a90ubut15 systemd-networkd[964]: enc1000: Received new foreign route (configured): dst: fe80::/64, src: n/a, gw: n/a, prefsrc: n/a, scope: global, table: main(254), proto: kernel, type: unicast, nexthop: 0, priority: 256, flags: n/a
Jun 19 03:00:33 a90ubut15 systemd-networkd[964]: enc1000: link_check_ready(): stacked netdevs are not created.
Jun 19 03:00:34 a90ubut15 systemd-networkd[964]: enc1000.1300: Creating
Jun 19 03:00:34 a90ubut15 systemd-networkd[964]: enc1000: Flags change: -UP -LOWER_UP -RUNNING
Jun 19 03:00:34 a90ubut15 systemd-networkd[964]: enc1000: Link DOWN
Jun 19 03:00:34 a90ubut15 systemd-networkd[964]: enc1000: Lost carrier
Jun 19 03:00:34 a90ubut15 systemd-networkd[964]: enc1000: LLDP Rx: Stopping LLDP client
Jun 19 03:00:34 a90ubut15 systemd-networkd[964]: enc1000: Forgetting foreign route (n/a): dst: fe80::/64, src: n/a, gw: n/a, prefsrc: n/a, scope: global, table: main(254), proto: kernel, type: unicast, nexthop: 0, priority: 256, flags: n/a
Jun 19 03:00:34 a90ubut15 systemd-networkd[964]: enc1000.1300: Failed to get link from ifindex 3, ignoring: No such device
Jun 19 03:00:34 a90ubut15 systemd-networkd[964]: enc1000: Forgetting foreign route (n/a): dst: ff00::/8, src: n/a, gw: n/a, prefsrc: n/a, scope: global, table: local(255), proto: kernel, type: multicast, nexthop: 0, priority: 256, flags: n/a
Jun 19 03:00:34 a90ubut15 systemd-networkd[964]: enc1000: Kernel removed unknown foreign address (n/a): fe80::ca:72ff:fe80:acb0/64 (valid forever, preferred forever), flags: tentative,permanent, scope: link
Jun 19 03:00:34 a90ubut15 systemd-networkd[964]: enc1000: Flags change: +UP +LOWER_UP +RUNNING
Jun 19 03:00:34 a90ubut15 systemd-networkd[964]: enc1000: Link UP
Jun 19 03:00:34 a90ubut15 systemd-networkd[964]: enc1000: Gained carrier
Jun 19 03:00:34 a90ubut15 systemd-networkd[964]: enc1000: found matching network '/run/systemd/network/10-netplan-enc1000.network'.
```

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

Title:
  vlan network device lost after the ubuntu 23.04 install complete

Status in Ubuntu on IBM z Systems:
  Incomplete
Status in netplan.io package in Ubuntu:
  New
Status in subiquity package in Ubuntu:
  New

Bug description:
  ubuntu at ibm:~$ cat /etc/os-release                                               
  PRETTY_NAME="Ubuntu 23.04"                                                      
  NAME="Ubuntu"                                                                   
  VERSION_ID="23.04"                                                              
  VERSION="23.04 (Lunar Lobster)"

  System hardware: IBM LinuxONE

  Details:
  During the installation, I set up and actived a vlan device, after the installation, when I login the OS, the vlan device disappeared, I opened the '/etc/netplan/00-installer-config.yaml', double checked the config file, the vlan1300 is existing, and then when I 'netplan apply' to perform the configuration, an error message shows up, 

  "[?2004hubuntu at ibm:~$ 
  "sudo netplan apply
  "[?2004l
  "Cannot call openvswitch: ovsdb-server.service is not running.

  And during the boot stage, the systemd-networkd-wait-online.se tart
  running message shows a lot in the log, not sure these are related.

  "M[K[    [0;31m*[0;1;31m*[0m] Job systemd-networkd-wait-online.se  tart running (1min 11s / no limit)
  "
  "M[K[     [0;31m*[0m] Job systemd-networkd-wait-online.se  tart running (1min 12s / no limit)
  "
  "M[K[    [0;31m*[0;1;31m*[0m] Job systemd-networkd-wait-online.se  tart running (1min 12s / no limit)
  "
  "M[K[   [0;31m*[0;1;31m*[0m[0;31m*[0m] Job systemd-networkd-wait-online.se  tart running (1min 13s / no limit)
  "
  "M[K[  [0;31m*[0;1;31m*[0m[0;31m* [0m] Job systemd-networkd-wait-online.se  tart running (1min 13s / no limit)
  "
  "M[K[ [0;31m*[0;1;31m*[0m[0;31m*  [0m] Job systemd-networkd-wait-online.se  tart running (1min 14s / no limit)
  "
  "M[K[[0;31m*[0;1;31m*[0m[0;31m*   [0m] Job systemd-networkd-wait-online.se  tart running (1min 14s / no limit)
  "
  "M[K[[0;1;31m*[0m[0;31m*    [0m] Job systemd-networkd-wait-online.se  tart running (1min 15s / no limit)

  Attached the operating system boot log.

  Thanks.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/2022030/+subscriptions




More information about the foundations-bugs mailing list