Received: from eggs.gnu.org ([2001:4830:134:3::10]:39298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcCWK-0007Yx-65 for qemu-devel@nongnu.org; Tue, 23 Aug 2016 10:17:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcCWB-0001Vh-FX for qemu-devel@nongnu.org; Tue, 23 Aug 2016 10:17:39 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:54041 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcCWB-0001Vb-9X for qemu-devel@nongnu.org; Tue, 23 Aug 2016 10:17:31 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u7NEEmjn055260 for ; Tue, 23 Aug 2016 10:17:30 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0b-001b2d01.pphosted.com with ESMTP id 24ybnm7agy-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 23 Aug 2016 10:17:29 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 23 Aug 2016 15:17:24 +0100 From: Sascha Silbe In-Reply-To: <31b27429-bde0-016b-ce2a-ff965571fa61@redhat.com> References: <20160819131202.19369-1-mreitz@redhat.com> <874m6blnfa.fsf@oc4731375738.ibm.com> <31b27429-bde0-016b-ce2a-ff965571fa61@redhat.com> Date: Tue, 23 Aug 2016 16:17:09 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: <87vayrk1sq.fsf@oc4731375738.ibm.com> Subject: Re: [Qemu-devel] [PATCH for-2.8] iotests: Do not rely on unavailable domains in 162 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-block@nongnu.org Cc: Kevin Wolf , qemu-devel@nongnu.org, Stefan Hajnoczi Dear Max, Max Reitz writes: > On 2016-08-23 at 07:44, Sascha Silbe wrote: >> Max Reitz writes: [tests/qemu-iotests/162] >> Using a fixed port number means multiple users won't be able to run this >> in parallel. That it's only open for a short time actually makes the >> issue a bit worse as it's hard to understand just why the test failed >> intermittently. >> >> Is there a way to have qemu-nbd use a random port and print the port >> number? > > Good idea. We can just let the script generate a random port;=20 > $(($RANDOM+32768)) should do the trick. Which will fail just the same as the original version if anything (not just qemu-nbd) is already occupying the port you happened to choose. Maybe we should just fix this part: >>> +# (We need to set up a server here, because the error message for "Con= nection >>> +# refused" does not contain the destination port) Including the port number in the "Connection refused" error message is a useful diagnostic, especially if it's a non-default port. Sascha --=20 Softwareentwicklung Sascha Silbe, Niederhofenstra=C3=9Fe 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641