From patchwork Thu Oct 22 03:54:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Pfaff X-Patchwork-Id: 1385913 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ovn.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CGtlw16vCz9sSn for ; Thu, 22 Oct 2020 14:54:36 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9F5528685B; Thu, 22 Oct 2020 03:54:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Qxkbe0N20bL6; Thu, 22 Oct 2020 03:54:33 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id D10CD85951; Thu, 22 Oct 2020 03:54:33 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id B2666C08A1; Thu, 22 Oct 2020 03:54:33 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 98544C0052 for ; Thu, 22 Oct 2020 03:54:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 88681204E7 for ; Thu, 22 Oct 2020 03:54:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d5Xur2j4nxTt for ; Thu, 22 Oct 2020 03:54:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by silver.osuosl.org (Postfix) with ESMTPS id B4557204DB for ; Thu, 22 Oct 2020 03:54:29 +0000 (UTC) X-Originating-IP: 75.54.222.30 Received: from sigfpe.attlocal.net (75-54-222-30.lightspeed.rdcyca.sbcglobal.net [75.54.222.30]) (Authenticated sender: blp@ovn.org) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id CB825240003; Thu, 22 Oct 2020 03:54:25 +0000 (UTC) From: Ben Pfaff To: dev@openvswitch.org Date: Wed, 21 Oct 2020 20:54:08 -0700 Message-Id: <20201022035415.33541-1-blp@ovn.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Cc: Ben Pfaff Subject: [ovs-dev] [PATCH ovn 1/8] ovn-nb: Better document dynamic addresses. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Signed-off-by: Ben Pfaff Acked-by: Numan Siddique --- ovn-nb.xml | 75 ++++++++++++++++++------------------------------------ 1 file changed, 25 insertions(+), 50 deletions(-) diff --git a/ovn-nb.xml b/ovn-nb.xml index 86195af3414c..38724f3851b1 100644 --- a/ovn-nb.xml +++ b/ovn-nb.xml @@ -1049,65 +1049,40 @@
dynamic
- Use this keyword to make ovn-northd generate a - globally unique MAC address and choose an unused IPv4 address with - the logical port's subnet and store them in the port's column. ovn-northd will - use the subnet specified in in the port's . -
- -
Ethernet address followed by keyword "dynamic"
-
-

- The keyword dynamic after the MAC address indicates - that ovn-northd should choose an unused IPv4 address - from the logical port's subnet and store it with the specified - MAC in the port's column. - ovn-northd will use the subnet specified in in - the port's table. + Use dynamic to make ovn-northd generate + a globally unique MAC address, choose an unused IPv4 address with + the logical port's subnet (if is set in the port's ), and generate an IPv6 address from the + MAC address (if is set in the port's ) and store them in the port's column.

- Examples: + Only one element containing dynamic may appear in + .

- -
-
80:fa:5b:06:72:b7 dynamic
-
- This indicates that the logical port owns the specified - MAC address and ovn-northd should allocate an - unused IPv4 address for the logical port from the corresponding - logical switch subnet. -
-
-
Keyword "dynamic" followed by an IPv4/IPv6 address
+
dynamic ip
+
dynamic ipv6
+
dynamic ip ipv6
+ These act like dynamic alone but specify particular + IPv4 or IPv6 addresses to use. OVN IPAM will still automatically + allocate the other address if configured appropriately. Example: + dynamic 192.168.0.1 2001::1. +
-

- The keyword dynamic followed by an IPv4/IPv6 - address indicates that ovn-northd should choose - a dynamic ethernet address and use the provided IPv4/IPv6 address - as network address. -

- -

- Examples: -

