From: Prasanna Kumar Kalever <pkalever@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: pkrempa@redhat.com, stefanha@gmail.com, jcody@redhat.com,
qemu-devel@nongnu.org, deepakcs@redhat.com,
bharata@linux.vnet.ibm.com, rtalur@redhat.com, ndevos@redhat.com
Subject: Re: [Qemu-devel] [PATCH 4/4] block/gluster: add support for multiple gluster servers
Date: Fri, 5 Feb 2016 08:17:50 -0500 (EST) [thread overview]
Message-ID: <804322261.32795856.1454678270665.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <20160204132215.GD2314@noname>
On Thursday, February 4, 2016 6:52:15 PM Kevin Wolf Wrote:
> Am 12.11.2015 um 23:36 hat Eric Blake geschrieben:
> > On 11/12/2015 03:22 AM, Prasanna Kumar Kalever wrote:
> > > +static struct glfs *qemu_gluster_init(BlockdevOptionsGluster **gconf,
> > > + const char *filename,
> > > + QDict *options, Error **errp)
> > > +{
> > > + int ret;
> > > +
> > > + if (filename) {
> > > + ret = qemu_gluster_parseuri(gconf, filename);
> > > + if (ret < 0) {
> > > + error_setg(errp, "Usage:
> > > file=gluster[+transport]://[host[:port]]/"
> > > + "volume/path[?socket=...]");
> >
> > Hmm, just noticing this now, even though this error message is just code
> > motion. It looks like the optional [?socket=...] part of a URI is only
> > important when using gluster+unix (is it silently ignored otherwise?).
> > And if it is used, you are then assigning it to the host field?
> >
> > I almost wonder if GlusterServer should be a discriminated union. That
> > is, in qapi-pseudocode (won't actually compile yet, because it depends
> > on features that I have queued for 2.6):
> >
> > { 'union':'GlusterServer', 'base':{'transport':'GlusterTransport'},
> > 'discriminator':'transport', 'data':{
> > 'tcp':{'host':'str', '*port':'uint16'},
> > 'unix':{'socket':'str'},
> > 'rdma':{...} } }
> >
> > Hmm. Qapi doesn't (yet) allow for an optional discriminator (where the
> > omission of the discriminator picks a default branch) - another RFE for
> > my qapi work for 2.6.
>
> Eric, Prasanna, is this QAPI extension what we're waiting for or what is
> the status of this series? Niels (CCed) was hacking on the same thing,
> so maybe it's time to get this moving again.
Kevin, correct me if I am wrong, union discriminator support is not yet added
into qemu, I am waiting for this. I spoke to Eric Blake regarding the same may be
a month ago from now.
-Prasanna
>
> Kevin
>
> > Command-line wise, this would mean you could do in JSON:
> >
> > 'servers':[{'transport':'tcp', 'host':'foo'},
> > {'transport':'unix', 'socket':'/path/to/bar'},
> > {'host':'blah'}]
> >
> > where the third entry defaults to transport tcp.
> >
> > If we think that description is better than what we proposed in 3/4,
> > then it's really late to be adding it now, especially since (without
> > qapi changes) we'd have a mandatory rather than optional 'transport';
> > but worse if we commit to the interface of 3/4 and don't get the
> > conversion made in time to the nicer interface. At least it's okay from
> > back-compat perspective to make a mandatory field become optional in
> > later releases.
> >
> > If it were just gluster code I was worried about, then I could live with
> > the interface proposal. But since seeing this error message is making
> > me double-guess the interface correctness, and that will have an impact
> > on libvirt, I'm starting to have doubts on what it means for qemu 2.5.
>
>
next prev parent reply other threads:[~2016-02-05 13:18 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-12 10:22 [Qemu-devel] [PATCH 0/4] block/gluster: add support for multiple gluster servers Prasanna Kumar Kalever
2015-11-12 10:22 ` [Qemu-devel] [PATCH 1/4] block/gluster: rename [server, volname, image] -> [host, volume, path] Prasanna Kumar Kalever
2015-11-12 20:28 ` Eric Blake
2015-11-12 10:22 ` [Qemu-devel] [PATCH 2/4] block/gluster: code cleanup Prasanna Kumar Kalever
2015-11-12 10:22 ` [Qemu-devel] [PATCH 3/4] block/gluster: using new qapi schema Prasanna Kumar Kalever
2015-11-12 20:00 ` Jeff Cody
2015-11-12 21:16 ` Eric Blake
2015-11-12 21:37 ` Eric Blake
2015-11-12 22:44 ` Eric Blake
2015-11-13 8:04 ` Markus Armbruster
2015-11-12 10:22 ` [Qemu-devel] [PATCH 4/4] block/gluster: add support for multiple gluster servers Prasanna Kumar Kalever
2015-11-12 20:00 ` Jeff Cody
2015-11-12 22:36 ` Eric Blake
2016-02-04 13:22 ` Kevin Wolf
2016-02-05 13:17 ` Prasanna Kumar Kalever [this message]
2016-03-23 12:16 ` Prasanna Kalever
2016-03-23 12:22 ` Prasanna Kalever
2015-11-12 22:54 ` [Qemu-devel] [PATCH 0/4] " Eric Blake
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=804322261.32795856.1454678270665.JavaMail.zimbra@redhat.com \
--to=pkalever@redhat.com \
--cc=bharata@linux.vnet.ibm.com \
--cc=deepakcs@redhat.com \
--cc=jcody@redhat.com \
--cc=kwolf@redhat.com \
--cc=ndevos@redhat.com \
--cc=pkrempa@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rtalur@redhat.com \
--cc=stefanha@gmail.com \
/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).