From patchwork Wed Dec 2 06:50:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Pfaff X-Patchwork-Id: 1409343 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=hemlock.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ovn.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Cm8kN6dVVz9sRK for ; Wed, 2 Dec 2020 17:50:52 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id A98E18787C; Wed, 2 Dec 2020 06:50:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hYQZVKCbmsBh; Wed, 2 Dec 2020 06:50:46 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by hemlock.osuosl.org (Postfix) with ESMTP id 6B9E887851; Wed, 2 Dec 2020 06:50:42 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 297E6C1DA0; Wed, 2 Dec 2020 06:50:42 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 8095CC1DA0 for ; Wed, 2 Dec 2020 06:50:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 60BB786D76 for ; Wed, 2 Dec 2020 06:50:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DDy9vy_-OoJf for ; Wed, 2 Dec 2020 06:50:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 6B8B386E10 for ; Wed, 2 Dec 2020 06:50:28 +0000 (UTC) X-Originating-IP: 75.54.222.30 Received: from sigfpe.attlocal.net (75-54-222-30.lightspeed.rdcyca.sbcglobal.net [75.54.222.30]) (Authenticated sender: blp@ovn.org) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 71D9020005; Wed, 2 Dec 2020 06:50:25 +0000 (UTC) From: Ben Pfaff To: dev@openvswitch.org Date: Tue, 1 Dec 2020 22:50:12 -0800 Message-Id: <20201202065018.2269685-2-blp@ovn.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201202065018.2269685-1-blp@ovn.org> References: <20201202065018.2269685-1-blp@ovn.org> MIME-Version: 1.0 Cc: Ben Pfaff Subject: [ovs-dev] [PATCH ovn v9 1/7] ovs-sandbox: Print and check results of *ctl commands. 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" Otherwise when something hangs or goes wrong, it's not obvious what happened. Signed-off-by: Ben Pfaff Acked-by: Dumitru Ceara --- tutorial/ovs-sandbox | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/tutorial/ovs-sandbox b/tutorial/ovs-sandbox index 1841776a476d..63ba1ea005d7 100755 --- a/tutorial/ovs-sandbox +++ b/tutorial/ovs-sandbox @@ -575,30 +575,30 @@ run ovs-vsctl --no-wait -- init rungdb $gdb_vswitchd $gdb_vswitchd_ex ovs-vswitchd --detach --no-chdir --pidfile -vconsole:off --log-file -vsyslog:off \ --enable-dummy=$dummy -vvconn -vnetdev_dummy -ovn-nbctl init -ovn-sbctl init -ovn-ic-nbctl init -ovn-ic-sbctl init -ovn-nbctl set NB_Global . name=az-1 +run ovn-nbctl init +run ovn-sbctl init +run ovn-ic-nbctl init +run ovn-ic-sbctl init +run ovn-nbctl set NB_Global . name=az-1 -ovs-vsctl set open . external-ids:system-id=chassis-1 -ovs-vsctl set open . external-ids:hostname=sandbox -ovs-vsctl set open . external-ids:ovn-encap-type=geneve -ovs-vsctl set open . external-ids:ovn-encap-ip=127.0.0.1 +run ovs-vsctl set open . external-ids:system-id=chassis-1 +run ovs-vsctl set open . external-ids:hostname=sandbox +run ovs-vsctl set open . external-ids:ovn-encap-type=geneve +run ovs-vsctl set open . external-ids:ovn-encap-ip=127.0.0.1 if [ "$HAVE_OPENSSL" = yes ]; then - ovn-nbctl set-ssl $sandbox/ovnnb-privkey.pem $sandbox/ovnnb-cert.pem $sandbox/pki/switchca/cacert.pem - ovn-nbctl set-connection pssl:6641 - ovn-sbctl set-ssl $sandbox/ovnsb-privkey.pem $sandbox/ovnsb-cert.pem $sandbox/pki/switchca/cacert.pem + run ovn-nbctl set-ssl $sandbox/ovnnb-privkey.pem $sandbox/ovnnb-cert.pem $sandbox/pki/switchca/cacert.pem + run ovn-nbctl set-connection pssl:6641 + run ovn-sbctl set-ssl $sandbox/ovnsb-privkey.pem $sandbox/ovnsb-cert.pem $sandbox/pki/switchca/cacert.pem if $ovn_rbac; then - ovn-sbctl set-connection role=ovn-controller pssl:6642 + run ovn-sbctl set-connection role=ovn-controller pssl:6642 else - ovn-sbctl set-connection pssl:6642 + run ovn-sbctl set-connection pssl:6642 fi - ovs-vsctl set open . external-ids:ovn-remote=ssl:127.0.0.1:6642 + run ovs-vsctl set open . external-ids:ovn-remote=ssl:127.0.0.1:6642 OVN_CTRLR_PKI="-p $sandbox/chassis-1-privkey.pem -c $sandbox/chassis-1-cert.pem -C $sandbox/pki/switchca/cacert.pem" else - ovs-vsctl set open . external-ids:ovn-remote=$OVN_SB_DB + run ovs-vsctl set open . external-ids:ovn-remote=$OVN_SB_DB OVN_CTRLR_PKI="" fi for i in $(seq $n_ics); do