- -
-
dynamic 192.168.0.1 2001::1
-
- This indicates that ovn-northd should allocate - a unique MAC address and use the provided IPv4/IPv6 address - for the related port -
-
+
mac dynamic
+
+ This acts like dynamic alone but specifies a + particular MAC address to use. OVN IPAM will still automatically + allocate IPv4 or IPv6 addresses, or both, if configured + appropriately. Example: 80:fa:5b:06:72:b7 dynamic
router
From patchwork Thu Oct 22 03:54:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Pfaff X-Patchwork-Id: 1385915 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ovn.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CGtm30hRFz9sT6 for ; Thu, 22 Oct 2020 14:54:43 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7174886D50; Thu, 22 Oct 2020 03:54:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C016JmUDqiDw; Thu, 22 Oct 2020 03:54:38 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id CD1E7869BC; Thu, 22 Oct 2020 03:54:35 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 9EDB9C1AD5; Thu, 22 Oct 2020 03:54:35 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id A3134C0052 for ; Thu, 22 Oct 2020 03:54:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 90A53204DB for ; Thu, 22 Oct 2020 03:54:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ok-jtRLeHWcX for ; Thu, 22 Oct 2020 03:54:31 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by silver.osuosl.org (Postfix) with ESMTPS id 77CF3204E6 for ; Thu, 22 Oct 2020 03:54:31 +0000 (UTC) X-Originating-IP: 75.54.222.30 Received: from sigfpe.attlocal.net (75-54-222-30.lightspeed.rdcyca.sbcglobal.net [75.54.222.30]) (Authenticated sender: blp@ovn.org) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 2F3B3240005; Thu, 22 Oct 2020 03:54:26 +0000 (UTC) From: Ben Pfaff To: dev@openvswitch.org Date: Wed, 21 Oct 2020 20:54:09 -0700 Message-Id: <20201022035415.33541-2-blp@ovn.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201022035415.33541-1-blp@ovn.org> References: <20201022035415.33541-1-blp@ovn.org> MIME-Version: 1.0 Cc: Ben Pfaff Subject: [ovs-dev] [PATCH ovn 2/8] ovn-nb, ovn-sb: Document that LSPs and LRPs must not share names. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Signed-off-by: Ben Pfaff --- ovn-nb.xml | 10 ++++++++++ ovn-sb.xml | 13 +++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/ovn-nb.xml b/ovn-nb.xml index 38724f3851b1..5a8ac4a0d0e0 100644 --- a/ovn-nb.xml +++ b/ovn-nb.xml @@ -545,6 +545,11 @@ unique identifier. See Containers, below, for more information.

+ +

+ A logical switch port may not have the same name as a logical router + port, but the database schema cannot enforce this. +

@@ -2093,6 +2098,11 @@ in or another logical router port in .

+ +

+ A logical router port may not have the same name as a logical switch + port, but the database schema cannot enforce this. +

diff --git a/ovn-sb.xml b/ovn-sb.xml index 182ff0a8a282..15d47ef039cc 100644 --- a/ovn-sb.xml +++ b/ovn-sb.xml @@ -2610,10 +2610,15 @@ tcp.flags = RST; - A logical port, taken from in the OVN_Northbound - database's - table. OVN does not prescribe a particular format for the + A logical port. For a logical switch port, this is taken from in the + OVN_Northbound database's table. For a logical router port, this is taken + from in the OVN_Northbound database's table. (This means + that logical switch ports and router port names must share names in an + OVN deployment.) OVN does not prescribe a particular format for the logical port ID. From patchwork Thu Oct 22 03:54:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Pfaff X-Patchwork-Id: 1385914 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ovn.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CGtm20m3cz9sSn for ; Thu, 22 Oct 2020 14:54:42 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 49E2986992; Thu, 22 Oct 2020 03:54:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KNXeNx7euFIN; Thu, 22 Oct 2020 03:54:36 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id EBAF18690E; Thu, 22 Oct 2020 03:54:34 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 99BC1C1AD6; Thu, 22 Oct 2020 03:54:34 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 535E1C0052 for ; Thu, 22 Oct 2020 03:54:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 428EF204DB for ; Thu, 22 Oct 2020 03:54:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6qH79lBXoD9P for ; Thu, 22 Oct 2020 03:54:31 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by silver.osuosl.org (Postfix) with ESMTPS id CA888204E2 for ; Thu, 22 Oct 2020 03:54:30 +0000 (UTC) X-Originating-IP: 75.54.222.30 Received: from sigfpe.attlocal.net (75-54-222-30.lightspeed.rdcyca.sbcglobal.net [75.54.222.30]) (Authenticated sender: blp@ovn.org) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 8E3DF240006; Thu, 22 Oct 2020 03:54:28 +0000 (UTC) From: Ben Pfaff To: dev@openvswitch.org Date: Wed, 21 Oct 2020 20:54:10 -0700 Message-Id: <20201022035415.33541-3-blp@ovn.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201022035415.33541-1-blp@ovn.org> References: <20201022035415.33541-1-blp@ovn.org> MIME-Version: 1.0 Cc: Ben Pfaff Subject: [ovs-dev] [PATCH ovn 3/8] ovn-nb: Improve documentation of health checks. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Signed-off-by: Ben Pfaff --- ovn-nb.xml | 59 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 34 insertions(+), 25 deletions(-) diff --git a/ovn-nb.xml b/ovn-nb.xml index 5a8ac4a0d0e0..27d6d056e508 100644 --- a/ovn-nb.xml +++ b/ovn-nb.xml @@ -1510,36 +1510,45 @@

