[ovirt-devel] jsonrpc go client

Adam Litke alitke at redhat.com
Fri Jul 14 13:40:08 UTC 2017


On Fri, Jul 14, 2017 at 9:32 AM, Piotr Kliczewski <
piotr.kliczewski at gmail.com> wrote:

> On Fri, Jul 14, 2017 at 3:14 PM, Dan Kenigsberg <danken at redhat.com> wrote:
> > On Fri, Jul 14, 2017 at 3:11 PM, Piotr Kliczewski
> > <piotr.kliczewski at gmail.com> wrote:
> >> All,
> >>
> >> I pushed very simple jsonrpc go client [1] which allows to talk to
> >> vdsm. I had a request to create it but if there are more people
> >> willing to use it I am happy to maintain it.
>

Awesome Piotr!  Thanks for the great work.


> >>
> >> Please let me know if you find any issues with it or you have any
> >> feature requests.
> >
> > Interesting. Which use case do you see for this client?
> > Currently, Vdsm has very few clients: Engine, vdsm-client, mom and
> > hosted-engine. Too often we forget about the non-Engine ones and break
> > them, so I'd be happy to learn more about a 5th.
>
> Adam asked for the client for his storage related changes. I am not
> sure about specific use case.
>

I am looking at implementing a vdsm flexvol driver for kubernetes.  This
would allow kubernetes pods to access vdsm volumes using the native PV and
PVC mechanisms.


>
> >
> > Regarding https://github.com/pkliczewski/vdsm-jsonrpc-go/
> blob/master/example/main.go
> > : programming without exceptions and try-except is a pain. don't you
> > need to check the retval of Subscribe and disconnect on failure?
>
> By no means example is not perfect and you are correct. I will fix.
>



-- 
Adam Litke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/devel/attachments/20170714/71465c1e/attachment.html>


More information about the Devel mailing list