[UBUNTU 23.04] vlan interface lost after rebooting the operating system
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
New
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
New
|
Undecided
|
Skipper Bug Screeners |
Bug Description
---Problem Description---
[ubuntu 23.04] vlan interface lost after reboot of operating system
Contact Information = <email address hidden>
---uname output---
Linux a257ubut02 6.2.0-25-generic #25-Ubuntu SMP Fri Jun 16 16:15:36 UTC 2023 s390x s390x s390x GNU/Linux
Machine Type = 3932 - LA2 (LinuxONE 4)
---Steps to Reproduce---
Hi,
In the test, I found the vlan interface will lost after I reboot the operating system, when the system boot up done, log in the system, restart the systemd-networkd service, the vlan interface can show up again.
test environment:
Linux distros: ubut 22.04 and 23.04, I used the ubut23.04 in the attached log
HW platform: LinuxONE 4 on DPM mode
network: set vNic using an OSA adapter as the backend adapter in trunk mode, I tried the adapter in access mode (assign the IP addr to enc device directly), no this issue.
I'll attach the systemd-networkd log (systemd-
>>>>>>>
> Jul 17 04:15:10 -- reboot the operating system
After the system boot up down, login to the system, the vlan interface disappeared in the 'ip a' command
> Jul 17 04:25:02 -- restart the systemd-networkd service by 'sudo systemctl restart systemd-
After restart service, the vlan interface appearred in the 'ip a' list, and the IP address assigned to the vlan is usable.
>>>>>>>
I opened the log and found some logs with issue point while IPLing, it shows the 'Lost carrier' in enc1000 (enc1000 is the physical device of the vlan interface), but I think there is no hardware issue in the lab, we are using the adapters for testing other distros like rhel, suse, and old ubut versions, like 20.04, all are Ok.
>>>>>>>
Jul 17 04:15:51 a257ubut02 systemd-
Jul 17 04:15:51 a257ubut02 systemd-
Jul 17 04:15:51 a257ubut02 systemd-
Jul 17 04:15:51 a257ubut02 systemd-
Jul 17 04:15:51 a257ubut02 systemd-
Jul 17 04:15:51 a257ubut02 systemd-
Jul 17 04:15:51 a257ubut02 systemd-
Jul 17 04:15:51 a257ubut02 systemd-
Jul 17 04:15:52 a257ubut02 systemd-
>>>>>>>
Could you please help to take a look, thanks~
tags: | added: architecture-s39064 bugnameltc-203255 severity-medium targetmilestone-inin--- |
Changed in ubuntu: | |
assignee: | nobody → Skipper Bug Screeners (skipper-screen-team) |
affects: | ubuntu → linux (Ubuntu) |
------- Comment From <email address hidden> 2023-08-01 10:38 EDT------- ======= ======= ======= ======= ======= ==
===== Further testing by Yi Jie =======
Did some more test, I changed the network daemon from systemd-networkd to NetworkManager (still use netplan), the 'vlan interface lost after reboot' still there: reboot the os will lost the vlan interface, restart the NM service could shows up the vlan interface. In the NM log, it shows during the boot stage: manager: "(netplan- enc1000. 1292) couldn't create the device: no support for VLANs on interface enc1000 of type Ethernet"
Here are some networkmanager service command output before and after 'restart nm service' as the comparison, and journalctl log file with operate timestamps:
>>>>>>>>>>>
journalctl -u NetworkManager > nm.log
timestamp: Jul 27 08:27 -> reboot the ubut os
timestamp: Jul 27 08:32 -> restart the nm service
>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
run 'nmcli d' and 'nmcli c' before and after 'restart nm'
> before NM restart
ubuntu@a90ubut15:~$ nmcli d
DEVICE TYPE STATE CONNECTION
enc1000 ethernet connected netplan-enc1000
lo loopback connected (externally) lo
ubuntu@a90ubut15:~$ nmcli c 26ca-4276- a210-8bf6125632 2a loopback lo b9a9-3c3a- 81cb-20f5840b30 9b ethernet enc1000 enc1000. 1292 491497ea- 36cb-3b96- ad99-6519b36348 3d vlan --
NAME UUID TYPE DEVICE
lo 2f1c6dd9-
netplan-enc1000 20393913-
netplan-
> after restart NM
ubuntu@a90ubut15:~$ nmcli d enc1000. 1292
DEVICE TYPE STATE CONNECTION
enc1000.1292 vlan connected netplan-
enc1000 ethernet connected netplan-enc1000
lo loopback connected (externally) lo
ubuntu@a90ubut15:~$ nmcli c enc1000. 1292 491497ea- 36cb-3b96- ad99-6519b36348 3d vlan enc1000.1292 26ca-4276- a210-8bf6125632 2a loopback lo b9a9-3c3a- 81cb-20f5840b30 9b ethernet enc1000 >>>>>>> >>>>>>> >>>>
NAME UUID TYPE DEVICE
netplan-
lo 2f1c6dd9-
netplan-enc1000 20393913-
>>>>>>>
>>>>>>> >>>>>>> >>>>>>> >>>>> enc1000. 1292' command before and after 'restart nm', found that the output of 'after the restart nm' not only include all the parameters in 'before the restart nm', and also plus the following parameters:
I also compared the output of 'nmcli c show netplan-
GENERAL.NAME: netplan- enc1000. 1292 36cb-3b96- ad99-6519b36348 3d SPEC-OBJECT: -- p/NetworkManage r/ActiveConnect ion/3 p/NetworkManage r/Settings/ 2 MASTER- PATH: --
GENERAL.UUID: 491497ea-
GENERAL.DEVICES: enc1000.1292
GENERAL.IP-IFACE: enc1000.1292
GENERAL.STATE: activated
GENERAL.DEFAULT: yes
GENERAL.DEFAULT6: no
GENERAL.
GENERAL.VPN: no
GENERAL.DBUS-PATH: /org/freedeskto
GENERAL.CON-PATH: /org/freedeskto
GENERAL.ZONE: --
GENERAL.
IP4.ADDRES...