- - Load balancer health checks associated with this load balancer. - If health check is desired for a vip's endpoints defined in - the - column, then a row in the table - should - be created and referenced here and L4 port should be defined - for the vip and it's endpoints. Health checks are supported only - for IPv4 load balancers. - - - +

- This column is used if load balancer health checks are enabled. - This keeps a mapping of endpoint IP to the logical port name. - The source ip to be used for health checks is also expected to be - defined. The key of the mapping is the endpoint IP and the value - is in the format : port_name:SRC_IP + OVN supports health checks for load balancer endpoints, for IPv4 load + balancers only. When health checks are enabled, the load balancer uses + only healthy endpoints.

- Eg. If there is a VIP entry: - "10.0.0.10:80=10.0.0.4:8080,20.0.0.4:8080", - then the IP to port mappings should be defined as: - "10.0.0.4"="sw0-p1:10.0.0.2" and - "20.0.0.4"="sw1-p1:20.0.0.2". 10.0.0.2 - and 20.0.0.2 will be used by ovn-controller - as source ip when it sends out health check packets. + Suppose that contains a key-value pair + 10.0.0.10:80=10.0.0.4:8080,20.0.0.4:8080. To + enable health checks for this virtual's endpoints, add two key-value + pairs to , with keys + 10.0.0.4 and 20.0.0.4, and add to a reference to a row whose is set to + 10.0.0.10.

-
+ + + Load balancer health checks associated with this load balancer. + + + +

+ Maps from endpoint IP to a colon-separated pair of logical port name + and source IP, + e.g. port_name:sourc_ip. Health + checks are sent to this port with the specified source IP. +

+ +

+ For example, in the example above, IP to port mappings might be + defined as 10.0.0.4=sw0-p1:10.0.0.2 and + 20.0.0.4=sw1-p1:20.0.0.2, if the values + given were suitable ports and IP addresses. +

+
+

From patchwork Thu Oct 22 03:54:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Pfaff X-Patchwork-Id: 1385916 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ovn.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CGtm80X1tz9sSn for ; Thu, 22 Oct 2020 14:54:47 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id DAC1D2050A; Thu, 22 Oct 2020 03:54:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PZhoJosr7p3K; Thu, 22 Oct 2020 03:54:39 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by silver.osuosl.org (Postfix) with ESMTP id A5CE320505; Thu, 22 Oct 2020 03:54:37 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 8E520C08A1; Thu, 22 Oct 2020 03:54:37 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 3158EC08A1 for ; Thu, 22 Oct 2020 03:54:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id EFBE186C76 for ; Thu, 22 Oct 2020 03:54:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tWTD7wjrJhJg for ; Thu, 22 Oct 2020 03:54:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by whitealder.osuosl.org (Postfix) with ESMTPS id A05DF86C74 for ; Thu, 22 Oct 2020 03:54:32 +0000 (UTC) X-Originating-IP: 75.54.222.30 Received: from sigfpe.attlocal.net (75-54-222-30.lightspeed.rdcyca.sbcglobal.net [75.54.222.30]) (Authenticated sender: blp@ovn.org) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id DF1F1240009; Thu, 22 Oct 2020 03:54:29 +0000 (UTC) From: Ben Pfaff To: dev@openvswitch.org Date: Wed, 21 Oct 2020 20:54:11 -0700 Message-Id: <20201022035415.33541-4-blp@ovn.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201022035415.33541-1-blp@ovn.org> References: <20201022035415.33541-1-blp@ovn.org> MIME-Version: 1.0 Cc: Ben Pfaff Subject: [ovs-dev] [PATCH ovn 4/8] ovn-nb: Better document timestamp columns. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Signed-off-by: Ben Pfaff --- ovn-nb.xml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/ovn-nb.xml b/ovn-nb.xml index 27d6d056e508..5dbefdd6ae9e 100644 --- a/ovn-nb.xml +++ b/ovn-nb.xml @@ -55,8 +55,19 @@ - The timestamp (ms) when ovn-northd sees the latest - nb_cfg and starts processing. +

+ The timestamp, in milliseconds since the epoch, when + ovn-northd sees the latest nb_cfg and starts + processing. +

