Bug 1894139

Summary: [RFE] Support VETH interface type
Product: Red Hat Enterprise Linux 8 Reporter: Edward Haas <edwardh>
Component: nmstateAssignee: Fernando F. Mancera <ferferna>
Status: CLOSED ERRATA QA Contact: Mingyu Shi <mshi>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.2CC: danken, ferferna, fge, jiji, jishi, network-qe, phoracek, till
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: 8.4Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 15:17:45 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: 1885605    

Description Edward Haas 2020-11-03 16:05:21 UTC
Description of problem:
Nmstate can now be optionally deployed through kubernetes-nmstate [1] on kubernetes/OCP nodes to manage the node network configuration.

With the introduction of OVN on nodes, especially when the OVS bridge is connected to the node main interface, there is a need to bridge/connect between it and the Linux bridge based solutions some deployments depend on (e.g. kubevirt ). See [2] for an issue regarding this.

It is therefore requested to allow nmstate to manage veth interfaces which can be connected on one side to the OVS bridge and on the other side to the Linux bridge.

[OVS bridge]---veth---[Linux bridge]

Note: The link may be used as a trunk, but such details relate to the bridge ports rather than the veth itself.

Additional info:

Requested for the kubevirt/openshift-virtualization use case.

1. https://github.com/nmstate/kubernetes-nmstate
2. https://bugzilla.redhat.com/1885605

Comment 1 Fernando F. Mancera 2020-11-03 16:10:36 UTC
Hello Edward,

I am working on it. Just to make it clear this bug will be considere as done or completed when nmstate would be capable of reporting and configuring Veth interfaces and its properties like "peer". Thank you!

Comment 2 Till Maas 2020-11-10 09:38:00 UTC
(In reply to Fernando F. Mancera from comment #1)
> Hello Edward,
> 
> I am working on it. Just to make it clear this bug will be considere as done
> or completed when nmstate would be capable of reporting and configuring Veth
> interfaces and its properties like "peer". Thank you!

Another requirement that was requested via e-mail that should also be tested is this user story: "I can connect a Linux Bridge with an OVS Bridge using a veth pair".

Comment 3 Till Maas 2020-11-10 17:01:33 UTC
This bug needs to be better scoped and investigated since NetworkManager is lacking support for veth interfaces.

Comment 7 Dan Kenigsberg 2021-01-22 10:33:44 UTC
Would you link back to the patch fixing this, and possibly to the doc for this new feature?

I'd like to understand how to use it.

Comment 8 Fernando F. Mancera 2021-01-22 11:31:01 UTC
(In reply to Dan Kenigsberg from comment #7)
> Would you link back to the patch fixing this, and possibly to the doc for
> this new feature?
> 
> I'd like to understand how to use it.

This is the link for the PR that was adding veth support. https://github.com/nmstate/nmstate/pull/1434

For the documentation, I am finishing the upstream documentation that will be available at nmstate.io. I will ping you when ready. Thanks!

Comment 9 Dan Kenigsberg 2021-01-22 12:29:16 UTC
Thanks. I'd appreciate an example of connecting one of the peers to a Linux bridge, and the other to an ovs brige.

Comment 12 Mingyu Shi 2021-01-26 11:31:06 UTC
Verified with versions:
nmstate-1.0.1-1.el8.noarch
nispor-1.0.1-2.el8.x86_64
NetworkManager-1.30.0-0.7.el8.x86_64

There are certain details need to discuss:
 * changing type between veth and ethernet
 * when a peer is in a netns

Comment 13 Fernando F. Mancera 2021-01-26 15:58:56 UTC
(In reply to Dan Kenigsberg from comment #9)
> Thanks. I'd appreciate an example of connecting one of the peers to a Linux
> bridge, and the other to an ovs brige.

Please, find the upstream veth documentation in https://www.nmstate.io/features/veth.html

Thank you!

Comment 16 errata-xmlrpc 2021-05-18 15:17:45 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:1748