From patchwork Mon May 11 12:26:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Straub X-Patchwork-Id: 11540593 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8EFBB92A for ; Mon, 11 May 2020 12:31:09 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5BB1920746 for ; Mon, 11 May 2020 12:31:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=web.de header.i=@web.de header.b="CMoW0J2d" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5BB1920746 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=web.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:45052 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jY7aO-0008DB-6t for patchwork-qemu-devel@patchwork.kernel.org; Mon, 11 May 2020 08:31:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jY7Wi-0006AJ-P3 for qemu-devel@nongnu.org; Mon, 11 May 2020 08:27:20 -0400 Received: from mout.web.de ([212.227.15.4]:47933) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jY7Wh-0005vn-Kp for qemu-devel@nongnu.org; Mon, 11 May 2020 08:27:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1589200011; bh=qfGg68Nfb6jE9N0y6KIMdqu5LDQlJ+AcA8oLmpKWpJ4=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject; b=CMoW0J2dOSKFKGd3UaXKl1zMBEcPMB15+5j8shcpax+XAoO5bflZrbk3XLrOWRLPI tIx3ClH2ZT3IF4Yi92qLaeLgYcu+2W26Gx/0FcXC9hsZbJh2uqqLeVgw84X0FbJMy3 FT4SpIptDCnvAEzSSb4/Xs5ccLhrAURSH2T1r02Q= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from luklap ([89.247.255.192]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MJZLX-1jWCuG25Gd-0031lc; Mon, 11 May 2020 14:26:51 +0200 Date: Mon, 11 May 2020 14:26:41 +0200 From: Lukas Straub To: qemu-devel Subject: [PATCH 0/5] colo: Introduce resource agent and test suite/CI Message-ID: MIME-Version: 1.0 X-Provags-ID: V03:K1:JCN1WQU/u4Sw7qVGrnjacK0WJRnT0GsAhvo9okb+ZiSt1eAaqO7 snyPu6RCywCV93nczoSfK4SZY9FifHwCInYDubYwQGy70tuH3XLGrtvFYYAoTjVac8Wkamf xNjzOvHYamWGs7hcK11KeA0RV9bHuoSNtOo0w0ZTS6T1mbZG6/rhoYW/hwxAo2DwE4tUDhb 4PbwO+6JgSwat9r0CKNPw== X-UI-Out-Filterresults: notjunk:1;V03:K0:+cnAJbnDbqI=:b322e51DVd8McZYRQdz53y OsDCFLyUWNRENoXROxj+19z3DdS7GBWauWHiUlomgTcEZqLfAkDtJ65KMmRMZSeTeEXqWQYKD 9YiDBydALJY4cdFB9EH6sWklFc4wawCLlfb7XWuDGYQvbDRqopyTh0F2mmk21dbEQ0ImEjAqm ivQA7sMmoTCSgpsXT6Cg5+1fE51WK3VyrrFsj+tELWXgwsVKI6s6d+/58I4w0lVXQl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-ip=212.227.15.4; envelope-from=lukasstraub2@web.de; helo=mout.web.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/11 07:14:42 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Zhang Chen , Alberto Garcia , "Dr. David Alan Gilbert" Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" Hello Everyone, These patches introduce a resource agent for fully automatic management of colo and a test suite building upon the resource agent to extensively test colo. Test suite features: -Tests failover with peer crashing and hanging and failover during checkpoint -Tests network using ssh and iperf3 -Quick test requires no special configuration -Network test for testing colo-compare -Stress test: failover all the time with network load Resource agent features: -Fully automatic management of colo -Handles many failures: hanging/crashing qemu, replication error, disk error, ... -Recovers from hanging qemu by using the "yank" oob command -Tracks which node has up-to-date data -Works well in clusters with more than 2 nodes Run times on my laptop: Quick test: 200s Network test: 800s (tagged as slow) Stress test: 1300s (tagged as slow) The test suite needs access to a network bridge to properly test the network, so some parameters need to be given to the test run. See tests/acceptance/colo.py for more information. I wonder how this integrates in existing CI infrastructure. Is there a common CI for qemu where this can run or does every subsystem have to run their own CI? Regards, Lukas Straub Lukas Straub (5): block/quorum.c: stable children names colo: Introduce resource agent colo: Introduce high-level test suite configure,Makefile: Install colo resource-agent MAINTAINERS: Add myself as maintainer for COLO resource agent MAINTAINERS | 6 + Makefile | 5 + block/quorum.c | 20 +- configure | 10 + scripts/colo-resource-agent/colo | 1429 ++++++++++++++++++++++ scripts/colo-resource-agent/crm_master | 44 + scripts/colo-resource-agent/crm_resource | 12 + tests/acceptance/colo.py | 689 +++++++++++ 8 files changed, 2209 insertions(+), 6 deletions(-) create mode 100755 scripts/colo-resource-agent/colo create mode 100755 scripts/colo-resource-agent/crm_master create mode 100755 scripts/colo-resource-agent/crm_resource create mode 100644 tests/acceptance/colo.py