<div dir="ltr">Do we have a RFE on this?</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><pre cols="72"><span style="font-family:arial,helvetica,sans-serif">Yaniv Dary
Technical Product Manager
Red Hat Israel Ltd.
34 Jerusalem Road
Building A, 4th floor
Ra'anana, Israel 4350109
Tel : +972 (9) 7692306
8272306
Email: <a href="mailto:ydary@redhat.com" target="_blank">ydary@redhat.com</a>
IRC : ydary</span></pre>
</div></div></div></div></div>
<br><div class="gmail_quote">On Tue, Mar 29, 2016 at 9:33 PM, Sandro Bonazzola <span dir="ltr"><<a href="mailto:sbonazzo@redhat.com" target="_blank">sbonazzo@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><p dir="ltr"><br>
Il 29/Mar/2016 20:12, "Nir Soffer" <<a href="mailto:nsoffer@redhat.com" target="_blank">nsoffer@redhat.com</a>> ha scritto:<br>
><br>
> On Tue, Mar 29, 2016 at 9:09 PM, Sandro Bonazzola <<a href="mailto:sbonazzo@redhat.com" target="_blank">sbonazzo@redhat.com</a>> wrote:<br>
> ><br>
> > Il 29/Mar/2016 20:02, "Nir Soffer" <<a href="mailto:nsoffer@redhat.com" target="_blank">nsoffer@redhat.com</a>> ha scritto:<br>
> >><br>
> >> Hi all,<br>
> >><br>
> >> In the Vdsm call, we discussed a way to expose vdsm errors to its clients<br>
> >> (e.g, engine, hosted engine agent/setup).<br>
> >><br>
> >> The idea is to have a vdsmapi package, holding:<br>
> >> - errors.py - all public errors<br>
> >> - events.py - all events sent by vdsm<br>
> >> - client.py - library for communicating with vdsm<br>
> >> - schema.py - the client will use this to autogenerate online help and<br>
> >> validate messages<br>
> >> - schema.yaml - we probably need several files (gluster, events, etc.)<br>
> >><br>
> >> This will allow other projects talking with vdsm to do:<br>
> >><br>
> >> from vdsmapi import client, errors<br>
> >> ...<br>
> >> try:<br>
> >> client.list(vmId="xxxyyy")<br>
> >> except errors.NoSuchVM:<br>
> >> ...<br>
> >><br>
> >> (this is a fake example, the real api may be different)<br>
> >><br>
> >> Engine can build-require vdsmapi, and generate java module with the<br>
> >> public errors from<br>
> >> vdsmapi/errors.py module, instead of keeping this hardcoded in engine,<br>
> >> and updating<br>
> >> it every time vdsm adds new public error.<br>
> >><br>
> >> Vdsm will use this package when building response to clients.<br>
> >><br>
> >> Edi was concerned about sharing the errors module, so maybe we need a<br>
> >> package:<br>
> >><br>
> >> vdsmapi/<br>
> >> errors/<br>
> >> network.py<br>
> >> virt.py<br>
> >> storage.py<br>
> >> gluster.py<br>
> >><br>
> >> We can still expose all the errors via errors/__init__.py, so clients<br>
> >> do not have to care about<br>
> >> the area of the application the error come from.<br>
> >><br>
> >> Thoughts?<br>
> ><br>
> > For which version is this proposal targeted? 4.1?<br>
><br>
> This is not targeted to any version yet, but I would be happy if we can do this<br>
> for next release.</p>
</div></div><p dir="ltr">I don't see it fitting 4.0 scope but I agree it would be nice to have in 4.1.</p>
<p dir="ltr">><br>
> Nir<br>
</p>
<br>_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/devel</a><br></blockquote></div><br></div>