+ +

+ To print the timestamp as a human-readable date: +

+ +
+          date -d "@$(ovn-nbctl get NB_Global . nb_cfg_timestamp | sed 's/...$//')"
+        
@@ -66,7 +77,8 @@ - The timestamp (ms) when ovn-northd finishes applying the + The timestamp, in milliseconds since the epoch, when + ovn-northd finishes applying the corresponding configuration changes to the database successfully. @@ -82,7 +94,8 @@ - The largest timestamp (ms) of the smallest sequence number of all the + The largest timestamp, in milliseconds since the epoch, of the smallest + sequence number of all the chassis in the system, as reported in the Chassis_Private table in the southbound database. In other words, this timestamp reflects the time when the slowest chassis catches up with the From patchwork Thu Oct 22 03:54:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Pfaff X-Patchwork-Id: 1385918 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ovn.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CGtm85YDNz9sTc for ; Thu, 22 Oct 2020 14:54:48 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6D70586CF4; Thu, 22 Oct 2020 03:54:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lRZX3jGyZcoL; Thu, 22 Oct 2020 03:54:43 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id A4A3886C5E; Thu, 22 Oct 2020 03:54:38 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 7CF22C1ADB; Thu, 22 Oct 2020 03:54:38 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id D481DC1ADA for ; Thu, 22 Oct 2020 03:54:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id BE41686999 for ; Thu, 22 Oct 2020 03:54:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H21LPmDGzGt2 for ; Thu, 22 Oct 2020 03:54:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by fraxinus.osuosl.org (Postfix) with ESMTPS id E269B85F95 for ; Thu, 22 Oct 2020 03:54:33 +0000 (UTC) X-Originating-IP: 75.54.222.30 Received: from sigfpe.attlocal.net (75-54-222-30.lightspeed.rdcyca.sbcglobal.net [75.54.222.30]) (Authenticated sender: blp@ovn.org) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 33260240003; Thu, 22 Oct 2020 03:54:30 +0000 (UTC) From: Ben Pfaff To: dev@openvswitch.org Date: Wed, 21 Oct 2020 20:54:12 -0700 Message-Id: <20201022035415.33541-5-blp@ovn.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201022035415.33541-1-blp@ovn.org> References: <20201022035415.33541-1-blp@ovn.org> MIME-Version: 1.0 Cc: Ben Pfaff Subject: [ovs-dev] [PATCH ovn 5/8] ovn-sb: Correct documentation about virtual_parent column. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Signed-off-by: Ben Pfaff --- ovn-sb.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ovn-sb.xml b/ovn-sb.xml index 15d47ef039cc..cdfca499274d 100644 --- a/ovn-sb.xml +++ b/ovn-sb.xml @@ -2574,8 +2574,8 @@ tcp.flags = RST; For every Logical_Switch_Port record in OVN_Northbound database, ovn-northd creates a record in this table. ovn-northd populates - and maintains every column except the chassis column, - which it leaves empty in new records. + and maintains every column except the chassis and + virtual_parent columns, which it leaves empty in new records.

@@ -2593,6 +2593,12 @@ tcp.flags = RST; to populate the chassis column.)

+

+ ovn-controller also populates the + virtual_parent column of records whose type is + virtual. +

+

When a chassis shuts down gracefully, it should clean up the chassis column that it previously had populated. From patchwork Thu Oct 22 03:54:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Pfaff X-Patchwork-Id: 1385919 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ovn.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CGtm94N1qz9sSn for ; Thu, 22 Oct 2020 14:54:49 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1259386F50; Thu, 22 Oct 2020 03:54:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SEOS3d5cMWUO; Thu, 22 Oct 2020 03:54:45 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id D096D86D4D; Thu, 22 Oct 2020 03:54:39 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id A3F4BC1ADA; Thu, 22 Oct 2020 03:54:39 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 12532C08A1 for ; Thu, 22 Oct 2020 03:54:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id EC23986C7B for ; Thu, 22 Oct 2020 03:54:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dB4QZuEhnO83 for ; Thu, 22 Oct 2020 03:54:35 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by whitealder.osuosl.org (Postfix) with ESMTPS id C53A086C74 for ; Thu, 22 Oct 2020 03:54:34 +0000 (UTC) X-Originating-IP: 75.54.222.30 Received: from sigfpe.attlocal.net (75-54-222-30.lightspeed.rdcyca.sbcglobal.net [75.54.222.30]) (Authenticated sender: blp@ovn.org) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 87932240006; Thu, 22 Oct 2020 03:54:32 +0000 (UTC) From: Ben Pfaff To: dev@openvswitch.org Date: Wed, 21 Oct 2020 20:54:13 -0700 Message-Id: <20201022035415.33541-6-blp@ovn.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201022035415.33541-1-blp@ovn.org> References: <20201022035415.33541-1-blp@ovn.org> MIME-Version: 1.0 Cc: Ben Pfaff Subject: [ovs-dev] [PATCH ovn 6/8] ovn-sb: Update Service_Monitor documentation. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Signed-off-by: Ben Pfaff --- ovn-sb.xml | 102 +++++++++++++++++++++++++++++------------------------ 1 file changed, 56 insertions(+), 46 deletions(-) diff --git a/ovn-sb.xml b/ovn-sb.xml index cdfca499274d..c78984fc867a 100644 --- a/ovn-sb.xml +++ b/ovn-sb.xml @@ -4033,62 +4033,50 @@ tcp.flags = RST;

