[ovs-discuss] Issue porting openvswitch-ipsec on XCP-ng
ansisatteka at gmail.com
Wed Sep 25 18:45:28 UTC 2019
On Mon, 9 Sep 2019 at 02:36, Benjamin <benjamin.reis at vates.fr> wrote:
> Hello everyone,
> I'm Benjamin, a french developer working at Vates (the editor of XCP-ng
> a XenServer fork).
> I've been working in the network area of XCP-ng in order to create a SDN
> Controller controlling openvswitch on several hosts.
> Everything is working great as for now!
> I am using openvswitch v2.11.0.
> However I'm trying to add IPSEC support into XCP-ng and I'm facing an issue.
> I've successfully installed libreswan version 3.26, and the
> openvswitch-ipsec service from rhel and the python script ovs-monitor-ipsec.
> I'm using Pre-Shared Key for IPSEC.
> When I attempt to create tunnels, everything seems to go smoothly:
> - there's no error in ovs-vswitchd.log nor in ovs-monitor-ipsec.log
> - ovs-appctl -t ovs-monitor-ipsec tunnels/show shows me the tunnels with
> correct configurations and active connections.
Share your ovs-appctl output here.
> But there's no traffic passing on the tunnels created by openvswitch and
> since there's no helpful log I don't know how to investigate the issue.
> I hoped you could point me in the right direction.
Did the plain tunnel work in your setup? E.g. if you are using geneve
with ipsec simply try plain geneve.
> Here's what appears in ovs-vswitchd.log after tunnels creation:
> 2019-09-09T08:16:49.311Z|00018|tunnel(handler7)|WARN|receive tunnel port
> not found
> 1 log messages in last 214 seconds (most recently, 214 seconds ago) due
> to excessive rate
> packet on unassociated datapath port 4
> 2019-09-09T08:16:49.914Z|00003|tunnel(revalidator6)|WARN|receive tunnel
> port not found
> There's plenty of errors like this after the tunnels are created and I
> attempt to ping through the tunnels.
> Does that ring a bell to anyone?
IIRC, I have seen that "receive tunnel port not found" in following cases:
1. skb mark not being set and ovs user space is confused which tunnel
is that (this is specific to IPsec).
2. openvswitch kernel module does not support particular tunnel flavor
even in plain (this is not specific to IPsec).
Probably checking ofport value for tunnel in OVSDB's Interface table
would help to pinpoint which case it is.
> Do not hesitate to ask me anything that can help debug this issue.
> Thank you,
> Benjamin Reis
> discuss mailing list
> discuss at openvswitch.org
More information about the discuss