[Engine-devel] Registering an existing disk or VM through the REST API

--_000_D290AD8432118048947689BA3AE8A9B3EBCEB7SACEXCMBX04PRDhqn_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi All, As many of you know, we're working on adding a plugin to oVirt for NetApp s= torage controllers. The plugin will allow users to add a new storage domain= and rapidly clone VMs using the native ONTAP APIs. Our plan is to do this = outside of oVirt in a separate engine and then register the new storage dom= ain or cloned VMs through the REST API. I've been going through the oVirt code and I'm not able to find a way to re= gister an existing VM or disk through the REST API. Am I missing something = or is this functionality that needs to be added? As part of the cloning pro= cess we can generate new UUIDs for the cloned disks and images, but I don't= see a way to get them recognized by oVirt. This functionality is very important to moving forward on our plugin and I = can certainly help add this capability if needed. -Chris Chris Morrissey Software Engineer NetApp Inc. 919.476.4428 --_000_D290AD8432118048947689BA3AE8A9B3EBCEB7SACEXCMBX04PRDhqn_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:= //www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; font-family:"Calibri","sans-serif";} @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3D"EN-US" link=3D"blue" vlink=3D"purple"> <div class=3D"WordSection1"> <p class=3D"MsoNormal">Hi All,<o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal">As many of you know, we’re working on adding a= plugin to oVirt for NetApp storage controllers. The plugin will allow user= s to add a new storage domain and rapidly clone VMs using the native ONTAP = APIs. Our plan is to do this outside of oVirt in a separate engine and then register the new storage domain or clo= ned VMs through the REST API.<o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal">I’ve been going through the oVirt code and I= 8217;m not able to find a way to register an existing VM or disk through th= e REST API. Am I missing something or is this functionality that needs to b= e added? As part of the cloning process we can generate new UUIDs for the cloned disks and images, but I don’t see = a way to get them recognized by oVirt.<o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal">This functionality is very important to moving forwa= rd on our plugin and I can certainly help add this capability if needed.<o:= p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal">-Chris<o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal"><b>Chris Morrissey<o:p></o:p></b></p> <p class=3D"MsoNormal">Software Engineer<o:p></o:p></p> <p class=3D"MsoNormal">NetApp Inc.<o:p></o:p></p> <p class=3D"MsoNormal">919.476.4428<o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> </div> </body> </html> --_000_D290AD8432118048947689BA3AE8A9B3EBCEB7SACEXCMBX04PRDhqn_--

On 11/20/2012 04:18 PM, Morrissey, Christopher wrote:
Hi All,
As many of you know, we’re working on adding a plugin to oVirt for NetApp storage controllers. The plugin will allow users to add a new storage domain and rapidly clone VMs using the native ONTAP APIs. Our plan is to do this outside of oVirt in a separate engine and then register the new storage domain or cloned VMs through the REST API.
I’ve been going through the oVirt code and I’m not able to find a way to register an existing VM or disk through the REST API. Am I missing something or is this functionality that needs to be added? As part of the cloning process we can generate new UUIDs for the cloned disks and images, but I don’t see a way to get them recognized by oVirt.
This functionality is very important to moving forward on our plugin and I can certainly help add this capability if needed.
missing today, but i thought this is what domain scan was about? http://wiki.ovirt.org/wiki/Features/Domain_Scan http://gerrit.ovirt.org/#/c/8219/1
-Chris
*Chris Morrissey*
Software Engineer
NetApp Inc.
919.476.4428
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

-----Original Message----- From: Itamar Heim [mailto:iheim@redhat.com] Sent: Tuesday, November 20, 2012 9:27 AM To: Morrissey, Christopher Cc: engine-devel@ovirt.org; Ayal Baron; Hopper, Ricky Subject: Re: [Engine-devel] Registering an existing disk or VM through the REST API
On 11/20/2012 04:18 PM, Morrissey, Christopher wrote:
Hi All,
As many of you know, we're working on adding a plugin to oVirt for NetApp storage controllers. The plugin will allow users to add a new storage domain and rapidly clone VMs using the native ONTAP APIs. Our plan is to do this outside of oVirt in a separate engine and then register the new storage domain or cloned VMs through the REST API.
I've been going through the oVirt code and I'm not able to find a way to register an existing VM or disk through the REST API. Am I missing something or is this functionality that needs to be added? As part of the cloning process we can generate new UUIDs for the cloned disks and images, but I don't see a way to get them recognized by oVirt.
This functionality is very important to moving forward on our plugin and I can certainly help add this capability if needed.
missing today, but i thought this is what domain scan was about? http://wiki.ovirt.org/wiki/Features/Domain_Scan http://gerrit.ovirt.org/#/c/8219/1
I had thought that as well, although the domain scanning functionality that was submitted was just querying for new disks and not actually registering them. I'm admittedly still a bit new to this and wanted to make sure I wasn't missing something. I'll be working on the functionality to get the newly found disks actually registered with oVirt over the next week and get it submitted to gerrit as soon as possible.
-Chris
*Chris Morrissey*
Software Engineer
NetApp Inc.
919.476.4428
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

