Re: Announcing a proof of concept REST API for VDSM

2011-12-01 Thread Dan Kenigsberg
On Tue, Nov 29, 2011 at 03:36:04PM -0600, Adam Litke wrote: > > Hopefully monitorCommand will not be too bad, since vdsm should be asking > libvirt for the VM details when they are needed. Of course we'll need to be > testing to make sure we aren't keeping state around. Also, I would expect > mo

Re: [Engine-devel] Announcing a proof of concept REST API for VDSM

2011-12-01 Thread Carl Trieloff
On 11/30/2011 10:52 AM, Adam Litke wrote: >> I'm not sure how hard it is technically. But for ISV's, I can tell >> > you that almost nobody has experience with it. > That is not a good sign. Certainly there must be some sort of standardized > and > well understood API transport that we can use.

Re: [Engine-devel] Announcing a proof of concept REST API for VDSM

2011-12-01 Thread Geert Jansen
On 11/30/2011 11:00 PM, Carl Trieloff wrote: > On 11/30/2011 10:52 AM, Adam Litke wrote: >>> I'm not sure how hard it is technically. But for ISV's, I can tell you that almost nobody has experience with it. >> That is not a good sign. Certainly there must be some sort of standardized >> an

Re: [Engine-devel] Announcing a proof of concept REST API for VDSM

2011-12-01 Thread Geert Jansen
On 11/30/2011 04:09 PM, Itamar Heim wrote: >> How easy is QMF to consume from a software development perspective? >> Would it be >> easy for someone to write a virsh-like tool against a QMF-based vdsm >> API? Would >> such a tool be able to run on multiple Linux distributions? > > it is supposed

Re: Announcing a proof of concept REST API for VDSM

2011-11-30 Thread Adam Litke
We had a very useful discussion on IRC regarding these ideas. Here is that transcript for those of you who are interested: aglitke: I have, thanks to Chris Write I know I should chime in, as well as smizrahi I suppose. yep... Would be good to get some additional perspectives. QMF is being pus

Re: [Engine-devel] Announcing a proof of concept REST API for VDSM

2011-11-30 Thread Adam Litke
On Wed, Nov 30, 2011 at 12:09:12PM -0500, Keith Robertson wrote: > On 11/30/2011 10:50 AM, Adam Litke wrote: > > On Wed, Nov 30, 2011 at 04:32:41PM +0100, Geert Jansen wrote: > >> On 11/30/2011 04:09 PM, Itamar Heim wrote: > >> > How easy is QMF to consume from a software development perspecti

Re: [Engine-devel] Announcing a proof of concept REST API for VDSM

2011-11-30 Thread Keith Robertson
On 11/30/2011 10:50 AM, Adam Litke wrote: > On Wed, Nov 30, 2011 at 04:32:41PM +0100, Geert Jansen wrote: >> On 11/30/2011 04:09 PM, Itamar Heim wrote: >> How easy is QMF to consume from a software development perspective? Would it be easy for someone to write a virsh-like tool again

Re: Announcing a proof of concept REST API for VDSM

2011-11-30 Thread Chris Wright
* Daniel P. Berrange (berra...@redhat.com) wrote: > I don't think this is mutually exclusive with having AMQP used for comms > between VDSM & ovirt-engine. One possible implementation strategy would > be to have a 'vdsm-qmf' agent running on the node which talks REST to > VDSM and translate it to Q

Re: Announcing a proof of concept REST API for VDSM

2011-11-30 Thread Daniel P. Berrange
On Wed, Nov 30, 2011 at 09:44:19AM -0600, Anthony Liguori wrote: > On 11/30/2011 09:09 AM, Itamar Heim wrote: > > On 11/30/2011 05:00 PM, Adam Litke wrote: > >>> single node and exposing the exact same REST API and behavior of the > >>> multi-node ovirt engine would be easier to cosnume for someone

Re: [Engine-devel] Announcing a proof of concept REST API for VDSM

2011-11-30 Thread Adam Litke
On Wed, Nov 30, 2011 at 04:32:41PM +0100, Geert Jansen wrote: > > On 11/30/2011 04:09 PM, Itamar Heim wrote: > > >>How easy is QMF to consume from a software development perspective? > >>Would it be > >>easy for someone to write a virsh-like tool against a QMF-based vdsm > >>API? Would > >>such a

Re: [Engine-devel] Announcing a proof of concept REST API for VDSM

2011-11-30 Thread Adam Litke
On Wed, Nov 30, 2011 at 04:32:41PM +0100, Geert Jansen wrote: > > On 11/30/2011 04:09 PM, Itamar Heim wrote: > > >>How easy is QMF to consume from a software development perspective? > >>Would it be > >>easy for someone to write a virsh-like tool against a QMF-based vdsm > >>API? Would > >>such a

Re: Announcing a proof of concept REST API for VDSM

2011-11-30 Thread Anthony Liguori
On 11/30/2011 09:09 AM, Itamar Heim wrote: > On 11/30/2011 05:00 PM, Adam Litke wrote: >>> single node and exposing the exact same REST API and behavior of the >>> multi-node ovirt engine would be easier to cosnume for someone that >>> wants to interact with a single node same way they would intera

