From: Kevin Wolf <kwolf@redhat.com>
To: "Daniel P. Berrange" <berrange@redhat.com>
Cc: "Richard W.M. Jones" <rjones@redhat.com>,
qemu-block@nongnu.org, QEMU Developers <qemu-devel@nongnu.org>,
eblake@redhat.com, armbru@redhat.com,
Ashijeet Acharya <ashijeetacharya@gmail.com>
Subject: Re: [Qemu-devel] [Qemu-block] block/ssh:Allow blockdev-add for ssh
Date: Thu, 29 Sep 2016 13:15:10 +0200 [thread overview]
Message-ID: <20160929111510.GI5742@noname.redhat.com> (raw)
In-Reply-To: <20160929110713.GM5312@redhat.com>
Am 29.09.2016 um 13:07 hat Daniel P. Berrange geschrieben:
> On Thu, Sep 29, 2016 at 12:42:34PM +0200, Kevin Wolf wrote:
> > Am 29.09.2016 um 10:07 hat Richard W.M. Jones geschrieben:
> > > On Thu, Sep 29, 2016 at 01:05:48PM +0530, Ashijeet Acharya wrote:
> > > > Hi all,
> > > >
> > > > I was trying to convert SSH driver to support 'blockdev-add' and so
> > > > far I have tried to figure out what the struct 'BlockdevOptionsSsh' in
> > > > block-core.json should look like,
> > > >
> > > > { 'struct': 'BlockdevOptionsSsh',
> > > > 'data': { 'tcp': 'InetSocketAddress',
> > > > 'path': 'str' } }
> > > >
> > > > Naive question but I have to ask, Am I missing something?
> > > >
> > > > As far as I know, ssh only supports 'tcp' right? So using
> > > > 'InetSocketAddress' should be good enough. (like the TODO says)
> > > >
> > > > I had a discussion with Kevin about this and he thinks, maybe
> > > > 'SocketAddress' can be used too because the restriction comes from the
> > > > qemu block driver rather than the backend. He advised me to get an
> > > > opinion on this one from the maintainers of SSH.
> > >
> > > I have no idea.
> >
> > I searched the net a bit and it seems that SSH over Unix domain sockets
> > isn't a thing. So it might actually be okay to restrict the QEMU block
> > driver to TCP, too, and therefore use InetSocketAddress.
> >
> > Any other opinions?
>
> We have multiple block device drivers that all need network addresses.
> I think it'd be nice if we can use the same schema for all of them,
> even if some of them don't (currently) require certain options.
>
> eg rename 'GlusterServer' to 'BlockServer' and use it for all nework
> transports. Those that don't want unix support can just reject it
> at runtime, likewise those that don't need multiple-server support.
>
> This will let mgmt apps have the same code for generating the
> blockdev options for all network based transports, instead of having
> to write different code for each.
Allowing everything and then rejecting things at runtime isn't really
the idea behind having a schema... It would also make it impossible for
libvirt to detect whether a new backend has been implemented. If we do
schemas properly and only advertise what's really there, schema
introspection can answer that question.
Kevin
next prev parent reply other threads:[~2016-09-29 11:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-29 7:35 [Qemu-devel] block/ssh:Allow blockdev-add for ssh Ashijeet Acharya
2016-09-29 8:07 ` Richard W.M. Jones
2016-09-29 10:42 ` [Qemu-devel] [Qemu-block] " Kevin Wolf
2016-09-29 11:07 ` Daniel P. Berrange
2016-09-29 11:15 ` Kevin Wolf [this message]
2016-09-29 11:22 ` Daniel P. Berrange
2016-09-29 11:36 ` Kevin Wolf
2016-09-29 11:59 ` Richard W.M. Jones
2016-09-29 14:07 ` Ashijeet Acharya
2016-09-29 15:02 ` Kevin Wolf
2016-09-29 18:32 ` Ashijeet Acharya
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=20160929111510.GI5742@noname.redhat.com \
--to=kwolf@redhat.com \
--cc=armbru@redhat.com \
--cc=ashijeetacharya@gmail.com \
--cc=berrange@redhat.com \
--cc=eblake@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=rjones@redhat.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).