From patchwork Tue Jan 9 13:28:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mohammad Heib X-Patchwork-Id: 1884467 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=W0TsR1Q1; 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 4T8Wx36b6rz1yP7 for ; Wed, 10 Jan 2024 00:29:11 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id E93E961167; Tue, 9 Jan 2024 13:29:09 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org E93E961167 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=W0TsR1Q1 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 5vgOFOFjgueB; Tue, 9 Jan 2024 13:29:09 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id 32F9260C12; Tue, 9 Jan 2024 13:29:08 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 32F9260C12 Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id F40FBC0077; Tue, 9 Jan 2024 13:29:07 +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 9B6F2C0037 for ; Tue, 9 Jan 2024 13:29:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 6373B81E3D for ; Tue, 9 Jan 2024 13:29:07 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 6373B81E3D 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=W0TsR1Q1 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 q2ExmHu3Xmey for ; Tue, 9 Jan 2024 13:29:06 +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 98A3981C46 for ; Tue, 9 Jan 2024 13:29:06 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 98A3981C46 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704806945; 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=6VWoQvKik0wYU+9QtIQWv1vQ+1Qr0Zwuyidfbxdw1qY=; b=W0TsR1Q185Y9XWGH89CCgr1Qg6DmHIjT2SaT3IIYFUzsSEWx2l+lIS73h/v4XL4JZ7BTHd xxKzvZb1S6sIHqmvXNSLu+Tszjok+G18CbQBv1K8K99oF0cIFapLWe+KXar3Ykmu1avPs9 hBGIyLS1uVv3O7Nrbw5r0ZWdXMPNh/I= 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-267-TQOeC4pzOcGW1TZHC0J_kQ-1; Tue, 09 Jan 2024 08:29:03 -0500 X-MC-Unique: TQOeC4pzOcGW1TZHC0J_kQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (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 A52D485A5BA for ; Tue, 9 Jan 2024 13:29:03 +0000 (UTC) Received: from mheiblap.localdomain (unknown [10.47.238.59]) by smtp.corp.redhat.com (Postfix) with ESMTP id 02D4F2166B32; Tue, 9 Jan 2024 13:29:02 +0000 (UTC) From: Mohammad Heib To: dev@openvswitch.org Date: Tue, 9 Jan 2024 15:28:50 +0200 Message-Id: <20240109132854.669822-1-mheib@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [PATCH ovn v4 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. v3 -> v4 -------- * Addressed review comments from Ales to add check for the overflow cases. 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 | 89 ++++++++++++++++++++++++++++++++- 9 files changed, 329 insertions(+), 12 deletions(-)