From patchwork Thu Sep 19 20:44:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: aginwala aginwala X-Patchwork-Id: 1164871 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="CeBxy9g+"; dkim-atps=neutral Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46Z84n2Kt1z9sN1 for ; Fri, 20 Sep 2019 06:45:45 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 9C4E7C6E; Thu, 19 Sep 2019 20:45:07 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 52C81C64 for ; Thu, 19 Sep 2019 20:45:06 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id C3079108 for ; Thu, 19 Sep 2019 20:45:05 +0000 (UTC) Received: by mail-pl1-f180.google.com with SMTP id q15so2133908pll.11 for ; Thu, 19 Sep 2019 13:45:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GSj9dxcE7dubFPLzWK1/KLCq86iM2Uo+bmzc3feUXUI=; b=CeBxy9g+20GFjSFn+ItojX/PMf/7FeKtuEQyBvbQpLHtSlO91dmbRGmZGTmZDhmglS 0HMKS80IIsg4EgZo4Qs7QtkjZlbGBmA3o4tidJAUvh/bkMJKeEMzaMIPfd3efRboyfLT UIg5lyHITtLljJ9qE/Vlbwdo6UrdOuGIItZr3C6X5qOShhvEJrr57+2/9uFf7MOr8C/F oXfa9A06LScHRCWuvE+QDF+22PTa8uaBDrhRTqeDrV3Fa61lU5oVywUav3jIu72HyIII yxJoJc5o9NO2R/mUm74/Dt18HgKIpAksKsRKnpcCpKrAuIWQUvUJl1FQEVjyuIW2/L0m 6zvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GSj9dxcE7dubFPLzWK1/KLCq86iM2Uo+bmzc3feUXUI=; b=YfAb+1ZzyaGEXUfZZ7phWqOWuWUQ5xxWtcdSwOkf1suEXBekgphpSlvKB+v6dGKzy4 0tdkSEGDXfM/l+tbFcfoa7wNHWb35Ezf2EmDwgO/YMllc3RIJsQREjhV+HVZrxnDb+lc GgUCuhVp4cm6KBxqfRNsXQ3UmhybdpvB+qfcXDL9XJLhA89EGO+gc7Gp0GJNPXyFJ/MB VJsd2y0xFdYiayZFZBpPZSRnJKHIC0gW/xCg68ufKBolpQaRfrLfni+ooq588OvU/OcT /ji680cFG4P3/HKCIR81i5Oxm+VMMOi9EehD82b6ZBr5x1GzS5OWTDw4y3sL1Qg8wBYx FNKg== X-Gm-Message-State: APjAAAWCfGNSvn3SttJYN57h4NH22M8Qv8CmoaN2t61B0vzERQa5W0DD wb0qUBT/rMVmOpxuKKTaL3/H4Tp6 X-Google-Smtp-Source: APXvYqym2eCV+KmOdp5usvhUBVlJA0602l9iURWs7l5dM0sWP/BwvCoRm7p3FUdzO4YbkrGqBCQnsw== X-Received: by 2002:a17:902:904b:: with SMTP id w11mr11945608plz.177.1568925905078; Thu, 19 Sep 2019 13:45:05 -0700 (PDT) Received: from LM-SJC-11015761.corp.ebay.com ([216.113.160.77]) by smtp.gmail.com with ESMTPSA id e6sm20140799pfl.146.2019.09.19.13.45.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Sep 2019 13:45:04 -0700 (PDT) From: amginwal@gmail.com To: dev@openvswitch.org Date: Thu, 19 Sep 2019 13:44:58 -0700 Message-Id: <20190919204458.63231-2-amginwal@gmail.com> X-Mailer: git-send-email 2.20.1 (Apple Git-117) In-Reply-To: <20190919204458.63231-1-amginwal@gmail.com> References: <20190919204458.63231-1-amginwal@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: Aliasgar Ginwala Subject: [ovs-dev] [PATCH v2 2/2 ovn] Support starting containers with unix socket X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org From: Aliasgar Ginwala Signed-off-by: Aliasgar Ginwala --- Documentation/intro/install/general.rst | 14 ++++++++++++++ utilities/docker/start-ovn | 9 +++++++++ 2 files changed, 23 insertions(+) diff --git a/Documentation/intro/install/general.rst b/Documentation/intro/install/general.rst index 4936540fb..bbf05723b 100644 --- a/Documentation/intro/install/general.rst +++ b/Documentation/intro/install/general.rst @@ -449,6 +449,20 @@ Start OVN containers using below command:: $ docker run -itd --net=host --name=ovn-northd \ : ovn-northd-tcp +Start OVN containers using unix socket:: + + $ docker run -itd --net=host --name=ovn-nb \ + -v /var/run/ovn/:/var/run/ovn/ \ + : ovn-nb + + $ docker run -itd --net=host --name=ovn-sb \ + -v /var/run/ovn/:/var/run/ovn/ + : ovn-sb + + $ docker run -itd --net=host --name=ovn-northd \ + -v /var/run/ovn/:/var/run/ovn/ + : ovn-northd + .. note:: Current ovn central components comes up in docker image in a standalone mode with protocol tcp. diff --git a/utilities/docker/start-ovn b/utilities/docker/start-ovn index 7457836fe..fbdd2af91 100755 --- a/utilities/docker/start-ovn +++ b/utilities/docker/start-ovn @@ -13,6 +13,15 @@ # limitations under the License. case $1 in + "ovn-nb") /usr/share/ovn/scripts/ovn-ctl run_nb_ovsdb + ;; + "ovn-sb") /usr/share/ovn/scripts/ovn-ctl run_sb_ovsdb + ;; + "ovn-northd") ovn-northd --pidfile \ + --ovnnb-db="unix:/var/run/ovn/ovnnb_db.sock" \ + --ovnsb-db="unix:/var/run/ovn/ovnsb_db.sock" \ + --log-file=/var/log/ovn/ovn-northd.log + ;; "ovn-nb-tcp") source /etc/ovn/ovn_default_nb_port /usr/share/ovn/scripts/ovn-ctl start_ovsdb ovn-nbctl set-connection ptcp:$nb_db_port