- This table montiors a service for its liveliness. The service - can be an IPv4 tcp or a udp service. ovn-controller - periodically sends out service monitor packets and updates the - status of the service. Service monitoring for IPv6 services is - not supported. + Each row in this table configures monitoring a service for its liveness. + The service can be an IPv4 TCP or UDP + service. ovn-controller periodically sends out service + monitor packets and updates the status of the service. Service monitoring + for IPv6 services is not supported.

- - IP of the service to be monitored. Only IPv4 is supported. - - - - The protocol of the service. It can be either tcp or - udp. - - - - The tcp or udp port of the service. - - - - The VIF of logical port on which the service is running. The - ovn-controller which binds this logical_port - monitors the service by sending periodic monitor packets. - +

+ ovn-northd uses this feature to implement the load balancer + health check feature offered to the CMS through the northbound database. +

- +

- The ovn-controller which binds the - logical_port updates the status to online - offline or error. + ovn-northd sets these columns and values to configure the + service monitor.

-

- For tcp service, ovn-controller sends a - TCP SYN packet to the service and expects a - TCP ACK response to consider the service to be - online. -

+ + IP of the service to be monitored. Only IPv4 is supported. + -

- For udp service, ovn-controller sends a udp - packet to the service and doesn't expect any reply. If it receives - ICMP reply, then it considers the service to be offline. -

-
+ + The protocol of the service. + - - Source Ethernet address to use in the service monitor packet. - + + The TCP or UDP port of the service. + - - Source IPv4 address to use in the service monitor packet. - + + The VIF of the logical port on which the service is running. The + ovn-controller that binds this logical_port + monitors the service by sending periodic monitor packets. + + + + Source Ethernet address to use in the service monitor packet. + + + + Source IPv4 address to use in the service monitor packet. + - The interval, in seconds, between service monitor checks. @@ -4109,6 +4097,28 @@ tcp.flags = RST; + +

+ The ovn-controller on the chassis that hosts the updates this column to report the service's + status. +

+ + +

+ For TCP service, ovn-controller sends a SYN to the + service and expects an ACK response to consider the service to be + online. +

+ +

+ For UDP service, ovn-controller sends a UDP packet to + the service and doesn't expect any reply. If it receives an ICMP + reply, then it considers the service to be offline. +

