From: Stefan Hajnoczi <stefanha@gmail.com>
To: "Ján Tomko" <jtomko@redhat.com>
Cc: libvir-list@redhat.com, Kevin Wolf <kwolf@redhat.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] NBD drives with literal IPv6 addresses or hostnames starting with a digit
Date: Tue, 4 Jun 2013 14:19:28 +0200 [thread overview]
Message-ID: <20130604121928.GB10055@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <51A88BCB.1060800@redhat.com>
On Fri, May 31, 2013 at 01:38:51PM +0200, Ján Tomko wrote:
> Hello,
>
> since qemu's commit v1.4.0-736-gf17c90b [1]:
> nbd: Keep hostname and port separate
>
> * literal IPv6 addresses no longer work in nbd URIs, because getaddrinfo is
> called with the surrounding brackets:
> $ qemu-system-x86_64 -drive file=nbd://[::1]:1234/quack
> qemu-system-x86_64: -drive file=nbd://[::1]:1234/quack: address resolution
> failed for [::1]:1234: Name or service not known
>
> * hostnames starting with a digit now work in nbd URIs.
> Before that, or with the non-URI syntax, they fail because inet_parse assumes
> them to be literal IPv4 addresses:
> $ qemu-system-x86_64 -drive file=nbd:123flour:1234:exportname=gashunk
> qemu-system-x86_64: -drive file=nbd:123flour:1234:exportname=gashunk: error
> parsing IPv4 address '123flour:1234'
>
>
> In libvirt, we use the URI format on the command line only if the host
> contains ':', so hostnames starting with a digit still don't work.
>
> Migration with NBD and a literal IPv6 address doesn't work either, but that's
> purely libvirt's fault, as we don't escape it with brackets. I've just posted
> a patch for that. [2]
>
> Jan
>
> [1] http://git.qemu.org/?p=qemu.git;a=commitdiff;h=f17c90b
> [2] https://www.redhat.com/archives/libvir-list/2013-May/msg02022.html
CCing Kevin who authored v1.4.0-736-gf17c90b.
Stefan
next prev parent reply other threads:[~2013-06-04 12:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-31 11:38 [Qemu-devel] NBD drives with literal IPv6 addresses or hostnames starting with a digit Ján Tomko
2013-06-04 12:19 ` Stefan Hajnoczi [this message]
2013-06-04 12:29 ` [Qemu-devel] [libvirt] " Ján Tomko
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=20130604121928.GB10055@stefanha-thinkpad.redhat.com \
--to=stefanha@gmail.com \
--cc=jtomko@redhat.com \
--cc=kwolf@redhat.com \
--cc=libvir-list@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).