Bug 2224479

Summary: [Regression] VLAN not automatically reactivated after base interface revive
Product: Red Hat Enterprise Linux 9 Reporter: Gris Ge <fge>
Component: NetworkManagerAssignee: Fernando F. Mancera <ferferna>
Status: VERIFIED --- QA Contact: Vladimir Benes <vbenes>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 9.3CC: bgalvani, desktop-qa-list, fpokryvk, lrintel, rkhan, sfaye, sukulkar, till, wenliang
Target Milestone: rcKeywords: Triaged
Target Release: 9.3   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: NetworkManager-1.43.90-1.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.