From patchwork Thu Dec 16 03:26:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Numan Siddique X-Patchwork-Id: 1568881 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=smtp2.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JDyGD4g2Pz9s1l for ; Thu, 16 Dec 2021 14:27:00 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 939F240AE6; Thu, 16 Dec 2021 03:26:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uk3A1s4TNsgU; Thu, 16 Dec 2021 03:26:57 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp2.osuosl.org (Postfix) with ESMTPS id B27A240AD9; Thu, 16 Dec 2021 03:26:56 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 86F5BC001E; Thu, 16 Dec 2021 03:26:56 +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 84D3AC0012 for ; Thu, 16 Dec 2021 03:26:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 76B7A831F1 for ; Thu, 16 Dec 2021 03:26:51 +0000 (UTC) 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 t9q6o9U7h1Db for ; Thu, 16 Dec 2021 03:26:50 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by smtp1.osuosl.org (Postfix) with ESMTPS id 9F7AE82E1A for ; Thu, 16 Dec 2021 03:26:50 +0000 (UTC) Received: (Authenticated sender: numans@ovn.org) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 62E9CE0003; Thu, 16 Dec 2021 03:26:48 +0000 (UTC) From: numans@ovn.org To: dev@openvswitch.org Date: Wed, 15 Dec 2021 22:26:42 -0500 Message-Id: <20211216032642.2593811-1-numans@ovn.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <737ee4ccc9019970f1e7e4ac60b588e3750bb8f5.camel@redhat.com> References: <737ee4ccc9019970f1e7e4ac60b588e3750bb8f5.camel@redhat.com> MIME-Version: 1.0 Cc: Dan Williams Subject: [ovs-dev] [PATCH ovn 3/4] ovn-ctl: pass database socket to ovn-*ctl init 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" From: Dan Williams Otherwise they disagree on socket paths if the user overrides the default path. Submitted-at: https://github.com/ovn-org/ovn/pull/109 Signed-off-by: Dan Williams --- utilities/ovn-ctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/ovn-ctl b/utilities/ovn-ctl index 805966ee46..45ad197059 100755 --- a/utilities/ovn-ctl +++ b/utilities/ovn-ctl @@ -305,7 +305,7 @@ $cluster_remote_port # Initialize the database if it's NOT joining a cluster. if test -z "$cluster_remote_addr"; then - $(echo ovn-${db}ctl | tr _ -) --no-leader-only init + $(echo ovn-${db}ctl | tr _ -) --no-leader-only --db="unix:$sock" init fi if test $mode = cluster; then