From patchwork Thu Jan 5 23:33:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladislav Odintsov X-Patchwork-Id: 1722204 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=VSjX1r6U; dkim-atps=neutral Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Np37W5qQ1z23fn for ; Fri, 6 Jan 2023 10:48:07 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 68E1D41BE9; Thu, 5 Jan 2023 23:48:02 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 68E1D41BE9 Authentication-Results: smtp4.osuosl.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=VSjX1r6U X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RH4TwwlNvVG1; Thu, 5 Jan 2023 23:48:01 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp4.osuosl.org (Postfix) with ESMTPS id BBE1741BAE; Thu, 5 Jan 2023 23:47:59 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org BBE1741BAE Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 8597EC0078; Thu, 5 Jan 2023 23:47:59 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) by lists.linuxfoundation.org (Postfix) with ESMTP id EE712C007E for ; Thu, 5 Jan 2023 23:47:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 61E8341B46 for ; Thu, 5 Jan 2023 23:47:57 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 61E8341B46 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EoXS5hfjqcC4 for ; Thu, 5 Jan 2023 23:47:56 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 0868641B38 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by smtp4.osuosl.org (Postfix) with ESMTPS id 0868641B38 for ; Thu, 5 Jan 2023 23:47:55 +0000 (UTC) Received: by mail-lf1-x12b.google.com with SMTP id m6so46861757lfj.11 for ; Thu, 05 Jan 2023 15:47:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ww5wE5V48hBHd4ovOxNkICKuzeg9Re+Z6NE4wVBGFws=; b=VSjX1r6Ulzru1CxKbL9CuhUQkzNx0zteOKSSydbuixdLAVW1FZP4aouR+QDDFOGdeZ 2ckYz0kapkwt4AiU6bpoFtxfxp/lcJ8kAk8Az4pT+pWRUhLnGBfUIpFstbpjrv+mbtuC VCPjHq2hH/6LHSVXyLh/Rt6EHfl6Larui8LuS/jVy5m+TyRxHAXZeht2yrkr8VjWnunj AOpYcb1yucT3bm/GwgWKZ8QN7fuaHEJiCBXKO/1Vvq2/owxJKw+xMpfCjtxrgvpsFl5X shp5rUZqsv++FFTckfJPvPLXasgI90gYBoUB31b3eKeCxdkCPHn6bRD0Ok45LgeLwmkB cAew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ww5wE5V48hBHd4ovOxNkICKuzeg9Re+Z6NE4wVBGFws=; b=eVy1ztusJK7CUOuumZqkzWAJZDmyK/R1wEj/+sPelILC9CC8CG+EOb04G1Y8TGJmPw IlfKVz+EQVN6X4rHdjvAyaHUn19p6YRhjwJDHDOyVvS4yGcXuu6xqG39oUY6aBMcReaq g6F/3VzobYblyx05YXov6NmzKY4/0t3HdbUdXL2FkPjyJLmPDlfYqdjwBNH/g6WuZBTC OE1wOI/tS/8e/6KttbMXVkKhDc6XCfVlicF4Jc2yOdLpQfr91c++JWmtIzqi2R+LiKQm xSW516/p1gcBUMb4hFGNf4sYHkYly3ufZviW2080CMtvzO4CeATInQE6RJLbZpSmYOyM xPIA== X-Gm-Message-State: AFqh2kr/F7vGaRiNV9uO/BaTYfV2UB/P0Hek7y9ZNMaraUU/o9na1Ogd tCHSgF7E7g9U3KyhceFP4wmvw2jHAm0V5A== X-Google-Smtp-Source: AMrXdXv8kuu8t6dwICvN/A3PG+6TBxriQwUAgvM/e1oLaGr2nl8P3wI9UAgRZzzZy0zzRWWqh3nl3w== X-Received: by 2002:a05:6512:2591:b0:4b5:5bc1:678c with SMTP id bf17-20020a056512259100b004b55bc1678cmr15019321lfb.21.1672962473591; Thu, 05 Jan 2023 15:47:53 -0800 (PST) Received: from ip-10-70-112-12.vpc-1e810be1.internal (c2-178-216-98-9.elastic.cloud.croc.ru. [178.216.98.9]) by smtp.gmail.com with ESMTPSA id bq8-20020a056512150800b00492e5d31201sm5589792lfb.7.2023.01.05.15.47.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Jan 2023 15:47:53 -0800 (PST) From: Vladislav Odintsov To: dev@openvswitch.org Date: Fri, 6 Jan 2023 02:33:43 +0300 Message-Id: <20230105233344.3271729-4-odivlad@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20230105233344.3271729-1-odivlad@gmail.com> References: <20230105233344.3271729-1-odivlad@gmail.com> MIME-Version: 1.0 Cc: Vladislav Odintsov Subject: [ovs-dev] [PATCH ovn 3/4] vtep: set SB DB ovsdb_idl to no_leader_only mode 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" This adds capability to run ovn-controller-vtep against OVN Southbound OVSDB server running in relay mode. Signed-off-by: Vladislav Odintsov --- controller-vtep/ovn-controller-vtep.c | 1 + 1 file changed, 1 insertion(+) diff --git a/controller-vtep/ovn-controller-vtep.c b/controller-vtep/ovn-controller-vtep.c index 50f412b95..df20816ff 100644 --- a/controller-vtep/ovn-controller-vtep.c +++ b/controller-vtep/ovn-controller-vtep.c @@ -123,6 +123,7 @@ main(int argc, char *argv[]) /* Connect to OVN SB database. */ struct ovsdb_idl_loop ovnsb_idl_loop = OVSDB_IDL_LOOP_INITIALIZER( ovsdb_idl_create(ovnsb_remote, &sbrec_idl_class, true, true)); + ovsdb_idl_set_leader_only(ovnsb_idl_loop.idl, false); ovsdb_idl_get_initial_snapshot(ovnsb_idl_loop.idl); char *ovn_version = ovn_get_internal_version();