Re: [ovs-dev] [PATCH ovn v2 3/3] utilities: add conditional {start/stop}_ic_ovsdb on start_ic command

2020-12-23 Thread Numan Siddique
On Wed, Dec 23, 2020 at 12:40 PM Han Zhou wrote: > > On Tue, Dec 22, 2020 at 6:05 AM Numan Siddique wrote: > > > > Hi Han, > > > > Can you please take a look at this patch ? Does this change in > > behavior fine with you ?\ > > > > Thanks > > Numan > > > > Hi Numan, > > I am concerned with changi

[ovs-dev] [PATCH ovn] northd: fix "priorirty" spelling mistake

2020-12-23 Thread Lorenzo Bianconi
Signed-off-by: Lorenzo Bianconi --- northd/ovn-northd.8.xml | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/northd/ovn-northd.8.xml b/northd/ovn-northd.8.xml index 1f0f71f34..4ff5b9816 100644 --- a/northd/ovn-northd.8.xml +++ b/northd/ovn-northd.8.xml @@ -631,7

Re: [ovs-dev] [PATCH v5 ovn 0/5] introduce BFD support in ovn-controller

2020-12-23 Thread Lorenzo Bianconi
> > Hi Lorenzo, Hi Mark, > > One note for the whole series is that there seems to be some > inconsistency with the acronym "bfd". For instance, in patch 3, there is > a function called "bpf_monitor_need_update()" that I assume was supposed > to be "bfd_monitor_need_update()". In patch 4, the comm

Re: [ovs-dev] [PATCH v5 ovn 3/5] controller: bfd: introduce BFD state machine

2020-12-23 Thread Lorenzo Bianconi
[...] > > > > > > > > + > > + > > +For each BFD port the two following priorirty-110 flows are > > added > > s/priorirty/priority/ ack, I will fix in in v6. Regards, Lorenzo > > > +to manage BFD traffic: > > + > > + > > +

Re: [ovs-dev] [PATCH v5 ovn 1/5] controller: introduce BFD tx path in ovn-controller

