All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrangé" <berrange@redhat.com>
To: "Marc-André Lureau" <marcandre.lureau@redhat.com>
Cc: "Fam Zheng" <fam@euphon.net>,
	"Alex Bennée" <alex.bennee@linaro.org>,
	"Philippe Mathieu-Daudé" <philmd@redhat.com>,
	qemu-devel@nongnu.org, "Gerd Hoffmann" <kraxel@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 4/4] qemu-sockets: do not require configured ipv4/ipv6 address
Date: Wed, 5 Jun 2019 16:06:01 +0100	[thread overview]
Message-ID: <20190605150601.GD8956@redhat.com> (raw)
In-Reply-To: <20190523234011.583-5-marcandre.lureau@redhat.com>

On Fri, May 24, 2019 at 01:40:11AM +0200, Marc-André Lureau wrote:
> podman containers without network don't have ipv4/ipv6 addresses other
> than loopback address. However, some of our tests require
> getaddrinfo("127.0.0.1") to succeed.
> 
> Alternatively, we may want to treat 127.0.0.1 as a special case, to
> keep the AI_ADDRCONFIG convenience.

Keeping AI_ADDRCONFIG is mandatory as this is required for correctly
operating IPv4/IPv6 dual stack support.

In tests/socket-helpers.h I have a couple of APIs designed to help
in this case.

  int socket_can_bind_connect(const char *hostname);
  int socket_check_protocol_support(bool *has_ipv4, bool *has_ipv6);

The latter function just calls the former with "127.0.0.1" and
"::1" and reports results =.

The intention is that any test which relies on using getaddrinfo()
should call one of these functions, and then skip any tests which
have a dependancy on this working.

We certainly don't do these checks it all our tests right now
though, so it is not surprising if some fail.


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|


  reply	other threads:[~2019-06-05 15:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-23 23:40 [Qemu-devel] [PATCH 0/4] tests/docker: add podman support Marc-André Lureau
2019-05-23 23:40 ` [Qemu-devel] [PATCH 1/4] docker.py: " Marc-André Lureau
2019-05-23 23:40 ` [Qemu-devel] [PATCH 2/4] tests/docker: " Marc-André Lureau
2019-05-23 23:40 ` [Qemu-devel] [PATCH 3/4] docker: update fedora to f30 Marc-André Lureau
2019-05-24  7:41   ` Philippe Mathieu-Daudé
2019-05-24 11:17     ` Marc-André Lureau
2019-05-28 15:31       ` Philippe Mathieu-Daudé
2019-05-30  9:51       ` Alex Bennée
2019-06-05 15:10       ` Daniel P. Berrangé
2019-06-05 15:39         ` Philippe Mathieu-Daudé
2019-05-23 23:40 ` [Qemu-devel] [PATCH 4/4] qemu-sockets: do not require configured ipv4/ipv6 address Marc-André Lureau
2019-06-05 15:06   ` Daniel P. Berrangé [this message]
2019-05-24  4:43 ` [Qemu-devel] [PATCH 0/4] tests/docker: add podman support Gerd Hoffmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190605150601.GD8956@redhat.com \
    --to=berrange@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=fam@euphon.net \
    --cc=kraxel@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.