Bug 2078940

Summary: base-iface field at OVS vxlan port is empty
Product: Red Hat Enterprise Linux 8 Reporter: Quique Llorente <ellorent>
Component: nmstateAssignee: Gris Ge <fge>
Status: CLOSED ERRATA QA Contact: Mingyu Shi <mshi>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 8.6CC: cstabler, ferferna, jiji, jishi, network-qe, rnetser, sfaye, till
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: ---Flags: ellorent: needinfo?
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2080528 2104439 2104457 2104820 (view as bug list) Environment:
Last Closed: 2022-11-08 09:17:50 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:
Bug Depends On:    
Bug Blocks: 2078573, 2080528, 2104439, 2104457, 2104820    

Description Quique Llorente 2022-04-26 14:23:50 UTC
Description of problem:

When at OVS bridge is created and a vxlan port is attached the "base-iface" appears at nmstatectl show as empty instead of having the ovs-bridge name.



Version-Release number of selected component (if applicable): 1.2 (python)


How reproducible: Always


Steps to Reproduce:
1. ovs-vsctl add-br br0 
2. ovs-vsctl add-port br0 vx_node1 -- set interface vx_node1 \
  type=vxlan options:remote_ip=192.168.122.174
3. nmstatectl show 



Actual results:
The "base-iface" field is empty

Expected results:
The "base-iface" should point to ovs bridge br0


Additional info:
It also ends with nasty failure in case the vxlan port is up and we try to configure a state, since the parent is empty [1]

[1] https://bugzilla.redhat.com/show_bug.cgi?id=2078573

Comment 1 Gris Ge 2022-04-29 06:51:43 UTC
RHEL 8.6 scratch build is at https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=44959699

Comment 2 Gris Ge 2022-04-29 06:55:51 UTC
To reproduce this problem:

 * ovs-vsctl add-br br0_with_vxlan
 * ovs-vsctl add-port br0_with_vxlan vx_node1 -- \
    set interface vx_node1 type=vxlan options:remote_ip=192.168.122.174 \
    options:dst_port=8472
 * nmcli d set vxlan_sys_8472 managed false
 * Use nmstatectl to apply any state.

Comment 9 Mingyu Shi 2022-06-01 06:23:04 UTC
Verified with versions:
nmstate-1.3.0-0.alpha.20220505.el8.x86_64
nispor-1.2.3-1.el8.x86_64
NetworkManager-1.39.5-1.el8.x86_64
openvswitch2.15-2.15.0-103.el8fdp.x86_64
Linux hpe-dl380pgen8-02-vm-14.hpe2.lab.eng.bos.redhat.com 4.18.0-393.el8.x86_64 #1 SMP Wed May 18 12:44:50 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux
DISTRO=RHEL-8.7.0-20220524.0

Nmstate doens't support ovs vxlan, so the `base-iface: ''` of ovs vxlan is still there, but it doesn't impact applying any other new state.

Comment 14 errata-xmlrpc 2022-11-08 09:17:50 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-2022:7465