Bug 1944054 - state=ignore doesn't work for ovs port
Summary: state=ignore doesn't work for ovs port
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: nmstate
Version: 8.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Fernando F. Mancera
QA Contact: Mingyu Shi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-29 07:10 UTC by Mingyu Shi
Modified: 2021-11-09 20:19 UTC (History)
6 users (show)

Fixed In Version: nmstate-1.1.0-3.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 17:43:40 UTC
Type: Bug
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github nmstate nmstate pull 1681 0 None open ovs: fix state=ignore for ovs port when removing them 2021-07-26 10:00:49 UTC
Red Hat Product Errata RHBA-2021:4157 0 None None None 2021-11-09 17:44:01 UTC

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


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