From patchwork Fri Feb 19 00:33:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Junichi Nomura X-Patchwork-Id: 8355201 X-Patchwork-Delegate: snitzer@redhat.com Return-Path: X-Original-To: patchwork-dm-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id ED797C0553 for ; Fri, 19 Feb 2016 00:38:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2CECA20357 for ; Fri, 19 Feb 2016 00:38:41 +0000 (UTC) Received: from mx6-phx2.redhat.com (mx6-phx2.redhat.com [209.132.183.39]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2690820222 for ; Fri, 19 Feb 2016 00:38:40 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx6-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u1J0ZIIB013060; Thu, 18 Feb 2016 19:35:19 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u1J0ZGMV027210 for ; Thu, 18 Feb 2016 19:35:16 -0500 Received: from mx1.redhat.com (ext-mx02.extmail.prod.ext.phx2.redhat.com [10.5.110.26]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u1J0ZG9W011185 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 18 Feb 2016 19:35:16 -0500 Received: from tyo202.gate.nec.co.jp (TYO202.gate.nec.co.jp [210.143.35.52]) by mx1.redhat.com (Postfix) with ESMTPS id 86FD28E750; Fri, 19 Feb 2016 00:35:15 +0000 (UTC) Received: from mailgate3.nec.co.jp ([10.7.69.192]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id u1J0ZEgP016723; Fri, 19 Feb 2016 09:35:14 +0900 (JST) Received: from mailsv.nec.co.jp (imss61.nec.co.jp [10.7.69.156]) by mailgate3.nec.co.jp (8.11.7/3.7W-MAILGATE-NEC) with ESMTP id u1J0ZDd20896; Fri, 19 Feb 2016 09:35:13 +0900 (JST) Received: from mail01b.kamome.nec.co.jp (mail01b.kamome.nec.co.jp [10.25.43.2]) by mailsv.nec.co.jp (8.13.8/8.13.4) with ESMTP id u1J0YRDw016177; Fri, 19 Feb 2016 09:35:13 +0900 (JST) Received: from bpxc99gp.gisp.nec.co.jp ([10.38.151.135] [10.38.151.135]) by mail01b.kamome.nec.co.jp with ESMTP id BT-MMP-5595503; Fri, 19 Feb 2016 09:33:55 +0900 Received: from BPXM12GP.gisp.nec.co.jp ([10.38.151.204]) by BPXC07GP.gisp.nec.co.jp ([10.38.151.135]) with mapi id 14.03.0224.002; Fri, 19 Feb 2016 09:33:55 +0900 From: Junichi Nomura To: Mike Snitzer Thread-Topic: dm-multipath test scripts Thread-Index: AQHRanBKUqtLlSz/RUCjLYVPGcKDg58x7qqA Date: Fri, 19 Feb 2016 00:33:54 +0000 Message-ID: <56C662F1.8070407@ce.jp.nec.com> References: <20151007053923.GA10749@xzibit.linux.bs1.fc.nec.co.jp> <20160218171745.GA15071@redhat.com> In-Reply-To: <20160218171745.GA15071@redhat.com> Accept-Language: ja-JP, en-US Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.34.125.85] Content-ID: <4FBB0F237767E446B758976CFCFCB7D2@gisp.nec.co.jp> MIME-Version: 1.0 X-RedHat-Spam-Score: -1.602 (BAYES_50, DCC_REPUT_13_19, RCVD_IN_DNSWL_MED, SPF_HELO_PASS, SPF_PASS) 210.143.35.52 TYO202.gate.nec.co.jp 210.143.35.52 TYO202.gate.nec.co.jp X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Scanned-By: MIMEDefang 2.75 on 10.5.110.26 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id u1J0ZGMV027210 X-loop: dm-devel@redhat.com Cc: device-mapper development , linux-scsi Subject: Re: [dm-devel] dm-multipath test scripts X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Mike, On 02/19/16 02:17, Mike Snitzer wrote: > But unfortunately I cannot get either the scsidebug or tcmloop mode to > run against v4.5-rc4 > > For tcmloop, targetcli fails with: > "Could not create ISCSIFabricModule in configFS." Hmm, it sounds like there's unnecessary dependency in targetcli. > (fixed by enabling CONFIG_ISCSI_TARGET under TARGET_CORE) OK. > I'm seeing all tests fail due to fio verification failure. I'll need to > inspect this further.. > > But the most problematic test is ./tests/test_03_dm_failpath -- it seems > to actively break _any_ v4.5-rc kernel I try (with a never-ending flood > of messages like "device-mapper: multipath: Failing path 8:192."); I > haven't tried older kernels. It seems fail/recover cycle runs too fast for I/O to make any progress. I hit similar case and had to slow down the stress with attached patch. Please try this. Sorry for the inconvenience. > What is the last kernel version that your scripts have worked on? v4.4 worked fine. I'll check with v4.5-rc4 when I get a machine. > Taking a step back: > These scripts don't belong in Documentation/device-mapper/mptest/ (or > anywhere in the kernel tree for that matter). > > I'd really prefer it if we could port your scripts over to the > device-mapper-test-suite, see: > https://github.com/jthornber/device-mapper-test-suite Yes, I agree such a project is better place for this to live. diff --git a/lib/failpath_dm_message b/lib/failpath_dm_message index 1a3bcf8..5b8f28a 100755 --- a/lib/failpath_dm_message +++ b/lib/failpath_dm_message @@ -30,9 +30,11 @@ start_failpath_dm_message () { for m in $majs; do dmsetup message $MPNAME 0 "fail_path $m" done + sleep 1 for m in $majs; do dmsetup message $MPNAME 0 "reinstate_path $m" done + sleep 1 done & }