Please don't use the REST API it's being deprecated http://gerrit.ovirt.org/#/c/7754/ We are in a transition to a stable supported API. Until then please use the XML-RPC API which thought not supported is the more stable of the two. ----- Original Message -----
From: "Christopher Morrissey" <Christopher.Morrissey@netapp.com> To: engine-devel@ovirt.org Sent: Tuesday, November 20, 2012 9:18:26 AM Subject: [Engine-devel] Registering an existing disk or VM through the REST API
Hi All,
As many of you know, we’re working on adding a plugin to oVirt for NetApp storage controllers. The plugin will allow users to add a new storage domain and rapidly clone VMs using the native ONTAP APIs. Our plan is to do this outside of oVirt in a separate engine and then register the new storage domain or cloned VMs through the REST API.
I’ve been going through the oVirt code and I’m not able to find a way to register an existing VM or disk through the REST API. Am I missing something or is this functionality that needs to be added? As part of the cloning process we can generate new UUIDs for the cloned disks and images, but I don’t see a way to get them recognized by oVirt.
This functionality is very important to moving forward on our plugin and I can certainly help add this capability if needed.
-Chris
Chris Morrissey
Software Engineer
NetApp Inc.
919.476.4428
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

Where can we browse the XML-RPC API? We would like to verify it has what we need. -----Original Message----- From: engine-devel-bounces@ovirt.org [mailto:engine-devel-bounces@ovirt.org] On Behalf Of Saggi Mizrahi Sent: Tuesday, November 20, 2012 10:06 AM To: Morrissey, Christopher Cc: engine-devel@ovirt.org Subject: Re: [Engine-devel] Registering an existing disk or VM through the REST API Please don't use the REST API it's being deprecated http://gerrit.ovirt.org/#/c/7754/ We are in a transition to a stable supported API. Until then please use the XML-RPC API which thought not supported is the more stable of the two. ----- Original Message -----
From: "Christopher Morrissey" <Christopher.Morrissey@netapp.com> To: engine-devel@ovirt.org Sent: Tuesday, November 20, 2012 9:18:26 AM Subject: [Engine-devel] Registering an existing disk or VM through the REST API
Hi All,
As many of you know, we’re working on adding a plugin to oVirt for NetApp storage controllers. The plugin will allow users to add a new storage domain and rapidly clone VMs using the native ONTAP APIs. Our plan is to do this outside of oVirt in a separate engine and then register the new storage domain or cloned VMs through the REST API.
I’ve been going through the oVirt code and I’m not able to find a way to register an existing VM or disk through the REST API. Am I missing something or is this functionality that needs to be added? As part of the cloning process we can generate new UUIDs for the cloned disks and images, but I don’t see a way to get them recognized by oVirt.
This functionality is very important to moving forward on our plugin and I can certainly help add this capability if needed.
-Chris
Chris Morrissey
Software Engineer
NetApp Inc.
919.476.4428
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

On 11/20/2012 05:06 PM, Saggi Mizrahi wrote:
Please don't use the REST API it's being deprecated http://gerrit.ovirt.org/#/c/7754/
We are in a transition to a stable supported API. Until then please use the XML-RPC API which thought not supported is the more stable of the two.
Saggie is talking about the vdsm rest api. Chris, I'm pretty sure you are planning to add it to the Engine REST API, to allow consuming this verb via an engine UI plugin?
----- Original Message -----
From: "Christopher Morrissey" <Christopher.Morrissey@netapp.com> To: engine-devel@ovirt.org Sent: Tuesday, November 20, 2012 9:18:26 AM Subject: [Engine-devel] Registering an existing disk or VM through the REST API
Hi All,
As many of you know, we’re working on adding a plugin to oVirt for NetApp storage controllers. The plugin will allow users to add a new storage domain and rapidly clone VMs using the native ONTAP APIs. Our plan is to do this outside of oVirt in a separate engine and then register the new storage domain or cloned VMs through the REST API.
I’ve been going through the oVirt code and I’m not able to find a way to register an existing VM or disk through the REST API. Am I missing something or is this functionality that needs to be added? As part of the cloning process we can generate new UUIDs for the cloned disks and images, but I don’t see a way to get them recognized by oVirt.
This functionality is very important to moving forward on our plugin and I can certainly help add this capability if needed.
-Chris
Chris Morrissey
Software Engineer
NetApp Inc.
919.476.4428
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

