From patchwork Wed Apr 7 19:43:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aidan Shribman X-Patchwork-Id: 1463501 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=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: 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=20161025 header.b=GKDsWrm0; dkim-atps=neutral Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (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 ozlabs.org (Postfix) with ESMTPS id 4FFvwL5YxWz9sW5 for ; Thu, 8 Apr 2021 05:44:02 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id DBA4A84C19; Wed, 7 Apr 2021 19:43:59 +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 AJjc4YkeZIgJ; Wed, 7 Apr 2021 19:43:57 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp1.osuosl.org (Postfix) with ESMTP id 2C4EB84BFF; Wed, 7 Apr 2021 19:43:56 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 0AF65C000C; Wed, 7 Apr 2021 19:43: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 402D0C000A for ; Wed, 7 Apr 2021 19:43:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 22AA384C0A for ; Wed, 7 Apr 2021 19:43:54 +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 tGrcbPMWcGCT for ; Wed, 7 Apr 2021 19:43:52 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by smtp1.osuosl.org (Postfix) with ESMTPS id EBCAF84BFF for ; Wed, 7 Apr 2021 19:43:51 +0000 (UTC) Received: by mail-wm1-x32a.google.com with SMTP id j4-20020a05600c4104b029010c62bc1e20so48628wmi.3 for ; Wed, 07 Apr 2021 12:43:51 -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:mime-version :content-transfer-encoding; bh=WQoLpYnYLPk96oSOg56Qd+rUYy9b37iiKgqNxedwE1c=; b=GKDsWrm0hgonzRX9PPmGsGZG045+cdH903T6cHJGZ4dXEwWyGlGi+T9K/3PMmgigw3 2j1A5w6Vru/AFJzm57hQHAzcq3T94gWTeKa8eRnRc03flEkI6aGKjZ37ZC8fR2WbxBwb jb1AbKoOb05jqMKTy22j06dZck1mwGY3UVJ8If5gSZlHYFn1gAPSfAVXBnkuoxIEVMzV qEU4teAbfORXsKh6r89JqEuJ4hLSHafUTDMwyhDOqnXoci5/GmMZthIlLQvmTyMZsd1D OsXqR7pTYtX56SYqQiB/zYawOPTlnZdNOLmY5rzaICpA9tsCP7zsDI8ILQTaZWL0XSV6 I1Hg== 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:mime-version :content-transfer-encoding; bh=WQoLpYnYLPk96oSOg56Qd+rUYy9b37iiKgqNxedwE1c=; b=H0GhlJdyy/ZO2sOa0Xm0Fk94qwOdHpWjOI8bMXCJPLxFZPY0GhX+PYCneI/5uHIDpW T+xXi8AY8ZBgSSniBb98sl5NKTaEtKEebZ2cWPaFjSzN4T91v+QekWZojMMoFClrPXNY mk9d2XA8FFu1YfENTmqdEtwxxgIg0rpDboK/ha5kyRmCnowmVI/qRMVgjmONG7haYkTJ gKY1LyFXeq4cbmRduX9uUObK5RMQ9hMzeOMYlAdBksLptO59x/Hm6La3JasAww98dNb2 iKZH/hfjlV19gFTHc7uqeEfLZM7hYPB9fAwVYjyKY/h/epzZMQO+F0CJOtU7quqHekIj l4Mg== X-Gm-Message-State: AOAM531nbBJJm/prWktm09reApV/wBOhVpkaxY9v8zlKmzLmbu7fSncj pnWURcKSZPpR3KzxWsyW7O/75s4oBs4WEfgg X-Google-Smtp-Source: ABdhPJzZvO+tn1h7+cJlYCt6XdHpewk+N1Hj630mcR9eCRXRbcvtbdAAA2ysmneJvlmVckO8qNXGrA== X-Received: by 2002:a7b:c202:: with SMTP id x2mr148984wmi.33.1617824629628; Wed, 07 Apr 2021 12:43:49 -0700 (PDT) Received: from localhost.localdomain (bl9-205-140.dsl.telepac.pt. [85.242.205.140]) by smtp.gmail.com with ESMTPSA id h8sm41485029wrt.94.2021.04.07.12.43.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Apr 2021 12:43:48 -0700 (PDT) From: Aidan Shribman To: ovs Date: Wed, 7 Apr 2021 19:43:05 +0000 Message-Id: <20210407194304.2886010-1-aidan.shribman@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Cc: hunchback Subject: [ovs-dev] [PATCH ovn v3] documentation: add sudo to install 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: hunchback add documentation of install sequence sudo to support running install sequence as non-root user Signed-off-by: Aidan Shribman --- Documentation/intro/install/general.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Documentation/intro/install/general.rst b/Documentation/intro/install/general.rst index 08a03a632..ee4827242 100644 --- a/Documentation/intro/install/general.rst +++ b/Documentation/intro/install/general.rst @@ -371,7 +371,7 @@ Building 3. Run ``make install`` to install the executables and manpages into the running system, by default under ``/usr/local``:: - $ make install + $ sudo make install .. _general-starting: @@ -422,23 +422,23 @@ Before starting ovn-northd you need to start OVN Northbound and Southbound ovsdb-servers. Before ovsdb-servers can be started, configure the Northbound and Southbound databases:: - $ mkdir -p /usr/local/etc/ovn - $ ovsdb-tool create /usr/local/etc/ovn/ovnnb_db.db \ + $ sudo mkdir -p /usr/local/etc/ovn + $ sudo ovsdb-tool create /usr/local/etc/ovn/ovnnb_db.db \ ovn-nb.ovsschema - $ ovsdb-tool create /usr/local/etc/ovn/ovnsb_db.db \ + $ sudo ovsdb-tool create /usr/local/etc/ovn/ovnsb_db.db \ ovn-sb.ovsschema Configure ovsdb-servers to use databases created above, to listen on a Unix domain socket and to use the SSL configuration in the database:: - $ mkdir -p /usr/local/var/run/ovn - $ ovsdb-server /usr/local/etc/ovn/ovnnb_db.db --remote=punix:/usr/local/var/run/ovn/ovnnb_db.sock \ + $ sudo mkdir -p /usr/local/var/run/ovn + $ sudo ovsdb-server /usr/local/etc/ovn/ovnnb_db.db --remote=punix:/usr/local/var/run/ovn/ovnnb_db.sock \ --remote=db:OVN_Northbound,NB_Global,connections \ --private-key=db:OVN_Northbound,SSL,private_key \ --certificate=db:OVN_Northbound,SSL,certificate \ --bootstrap-ca-cert=db:OVN_Northbound,SSL,ca_cert \ --pidfile=/usr/local/var/run/ovn/ovnnb-server.pid --detach --log-file=/usr/local/var/log/ovn/ovnnb-server.log - $ ovsdb-server /usr/local/etc/ovn/ovnsb_db.db --remote=punix:/usr/local/var/run/ovn/ovnsb_db.sock \ + $ sudo ovsdb-server /usr/local/etc/ovn/ovnsb_db.db --remote=punix:/usr/local/var/run/ovn/ovnsb_db.sock \ --remote=db:OVN_Southbound,SB_Global,connections \ --private-key=db:OVN_Southbound,SSL,private_key \ --certificate=db:OVN_Southbound,SSL,certificate \