Re: [Engine-devel] Announcing a proof of concept REST API for VDSM

2011-11-30 Thread Itamar Heim
On 11/30/2011 05:32 PM, Geert Jansen wrote: > > On 11/30/2011 04:09 PM, Itamar Heim wrote: > >>> How easy is QMF to consume from a software development perspective? >>> Would it be >>> easy for someone to write a virsh-like tool against a QMF-based vdsm >>> API? Would >>> such a tool be able to run

Re: Announcing a proof of concept REST API for VDSM

2011-11-30 Thread Itamar Heim
On 11/30/2011 05:15 PM, Adam Litke wrote: > On Wed, Nov 30, 2011 at 03:21:07PM +0200, Itamar Heim wrote: >> On 11/30/2011 11:29 AM, Daniel P. Berrange wrote: >>> On Wed, Nov 30, 2011 at 09:14:16AM +0200, Itamar Heim wrote: On 11/29/2011 11:36 PM, Adam Litke wrote: > On Tue, Nov 29, 2011 at

Re: Announcing a proof of concept REST API for VDSM

2011-11-30 Thread Adam Litke
On Wed, Nov 30, 2011 at 03:21:07PM +0200, Itamar Heim wrote: > On 11/30/2011 11:29 AM, Daniel P. Berrange wrote: > >On Wed, Nov 30, 2011 at 09:14:16AM +0200, Itamar Heim wrote: > >>On 11/29/2011 11:36 PM, Adam Litke wrote: > >>>On Tue, Nov 29, 2011 at 12:54:44PM -0800, Chris Wright wrote: > * A

Re: Announcing a proof of concept REST API for VDSM

2011-11-30 Thread Adam Litke
On Wed, Nov 30, 2011 at 09:29:23AM +, Daniel P. Berrange wrote: > On Wed, Nov 30, 2011 at 09:14:16AM +0200, Itamar Heim wrote: > > On 11/29/2011 11:36 PM, Adam Litke wrote: > > > On Tue, Nov 29, 2011 at 12:54:44PM -0800, Chris Wright wrote: > > >> * Adam Litke (a...@us.ibm.com) wrote: > > >>> O

Re: Announcing a proof of concept REST API for VDSM

2011-11-30 Thread Itamar Heim
On 11/30/2011 05:00 PM, Adam Litke wrote: > On Wed, Nov 30, 2011 at 09:14:16AM +0200, Itamar Heim wrote: >> On 11/29/2011 11:36 PM, Adam Litke wrote: >>> On Tue, Nov 29, 2011 at 12:54:44PM -0800, Chris Wright wrote: * Adam Litke (a...@us.ibm.com) wrote: > On Tue, Nov 29, 2011 at 11:39:08AM

Re: Announcing a proof of concept REST API for VDSM