2020-12-23 Thread Lorenzo Bianconi
> > Hi Lorenzo, see below for some findings. Hi Mark, thx for the fast review. > > On 12/22/20 3:54 PM, Lorenzo Bianconi wrote: > > Introduce the capability to transmit BFD packets in ovn-controller. > > Introduce BFD tables in nb/sb dbs in order to configure BFD parameters > > (e.g. min_tx, min

[ovs-dev] [PATCH ovs] conntrack: Update the icmp stats accurately.

2020-12-23 Thread xiangxia . m . yue
From: Tonghao Zhang The same icmp packet may traverse conntrack module more than once. Or same icmp packets traverse contranck module in orderly. Don't change stats to CS_ESTABLISHED before receiving reply or related packets. Fixes: b269a1229df2 ("conntrack: Track ICMP type and code.") Cc: Dani

[ovs-dev] [PATCH] vswitchd: doc that tc-policy needs a restart

2020-12-23 Thread Marcelo Ricardo Leitner
tc-policy, just like hw-offload, is protected by ovsthread_once_start() in netdev_set_flow_api_enabled() so lets document that changing it requires a restart in order for it to have effect. Signed-off-by: Marcelo Ricardo Leitner --- vswitchd/vswitch.xml | 3 ++- 1 file changed, 2 insertions(+),

[ovs-dev] [PATCH] ovs-monitor-ipsec: Fix _nss_clear_database() parse error

2020-12-23 Thread Mark Gray
_nss_clear_database() runs `certutil` in order to get a list of certificates currently loaded in NSS. This fails with error: "ovs-monitor-ipsec | ERR | Failed to clear NSS database. startswith first arg must be bytes or a tuple of bytes, not str" Modify subprocess.Popen() to write in 'text' mode

Re: [ovs-dev] [PATCH] ovs-monitor-ipsec: Add support for tunnel 'local_ip'

2020-12-23 Thread Eelco Chaudron
On 21 Dec 2020, at 11:10, Mark Gray wrote: In the libreswan case, 'ovs-monitor-ipsec' sets 'left' to '%defaultroute' which will use the local address of the default route interface as the source IP address. In multihomed environments, this may not be correct if the user wants to specify what

Re: [ovs-dev] [PATCH 1/4] ovs-monitor-ipsec: Fix active connection regex

2020-12-23 Thread Eelco Chaudron
On 16 Dec 2020, at 13:04, Mark Gray wrote: > Connections are added to IPsec using a connection name > that is determined from the OVS port name and the tunnel > type. > > GRE connections take the form: > - > Other connections take the form: > -in- > -out- > > The regex '|' operator parses

Re: [ovs-dev] [PATCH 2/4] ovs-ctl: Check for ovs-monitor-ipsec pidfile before exit

2020-12-23 Thread Eelco Chaudron
On 16 Dec 2020, at 13:04, Mark Gray wrote: > Check for pidfile before attempting 'exit'. If pidfile does > not exist, we cannot cleanly exit so kill process. > > Signed-off-by: Mark Gray Reviewed and tested. Acked-by: Eelco Chaudron ___ dev maili

Re: [ovs-dev] [PATCH 3/4] ovs-monitor-ipsec: Allow exit of ipsec daemon maintaining state

2020-12-23 Thread Eelco Chaudron
On 16 Dec 2020, at 13:04, Mark Gray wrote: When 'ovs-monitor-ipsec' exits, it clears all persistent state (i.e. active ipsec connections, /etc/ipsec.conf, certs/keys). In some use-cases, we may want to exit and maintain state so that ipsec connectivity is maintained. One example of this is du

Re: [ovs-dev] [PATCH 4/4] ovs-monitor-ipsec: Add option to not restart IKE daemon

2020-12-23 Thread Eelco Chaudron
On 16 Dec 2020, at 13:04, Mark Gray wrote: Signed-off-by: Mark Gray --- ipsec/ovs-monitor-ipsec.in | 10 +++--- utilities/ovs-ctl.in | 8 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/ipsec/ovs-monitor-ipsec.in b/ipsec/ovs-monitor-ipsec.in index cac42d7

Re: [ovs-dev] [PATCH] ovs-monitor-ipsec: Suppress "unknown %d argument" warning

2020-12-23 Thread Eelco Chaudron
On 21 Dec 2020, at 14:12, Mark Gray wrote: > As 'ovs-vswitchd' does not understand IPsec tunnel options, it > gives a warning message. This can be safely suppressed. > > Signed-off-by: Mark Gray Reviewed and tested. Acked-by: Eelco Chaudron ___ d

[ovs-dev] [PATCH v2] ovs-monitor-ipsec: Fix _nss_clear_database() parse error

2020-12-23 Thread Mark Gray
_nss_clear_database() runs `certutil` in order to get a list of certificates currently loaded in NSS. This fails with error: "ovs-monitor-ipsec | ERR | Failed to clear NSS database. startswith first arg must be bytes or a tuple of bytes, not str" Modify subprocess.Popen() to write in 'text' mode

[ovs-dev] [PATCH ovn] ovn-trace: fix core dump with unknown logical port

2020-12-23 Thread Lorenzo Bianconi
Fix ovn-trace core dump with unknown logical port Fixes: 4735d397a400 ("ovn-trace: New utility") Signed-off-by: Lorenzo Bianconi --- utilities/ovn-trace.c | 29 + 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/utilities/ovn-trace.c b/utilities/ovn-tra

Re: [ovs-dev] [PATCH v2] ovs-monitor-ipsec: Fix _nss_clear_database() parse error

2020-12-23 Thread Eelco Chaudron
On 23 Dec 2020, at 17:01, Mark Gray wrote: > _nss_clear_database() runs `certutil` in order to get a list > of certificates currently loaded in NSS. This fails with error: > > "ovs-monitor-ipsec | ERR | Failed to clear NSS database. > startswith first arg must be bytes or a tuple of bytes, not

[ovs-dev] [PATCH ovn] ovn-trace: fix trigger_event warning

2020-12-23 Thread Lorenzo Bianconi
Fix the following ovn-trace warning triggered by controller_event: 1|ovntrace|WARN|trigger_event(event = "empty_lb_backends", meter = "", vip = "192.168.0.100:80", protocol = "tcp", load_balancer = "2c5462a7-b6ca-4b02-86c9-b9

Re: [ovs-dev] [PATCH] ovs-monitor-ipsec: set correct 'leftcert' and 'rightcert' name

2020-12-23 Thread Eelco Chaudron
On 21 Dec 2020, at 12:42, Mark Gray wrote: > In Libreswan case, 'ovs-monitor-ipsec' incorrectly configures > 'leftcert' and 'rightcert' names for self-signed certificates. > This patch resolves that. > > Signed-off-by: Mark Gray Reviewed and tested. Acked-by: Eelco Chaudron ___

Re: [ovs-dev] [PATCH 1/4] ovs-monitor-ipsec: Fix active connection regex

2020-12-23 Thread Flavio Leitner
On Wed, Dec 16, 2020 at 07:04:32AM -0500, Mark Gray wrote: > Connections are added to IPsec using a connection name > that is determined from the OVS port name and the tunnel > type. > > GRE connections take the form: > - > Other connections take the form: > -in- > -out- > > The regex '|' o

Re: [ovs-dev] [PATCH 2/4] ovs-ctl: Check for ovs-monitor-ipsec pidfile before exit

2020-12-23 Thread Flavio Leitner
On Wed, Dec 16, 2020 at 07:04:33AM -0500, Mark Gray wrote: > Check for pidfile before attempting 'exit'. If pidfile does > not exist, we cannot cleanly exit so kill process. > > Signed-off-by: Mark Gray > --- > utilities/ovs-ctl.in | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) >

Re: [ovs-dev] [PATCH 3/4] ovs-monitor-ipsec: Allow exit of ipsec daemon maintaining state

2020-12-23 Thread Flavio Leitner
On Wed, Dec 16, 2020 at 07:04:34AM -0500, Mark Gray wrote: > When 'ovs-monitor-ipsec' exits, it clears all persistent state (i.e. > active ipsec connections, /etc/ipsec.conf, certs/keys). In some > use-cases, we may want to exit and maintain state so that ipsec > connectivity is maintained. One exa

Re: [ovs-dev] [PATCH 3/4] ovs-monitor-ipsec: Allow exit of ipsec daemon maintaining state

2020-12-23 Thread Mark Gray
On 23/12/2020 19:09, Flavio Leitner wrote: > On Wed, Dec 16, 2020 at 07:04:34AM -0500, Mark Gray wrote: >> When 'ovs-monitor-ipsec' exits, it clears all persistent state (i.e. >> active ipsec connections, /etc/ipsec.conf, certs/keys). In some >> use-cases, we may want to exit and maintain state so

Re: [ovs-dev] [PATCH] ovs-monitor-ipsec: Suppress "unknown %d argument" warning

2020-12-23 Thread Flavio Leitner
On Mon, Dec 21, 2020 at 08:12:33AM -0500, Mark Gray wrote: > As 'ovs-vswitchd' does not understand IPsec tunnel options, it > gives a warning message. This can be safely suppressed. > > Signed-off-by: Mark Gray > --- Acked-by: Flavio Leitner ___ dev

[ovs-dev] [PATCH v6 ovn 2/5] action: introduce handle_bfd_msg() action

2020-12-23 Thread Lorenzo Bianconi
Add handle_bfd_msg() action to parse BFD packets received by the controller. handle_bfd_msg() logic is currently empty and it will be implemented adding BFD state machine in the following patches. Signed-off-by: Lorenzo Bianconi --- controller/pinctrl.c | 15 +++ include/ovn/actions

[ovs-dev] [PATCH v6 ovn 0/5] introduce BFD support in ovn-controller

2020-12-23 Thread Lorenzo Bianconi
Introduce BFD protocol in ovn-controller according to RFC5880 [0] We added BFD implementation in ovn since layered protocols usually request to enable it on ovn entities (e.g. logical router ports) while ovs implementation relies on physical entities (e.g. ovs interfaces). Moreover we would establi

[ovs-dev] [PATCH v6 ovn 1/5] controller: introduce BFD tx path in ovn-controller

2020-12-23 Thread Lorenzo Bianconi
Introduce the capability to transmit BFD packets in ovn-controller. Introduce BFD tables in nb/sb dbs in order to configure BFD parameters (e.g. min_tx, min_rx, ..) for ovn-controller. Signed-off-by: Lorenzo Bianconi --- controller/ovn-controller.c | 1 + controller/pinctrl.c| 297

[ovs-dev] [PATCH v6 ovn 4/5] bfd: support demand mode on rx side

2020-12-23 Thread Lorenzo Bianconi
Introduce rx demand mode support according to RFC5880 [0]. Demand mode on tx side is not supported yet. https://tools.ietf.org/html/rfc5880 Signed-off-by: Lorenzo Bianconi --- controller/pinctrl.c | 105 --- 1 file changed, 68 insertions(+), 37 deletions(-

[ovs-dev] [PATCH v6 ovn 3/5] controller: bfd: introduce BFD state machine

2020-12-23 Thread Lorenzo Bianconi
Introduce BFD state machine for BFD packet parsing according to RFC880 https://tools.ietf.org/html/rfc5880. Introduce BFD logical flows in ovn-northd. Signed-off-by: Lorenzo Bianconi --- NEWS| 2 + controller/pinctrl.c| 329 +++- nort

[ovs-dev] [PATCH v6 ovn 5/5] ovn: integrate bfd for static routes

2020-12-23 Thread Lorenzo Bianconi
Introduce the bfd reference in logical_router_static_router table in order to check if the next-hop is properly running using the BFD protocol. The CMS is supposed to populate bfd column with the proper reference otherwise the BFD status is set to admin_down. Add BFD tests in system-ovn.at. Signed

Re: [ovs-dev] [PATCH v2] ovs-monitor-ipsec: Fix _nss_clear_database() parse error

2020-12-23 Thread Flavio Leitner
On Wed, Dec 23, 2020 at 11:01:33AM -0500, Mark Gray wrote: > _nss_clear_database() runs `certutil` in order to get a list > of certificates currently loaded in NSS. This fails with error: > > "ovs-monitor-ipsec | ERR | Failed to clear NSS database. > startswith first arg must be bytes or a tuple o