-----Original Message----- From: Itamar Heim [mailto:iheim@redhat.com] Sent: Tuesday, November 20, 2012 2:07 PM To: Saggi Mizrahi Cc: Morrissey, Christopher; engine-devel@ovirt.org Subject: Re: [Engine-devel] Registering an existing disk or VM through the REST API
On 11/20/2012 05:06 PM, Saggi Mizrahi wrote:
Please don't use the REST API it's being deprecated http://gerrit.ovirt.org/#/c/7754/
We are in a transition to a stable supported API. Until then please use the XML-RPC API which thought not supported is the more stable of the two.
Saggie is talking about the vdsm rest api. Chris, I'm pretty sure you are planning to add it to the Engine REST API, to allow consuming this verb via an engine UI plugin?
Yes, Itamar. George and I were very confused for a while, but as I looked at the patch pointed to above it appears there is a separate REST API for VDSM. So, just to be clear is there any separate XML RPC API for the Engine or REST is all there is and no plans to change in the future?
----- Original Message -----
From: "Christopher Morrissey" <Christopher.Morrissey@netapp.com> To: engine-devel@ovirt.org Sent: Tuesday, November 20, 2012 9:18:26 AM Subject: [Engine-devel] Registering an existing disk or VM through the
REST API
Hi All,
As many of you know, we’re working on adding a plugin to oVirt for NetApp storage controllers. The plugin will allow users to add a new storage domain and rapidly clone VMs using the native ONTAP APIs. Our plan is to do this outside of oVirt in a separate engine and then register the new storage domain or cloned VMs through the REST API.
I’ve been going through the oVirt code and I’m not able to find a way to register an existing VM or disk through the REST API. Am I missing something or is this functionality that needs to be added? As part of the cloning process we can generate new UUIDs for the cloned disks and images, but I don’t see a way to get them recognized by oVirt.
This functionality is very important to moving forward on our plugin and I can certainly help add this capability if needed.
-Chris
Chris Morrissey
Software Engineer
NetApp Inc.
919.476.4428
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

On 11/20/2012 09:09 PM, Morrissey, Christopher wrote:
-----Original Message----- From: Itamar Heim [mailto:iheim@redhat.com] Sent: Tuesday, November 20, 2012 2:07 PM To: Saggi Mizrahi Cc: Morrissey, Christopher; engine-devel@ovirt.org Subject: Re: [Engine-devel] Registering an existing disk or VM through the REST API
On 11/20/2012 05:06 PM, Saggi Mizrahi wrote:
Please don't use the REST API it's being deprecated http://gerrit.ovirt.org/#/c/7754/
We are in a transition to a stable supported API. Until then please use the XML-RPC API which thought not supported is the more stable of the two.
Saggie is talking about the vdsm rest api. Chris, I'm pretty sure you are planning to add it to the Engine REST API, to allow consuming this verb via an engine UI plugin?
Yes, Itamar. George and I were very confused for a while, but as I looked at the patch pointed to above it appears there is a separate REST API for VDSM. So, just to be clear is there any separate XML RPC API for the Engine or REST is all there is and no plans to change in the future?
Engine communicates with VDSM today via XML-RPC. there was work to move VDSM to a newer API, based on REST. this was abandoned, and focus is moving to JSON messages based API instead. (you'd be using this api when your engine side patch will be calling the VDSM method for domain scan, but the xml-rpc part of it is probably abstracted in the engine from you). in any case, this is *all* engine-vdsm side, and unrelated to the Engine REST API, which there are no plans to deprecate.
----- Original Message -----
From: "Christopher Morrissey" <Christopher.Morrissey@netapp.com> To: engine-devel@ovirt.org Sent: Tuesday, November 20, 2012 9:18:26 AM Subject: [Engine-devel] Registering an existing disk or VM through the
REST API
Hi All,
As many of you know, we’re working on adding a plugin to oVirt for NetApp storage controllers. The plugin will allow users to add a new storage domain and rapidly clone VMs using the native ONTAP APIs. Our plan is to do this outside of oVirt in a separate engine and then register the new storage domain or cloned VMs through the REST API.
I’ve been going through the oVirt code and I’m not able to find a way to register an existing VM or disk through the REST API. Am I missing something or is this functionality that needs to be added? As part of the cloning process we can generate new UUIDs for the cloned disks and images, but I don’t see a way to get them recognized by oVirt.
This functionality is very important to moving forward on our plugin and I can certainly help add this capability if needed.
-Chris
Chris Morrissey
Software Engineer
NetApp Inc.
919.476.4428
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
participants (4)
-
Costea, George
-
Itamar Heim
-
Morrissey, Christopher
-
Saggi Mizrahi