From patchwork Wed Jan 24 14:27:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mohammad Heib X-Patchwork-Id: 1890300 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=NlBdX9f0; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TKmX42l05z23dy for ; Thu, 25 Jan 2024 01:28:02 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 19C0D60741; Wed, 24 Jan 2024 14:28:00 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 19C0D60741 Authentication-Results: smtp3.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=NlBdX9f0 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aY9uLw4trFdl; Wed, 24 Jan 2024 14:27:59 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp3.osuosl.org (Postfix) with ESMTPS id 1B003606A9; Wed, 24 Jan 2024 14:27:58 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 1B003606A9 Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id E6B5DC0077; Wed, 24 Jan 2024 14:27:57 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists.linuxfoundation.org (Postfix) with ESMTP id AA87FC0037 for ; Wed, 24 Jan 2024 14:27:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 7934B81980 for ; Wed, 24 Jan 2024 14:27:56 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 7934B81980 Authentication-Results: smtp1.osuosl.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=NlBdX9f0 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YD7VjR4g-Rwa for ; Wed, 24 Jan 2024 14:27:55 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by smtp1.osuosl.org (Postfix) with ESMTPS id 9DE04817A2 for ; Wed, 24 Jan 2024 14:27:55 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 9DE04817A2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706106474; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mEq+v8yUWgptC01tqnpnVY8n/eWB+hb89J2mpWJzT6A=; b=NlBdX9f01lojvpU8y8YUHQ7bA09fHJONtFGOz2eV1fTLbvTKSJ9apMtlPsee6ECA+ARhC1 5OXvpc6DVezDZDX0kefNZBIjmWcYuJbdvnjeqiqHZ1xa4WMmTAYv4Lp5QZzOvqIwpdVNUW JZb1kH/FBcGqehHN2vSv/6/C+2zisWE= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-391-wMvf-0dZNd6H8x8MoYl6gg-1; Wed, 24 Jan 2024 09:27:53 -0500 X-MC-Unique: wMvf-0dZNd6H8x8MoYl6gg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id CC6001C0512B for ; Wed, 24 Jan 2024 14:27:52 +0000 (UTC) Received: from mheiblap.localdomain.com (unknown [10.47.238.156]) by smtp.corp.redhat.com (Postfix) with ESMTP id 97F4BAC05; Wed, 24 Jan 2024 14:27:51 +0000 (UTC) From: Mohammad Heib To: dev@openvswitch.org Date: Wed, 24 Jan 2024 16:27:37 +0200 Message-Id: <20240124142740.969176-2-mheib@redhat.com> In-Reply-To: <20240124142740.969176-1-mheib@redhat.com> References: <20240124142740.969176-1-mheib@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [PATCH ovn v5 1/4] OVN-IC: Interconnect DBs add basic Information Flow 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" Add basic flow columns to interconnect northbound DB and interconnect Southbound DB. Those columns will be used by future patches to add basic support for Information Flow in OVN interconnect. Signed-off-by: Mohammad Heib Acked-by: Mark Michelson Acked-by: Ales Musil --- NEWS | 8 ++++++++ ovn-ic-nb.ovsschema | 6 ++++-- ovn-ic-nb.xml | 17 +++++++++++++++++ ovn-ic-sb.ovsschema | 8 +++++--- ovn-ic-sb.xml | 21 +++++++++++++++++++++ 5 files changed, 55 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index 5f267b4c6..9762af0e6 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,14 @@ Post v23.09.0 - ovn-northd-ddlog has been removed. - A new LSP option "enable_router_port_acl" has been added to enable conntrack for the router port whose peer is l3dgw_port if set it true. + - OVN Interconnection: + * INB provides basic feedback to the CMS about the ISB changes + handling status. + * IC_NB_Global now have "nb_ic_cfg" and "sb_ic_cfg" columns for + for ISB informational status. + * IC_SB_Global now have "nb_ic_cfg" column for ISB informational status. + * Availability_Zone now have "nb_ic_cfg" column for local AZ + informational status. OVN v23.09.0 - 15 Sep 2023 -------------------------- diff --git a/ovn-ic-nb.ovsschema b/ovn-ic-nb.ovsschema index 894db8344..bee174357 100644 --- a/ovn-ic-nb.ovsschema +++ b/ovn-ic-nb.ovsschema @@ -1,10 +1,12 @@ { "name": "OVN_IC_Northbound", - "version": "1.0.0", - "cksum": "45589876 3383", + "version": "1.1.0", + "cksum": "3964083684 3501", "tables": { "IC_NB_Global": { "columns": { + "nb_ic_cfg": {"type": {"key": "integer"}}, + "sb_ic_cfg": {"type": {"key": "integer"}}, "external_ids": { "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}}, diff --git a/ovn-ic-nb.xml b/ovn-ic-nb.xml index 8c53bec3b..2ae9bf6d5 100644 --- a/ovn-ic-nb.xml +++ b/ovn-ic-nb.xml @@ -36,6 +36,23 @@ one row.

+ + These columns allow a client to track the overall configuration state of + the system. + + + Sequence number for client to increment. When a client modifies the + interconnect northbound database configuration and wishes to wait for + OVN-ICs to handle this change and update the Interconnect + southbound database, it may increment this sequence number. + + + Sequence number that one OVN-IC sets to the value of + after waiting to all the OVN-ICs + finish applying their changes to interconnect southbound database. + + + See External IDs at the beginning of this document. diff --git a/ovn-ic-sb.ovsschema b/ovn-ic-sb.ovsschema index 1d60b36d1..5baf141cf 100644 --- a/ovn-ic-sb.ovsschema +++ b/ovn-ic-sb.ovsschema @@ -1,10 +1,11 @@ { "name": "OVN_IC_Southbound", - "version": "1.1.1", - "cksum": "3684563024 6914", + "version": "1.2.0", + "cksum": "1381014956 7032", "tables": { "IC_SB_Global": { "columns": { + "nb_ic_cfg": {"type": {"key": "integer"}}, "external_ids": { "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}}, @@ -24,7 +25,8 @@ "isRoot": true}, "Availability_Zone": { "columns": { - "name": {"type": "string"}}, + "name": {"type": "string"}, + "nb_ic_cfg": {"type": {"key": "integer"}}}, "isRoot": true, "indexes": [["name"]]}, "Gateway": { diff --git a/ovn-ic-sb.xml b/ovn-ic-sb.xml index f7e17e113..c3e7d2173 100644 --- a/ovn-ic-sb.xml +++ b/ovn-ic-sb.xml @@ -69,6 +69,21 @@ one row.

+ + This column allow a client to track the overall configuration state of + the system. + + + Sequence number for the configuration. When a CMS or + ovn-ic-nbctl updates the Interconnect northbound database, + it increments the nb_ic_cfg column in the + NB_IC_Global table in the Interconnect northbound + database. when OVN-ICs updates the southbound database to + bring it up to date with these changes, one OVN-IC updates + this column to the same value. + + + See External IDs at the beginning of this document. @@ -102,6 +117,12 @@ A name that uniquely identifies the availability zone. + + + This column is used by the OVN-IC to inform + that this IC instance is aligned with the changes in INB + +