Bug 1944054

Summary: state=ignore doesn't work for ovs port
Product: Red Hat Enterprise Linux 8 Reporter: Mingyu Shi <mshi>
Component: nmstateAssignee: Fernando F. Mancera <ferferna>
Status: CLOSED ERRATA QA Contact: Mingyu Shi <mshi>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.4CC: ferferna, fge, jiji, jishi, network-qe, till
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nmstate-1.1.0-3.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 17:43:40 UTC 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 Mingyu Shi 2021-03-29 07:10:27 UTC
Description of problem:
Per https://bugzilla.redhat.com/show_bug.cgi?id=1862047 , when the interface attached to an ovs bridge, marking it as 'state: ignore' doesn't work, it will be removed from kernel.
In NM connection of dummy0, 'connection.master' targets to 'ovs-port-dummy0', an 'ovs port', not ovsbr0 itself.

Version-Release number of selected component (if applicable):
nmstate-1.0.2-5.el8.noarch
nispor-1.0.1-4.el8.x86_64
NetworkManager-1.30.0-4.el8.x86_64

How reproducible:
100%

Steps to Reproduce:
echo "interfaces:
- name: dummy0
  type: dummy
  state: up
- name: ovsbr0
  type: ovs-bridge
  state: up
  bridge:
    port:
    - name: dummy0
    - name: ovs0" | nmstatectl set -

echo "interfaces:
- name: dummy0
  type: dummy
  state: ignore
- name: ovsbr0
  type: ovs-bridge
  state: up
  bridge:
    port:
    - name: ovs0" | nmstatectl set -

ip link show dummy0 #Device "dummy0" does not exist.

Actual results:
dummy0 is removed

Expected results:
hold dummy0 under ovsbr0

Additional info:

Comment 1 Fernando F. Mancera 2021-07-26 10:00:53 UTC
Upstream PR: https://github.com/nmstate/nmstate/pull/1681

Comment 4 Mingyu Shi 2021-08-11 12:14:21 UTC
Verified with versions:
nmstate-1.1.0-3.el8.noarch
nispor-1.1.1-1.el8.x86_64
NetworkManager-1.32.4-1.el8.x86_64

Comment 6 errata-xmlrpc 2021-11-09 17:43:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (nmstate bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4157