2011-11-30 Thread Adam Litke
On Wed, Nov 30, 2011 at 09:14:16AM +0200, Itamar Heim wrote: > On 11/29/2011 11:36 PM, Adam Litke wrote: > >On Tue, Nov 29, 2011 at 12:54:44PM -0800, Chris Wright wrote: > >>* Adam Litke (a...@us.ibm.com) wrote: > >>>On Tue, Nov 29, 2011 at 11:39:08AM -0800, Chris Wright wrote: > * Adam Litke (

Re: Announcing a proof of concept REST API for VDSM

2011-11-30 Thread Itamar Heim
On 11/30/2011 11:29 AM, Daniel P. Berrange wrote: > On Wed, Nov 30, 2011 at 09:14:16AM +0200, Itamar Heim wrote: >> On 11/29/2011 11:36 PM, Adam Litke wrote: >>> On Tue, Nov 29, 2011 at 12:54:44PM -0800, Chris Wright wrote: * Adam Litke (a...@us.ibm.com) wrote: > On Tue, Nov 29, 2011 at 11

Re: Announcing a proof of concept REST API for VDSM

2011-11-30 Thread Daniel P. Berrange
On Wed, Nov 30, 2011 at 12:13:24PM +0200, Yaniv Kaul wrote: > On 11/30/2011 11:41 AM, Daniel P. Berrange wrote: > >On Tue, Nov 29, 2011 at 12:54:44PM -0800, Chris Wright wrote: > >>* Adam Litke (a...@us.ibm.com) wrote: > >>>On Tue, Nov 29, 2011 at 11:39:08AM -0800, Chris Wright wrote: > * Adam

Re: Announcing a proof of concept REST API for VDSM

2011-11-30 Thread Yaniv Kaul
On 11/30/2011 11:41 AM, Daniel P. Berrange wrote: > On Tue, Nov 29, 2011 at 12:54:44PM -0800, Chris Wright wrote: >> * Adam Litke (a...@us.ibm.com) wrote: >>> On Tue, Nov 29, 2011 at 11:39:08AM -0800, Chris Wright wrote: * Adam Litke (a...@us.ibm.com) wrote: > https://github.com/aglitke/vd

Re: Announcing a proof of concept REST API for VDSM

2011-11-30 Thread Daniel P. Berrange
On Tue, Nov 29, 2011 at 12:54:44PM -0800, Chris Wright wrote: > * Adam Litke (a...@us.ibm.com) wrote: > > On Tue, Nov 29, 2011 at 11:39:08AM -0800, Chris Wright wrote: > > > * Adam Litke (a...@us.ibm.com) wrote: > > > > > > > > https://github.com/aglitke/vdsm-rest/ > > > > > > > > Today I am rele

Re: Announcing a proof of concept REST API for VDSM

2011-11-30 Thread Daniel P. Berrange
On Wed, Nov 30, 2011 at 09:14:16AM +0200, Itamar Heim wrote: > On 11/29/2011 11:36 PM, Adam Litke wrote: > > On Tue, Nov 29, 2011 at 12:54:44PM -0800, Chris Wright wrote: > >> * Adam Litke (a...@us.ibm.com) wrote: > >>> On Tue, Nov 29, 2011 at 11:39:08AM -0800, Chris Wright wrote: > * Adam Lit

Re: Announcing a proof of concept REST API for VDSM

2011-11-30 Thread Chris Wright
* Adam Litke (a...@us.ibm.com) wrote: > > https://github.com/aglitke/vdsm-rest/ > > Today I am releasing a proof of concept implementation of a REST API for vdsm. > You can find the code on github. My goal is to eventually replace the current > xmlrpc interface with a REST API. Once completed,

Re: Announcing a proof of concept REST API for VDSM

2011-11-30 Thread Chris Wright
* Adam Litke (a...@us.ibm.com) wrote: > On Tue, Nov 29, 2011 at 11:39:08AM -0800, Chris Wright wrote: > > * Adam Litke (a...@us.ibm.com) wrote: > > > > > > https://github.com/aglitke/vdsm-rest/ > > > > > > Today I am releasing a proof of concept implementation of a REST API for > > > vdsm. > > >

Re: Announcing a proof of concept REST API for VDSM

2011-11-29 Thread Itamar Heim
On 11/29/2011 11:36 PM, Adam Litke wrote: > On Tue, Nov 29, 2011 at 12:54:44PM -0800, Chris Wright wrote: >> * Adam Litke (a...@us.ibm.com) wrote: >>> On Tue, Nov 29, 2011 at 11:39:08AM -0800, Chris Wright wrote: * Adam Litke (a...@us.ibm.com) wrote: > > https://github.com/aglitke/vdsm

Re: Announcing a proof of concept REST API for VDSM

2011-11-29 Thread Adam Litke
On Tue, Nov 29, 2011 at 12:54:44PM -0800, Chris Wright wrote: > * Adam Litke (a...@us.ibm.com) wrote: > > On Tue, Nov 29, 2011 at 11:39:08AM -0800, Chris Wright wrote: > > > * Adam Litke (a...@us.ibm.com) wrote: > > > > > > > > https://github.com/aglitke/vdsm-rest/ > > > > > > > > Today I am rele

Re: Announcing a proof of concept REST API for VDSM

2011-11-29 Thread Adam Litke
On Tue, Nov 29, 2011 at 11:39:08AM -0800, Chris Wright wrote: > * Adam Litke (a...@us.ibm.com) wrote: > > > > https://github.com/aglitke/vdsm-rest/ > > > > Today I am releasing a proof of concept implementation of a REST API for > > vdsm. > > You can find the code on github. My goal is to event

Re: Announcing a proof of concept REST API for VDSM

2011-11-14 Thread Tony Asleson
On 11/14/2011 07:53 AM, Adam Litke wrote: > I haven't thought about the authentication method I would use very much yet > but > I know there will need to be one. CherryPy's minimalism cuts both ways in > this > regard since I will need to incorporate my own security code. Luckily python > shoul

Re: Announcing a proof of concept REST API for VDSM

2011-11-14 Thread Adam Litke
On Fri, Nov 11, 2011 at 04:53:40PM -0600, Tony Asleson wrote: > On 11/11/2011 04:01 PM, Adam Litke wrote: > > > > https://github.com/aglitke/vdsm-rest/ > > > > Today I am releasing a proof of concept implementation of a REST API for > > vdsm. > > You can find the code on github. > > I have cons

Re: Announcing a proof of concept REST API for VDSM

2011-11-11 Thread Tony Asleson
On 11/11/2011 04:01 PM, Adam Litke wrote: > > https://github.com/aglitke/vdsm-rest/ > > Today I am releasing a proof of concept implementation of a REST API for vdsm. > You can find the code on github. I have considered providing a RESTful interface for a project I am working on. I am intereste

Announcing a proof of concept REST API for VDSM

2011-11-11 Thread Adam Litke
https://github.com/aglitke/vdsm-rest/ Today I am releasing a proof of concept implementation of a REST API for vdsm. You can find the code on github. My goal is to eventually replace the current xmlrpc interface with a REST API. Once completed, ovirt-engine could switch to this new API. The ma