+
+
+ See External IDs at the beginning of this document. From patchwork Thu Oct 22 03:54:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Pfaff X-Patchwork-Id: 1385917 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ovn.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CGtm84w8kz9sT6 for ; Thu, 22 Oct 2020 14:54:48 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id F3021875F0; Thu, 22 Oct 2020 03:54:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6VxsCQap93j7; Thu, 22 Oct 2020 03:54:44 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by hemlock.osuosl.org (Postfix) with ESMTP id 1A1E0876CE; Thu, 22 Oct 2020 03:54:44 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id E0C7DC1ADA; Thu, 22 Oct 2020 03:54:43 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id A9843C08A1 for ; Thu, 22 Oct 2020 03:54:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8E9E0869BC for ; Thu, 22 Oct 2020 03:54:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z9NgUU15tane for ; Thu, 22 Oct 2020 03:54:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 2318D86888 for ; Thu, 22 Oct 2020 03:54:35 +0000 (UTC) X-Originating-IP: 75.54.222.30 Received: from sigfpe.attlocal.net (75-54-222-30.lightspeed.rdcyca.sbcglobal.net [75.54.222.30]) (Authenticated sender: blp@ovn.org) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id DAEC9240005; Thu, 22 Oct 2020 03:54:33 +0000 (UTC) From: Ben Pfaff To: dev@openvswitch.org Date: Wed, 21 Oct 2020 20:54:14 -0700 Message-Id: <20201022035415.33541-7-blp@ovn.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201022035415.33541-1-blp@ovn.org> References: <20201022035415.33541-1-blp@ovn.org> MIME-Version: 1.0 Cc: Ben Pfaff Subject: [ovs-dev] [PATCH ovn 7/8] ovn-sb: Document details of HA_Chassis_Group column ref_chassis. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Signed-off-by: Ben Pfaff --- ovn-sb.xml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ovn-sb.xml b/ovn-sb.xml index c78984fc867a..749bd0745962 100644 --- a/ovn-sb.xml +++ b/ovn-sb.xml @@ -3906,7 +3906,16 @@ tcp.flags = RST; - A list of which references this HA chassis group. + The set of that reference this HA chassis group. + To determine the correct , find the + chassisredirect type that + references this . This is derived from some particular logical router. + Starting from that LR, find the set of all logical switches and routers + connected to it, directly or indirectly, across router ports that link + one LRP to another or to a LSP. For each LSP in these logical switches, + find the corresponding and add its bound (if any) to . From patchwork Thu Oct 22 03:54:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Pfaff X-Patchwork-Id: 1385920 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ovn.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CGtmC4MnGz9sSn for ; Thu, 22 Oct 2020 14:54:51 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 8A97E20500; Thu, 22 Oct 2020 03:54:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NUxNc5F9yFKk; Thu, 22 Oct 2020 03:54:44 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by silver.osuosl.org (Postfix) with ESMTP id AD1B42051D; Thu, 22 Oct 2020 03:54:42 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 73FD6C08A1; Thu, 22 Oct 2020 03:54:42 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 298C5C08A1 for ; Thu, 22 Oct 2020 03:54:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 0F98487677 for ; Thu, 22 Oct 2020 03:54:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8gEktUQ7Q7Qf for ; Thu, 22 Oct 2020 03:54:38 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by hemlock.osuosl.org (Postfix) with ESMTPS id F17F58764B for ; Thu, 22 Oct 2020 03:54:37 +0000 (UTC) X-Originating-IP: 75.54.222.30 Received: from sigfpe.attlocal.net (75-54-222-30.lightspeed.rdcyca.sbcglobal.net [75.54.222.30]) (Authenticated sender: blp@ovn.org) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 3D6B9240003; Thu, 22 Oct 2020 03:54:34 +0000 (UTC) From: Ben Pfaff To: dev@openvswitch.org Date: Wed, 21 Oct 2020 20:54:15 -0700 Message-Id: <20201022035415.33541-8-blp@ovn.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201022035415.33541-1-blp@ovn.org> References: <20201022035415.33541-1-blp@ovn.org> MIME-Version: 1.0 Cc: Ben Pfaff Subject: [ovs-dev] [PATCH ovn 8/8] Makefile: Ensure OVN include directories come before OVS ones. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Otherwise, when files present in both directories, the OVS ones are chosen. This is a problem if the OVS build tree has stray OVN headers (because there was an build there that included OVN). Signed-off-by: Ben Pfaff --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 610eb9f79a12..3bc31090396d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -36,6 +36,8 @@ endif AM_CPPFLAGS += -I $(top_srcdir)/include AM_CPPFLAGS += -I $(top_srcdir)/ovn AM_CPPFLAGS += -I $(top_builddir)/include +AM_CPPFLAGS += -I $(top_srcdir)/lib +AM_CPPFLAGS += -I $(top_builddir)/lib AM_CPPFLAGS += -I $(OVS_SRCDIR)/include AM_CPPFLAGS += -I $(OVS_BUILDDIR)/include @@ -43,8 +45,6 @@ AM_CPPFLAGS += -I $(OVS_SRCDIR)/lib AM_CPPFLAGS += -I $(OVS_BUILDDIR)/lib AM_CPPFLAGS += -I $(OVS_SRCDIR) AM_CPPFLAGS += -I $(OVS_BUILDDIR) -AM_CPPFLAGS += -I $(top_srcdir)/lib -AM_CPPFLAGS += -I $(top_builddir)/lib AM_CPPFLAGS += $(SSL_INCLUDES)