From patchwork Fri Nov 22 14:44:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frode Nordahl X-Patchwork-Id: 1199507 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.138; helo=whitealder.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47KKBF3T2dz9sPv for ; Sat, 23 Nov 2019 01:51:15 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 16E2888280; Fri, 22 Nov 2019 14:51:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l8HdGXECwlNU; Fri, 22 Nov 2019 14:51:12 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by whitealder.osuosl.org (Postfix) with ESMTP id 72EC588269; Fri, 22 Nov 2019 14:51:12 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 592FFC1DD8; Fri, 22 Nov 2019 14:51:12 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id C64B3C18DA for ; Fri, 22 Nov 2019 14:51:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id BDBF6262A6 for ; Fri, 22 Nov 2019 14:51:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N6VUF4Q2lp+1 for ; Fri, 22 Nov 2019 14:51:09 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from u.fnordahl.com (u.fnordahl.com [52.21.249.169]) by silver.osuosl.org (Postfix) with ESMTP id 01AB42625C for ; Fri, 22 Nov 2019 14:50:46 +0000 (UTC) X-Mailbox-Line: From ffb2bae54e8fb1262a01b3ebc88703643fbbe652 Mon Sep 17 00:00:00 2001 Message-Id: From: Frode Nordahl To: dev@openvswitch.org Date: Fri, 22 Nov 2019 15:44:59 +0100 Subject: [ovs-dev] [PATCH ovn v2 0/2] northd: Improve pause, resume and status 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: , MIME-Version: 1.0 Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" At present when the ``pause`` command is issued any lock the ``ovn-northd`` process holds on the SB DB will be kept. To be able to change this behaviour the tests surrounding pause and resume must be changed, thus I provide the proposed change as a series to demonstrate that the changed tests work both for the current code and the proposed code. Travis passed: https://travis-ci.org/fnordahl/ovn/builds/615446047 Frode Nordahl (2): northd: Amend ovn-northd pause resume test northd: Improve handling of pause and resume northd/ovn-northd.8.xml | 9 +++-- northd/ovn-northd.c | 87 +++++++++++++++++++++++++++-------------- tests/ovn-northd.at | 35 +++++++++++------ 3 files changed, 88 insertions(+), 43 deletions(-)