Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,INCLUDES_PULL_REQUEST, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADACEC433E0 for ; Wed, 8 Jul 2020 22:30:11 +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 7993A20772 for ; Wed, 8 Jul 2020 22:30:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="gO7cpAVt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7993A20772 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:38184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jtIZu-0002tc-Gx for qemu-devel@archiver.kernel.org; Wed, 08 Jul 2020 18:30:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45788) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtIHp-0005dv-Hi for qemu-devel@nongnu.org; Wed, 08 Jul 2020 18:11:29 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:24339 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jtIHm-00080g-90 for qemu-devel@nongnu.org; Wed, 08 Jul 2020 18:11:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594246285; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=s2ZCCU3lqYLbWr4BCUiUzETbdEsHp5qh4/uCtDnTDJg=; b=gO7cpAVtyiZSCv06j6ibpMhmPg8c8ePuAoQ9a8/4gN5BMKk+oRC5qOK9H2mMree3DBMYF3 9619himhxQAqHSwaXmuaEVi/N1xgLeBBuKwB6WYhINH/fNMLvI9TqtZGgQ428fae78mlIH Ru3TT8iihq6E8ZUN4ZTcH1N11+9GM/E= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-449-eZyN-NZdN_GZQI6P72h6Ig-1; Tue, 07 Jul 2020 18:05:20 -0400 X-MC-Unique: eZyN-NZdN_GZQI6P72h6Ig-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CF7878005B0; Tue, 7 Jul 2020 22:05:18 +0000 (UTC) Received: from localhost (ovpn-116-140.rdu2.redhat.com [10.10.116.140]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8B10774191; Tue, 7 Jul 2020 22:05:15 +0000 (UTC) Date: Tue, 7 Jul 2020 18:05:14 -0400 From: Eduardo Habkost To: Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= Subject: Re: [PULL 00/12] Block patches Message-ID: <20200707220514.GY7276@habkost.net> References: <20200624100210.59975-1-stefanha@redhat.com> <20200626102506.GD281902@stefanha-x1.localdomain> MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=ehabkost@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Disposition: inline Received-SPF: pass client-ip=205.139.110.120; envelope-from=ehabkost@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/07 17:25:11 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -40 X-Spam_score: -4.1 X-Spam_bar: ---- X-Spam_report: (-4.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no 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: Kevin Wolf , Peter Maydell , Qemu-block , QEMU Developers , Max Reitz , Stefan Hajnoczi , Cleber Rosa , Fam Zheng Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Tue, Jul 07, 2020 at 05:28:21PM +0200, Philippe Mathieu-Daudé wrote: > On 6/26/20 12:25 PM, Stefan Hajnoczi wrote: > > On Thu, Jun 25, 2020 at 02:31:14PM +0100, Peter Maydell wrote: > >> On Wed, 24 Jun 2020 at 11:02, Stefan Hajnoczi wrote: > >>> > >>> The following changes since commit 171199f56f5f9bdf1e5d670d09ef1351d8f01bae: > >>> > >>> Merge remote-tracking branch 'remotes/alistair/tags/pull-riscv-to-apply-20200619-3' into staging (2020-06-22 14:45:25 +0100) > >>> > >>> are available in the Git repository at: > >>> > >>> https://github.com/stefanha/qemu.git tags/block-pull-request > >>> > >>> for you to fetch changes up to 7838c67f22a81fcf669785cd6c0876438422071a: > >>> > >>> block/nvme: support nested aio_poll() (2020-06-23 15:46:08 +0100) > >>> > >>> ---------------------------------------------------------------- > >>> Pull request > >>> > >>> ---------------------------------------------------------------- > >> > >> Failure on iotest 030, x86-64 Linux: > >> > >> TEST iotest-qcow2: 030 [fail] > >> QEMU -- > >> "/home/petmay01/linaro/qemu-for-merges/build/alldbg/tests/qemu-iotests/../../x86_64-softmmu/qemu-system-x86_64" > >> -nodefaults -display none -accel qtest > >> QEMU_IMG -- > >> "/home/petmay01/linaro/qemu-for-merges/build/alldbg/tests/qemu-iotests/../../qemu-img" > >> QEMU_IO -- > >> "/home/petmay01/linaro/qemu-for-merges/build/alldbg/tests/qemu-iotests/../../qemu-io" > >> --cache writeback --aio threads -f qcow2 > >> QEMU_NBD -- > >> "/home/petmay01/linaro/qemu-for-merges/build/alldbg/tests/qemu-iotests/../../qemu-nbd" > >> IMGFMT -- qcow2 (compat=1.1) > >> IMGPROTO -- file > >> PLATFORM -- Linux/x86_64 e104462 4.15.0-76-generic > >> TEST_DIR -- > >> /home/petmay01/linaro/qemu-for-merges/build/alldbg/tests/qemu-iotests/scratch > >> SOCK_DIR -- /tmp/tmp.8tgdDjoZcO > >> SOCKET_SCM_HELPER -- > >> /home/petmay01/linaro/qemu-for-merges/build/alldbg/tests/qemu-iotest/socket_scm_helper > >> > >> --- /home/petmay01/linaro/qemu-for-merges/tests/qemu-iotests/030.out > >> 2019-07-15 17:18:35.251364738 +0100 > >> +++ /home/petmay01/linaro/qemu-for-merges/build/alldbg/tests/qemu-iotests/030.out.bad > >> 2020-06-25 14:04:28.500534007 +0100 > >> @@ -1,5 +1,17 @@ > >> -........................... > >> +.............F............. > >> +====================================================================== > >> +FAIL: test_stream_parallel (__main__.TestParallelOps) > >> +---------------------------------------------------------------------- > >> +Traceback (most recent call last): > >> + File "030", line 246, in test_stream_parallel > >> + self.assert_qmp(result, 'return', {}) > >> + File "/home/petmay01/linaro/qemu-for-merges/tests/qemu-iotests/iotests.py", > >> line 848, in assert_qmp > >> + result = self.dictpath(d, path) > >> + File "/home/petmay01/linaro/qemu-for-merges/tests/qemu-iotests/iotests.py", > >> line 822, in dictpath > >> + self.fail(f'failed path traversal for "{path}" in "{d}"') > >> +AssertionError: failed path traversal for "return" in "{'error': > >> {'class': 'DeviceNotActive', 'desc': "Block job 'stream-node8' not > >> found"}}" > >> + > >> ---------------------------------------------------------------------- > >> Ran 27 tests > >> > >> -OK > >> +FAILED (failures=1) > > > > Strange, I can't reproduce this failure on my pull request branch or on > > qemu.git/master. > > > > Is this failure deterministic? Are you sure it is introduced by this > > pull request? > > Probably not introduced by this pullreq, but I also hit it on FreeBSD: > https://cirrus-ci.com/task/4620718312783872?command=main#L5803 > > TEST iotest-qcow2: 030 [fail] > QEMU -- > "/tmp/cirrus-ci-build/build/tests/qemu-iotests/../../aarch64-softmmu/qemu-system-aarch64" > -nodefaults -display none -machine virt -accel qtest > QEMU_IMG -- > "/tmp/cirrus-ci-build/build/tests/qemu-iotests/../../qemu-img" > QEMU_IO -- > "/tmp/cirrus-ci-build/build/tests/qemu-iotests/../../qemu-io" --cache > writeback --aio threads -f qcow2 > QEMU_NBD -- > "/tmp/cirrus-ci-build/build/tests/qemu-iotests/../../qemu-nbd" > IMGFMT -- qcow2 (compat=1.1) > IMGPROTO -- file > PLATFORM -- FreeBSD/amd64 cirrus-task-4620718312783872 12.1-RELEASE > TEST_DIR -- /tmp/cirrus-ci-build/build/tests/qemu-iotests/scratch > SOCK_DIR -- /tmp/tmp.aZ5pxFLF > SOCKET_SCM_HELPER -- > --- /tmp/cirrus-ci-build/tests/qemu-iotests/030.out 2020-07-07 > 14:48:48.123804000 +0000 > +++ /tmp/cirrus-ci-build/build/tests/qemu-iotests/030.out.bad 2020-07-07 > 15:05:07.863685000 +0000 > @@ -1,5 +1,17 @@ > -........................... > +.............F............. > +====================================================================== > +FAIL: test_stream_parallel (__main__.TestParallelOps) > ---------------------------------------------------------------------- > +Traceback (most recent call last): > + File "030", line 246, in test_stream_parallel > + self.assert_qmp(result, 'return', {}) > + File "/tmp/cirrus-ci-build/tests/qemu-iotests/iotests.py", line 848, > in assert_qmp > + result = self.dictpath(d, path) > + File "/tmp/cirrus-ci-build/tests/qemu-iotests/iotests.py", line 822, > in dictpath > + self.fail(f'failed path traversal for "{path}" in "{d}"') > +AssertionError: failed path traversal for "return" in "{'error': > {'class': 'DeviceNotActive', 'desc': "Block job 'stream-node8' not found"}}" > + > +---------------------------------------------------------------------- > Ran 27 tests Looks like a race condition that can be forced with a sleep call. With the following patch, I can reproduce it every time: diff --git a/tests/qemu-iotests/030 b/tests/qemu-iotests/030 index 1cdd7e2999..ee5374fc22 100755 --- a/tests/qemu-iotests/030 +++ b/tests/qemu-iotests/030 @@ -241,6 +241,7 @@ class TestParallelOps(iotests.QMPTestCase): result = self.vm.qmp('block-stream', device=node_name, job_id=job_id, base=self.imgs[i-2], speed=512*1024) self.assert_qmp(result, 'return', {}) + time.sleep(3) for job in pending_jobs: result = self.vm.qmp('block-job-set-speed', device=job, speed=0) self.assert_qmp(result, 'return', {}) -- Eduardo