From patchwork Tue Jan 9 11:12:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mohammad Heib X-Patchwork-Id: 1884374 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=J82aIJ+A; 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 4T8Svd6SGWz1yPf for ; Tue, 9 Jan 2024 22:12:45 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 16D53610B6; Tue, 9 Jan 2024 11:12:43 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 16D53610B6 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=J82aIJ+A 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 zQgHHn9C2EGC; Tue, 9 Jan 2024 11:12:42 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id 4403060BC9; Tue, 9 Jan 2024 11:12:41 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 4403060BC9 Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 17780C0072; Tue, 9 Jan 2024 11:12:41 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 2FB67C0037 for ; Tue, 9 Jan 2024 11:12:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id F1965823E2 for ; Tue, 9 Jan 2024 11:12:39 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org F1965823E2 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=J82aIJ+A 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 Nh-Nw8vwBfQh for ; Tue, 9 Jan 2024 11:12:39 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp1.osuosl.org (Postfix) with ESMTPS id 46841823E0 for ; Tue, 9 Jan 2024 11:12:39 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 46841823E0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704798757; 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; bh=4EZHUjl2VkrYhTXxxCjWyk/QQ0VgF0D1kx5B6qwZQps=; b=J82aIJ+AGTn2vsQd15LfbmVZkIxk0MPwAuHMWscxscEf7l2qD18Nqq2/oVq0n7/hsIl0rP D+SxjY3tMLuGKFPCSehsVeRAZyv2CYqZW2pnu+gBYsZBQtu63tgQC4aH+wjHsD5+dTf8c1 +Vfj8Rl3s38/yFHXmbb6Vf9bC9XI8LE= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-616-T73quprgNuWLMsUhKHZymg-1; Tue, 09 Jan 2024 06:12:36 -0500 X-MC-Unique: T73quprgNuWLMsUhKHZymg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (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 605D2185A780 for ; Tue, 9 Jan 2024 11:12:36 +0000 (UTC) Received: from mheiblap.localdomain (unknown [10.47.238.59]) by smtp.corp.redhat.com (Postfix) with ESMTP id 96B3B40C6EBA; Tue, 9 Jan 2024 11:12:35 +0000 (UTC) From: Mohammad Heib To: dev@openvswitch.org Date: Tue, 9 Jan 2024 13:12:28 +0200 Message-Id: <20240109111232.539196-1-mheib@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [PATCH ovn v3 0/4] OVN-IC: add basic sequence number status support 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" Currently, OVN-IC doesn't support a way to tell the end-user when their changes to the IC-NB database have propagated successfully to the IC-SB Database. This patch series adds basic support for the sequence number status protocol that is implemented on the native OVN, with this patch series the end user now can wait for their changes in the IC-NB DB to take effect by executing the 'sync' command after applying any changes to the IC-NB DB, for example, if the end-user has created a transit switch in the IC-NB global DB and want to make sure that the IC-SB create a DP binding for this ts-switch the user now can use the 'sync' command as following: $ ovn-ic-nbctl ts-add ts1 $ ovn-ic-nbctl --wait=sb sync The second command will wait until all the ovn-ic instances see the new changes and update their own local dbs and the global IC-SB db. v2 -> v3 -------- * Rebase over main. * Addressed review comments from Mark and Ales. Mohammad Heib (4): OVN-IC: interconnect DBs add basic Information Flow columns ovn-ic: implement basic INB change handling status OVN-IC: Make it possible for CMS to detect when the ISB is up-to-date. ic/tests: add unit test for ic sync command NEWS | 8 +++ ic/ovn-ic.c | 96 ++++++++++++++++++++++++++++++++++-- ovn-ic-nb.ovsschema | 6 ++- ovn-ic-nb.xml | 17 +++++++ ovn-ic-sb.ovsschema | 8 +-- ovn-ic-sb.xml | 21 ++++++++ tests/ovn-ic.at | 47 ++++++++++++++++++ utilities/ovn-ic-nbctl.8.xml | 49 ++++++++++++++++++ utilities/ovn-ic-nbctl.c | 85 ++++++++++++++++++++++++++++++- 9 files changed, 325 insertions(+), 12 deletions(-)