Bug 2224479 - [Regression] VLAN not automatically reactivated after base interface revive
Summary: [Regression] VLAN not automatically reactivated after base interface revive
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: NetworkManager
Version: 9.3
Hardware: x86_64
OS: Linux
urgent
urgent
Target Milestone: rc
: 9.3
Assignee: Fernando F. Mancera
QA Contact: Vladimir Benes
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-21 05:38 UTC by Gris Ge
Modified: 2023-08-15 09:33 UTC (History)
9 users (show)

Fixed In Version: NetworkManager-1.43.90-1.el9
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker NMT-678 0 None None None 2023-07-21 05:41:53 UTC
Red Hat Issue Tracker RHELPLAN-162933 0 None None None 2023-07-21 05:42:06 UTC
freedesktop.org Gitlab NetworkManager NetworkManager-ci merge_requests 1475 0 None opened vlan: add vlan_nic_reconnect_on_link_revive test 2023-08-15 09:33:00 UTC
freedesktop.org Gitlab NetworkManager NetworkManager merge_requests 1699 0 None opened device: delete software device when lose carrier and is controller 2023-07-24 13:11:42 UTC

Description Gris Ge 2023-07-21 05:38:52 UTC
Description of problem:

When creating VLAN over physical interface, when link goes down and up again, the VLAN will not be automatically re-created.

Version-Release number of selected component (if applicable):
NetworkManager-1.43.11-1.el9

How reproducible:
100%

Steps to Reproduce:
1. echo '---
interfaces:
  - name: eth1
    type: ethernet
  - name: eth1.101
    type: vlan
    state: up
    vlan:
      base-iface: eth1
      id: 101
    ipv4:
      enabled: true
      dhcp: false
      address:
      - ip: 192.0.2.251
        prefix-length: 24
    ipv6:
      enabled: true
      dhcp: true
      autoconf: false
      address:
      - ip: 2001:db8:1::1
        prefix-length: 64' | sudo nmstatectl set -
2. ip link set eth1 down
3. wait till VLAN got removed
4. ip link set eth1 up

Actual results:

VLAN is not re-created

Expected results:

VLAN is created with desired IP

Additional info:

This is working well on NetworkManager-1.42.2-6.el9_2 and a very common use case.

Comment 1 Gris Ge 2023-07-21 05:40:08 UTC
The system has no extra NetworkManager config, the `NetworkManager-config-server` is not installed.


Note You need to log in before you can comment on or make changes to this bug.