From patchwork Mon Sep 19 06:26:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gurucharan Shetty X-Patchwork-Id: 671839 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (archives.nicira.com [96.126.127.54]) by ozlabs.org (Postfix) with ESMTP id 3sdBFx4RJmz9s3v for ; Tue, 20 Sep 2016 02:30:45 +1000 (AEST) Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id 6A0D51059F; Mon, 19 Sep 2016 09:30:43 -0700 (PDT) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx1e3.cudamail.com (mx1.cudamail.com [69.90.118.67]) by archives.nicira.com (Postfix) with ESMTPS id 6B7D71059E for ; Mon, 19 Sep 2016 09:30:42 -0700 (PDT) Received: from bar5.cudamail.com (localhost [127.0.0.1]) by mx1e3.cudamail.com (Postfix) with ESMTPS id ED3644200B2 for ; Mon, 19 Sep 2016 10:30:41 -0600 (MDT) X-ASG-Debug-ID: 1474302641-09eadd3533634960001-byXFYA Received: from mx1-pf2.cudamail.com ([192.168.24.2]) by bar5.cudamail.com with ESMTP id WZ7Ah1mE9qOpTc25 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 19 Sep 2016 10:30:41 -0600 (MDT) X-Barracuda-Envelope-From: guru.ovn@gmail.com X-Barracuda-RBL-Trusted-Forwarder: 192.168.24.2 Received: from unknown (HELO mail-pf0-f194.google.com) (209.85.192.194) by mx1-pf2.cudamail.com with ESMTPS (AES128-SHA encrypted); 19 Sep 2016 16:30:41 -0000 Received-SPF: pass (mx1-pf2.cudamail.com: SPF record at _netblocks.google.com designates 209.85.192.194 as permitted sender) X-Barracuda-Apparent-Source-IP: 209.85.192.194 X-Barracuda-RBL-IP: 209.85.192.194 Received: by mail-pf0-f194.google.com with SMTP id q2so4829782pfj.0 for ; Mon, 19 Sep 2016 09:30:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=A3DygET3zwxU0xMXX10OvE2LzMxz8EzX2BBOuKXDrrY=; b=BtgG69yhH3JN92cnRhggOIekw8sKj2uHCXJ6315WDnDB6s9OFnYo8RCmvG17mAhtOH BPpA0rbcLs4BudmgYhTR2bWyHcqDMWZ16At/SLwPh647PuvltK3F2aSilc8Q9crzRO/v rYSrP3zIsq73kiYQ/UiIFMoSEtD2j2YhBtM8xq46kBput0usojmR7hh5Zh8KSXR9VTHp c1ZKHbqYtmQIyHZ1oBhl6doJ8FFz12G53c6aScb9MrqUwaC0ndcqTCm9eP9afalaLvxi JQGmfYBS5JGzelhK+ixiPXLkygQDD+X8w6IK6gS6Zzt3qcg7mRwYdFE8O0u2Dg/rf2w6 BvFw== X-Gm-Message-State: AE9vXwPr3OkTZFSrYzFwDyin640evvWCoZ2dcL+J7G+5R7zzGyTCQDsDYbTAhgc4Hn30Og== X-Received: by 10.98.134.201 with SMTP id x192mr39139798pfd.21.1474302640302; Mon, 19 Sep 2016 09:30:40 -0700 (PDT) Received: from ubuntu.eng.vmware.com ([208.91.1.34]) by smtp.gmail.com with ESMTPSA id gm1sm26999118pac.2.2016.09.19.09.30.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Sep 2016 09:30:38 -0700 (PDT) X-CudaMail-Envelope-Sender: guru.ovn@gmail.com From: Gurucharan Shetty To: dev@openvswitch.org X-CudaMail-Whitelist-To: dev@openvswitch.org X-CudaMail-MID: CM-E2-918036459 X-CudaMail-DTE: 091916 X-CudaMail-Originating-IP: 209.85.192.194 Date: Sun, 18 Sep 2016 23:26:52 -0700 X-ASG-Orig-Subj: [##CM-E2-918036459##][PATCH] ovn-ctl: Initialize the databases. Message-Id: <1474266412-31329-1-git-send-email-guru@ovn.org> X-Mailer: git-send-email 1.9.1 X-Barracuda-Connect: UNKNOWN[192.168.24.2] X-Barracuda-Start-Time: 1474302641 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://web.cudamail.com:443/cgi-mod/mark.cgi X-ASG-Whitelist: Header =?UTF-8?B?eFwtY3VkYW1haWxcLXdoaXRlbGlzdFwtdG8=?= X-Virus-Scanned: by bsmtpd at cudamail.com X-Barracuda-BRTS-Status: 1 Subject: [ovs-dev] [PATCH] ovn-ctl: Initialize the databases. X-BeenThere: dev@openvswitch.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dev-bounces@openvswitch.org Sender: "dev" Without initializing the databases, commands of the form 'ovn-nbctl --wait=sb ls-add ls0' will simply hang. Signed-off-by: Gurucharan Shetty --- ovn/utilities/ovn-ctl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ovn/utilities/ovn-ctl b/ovn/utilities/ovn-ctl index 07bff8a..8544d14 100755 --- a/ovn/utilities/ovn-ctl +++ b/ovn/utilities/ovn-ctl @@ -55,6 +55,7 @@ start_ovsdb () { set "$@" --detach --monitor $OVN_NB_LOG --log-file=$OVN_NB_LOGFILE --remote=punix:$DB_NB_SOCK --remote=ptcp:$DB_NB_PORT:$DB_NB_ADDR --pidfile=$DB_NB_PID --unixctl=ovnnb_db.ctl $@ $DB_NB_FILE + ovn-nbctl init fi # Check and eventually start ovsdb-server for Southbound DB @@ -65,6 +66,7 @@ start_ovsdb () { set "$@" --detach --monitor $OVN_SB_LOG --log-file=$OVN_SB_LOGFILE --remote=punix:$DB_SB_SOCK --remote=ptcp:$DB_SB_PORT:$DB_SB_ADDR --pidfile=$DB_SB_PID --unixctl=ovnsb_db.ctl $@ $DB_SB_FILE + ovn-sbctl init fi }