Re: NBD 3.23
On Tue, Nov 16, 2021 at 12:09:28PM +0200, Wouter Verhelst wrote:
> Hi,
>
> There was a small but crucial bug in NBD 3.22, which meant that the
> client would only connect to localhost (🤦). I've uploaded a new version
> of NBD to the usual spot to fix that issue.
>
> If anyone can come up with a good way to test that nbd-client actually
> connects to a host that is *not* localhost which we can add to the test
> suite, that'd be nice :) otherwise, I'll try to remember to test this
> manually from now on.
If you don't mind another dependency (which I think is probably OK for
tests, but make it optional!) then cwrap can do this, specifically I
think you need nss_wrapper.
https://cwrap.org/
https://lwn.net/Articles/594863/
Fedora package:
https://src.fedoraproject.org/rpms/nss_wrapper
Debian package:
https://packages.debian.org/sid/libnss-wrapper
(This is assuming you are really testing name resolution, rather than
wanting to test that it can actually connect to a remote host, which
is not going to be easy without using VMs or something like that.)
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
Reply to:
- References:
- NBD 3.23
- From: Wouter Verhelst <w@uter.be>