Received: from eggs.gnu.org ([2001:4830:134:3::10]:53743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gO97n-0005mt-Gd for qemu-devel@nongnu.org; Sat, 17 Nov 2018 17:31:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gO97m-00082B-Se for qemu-devel@nongnu.org; Sat, 17 Nov 2018 17:31:35 -0500 References: <20181116155325.22428-1-berrange@redhat.com> <20181116155325.22428-7-berrange@redhat.com> <353b130c-aefb-ec4c-411b-571a79ec76e2@redhat.com> From: Eric Blake Message-ID: <7d11f9d0-4eaf-be44-cee9-e1dd843e0148@redhat.com> Date: Sat, 17 Nov 2018 16:31:27 -0600 MIME-Version: 1.0 In-Reply-To: <353b130c-aefb-ec4c-411b-571a79ec76e2@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 6/6] tests: exercise NBD server in TLS mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Daniel_P=2e_Berrang=c3=a9?= , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Kevin Wolf , Max Reitz On 11/17/18 2:49 PM, Eric Blake wrote: > On 11/16/18 9:53 AM, Daniel P. Berrang=C3=A9 wrote: >> Add tests that validate it is possible to connect to an NBD server >> running TLS mode. Also test mis-matched TLS vs non-TLS connections >> correctly fail. >> --- >=20 > Missing your Signed-off-by. Can you please supply that, so I can includ= e=20 > this in my pull request? >=20 > Also, I'm getting failures when trying to test it: >=20 > @@ -17,9 +17,9 @@ >=20 > =C2=A0=3D=3D check plain client to TLS server fails =3D=3D > =C2=A0option negotiation failed: read failed: Unexpected end-of-file b= efore=20 > all bytes were read > +write failed (error message): Unable to write to socket: Broken pipe > =C2=A0qemu-img: Could not open 'nbd://localhost:10809': TLS negotiatio= n=20 > required before option 8 (structured reply) > =C2=A0server reported: Option 0x8 not permitted before TLS > -write failed (error message): Unable to write to socket: Broken pipe >=20 >=20 > which looks like an output race. :( Found and squashed it - commit 37ec36f6 fixed plaintext servers to not=20 be noisy for NBD_OPT_ABORT, but did not give equal treatment to TLS=20 servers. Patch coming up separately. So, with my fixes, I can add: Tested-by: Eric Blake --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org