vdsClient is removed and replaced by vdsm-client

Hi All, vdsClient will be removed from master branch today. It is using XMLRPC protocol which has been deprecated and replaced by JSON-RPC. A new client for vdsm was introduced in 4.1: vdsm-client. This is a simple client that uses JSON-RPC protocol which was introduced in ovirt 3.5. The client is not aware of the available methods and parameters, and you should consult the schema [1] in order to construct the desired command. Future version should parse the schema and provide online help. If you're using vdsClient, we will be happy to assist you in migrating to the new vdsm client. *vdsm-client usage:* vdsm-client [-h] [-a ADDRESS] [-p PORT] [--unsecure] [--timeout TIMEOUT] [-f FILE] namespace method [name=value [name=value] ...] Invoking simple methods: # vdsm-client Host getVMList ['b3f6fa00-b315-4ad4-8108-f73da817b5c5'] For invoking methods with many or complex parameters, you can read the parameters from a JSON format file: # vdsm-client Lease info -f lease.json where lease.json file content is: { "lease": { "sd_id": "75ab40e3-06b1-4a54-a825-2df7a40b93b2", "lease_id": "b3f6fa00-b315-4ad4-8108-f73da817b5c5" } } It is also possible to read parameters from standard input, creating complex parameters interactively: # cat <<EOF | vdsm-client Lease info -f - { "lease": { "sd_id": "75ab40e3-06b1-4a54-a825-2df7a40b93b2", "lease_id": "b3f6fa00-b315-4ad4-8108-f73da817b5c5" } } EOF *Constructing a command from vdsm schema:* Let's take VM.getStats as an example. This is the entry in the schema: VM.getStats: added: '3.1' description: Get statistics about a running virtual machine. params: - description: The UUID of the VM name: vmID type: *UUID return: description: An array containing a single VmStats record type: - *VmStats namespace: VM method name: getStats params: vmID The vdsm-client command is: # vdsm-client VM getStats vmID=b3f6fa00-b315-4ad4-8108-f73da817b5c5 *Invoking getVdsCaps command:* # vdsm-client Host getCapabilities Please consult vdsm-client help and man page for further details and options. [1] https://github.com/oVirt/vdsm/blob/master/lib/api/vdsm-api.yml -- Irit Goihman Software Engineer Red Hat Israel Ltd.

Le Mercredi, Janvier 25, 2017 12:30 CET, Irit Goihman <igoihman@red= hat.com> a =C3=A9crit:<br /> <blockquote type=3D"cite" cite=3D"= CAA=3Di7HMsB7iRYqP9yyBx4w7pGer9rTE9wkJZRgcmXRQMaJezwg@mail.gmail.com"><=
A new client for vdsm was introduced in 4.1: vdsm-client.</div><div>Th= is is a simple client that uses JSON-RPC protocol which was introduced = in ovirt 3.5.</div><div> </div><div>The client is not aware of the= available methods and parameters, and you should consult </div><d= iv>the schema [1] in order to construct the desired command.</div><div>= </div><div>Future version should parse the schema and provide onl= ine help.</div><div> </div><div> </div><div>If you're using v= dsClient, we will be happy to assist you in migrating to the new vdsm c=
} </div></div><div> </div><div>It is also possible t= o read parameters from standard input, creating complex parameters= interactively:</div><div> </div><div><div># cat <<EOF | vds= m-client Lease info -f - &nbs=
<u>Constructing a command from vdsm schema:</u></b></div><div> </=
</div><div><div><b><u>Invoking getVdsCaps command:</u></b></div>= <div> </div><div># vdsm-client Host getCapabilities</div></di= v><div> </div><div><div> </div><div> </div><div>Please c= onsult vdsm-client help and man page for further details and options.</=
------=_=-_OpenGroupware_org_NGMime-17650-1523607277.566640-80------ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Length: 8119 Hi all, I can't find any exhaustive doc for new vdsm-client. My problem actuall= y is a task (export a vm to OVA) blocked. I found that I can interact with vdsm-client Task getInfo taskID=3D<uuid>, and replace getInfo by "stop"= , BUT : how can I find this UUID ??? Old "vdsClient -s 0 getAllTasksStatuses" has no equivalent ?? Does someone knows if a complete doc exists dot vdsm-client ? Thanks Frank =C2=A0 Le Mercredi, Janvier 25, 2017 12:30 CET, Irit Goihman <igoihman@redhat.= com> a =C3=A9crit: =C2=A0Hi All,=C2=A0vdsClient will be removed from master branch today.I= t is using XMLRPC protocol which has been deprecated and replaced by JS= ON-RPC.=C2=A0A new client for vdsm was introduced in 4.1: vdsm-client.T= his is a simple client that uses JSON-RPC protocol which was introduced= in ovirt 3.5.=C2=A0The client is not aware of the available methods an= d parameters, and you should consult=C2=A0the schema [1] in order to co= nstruct the desired command.=C2=A0Future version should parse the schem= a and provide online help.=C2=A0=C2=A0If you're using vdsClient, we wil= l be happy to assist you in migrating to the new vdsm client.=C2=A0=C2=A0= =C2=A0vdsm-client usage:=C2=A0vdsm-client [-h] [-a ADDRESS] [-p PORT] [= --unsecure] [--timeout TIMEOUT]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0[-f FILE] namespace method [name=3Dvalue [n= ame=3Dvalue] ...]=C2=A0=C2=A0Invoking simple methods:=C2=A0# vdsm-clien= t Host getVMList['b3f6fa00-b315-4ad4-8108-f73da817b5c5']=C2=A0For invok= ing methods with many or complex parameters, you can read the=C2=A0para= meters from a JSON format file:=C2=A0# vdsm-client Lease info -f lease.= json=C2=A0where lease.json file content is:=C2=A0{ =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "lease":= { =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "sd=5Fid": "7= 5ab40e3-06b1-4a54-a825-2df7a40b93b2", =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 "lease=5Fid": "b3f6fa00-b315-4ad4-8108-f73da817b5c5" = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 } =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2= =A0 } =C2=A0=C2=A0It is also possible to read parameters from standard = input, creating complex=C2=A0parameters interactively:=C2=A0# cat <<EOF= | vdsm-client Lease info -f - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0=C2=A0 =C2=A0 =C2=A0{ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"lease": {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0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 EOF =C2=A0=C2= =A0=C2=A0Constructing a command from vdsm schema:=C2=A0Let's take VM.ge= tStats as an example.This is the entry in the schema:=C2=A0VM.getStats:= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 added: '3.1' =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 de= scription: Get statistics about a running virtual machine. =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 params: =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=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=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 =C2= =A0 =C2=A0 type: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 - *VmS= tats =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0=C2=A0namespace: VMmethod name: getStatsparams: vmID=C2=A0The vds= m-client command is:=C2=A0# vdsm-client VM=C2=A0getStats vmID=3Db3f6fa0= 0-b315-4ad4-8108-f73da817b5c5=C2=A0=C2=A0Invoking getVdsCaps command:=C2= =A0# vdsm-client Host=C2=A0getCapabilities=C2=A0=C2=A0=C2=A0Please cons= ult vdsm-client help and man page for further details and options.=C2=A0= =C2=A0=C2=A0[1] https://github.com/oVirt/vdsm/blob/master/lib/api/vdsm-= api.yml=C2=A0--Irit GoihmanSoftware EngineerRed Hat Israel Ltd. ------=_=-_OpenGroupware_org_NGMime-17650-1523607277.566640-80------ Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Length: 9962 <html>Hi all,<br />I can't find any exhaustive doc for new vdsm-client.= My problem actually is a task (export a vm to OVA) blocked.<br />I fou= nd that I can interact with<br />vdsm-client Task getInfo taskID=3D<= uuid>, and replace getInfo by "stop", BUT : how can I find this UUID= ???<br />Old "vdsClient -s 0 getAllTasksStatuses" has no equivalent ??= <br /><br />Does someone knows if a complete doc exists dot vdsm-client= ?<br />Thanks<br />Frank<p class=3D"Text2"><br /> </p><br /><br /= div dir=3D"ltr">Hi All,<div> </div><div>vdsClient will be removed = from master branch today.</div><div>It is using XMLRPC protocol which h= as been deprecated and replaced by JSON-RPC.</div><div> </div><div= lient.</div><div> </div><div> </div><div> </div><div><b>= <u>vdsm-client usage:</u></b></div><div> </div><div><div>vdsm-clie= nt [-h] [-a ADDRESS] [-p PORT] [--unsecure] [--timeout TIMEOUT]</div><d= iv>  = ;[-f FILE] namespace method [name=3Dvalue [name=3Dvalue] ...]</div></di= v><div> </div><div> </div><div><div>Invoking simple methods:<= /div><div> </div><div># vdsm-client Host getVMList</div><div>['b3f= 6fa00-b315-4ad4-8108-f73da817b5c5']</div></div><div> </div><div>Fo= r invoking methods with many or complex parameters, you can read the&nb= sp;parameters from a JSON format file:</div><div> </div><div># vds= m-client Lease info -f lease.json</div><div> </div><div>where leas= e.json file content is:</div><div> </div><div><div>{ = = &= nbsp; &n= bsp; </div><div> = "lease": { &nbs= p;  = ; = </div><div>  = ; "sd=5Fid": "75ab40e3-06b1-4a54-a825-2df7a40b93b2= ",  = ; </div><div> "lea= se=5Fid": "b3f6fa00-b315-4ad4-8108-f73da817b5c5" &= nbsp; </div><div> = } = = &= nbsp; </div><div= p;  = ; </div><div> { &n= bsp; &nb= sp; &nbs= p;  = ; </div><div> "lea= se": { &= nbsp; &n= bsp; &nb= sp; </div><div> &n= bsp;"sd=5Fid": "75ab40e3-06b1-4a54-a825-2df7a40b93b2", &n= bsp; </div><div>&= nbsp; "lease=5Fid": "b3f6fa00-= b315-4ad4-8108-f73da817b5c5" = </div><div> = } = = &= nbsp; </div><div> = } = = &= nbsp; </div><div> = EOF </div></div><div> </div><div> </div><div><b= div><div>Let's take VM.getStats as an example.</div><div>This is the en= try in the schema:</div><div> </div><div><div>VM.getStats: = &= nbsp; &n= bsp; &nb= sp; </div><div> added: '3.1' &n= bsp; &nb= sp; &nbs= p; </div>= <div> description: Get statistics about a running virtual = machine. </div><= div> params: &nb= sp; &nbs= p;  = ; </div><div>&nbs= p; - description: The UUID of the VM = = </div><div> = name: vmID &nb= sp; &nbs= p;  = ; </div><div> &nb= sp; type: *UUID = = &= nbsp; </div><div> return: = = &= nbsp; &n= bsp; </div><div> description: An array = containing a single VmStats record &= nbsp; </div><div> type: = &= nbsp; &n= bsp; &nb= sp; </div><div> - *VmStats  = ; = = </= div></div><div> </div><div>namespace: VM</div><div>method name: ge= tStats</div><div>params: vmID</div><div> </div><div>The vdsm-clien= t command is:</div><div> </div><div># vdsm-client VM getStats= vmID=3Db3f6fa00-b315-4ad4-8108-f73da817b5c5</div><div> </div><div= div><div> </div><div> </div><div> </div><div>[1] <a href= =3D"https://github.com/oVirt/vdsm/blob/master/lib/api/vdsm-api.yml">htt= ps://github.com/oVirt/vdsm/blob/master/lib/api/vdsm-api.yml</a></div><d= iv> </div>--<div class=3D"gmail=5Fsignature"><div dir=3D"ltr">Irit= Goihman<div>Software Engineer</div><div>Red Hat Israel Ltd.</div></div=
</div></div></div></blockquote><br /><br /><style type=3D"text/css">.T= ext1 { color: black; font-size:9pt; font-family:Verdana; } .Text2 { color: black; font-size:7pt; font-family:Verdana; }</style></html>
------=_=-_OpenGroupware_org_NGMime-17650-1523607277.566640-80--------

--Apple-Mail=_DABC6D3E-089C-4507-B371-9F1FC1C6E673 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8
On 13 Apr 2018, at 10:14, fsoyer <fsoyer@systea.fr> wrote: =20 Hi all, I can't find any exhaustive doc for new vdsm-client. My problem = actually is a task (export a vm to OVA) blocked.
if you want to interact with that action it would always be best to = start with engine=E2=80=99s REST API rather than internal host-side API
I found that I can interact with vdsm-client Task getInfo taskID=3D<uuid>, and replace getInfo by = "stop", BUT : how can I find this UUID ??? Old "vdsClient -s 0 getAllTasksStatuses" has no equivalent ??
that=E2=80=99s a Host class api, vdsm-client Host getAllTasksStatuses
=20 Does someone knows if a complete doc exists dot vdsm-client ?
Thanks Frank =20 =20 =20 =20 =20 Le Mercredi, Janvier 25, 2017 12:30 CET, Irit Goihman = <igoihman@redhat.com> a =C3=A9crit: =20
=20 Hi All, =20 vdsClient will be removed from master branch today. It is using XMLRPC protocol which has been deprecated and replaced by = JSON-RPC. =20 A new client for vdsm was introduced in 4.1: vdsm-client. This is a simple client that uses JSON-RPC protocol which was = introduced in ovirt 3.5. =20 The client is not aware of the available methods and parameters, and = you should consult=20 the schema [1] in order to construct the desired command. =20 Future version should parse the schema and provide online help. =20 =20 If you're using vdsClient, we will be happy to assist you in = migrating to the new vdsm client. =20 =20 =20 vdsm-client usage: =20 vdsm-client [-h] [-a ADDRESS] [-p PORT] [--unsecure] [--timeout = TIMEOUT] [-f FILE] namespace method [name=3Dvalue = [name=3Dvalue] ...] =20 =20 Invoking simple methods: =20 # vdsm-client Host getVMList ['b3f6fa00-b315-4ad4-8108-f73da817b5c5'] =20 For invoking methods with many or complex parameters, you can read =
=20 # vdsm-client Lease info -f lease.json =20 where lease.json file content is: =20 { = =20 "lease": { = =20 "sd_id": "75ab40e3-06b1-4a54-a825-2df7a40b93b2", = =20 "lease_id": "b3f6fa00-b315-4ad4-8108-f73da817b5c5" = =20 } = =20 } =20 =20 It is also possible to read parameters from standard input, creating = complex parameters interactively: =20 # cat <<EOF | vdsm-client Lease info -f - = =20 { = =20 "lease": { = =20 "sd_id": "75ab40e3-06b1-4a54-a825-2df7a40b93b2", = =20 "lease_id": "b3f6fa00-b315-4ad4-8108-f73da817b5c5" = =20 } = =20 } = =20 EOF =20 =20 =20 Constructing a command from vdsm schema: =20 Let's take VM.getStats as an example. This is the entry in the schema: =20 VM.getStats: = =20 added: '3.1' = =20 description: Get statistics about a running virtual machine. = =20 params: = =20 - description: The UUID of the VM = =20 name: vmID = =20 type: *UUID = =20 return: = =20 description: An array containing a single VmStats record = =20 type: = =20 - *VmStats = =20 =20 namespace: VM method name: getStats params: vmID =20 The vdsm-client command is: =20 # vdsm-client VM getStats vmID=3Db3f6fa00-b315-4ad4-8108-f73da817b5c5 =20 =20 Invoking getVdsCaps command: =20 # vdsm-client Host getCapabilities =20 =20 =20 Please consult vdsm-client help and man page for further details and =
the man page mentioned below and source code. this is not a public API Thanks, michal the parameters from a JSON format file: options.
=20 =20 =20 [1] https://github.com/oVirt/vdsm/blob/master/lib/api/vdsm-api.yml = <https://github.com/oVirt/vdsm/blob/master/lib/api/vdsm-api.yml> =20 -- Irit Goihman Software Engineer Red Hat Israel Ltd. =20 =20
Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users = <http://lists.ovirt.org/mailman/listinfo/users>
--Apple-Mail=_DABC6D3E-089C-4507-B371-9F1FC1C6E673 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><br = class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div = class=3D"">On 13 Apr 2018, at 10:14, fsoyer <<a = href=3D"mailto:fsoyer@systea.fr" class=3D"">fsoyer@systea.fr</a>> = wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><span = style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: normal; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; = display: inline !important;" class=3D"">Hi all,</span><br = style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: normal; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" = class=3D""><span style=3D"font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant-caps: normal; font-weight: normal; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; float: none; display: inline = !important;" class=3D"">I can't find any exhaustive doc for new = vdsm-client. My problem actually is a task (export a vm to OVA) = blocked.</span><br style=3D"font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant-caps: normal; font-weight: normal; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px;" class=3D""></div></blockquote><div><br = class=3D""></div>if you want to interact with that action it would = always be best to start with engine=E2=80=99s REST API rather than = internal host-side API</div><div><br class=3D""><blockquote type=3D"cite" = class=3D""><div class=3D""><span style=3D"font-family: Helvetica; = font-size: 12px; font-style: normal; font-variant-caps: normal; = font-weight: normal; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: = inline !important;" class=3D"">I found that I can interact = with</span><br style=3D"font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant-caps: normal; font-weight: normal; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px;" class=3D""><span style=3D"font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant-caps: = normal; font-weight: normal; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: = inline !important;" class=3D"">vdsm-client Task getInfo = taskID=3D<uuid>, and replace getInfo by "stop", BUT : how can I = find this UUID ???</span></div></blockquote><blockquote type=3D"cite" = class=3D""><div class=3D""><span style=3D"font-family: Helvetica; = font-size: 12px; font-style: normal; font-variant-caps: normal; = font-weight: normal; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: = inline !important;" class=3D"">Old "vdsClient -s 0 getAllTasksStatuses" = has no equivalent ??</span><br style=3D"font-family: Helvetica; = font-size: 12px; font-style: normal; font-variant-caps: normal; = font-weight: normal; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px;" = class=3D""></div></blockquote><div><br class=3D""></div>that=E2=80=99s a = Host class api, vdsm-client Host getAllTasksStatuses<br = class=3D""><blockquote type=3D"cite" class=3D""><div class=3D""><br = style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: normal; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" = class=3D""><span style=3D"font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant-caps: normal; font-weight: normal; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; float: none; display: inline = !important;" class=3D"">Does someone knows if a complete doc exists dot = vdsm-client ?</span><br style=3D"font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant-caps: normal; font-weight: = normal; letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px;" class=3D""></div></blockquote><div><br = class=3D""></div>the man page mentioned below and source code. this is = not a public API</div><div><br = class=3D""></div><div>Thanks,</div><div>michal</div><div><br = class=3D""><blockquote type=3D"cite" class=3D""><div class=3D""><span = style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: normal; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; = display: inline !important;" class=3D"">Thanks</span><br = style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: normal; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" = class=3D""><span style=3D"font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant-caps: normal; font-weight: normal; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; float: none; display: inline = !important;" class=3D"">Frank</span><p class=3D"Text2" style=3D"font-size:= 7pt; font-family: Verdana; font-style: normal; font-variant-caps: = normal; font-weight: normal; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br = class=3D""> </p><br style=3D"font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant-caps: normal; font-weight: = normal; letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px;" class=3D""><br style=3D"font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant-caps: = normal; font-weight: normal; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><span = style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: normal; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; = display: inline !important;" class=3D"">Le Mercredi, Janvier 25, 2017 = 12:30 CET, Irit Goihman <<a href=3D"mailto:igoihman@redhat.com" = class=3D"">igoihman@redhat.com</a>> a =C3=A9crit:</span><br = style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: normal; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" = class=3D""><span style=3D"font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant-caps: normal; font-weight: normal; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; float: none; display: inline = !important;" class=3D""> </span><blockquote type=3D"cite" = cite=3D"x-msg://71/CAA=3Di7HMsB7iRYqP9yyBx4w7pGer9rTE9wkJZRgcmXRQMaJezwg@m= ail.gmail.com" style=3D"font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant-caps: normal; font-weight: normal; = letter-spacing: normal; orphans: auto; text-align: start; text-indent: = 0px; text-transform: none; white-space: normal; widows: auto; = word-spacing: 0px; -webkit-text-size-adjust: auto; = -webkit-text-stroke-width: 0px;" class=3D""><div dir=3D"ltr" class=3D"">Hi= All,<div class=3D""> </div><div class=3D"">vdsClient will be = removed from master branch today.</div><div class=3D"">It is using = XMLRPC protocol which has been deprecated and replaced by = JSON-RPC.</div><div class=3D""> </div><div class=3D"">A new client = for vdsm was introduced in 4.1: vdsm-client.</div><div class=3D"">This = is a simple client that uses JSON-RPC protocol which was introduced in = ovirt 3.5.</div><div class=3D""> </div><div class=3D"">The client = is not aware of the available methods and parameters, and you should = consult </div><div class=3D"">the schema [1] in order to construct = the desired command.</div><div class=3D""> </div><div = class=3D"">Future version should parse the schema and provide online = help.</div><div class=3D""> </div><div class=3D""> </div><div = class=3D"">If you're using vdsClient, we will be happy to assist you in = migrating to the new vdsm client.</div><div class=3D""> </div><div = class=3D""> </div><div class=3D""> </div><div class=3D""><b = class=3D""><u class=3D"">vdsm-client usage:</u></b></div><div = class=3D""> </div><div class=3D""><div class=3D"">vdsm-client [-h] = [-a ADDRESS] [-p PORT] [--unsecure] [--timeout TIMEOUT]</div><div = class=3D""> = [-f FILE] namespace method [name=3Dvalue [name=3Dvalue] = ...]</div></div><div class=3D""> </div><div = class=3D""> </div><div class=3D""><div class=3D"">Invoking simple = methods:</div><div class=3D""> </div><div class=3D""># vdsm-client = Host getVMList</div><div = class=3D"">['b3f6fa00-b315-4ad4-8108-f73da817b5c5']</div></div><div = class=3D""> </div><div class=3D"">For invoking methods with many or = complex parameters, you can read the parameters from a JSON format = file:</div><div class=3D""> </div><div class=3D""># vdsm-client = Lease info -f lease.json</div><div class=3D""> </div><div = class=3D"">where lease.json file content is:</div><div = class=3D""> </div><div class=3D""><div class=3D"">{ = = = = </div><div class=3D""> = "lease": { = = = </div><div = class=3D""> "sd_id": = "75ab40e3-06b1-4a54-a825-2df7a40b93b2", = </div><div = class=3D""> "lease_id": = "b3f6fa00-b315-4ad4-8108-f73da817b5c5" = </div><div class=3D""> = } = = = = </div><div class=3D""> } </div></div><div = class=3D""> </div><div class=3D"">It is also possible to read = parameters from standard input, creating complex parameters = interactively:</div><div class=3D""> </div><div class=3D""><div = class=3D""># cat <<EOF | vdsm-client Lease info -f - = = </div><div class=3D""> = { = = = = </div><div class=3D""> "lease": { = = = = </div><div class=3D""> = "sd_id": "75ab40e3-06b1-4a54-a825-2df7a40b93b2", = = </div><div class=3D""> = "lease_id": "b3f6fa00-b315-4ad4-8108-f73da817b5c5" = </div><div = class=3D""> } = = = = </div><div class=3D""> } = = = = </div><div = class=3D""> EOF </div></div><div = class=3D""> </div><div class=3D""> </div><div class=3D""><b = class=3D""><u class=3D"">Constructing a command from vdsm = schema:</u></b></div><div class=3D""> </div><div class=3D"">Let's = take VM.getStats as an example.</div><div class=3D"">This is the entry = in the schema:</div><div class=3D""> </div><div class=3D""><div = class=3D"">VM.getStats: = = = </div><div = class=3D""> added: '3.1' = = = </div><div = class=3D""> description: Get statistics about a running = virtual machine. = </div><div class=3D""> params: = = = = </div><div class=3D""> - description: = The UUID of the VM = = </div><div class=3D""> = name: vmID = = = </div><div class=3D""> = type: *UUID = = = </div><div class=3D""> return: = = = = </div><div class=3D""> = description: An array containing a single VmStats record = </div><div = class=3D""> type: = = = = </div><div class=3D""> - *VmStats = = = = </div></div><div class=3D""> </div><div class=3D"">namespace: = VM</div><div class=3D"">method name: getStats</div><div class=3D"">params:= vmID</div><div class=3D""> </div><div class=3D"">The vdsm-client = command is:</div><div class=3D""> </div><div class=3D""># = vdsm-client VM getStats = vmID=3Db3f6fa00-b315-4ad4-8108-f73da817b5c5</div><div = class=3D""> </div><div class=3D""> </div><div class=3D""><div = class=3D""><b class=3D""><u class=3D"">Invoking getVdsCaps = command:</u></b></div><div class=3D""> </div><div class=3D""># = vdsm-client Host getCapabilities</div></div><div = class=3D""> </div><div class=3D""><div class=3D""> </div><div = class=3D""> </div><div class=3D"">Please consult vdsm-client help = and man page for further details and options.</div><div = class=3D""> </div><div class=3D""> </div><div = class=3D""> </div><div class=3D"">[1]<span = class=3D"Apple-converted-space"> </span><a = href=3D"https://github.com/oVirt/vdsm/blob/master/lib/api/vdsm-api.yml" = class=3D"">https://github.com/oVirt/vdsm/blob/master/lib/api/vdsm-api.yml<= /a></div><div class=3D""> </div>--<div class=3D"gmail_signature"><div= dir=3D"ltr" class=3D"">Irit Goihman<div class=3D"">Software = Engineer</div><div class=3D"">Red Hat Israel = Ltd.</div></div></div></div></div></blockquote><br style=3D"font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant-caps: = normal; font-weight: normal; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><br = style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: normal; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" = class=3D""><span style=3D"font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant-caps: normal; font-weight: normal; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; float: none; display: inline = !important;" = class=3D"">_______________________________________________</span><br = style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: normal; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" = class=3D""><span style=3D"font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant-caps: normal; font-weight: normal; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; float: none; display: inline = !important;" class=3D"">Users mailing list</span><br style=3D"font-family:= Helvetica; font-size: 12px; font-style: normal; font-variant-caps: = normal; font-weight: normal; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><a = href=3D"mailto:Users@ovirt.org" style=3D"font-family: Helvetica; = font-size: 12px; font-style: normal; font-variant-caps: normal; = font-weight: normal; letter-spacing: normal; orphans: auto; text-align: = start; text-indent: 0px; text-transform: none; white-space: normal; = widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; = -webkit-text-stroke-width: 0px;" class=3D"">Users@ovirt.org</a><br = style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: normal; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><a = href=3D"http://lists.ovirt.org/mailman/listinfo/users" = style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: normal; letter-spacing: normal; = orphans: auto; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: auto; word-spacing: 0px; = -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" = class=3D"">http://lists.ovirt.org/mailman/listinfo/users</a></div></blockq= uote></div><br class=3D""></body></html>= --Apple-Mail=_DABC6D3E-089C-4507-B371-9F1FC1C6E673--

<div><span style=3D"font-family: Helvetica; font-size: 12px; fon= t-style: normal; font-variant-caps: normal; font-weight: normal; letter= -spacing: normal; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width= : 0px; float: none; display: inline !important;">Hi all,</span><br styl= e=3D"font-family: Helvetica; font-size: 12px; font-style: normal; font-= variant-caps: normal; font-weight: normal; letter-spacing: normal; text= -align: start; text-indent: 0px; text-transform: none; white-space: nor= mal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" /><span style=3D= "font-family: Helvetica; font-size: 12px; font-style: normal; font-vari= ant-caps: normal; font-weight: normal; letter-spacing: normal; text-ali= gn: start; text-indent: 0px; text-transform: none; white-space: normal;= word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; displa= y: inline !important;">I can't find any exhaustive doc for new vdsm-cli= ent. My problem actually is a task (export a vm to OVA) blocked.</span>= </div></blockquote><div> </div>if you want to interact with that a= ction it would always be best to start with engine=E2=80=99s REST API r= ather than internal host-side API</div><div> <blockquote type=3D"c= ite"><div><span style=3D"font-family: Helvetica; font-size: 12px; font-=
<br style=3D"font-family: Helvetica; font-size: 12px; font-style: norm= al; font-variant-caps: normal; font-weight: normal; letter-spacing: nor= mal; text-align: start; text-indent: 0px; text-transform: none; white-s=
------=_=-_OpenGroupware_org_NGMime-17652-1523629173.596750-74------ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Length: 9508 Ok I see, thank you.=C2=A0 vdsm-client Host getAllTasksStatuses works on the SPM. But vdsm-client Task getInfo TaskID=3DTaskID=3D55cbec7f-e7dc-4431-bce9-8ec1= d61a7feb returns : vdsm-client: Command Task.getInfo with args {'TaskID': '55cbec7f-e7dc-4= 431-bce9-8ec1d61a7feb'} failed: (code=3D-32603, message=3DInternal JSON-RPC error: {'reason': '=5F=5Fin= it=5F=5F() takes exactly 2 arguments (1 given)'}) There is no examples with tasks below, and the link to github ends in 4= 04... I'll try to find some docs about API, and tasks management, if you beli= eve that's best. Any link to share ? Thanks, Frank =C2=A0 Le Vendredi, Avril 13, 2018 14:41 CEST, Michal Skrivanek <michal.skriva= nek@redhat.com> a =C3=A9crit: =C2=A0=C2=A0=C2=A0On 13 Apr 2018, at 10:14, fsoyer <fsoyer@systea.fr> w= rote:=C2=A0Hi all, I can't find any exhaustive doc for new vdsm-client. My problem actuall= y is a task (export a vm to OVA) blocked.=C2=A0if you want to interact = with that action it would always be best to start with engine=E2=80=99s= REST API rather than internal host-side API=C2=A0I found that I can in= teract with vdsm-client Task getInfo taskID=3D<uuid>, and replace getInfo by "stop"= , BUT : how can I find this UUID ???Old "vdsClient -s 0 getAllTasksStat= uses" has no equivalent ??=C2=A0that=E2=80=99s a Host class api, vdsm-c= lient Host getAllTasksStatuses Does someone knows if a complete doc exists dot vdsm-client ?=C2=A0the = man page mentioned below and source code. this is not a public API=C2=A0= Thanks,michal=C2=A0Thanks Frank =C2=A0 Le Mercredi, Janvier 25, 2017 12:30 CET, Irit Goihman <igoihman@redhat.= com> a =C3=A9crit: =C2=A0Hi All,=C2=A0vdsClient will be removed from master branch today.I= t is using XMLRPC protocol which has been deprecated and replaced by JS= ON-RPC.=C2=A0A new client for vdsm was introduced in 4.1: vdsm-client.T= his is a simple client that uses JSON-RPC protocol which was introduced= in ovirt 3.5.=C2=A0The client is not aware of the available methods an= d parameters, and you should consult=C2=A0the schema [1] in order to co= nstruct the desired command.=C2=A0Future version should parse the schem= a and provide online help.=C2=A0=C2=A0If you're using vdsClient, we wil= l be happy to assist you in migrating to the new vdsm client.=C2=A0=C2=A0= =C2=A0vdsm-client usage:=C2=A0vdsm-client [-h] [-a ADDRESS] [-p PORT] [= --unsecure] [--timeout TIMEOUT]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0[-f FILE] namespace method [name=3Dvalue [n= ame=3Dvalue] ...]=C2=A0=C2=A0Invoking simple methods:=C2=A0# vdsm-clien= t Host getVMList['b3f6fa00-b315-4ad4-8108-f73da817b5c5']=C2=A0For invok= ing methods with many or complex parameters, you can read the=C2=A0para= meters from a JSON format file:=C2=A0# vdsm-client Lease info -f lease.= json=C2=A0where lease.json file content is:=C2=A0{ =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A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=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2= =A0 } =C2=A0=C2=A0It is also possible to read parameters from standard = input, creating complex=C2=A0parameters interactively:=C2=A0# cat <<EOF= | vdsm-client Lease info -f - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0=C2=A0 =C2=A0 =C2=A0{ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"lease": { =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"sd=5Fid": "75ab40e3-06b1-4a54-a8= 25-2df7a40b93b2", =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"le= ase=5Fid": "b3f6fa00-b315-4ad4-8108-f73da817b5c5" =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0} =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 =C2=A0} =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 EOF =C2=A0=C2= =A0=C2=A0Constructing a command from vdsm schema:=C2=A0Let's take VM.ge= tStats as an example.This is the entry in the schema:=C2=A0VM.getStats:= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=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=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0=C2=A0namespace: VMmethod name: getStatsparams: vmID=C2=A0The vds= m-client command is:=C2=A0# vdsm-client VM=C2=A0getStats vmID=3Db3f6fa0= 0-b315-4ad4-8108-f73da817b5c5=C2=A0=C2=A0Invoking getVdsCaps command:=C2= =A0# vdsm-client Host=C2=A0getCapabilities=C2=A0=C2=A0=C2=A0Please cons= ult vdsm-client help and man page for further details and options.=C2=A0= =C2=A0=C2=A0[1]=C2=A0https://github.com/oVirt/vdsm/blob/master/lib/api/= vdsm-api.yml=C2=A0--Irit GoihmanSoftware EngineerRed Hat Israel Ltd. =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ------=_=-_OpenGroupware_org_NGMime-17652-1523629173.596750-74------ Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Length: 21124 <html>Ok I see, thank you. <br />vdsm-client Host getAllTasksStatu= ses works on the SPM.<br />But<br />vdsm-client Task getInfo TaskID=3DT= askID=3D55cbec7f-e7dc-4431-bce9-8ec1d61a7feb<br />returns :<br />vdsm-c= lient: Command Task.getInfo with args {'TaskID': '55cbec7f-e7dc-4431-bc= e9-8ec1d61a7feb'} failed:<br />(code=3D-32603, message=3DInternal JSON-= RPC error: {'reason': '=5F=5Finit=5F=5F() takes exactly 2 arguments (1 = given)'})<br /><br />There is no examples with tasks below, and the lin= k to github ends in 404...<br /><br />I'll try to find some docs about = API, and tasks management, if you believe that's best. Any link to shar= e ?<br /><br />Thanks,<br />Frank<p class=3D"Text2"> </p><br />Le = Vendredi, Avril 13, 2018 14:41 CEST, Michal Skrivanek <michal.skriva= nek@redhat.com> a =C3=A9crit:<br /> <blockquote type=3D"cite" c= ite=3D"4BD97EE5-5A02-499B-860E-AD76BF1B7CBA@redhat.com"> </blockqu= ote><meta http-equiv=3D"Content-Type" content=3D"text/html; "><div>&nbs= p;<blockquote type=3D"cite"><div>On 13 Apr 2018, at 10:14, fsoyer <<= a href=3D"mailto:fsoyer@systea.fr">fsoyer@systea.fr</a>> wrote:</div= style: normal; font-variant-caps: normal; font-weight: normal; letter-s= pacing: normal; text-align: start; text-indent: 0px; text-transform: no= ne; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: = 0px; float: none; display: inline !important;">I found that I can inter= act with</span><br style=3D"font-family: Helvetica; font-size: 12px; fo= nt-style: normal; font-variant-caps: normal; font-weight: normal; lette= r-spacing: normal; text-align: start; text-indent: 0px; text-transform:= none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-widt= h: 0px;" /><span style=3D"font-family: Helvetica; font-size: 12px; font= -style: normal; font-variant-caps: normal; font-weight: normal; letter-= spacing: normal; text-align: start; text-indent: 0px; text-transform: n= one; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width:= 0px; float: none; display: inline !important;">vdsm-client Task getInf= o taskID=3D<uuid>, and replace getInfo by "stop", BUT : how can I= find this UUID ???</span></div></blockquote><blockquote type=3D"cite">= <div><span style=3D"font-family: Helvetica; font-size: 12px; font-style= : normal; font-variant-caps: normal; font-weight: normal; letter-spacin= g: normal; text-align: start; text-indent: 0px; text-transform: none; w= hite-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = float: none; display: inline !important;">Old "vdsClient -s 0 getAllTas= ksStatuses" has no equivalent ??</span></div></blockquote><div> </= div>that=E2=80=99s a Host class api, vdsm-client Host getAllTasksStatus= es<blockquote type=3D"cite"><div><br style=3D"font-family: Helvetica; f= ont-size: 12px; font-style: normal; font-variant-caps: normal; font-wei= ght: normal; letter-spacing: normal; text-align: start; text-indent: 0p= x; text-transform: none; white-space: normal; word-spacing: 0px; -webki= t-text-stroke-width: 0px;" /><span style=3D"font-family: Helvetica; fon= t-size: 12px; font-style: normal; font-variant-caps: normal; font-weigh= t: normal; letter-spacing: normal; text-align: start; text-indent: 0px;= text-transform: none; white-space: normal; word-spacing: 0px; -webkit-= text-stroke-width: 0px; float: none; display: inline !important;">Does = someone knows if a complete doc exists dot vdsm-client ?</span></div></= blockquote><div> </div>the man page mentioned below and source cod= e. this is not a public API</div><div> </div><div>Thanks,</div><di= v>michal</div><div> <blockquote type=3D"cite"><div><span style=3D"= font-family: Helvetica; font-size: 12px; font-style: normal; font-varia= nt-caps: normal; font-weight: normal; letter-spacing: normal; text-alig= n: start; text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display= : inline !important;">Thanks</span><br style=3D"font-family: Helvetica;= font-size: 12px; font-style: normal; font-variant-caps: normal; font-w= eight: normal; letter-spacing: normal; text-align: start; text-indent: = 0px; text-transform: none; white-space: normal; word-spacing: 0px; -web= kit-text-stroke-width: 0px;" /><span style=3D"font-family: Helvetica; f= ont-size: 12px; font-style: normal; font-variant-caps: normal; font-wei= ght: normal; letter-spacing: normal; text-align: start; text-indent: 0p= x; text-transform: none; white-space: normal; word-spacing: 0px; -webki= t-text-stroke-width: 0px; float: none; display: inline !important;">Fra= nk</span><p class=3D"Text2" style=3D"font-size: 7pt; font-family: Verda= na; font-style: normal; font-variant-caps: normal; font-weight: normal;= letter-spacing: normal; text-align: start; text-indent: 0px; text-tran= sform: none; white-space: normal; word-spacing: 0px; -webkit-text-strok= e-width: 0px;"><br /> </p><br style=3D"font-family: Helvetica; fon= t-size: 12px; font-style: normal; font-variant-caps: normal; font-weigh= t: normal; letter-spacing: normal; text-align: start; text-indent: 0px;= text-transform: none; white-space: normal; word-spacing: 0px; -webkit-= text-stroke-width: 0px;" /><br style=3D"font-family: Helvetica; font-si= ze: 12px; font-style: normal; font-variant-caps: normal; font-weight: n= ormal; letter-spacing: normal; text-align: start; text-indent: 0px; tex= t-transform: none; white-space: normal; word-spacing: 0px; -webkit-text= -stroke-width: 0px;" /><span style=3D"font-family: Helvetica; font-size= : 12px; font-style: normal; font-variant-caps: normal; font-weight: nor= mal; letter-spacing: normal; text-align: start; text-indent: 0px; text-= transform: none; white-space: normal; word-spacing: 0px; -webkit-text-s= troke-width: 0px; float: none; display: inline !important;">Le Mercredi= , Janvier 25, 2017 12:30 CET, Irit Goihman <<a href=3D"mailto:igoihm= an@redhat.com">igoihman@redhat.com</a>> a =C3=A9crit:</span><br styl= e=3D"font-family: Helvetica; font-size: 12px; font-style: normal; font-= variant-caps: normal; font-weight: normal; letter-spacing: normal; text= -align: start; text-indent: 0px; text-transform: none; white-space: nor= mal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" /><span style=3D= "font-family: Helvetica; font-size: 12px; font-style: normal; font-vari= ant-caps: normal; font-weight: normal; letter-spacing: normal; text-ali= gn: start; text-indent: 0px; text-transform: none; white-space: normal;= word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; displa= y: inline !important;"> </span><blockquote type=3D"cite" cite=3D"x= -msg://71/CAA=3Di7HMsB7iRYqP9yyBx4w7pGer9rTE9wkJZRgcmXRQMaJezwg@mail.gm= ail.com" style=3D"font-family: Helvetica; font-size: 12px; font-style: = normal; font-variant-caps: normal; font-weight: normal; letter-spacing:= normal; orphans: auto; text-align: start; text-indent: 0px; text-trans= form: none; white-space: normal; widows: auto; word-spacing: 0px; -webk= it-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><div dir=3D= "ltr">Hi All,<div> </div><div>vdsClient will be removed from maste= r branch today.</div><div>It is using XMLRPC protocol which has been de= precated and replaced by JSON-RPC.</div><div> </div><div>A new cli= ent for vdsm was introduced in 4.1: vdsm-client.</div><div>This is a si= mple client that uses JSON-RPC protocol which was introduced in ovirt 3= .5.</div><div> </div><div>The client is not aware of the available= methods and parameters, and you should consult </div><div>the sch= ema [1] in order to construct the desired command.</div><div> </di= v><div>Future version should parse the schema and provide online help.<= /div><div> </div><div> </div><div>If you're using vdsClient, = we will be happy to assist you in migrating to the new vdsm client.</di= v><div> </div><div> </div><div> </div><div><b><u>vdsm-cl= ient usage:</u></b></div><div> </div><div><div>vdsm-client [-h] [-= a ADDRESS] [-p PORT] [--unsecure] [--timeout TIMEOUT]</div><div> = [-f FILE]= namespace method [name=3Dvalue [name=3Dvalue] ...]</div></div><div>&nb= sp;</div><div> </div><div><div>Invoking simple methods:</div><div>= </div><div># vdsm-client Host getVMList</div><div>['b3f6fa00-b315= -4ad4-8108-f73da817b5c5']</div></div><div> </div><div>For invoking= methods with many or complex parameters, you can read the paramet= ers from a JSON format file:</div><div> </div><div># vdsm-client L= ease info -f lease.json</div><div> </div><div>where lease.json fil= e content is:</div><div> </div><div><div>{ &n= bsp; &nb= sp; &nbs= p;  = ; </div><div> &nb= sp; "lease": { = &= nbsp; &n= bsp; </div><div> &= nbsp; "sd=5Fid": "75ab40e3-06b1-4a54-a825-2df7a40b93b2", = </d= iv><div> "lease=5Fid": = "b3f6fa00-b315-4ad4-8108-f73da817b5c5" &nbs= p; </div><div> &nb= sp; } &n= bsp; &nb= sp; &nbs= p; </div><div> } = </div></div><div> </div><div>It is also possible to read par= ameters from standard input, creating complex parameters interacti= vely:</div><div> </div><div><div># cat <<EOF | vdsm-client L= ease info -f - = </= div><div> {  = ; = = &= nbsp; </div><div> "lease": { &nb= sp; &nbs= p;  = ; = </div><div> "sd=5F= id": "75ab40e3-06b1-4a54-a825-2df7a40b93b2",  = ; </div><div> &nbs= p; "lease=5Fid": "b3f6fa00-b315-4ad4-= 8108-f73da817b5c5" &nb= sp; </div><div> } &= nbsp; &n= bsp; &nb= sp; &nbs= p; </div><div> } &= nbsp; &n= bsp; &nb= sp; &nbs= p; </div><div> EO= F </div></div><div> </div><div> </div><div><b><u>Constr= ucting a command from vdsm schema:</u></b></div><div> </div><div>L= et's take VM.getStats as an example.</div><div>This is the entry in the= schema:</div><div> </div><div><div>VM.getStats: &nb= sp; &nbs= p;  = ; = </div><div> added: '3.1'  = ; = = </div><div> = ; description: Get statistics about a running virtual machine. &= nbsp; </div><div> = params: = = &= nbsp; </div><div> = - description: The UUID of the VM &n= bsp; &nb= sp; </div><div> &n= bsp; name: vmID = = &= nbsp; </div><div> type: = *UUID &n= bsp; &nb= sp; &nbs= p; </div><div> return: &n= bsp; &nb= sp; &nbs= p; = </div><div> description: An array containing= a single VmStats record &nbs= p; </div><div> type: &nb= sp; &nbs= p;  = ; = </div><div> - *VmStats &= nbsp; &n= bsp; &nb= sp; </div></div>= <div> </div><div>namespace: VM</div><div>method name: getStats</di= v><div>params: vmID</div><div> </div><div>The vdsm-client command = is:</div><div> </div><div># vdsm-client VM getStats vmID=3Db3= f6fa00-b315-4ad4-8108-f73da817b5c5</div><div> </div><div> </d= iv><div><div><b><u>Invoking getVdsCaps command:</u></b></div><div> = ;</div><div># vdsm-client Host getCapabilities</div></div><div>&nb= sp;</div><div><div> </div><div> </div><div>Please consult vds= m-client help and man page for further details and options.</div><div>&= nbsp;</div><div> </div><div> </div><div>[1]<span class=3D"App= le-converted-space"> </span><a href=3D"https://github.com/oVirt/vd= sm/blob/master/lib/api/vdsm-api.yml">https://github.com/oVirt/vdsm/blob= /master/lib/api/vdsm-api.yml</a></div><div> </div>--<div class=3D"= gmail=5Fsignature"><div dir=3D"ltr">Irit Goihman<div>Software Engineer<= /div><div>Red Hat Israel Ltd.</div></div></div></div></div></blockquote= pace: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" /><br= style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: normal; letter-spacing: normal;= text-align: start; text-indent: 0px; text-transform: none; white-space= : normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" /><span s= tyle=3D"font-family: Helvetica; font-size: 12px; font-style: normal; fo= nt-variant-caps: normal; font-weight: normal; letter-spacing: normal; t= ext-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none;= display: inline !important;">=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F</span><br style=3D"font-family: Helvetica; = font-size: 12px; font-style: normal; font-variant-caps: normal; font-we= ight: normal; letter-spacing: normal; text-align: start; text-indent: 0= px; text-transform: none; white-space: normal; word-spacing: 0px; -webk= it-text-stroke-width: 0px;" /><span style=3D"font-family: Helvetica; fo= nt-size: 12px; font-style: normal; font-variant-caps: normal; font-weig= ht: normal; letter-spacing: normal; text-align: start; text-indent: 0px= ; text-transform: none; white-space: normal; word-spacing: 0px; -webkit= -text-stroke-width: 0px; float: none; display: inline !important;">User= s mailing list</span><br style=3D"font-family: Helvetica; font-size: 12= px; font-style: normal; font-variant-caps: normal; font-weight: normal;= letter-spacing: normal; text-align: start; text-indent: 0px; text-tran= sform: none; white-space: normal; word-spacing: 0px; -webkit-text-strok= e-width: 0px;" /><a style=3D"font-family: Helvetica; font-size: 12px; f= ont-style: normal; font-variant-caps: normal; font-weight: normal; lett= er-spacing: normal; orphans: auto; text-align: start; text-indent: 0px;= text-transform: none; white-space: normal; widows: auto; word-spacing:= 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" = href=3D"mailto:Users@ovirt.org">Users@ovirt.org</a><br style=3D"font-fa= mily: Helvetica; font-size: 12px; font-style: normal; font-variant-caps= : normal; font-weight: normal; letter-spacing: normal; text-align: star= t; text-indent: 0px; text-transform: none; white-space: normal; word-sp= acing: 0px; -webkit-text-stroke-width: 0px;" /><a style=3D"font-family:= Helvetica; font-size: 12px; font-style: normal; font-variant-caps: nor= mal; font-weight: normal; letter-spacing: normal; orphans: auto; text-a= lign: start; text-indent: 0px; text-transform: none; white-space: norma= l; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -we= bkit-text-stroke-width: 0px;" href=3D"http://lists.ovirt.org/mailman/li= stinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a></div></= blockquote></div><br /><br /><style type=3D"text/css">.Text1 { color: black; font-size:9pt; font-family:Verdana; } .Text2 { color: black; font-size:7pt; font-family:Verdana; }</style></html> ------=_=-_OpenGroupware_org_NGMime-17652-1523629173.596750-74--------

On Fri, Apr 13, 2018 at 11:14 AM, fsoyer <fsoyer@systea.fr> wrote:
Hi all, I can't find any exhaustive doc for new vdsm-client. My problem actually is a task (export a vm to OVA) blocked.
I'm afraid you won't find any task in VDSM for 'export a VM to OVA'. Expoting a VM to OVA is comprised of three steps: 1. Creating temporary cloned disks - you'll find a task of copy-image-group for each disk. 2. Creating the OVA file - that's done by a python script executed by ansible, there is no task for that in VDSM. 3. Removing the temporary cloned disks - you'll find a task of remove-image for each disk. Can you please elaborate on the problem you're having - where do you see that task and how can you see that it's blocked?
I found that I can interact with vdsm-client Task getInfo taskID=<uuid>, and replace getInfo by "stop", BUT : how can I find this UUID ??? Old "vdsClient -s 0 getAllTasksStatuses" has no equivalent ??
Does someone knows if a complete doc exists dot vdsm-client ? Thanks Frank
Le Mercredi, Janvier 25, 2017 12:30 CET, Irit Goihman <igoihman@redhat.com> a écrit:
Hi All,
vdsClient will be removed from master branch today. It is using XMLRPC protocol which has been deprecated and replaced by JSON-RPC.
A new client for vdsm was introduced in 4.1: vdsm-client. This is a simple client that uses JSON-RPC protocol which was introduced in ovirt 3.5.
The client is not aware of the available methods and parameters, and you should consult the schema [1] in order to construct the desired command.
Future version should parse the schema and provide online help.
If you're using vdsClient, we will be happy to assist you in migrating to the new vdsm client.
*vdsm-client usage:*
vdsm-client [-h] [-a ADDRESS] [-p PORT] [--unsecure] [--timeout TIMEOUT] [-f FILE] namespace method [name=value [name=value] ...]
Invoking simple methods:
# vdsm-client Host getVMList ['b3f6fa00-b315-4ad4-8108-f73da817b5c5']
For invoking methods with many or complex parameters, you can read the parameters from a JSON format file:
# vdsm-client Lease info -f lease.json
where lease.json file content is:
{
"lease": {
"sd_id": "75ab40e3-06b1-4a54-a825-2df7a40b93b2",
"lease_id": "b3f6fa00-b315-4ad4-8108-f73da817b5c5"
}
}
It is also possible to read parameters from standard input, creating complex parameters interactively:
# cat <<EOF | vdsm-client Lease info -f -
{
"lease": {
"sd_id": "75ab40e3-06b1-4a54-a825-2df7a40b93b2",
"lease_id": "b3f6fa00-b315-4ad4-8108-f73da817b5c5"
}
}
EOF
*Constructing a command from vdsm schema:*
Let's take VM.getStats as an example. This is the entry in the schema:
VM.getStats:
added: '3.1'
description: Get statistics about a running virtual machine.
params:
- description: The UUID of the VM
name: vmID
type: *UUID
return:
description: An array containing a single VmStats record
type:
- *VmStats
namespace: VM method name: getStats params: vmID
The vdsm-client command is:
# vdsm-client VM getStats vmID=b3f6fa00-b315-4ad4-8108-f73da817b5c5
*Invoking getVdsCaps command:*
# vdsm-client Host getCapabilities
Please consult vdsm-client help and man page for further details and options.
[1] https://github.com/oVirt/vdsm/blob/master/lib/api/vdsm-api.yml
-- Irit Goihman Software Engineer Red Hat Israel Ltd.
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

I found that I can interact with<br />vdsm-client Task getInfo taskID=3D= <uuid>, and replace getInfo by "stop", BUT : how can I find this = UUID ???<br />Old "vdsClient -s 0 getAllTasksStatuses" has no equivalen= t ??<br /><br />Does someone knows if a complete doc exists dot vdsm-cl= ient ?<br />Thanks<br />Frank<p class=3D"m=5F-7891996504513696655Text2"= <br /> </p><br /><br />Le Mercredi, Janvier 25, 2017 12:30 CET, I= rit Goihman <<a target=3D"=5Fblank" href=3D"mailto:igoihman@redhat.c= om">igoihman@redhat.com</a>> a =C3=A9crit:<br /> <blockquote ty=
vdsClient will be removed from master branch today.</div><div>It is us= ing XMLRPC protocol which has been deprecated and replaced by JSON-RPC.= </div><div> </div><div>A new client for vdsm was introduced in 4.1= : vdsm-client.</div><div>This is a simple client that uses JSON-RPC pro= tocol which was introduced in ovirt 3.5.</div><div> </div><div>The= client is not aware of the available methods and parameters, and you s= hould consult </div><div>the schema [1] in order to construct the = desired command.</div><div> </div><div>Future version should parse=
------=_=-_OpenGroupware_org_NGMime-17652-1523634867.580834-85------ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Length: 10163 Hi, This task is listed (since 2 days) in the GUI / up right "tasks" icon. = It is visibly freezed as no OVA file has been created, but no errors in= GUI, just... it runs. Or : it loops :) This (test) vm is one on which I have extended the disk (50 -> 100G). B= efore being stopped and trying to export it to OVA, it works fine. All = other vms around can be well exported but not this one. I've tried to r= estart engine, change SPM, restart one by one each node, but the task i= s always here. I could even restart the vm today without error and it w= orks fine ! But... the task runs... Today also, I tried to clone the vm : same thing, now I have 2 tasks ru= nning indefinitly :( Strange bug, where no timeout stopped the tasks in error. I can't see a= ny revelant things in engine.log or vdsm.log, but probably I've not see= n them in all the messages. No problem to remove this (test) vm and try on another (test) one (exte= nd disk to see if this is the reason of the problem). But before I want= to kill this tasks ! Thanks. Frank =C2=A0Le Vendredi, Avril 13, 2018 16:24 CEST, Arik Hadas <ahadas@redhat= .com> a =C3=A9crit: =C2=A0=C2=A0=C2=A0On Fri, Apr 13, 2018 at 11:14 AM, fsoyer <fsoyer@syst= ea.fr> wrote:Hi all, I can't find any exhaustive doc for new vdsm-client. My problem actuall= y is a task (export a vm to OVA) blocked.=C2=A0I'm afraid you won't fin= d any task in VDSM for 'export a VM to OVA'.Expoting a VM to OVA is com= prised of three steps:1. Creating temporary cloned disks - you'll find = a task of copy-image-group for each disk.2. Creating the OVA file - tha= t's done by a python script executed by ansible, there is no task for t= hat in VDSM.3. Removing the temporary cloned disks - you'll find a task= of remove-image for each disk.=C2=A0Can you please elaborate on the pr= oblem you're having - where do you see that task and how can you see th= at it's blocked?=C2=A0I found that I can interact with vdsm-client Task getInfo taskID=3D<uuid>, and replace getInfo by "stop"= , BUT : how can I find this UUID ??? Old "vdsClient -s 0 getAllTasksStatuses" has no equivalent ?? Does someone knows if a complete doc exists dot vdsm-client ? Thanks Frank =C2=A0 Le Mercredi, Janvier 25, 2017 12:30 CET, Irit Goihman <igoihman@redhat.= com> a =C3=A9crit: =C2=A0Hi All,=C2=A0vdsClient will be removed from master branch today.I= t is using XMLRPC protocol which has been deprecated and replaced by JS= ON-RPC.=C2=A0A new client for vdsm was introduced in 4.1: vdsm-client.T= his is a simple client that uses JSON-RPC protocol which was introduced= in ovirt 3.5.=C2=A0The client is not aware of the available methods an= d parameters, and you should consult=C2=A0the schema [1] in order to co= nstruct the desired command.=C2=A0Future version should parse the schem= a and provide online help.=C2=A0=C2=A0If you're using vdsClient, we wil= l be happy to assist you in migrating to the new vdsm client.=C2=A0=C2=A0= =C2=A0vdsm-client usage:=C2=A0vdsm-client [-h] [-a ADDRESS] [-p PORT] [= --unsecure] [--timeout TIMEOUT]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0[-f FILE] namespace method [name=3Dvalue [n= ame=3Dvalue] ...]=C2=A0=C2=A0Invoking simple methods:=C2=A0# vdsm-clien= t Host getVMList['b3f6fa00-b315-4ad4-8108-f73da817b5c5']=C2=A0For invok= ing methods with many or complex parameters, you can read the=C2=A0para= meters from a JSON format file:=C2=A0# vdsm-client Lease info -f lease.= json=C2=A0where lease.json file content is:=C2=A0{ =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "lease":= { =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "sd=5Fid": "7= 5ab40e3-06b1-4a54-a825-2df7a40b93b2", =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 "lease=5Fid": "b3f6fa00-b315-4ad4-8108-f73da817b5c5" = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 } =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2= =A0 } =C2=A0=C2=A0It is also possible to read parameters from standard = input, creating complex=C2=A0parameters interactively:=C2=A0# cat <<EOF= | vdsm-client Lease info -f - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0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=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0=C2=A0=C2=A0 =C2=A0 return: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0= =C2=A0 =C2=A0 description: An array containing a single VmStats record= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 =C2= =A0 =C2=A0 type: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 - *VmS= tats =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0=C2=A0namespace: VMmethod name: getStatsparams: vmID=C2=A0The vds= m-client command is:=C2=A0# vdsm-client VM=C2=A0getStats vmID=3Db3f6fa0= 0-b315-4ad4-8108-f73da817b5c5=C2=A0=C2=A0Invoking getVdsCaps command:=C2= =A0# vdsm-client Host=C2=A0getCapabilities=C2=A0=C2=A0=C2=A0Please cons= ult vdsm-client help and man page for further details and options.=C2=A0= =C2=A0=C2=A0[1] https://github.com/oVirt/vdsm/blob/master/lib/api/vdsm-= api.yml=C2=A0--Irit GoihmanSoftware EngineerRed Hat Israel Ltd. =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users =C2=A0 ------=_=-_OpenGroupware_org_NGMime-17652-1523634867.580834-85------ Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Length: 13427 <html>Hi,<br />This task is listed (since 2 days) in the GUI / up right= "tasks" icon. It is visibly freezed as no OVA file has been created, b= ut no errors in GUI, just... it runs. Or : it loops :)<br />This (test)= vm is one on which I have extended the disk (50 -> 100G). Before be= ing stopped and trying to export it to OVA, it works fine. All other vm= s around can be well exported but not this one. I've tried to restart e= ngine, change SPM, restart one by one each node, but the task is always= here. I could even restart the vm today without error and it works fin= e ! But... the task runs...<br />Today also, I tried to clone the vm : = same thing, now I have 2 tasks running indefinitly :(<br /><br />Strang= e bug, where no timeout stopped the tasks in error. I can't see any rev= elant things in engine.log or vdsm.log, but probably I've not seen them= in all the messages.<br />No problem to remove this (test) vm and try = on another (test) one (extend disk to see if this is the reason of the = problem). But before I want to kill this tasks !<br /><br />Thanks.<br = />Frank<p class=3D"Text2"><br /> </p>Le Vendredi, Avril 13, 2018 1= 6:24 CEST, Arik Hadas <ahadas@redhat.com> a =C3=A9crit:<br />&nbs= p;<blockquote type=3D"cite" cite=3D"CAMCgCFGSJRUVE3pAhwoFZcmjzOBY=5FJgP= hYrkEgF6e7tB=3D+2oyw@mail.gmail.com"><div dir=3D"ltr"> <div class=3D= "gmail=5Fextra"> <div class=3D"gmail=5Fquote">On Fri, Apr 13, 2018= at 11:14 AM, fsoyer <span dir=3D"ltr"><<a target=3D"=5Fblank" href=3D= "mailto:fsoyer@systea.fr">fsoyer@systea.fr</a>></span> wrote:<blockq= uote class=3D"gmail=5Fquote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">Hi all,<br />I can't find any exhaustive = doc for new vdsm-client. My problem actually is a task (export a vm to = OVA) blocked.</blockquote><div> </div><div>I'm afraid you won't fi= nd any task in VDSM for 'export a VM to OVA'.</div><div>Expoting a VM t= o OVA is comprised of three steps:</div><div>1. Creating temporary clon= ed disks - you'll find a task of copy-image-group for each disk.</div><= div>2. Creating the OVA file - that's done by a python script executed = by ansible, there is no task for that in VDSM.</div><div>3. Removing th= e temporary cloned disks - you'll find a task of remove-image for each = disk.</div><div> </div><div>Can you please elaborate on the proble= m you're having - where do you see that task and how can you see that i= t's blocked?</div><div> </div><blockquote class=3D"gmail=5Fquote" = style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"= pe=3D"cite" cite=3D"http://CAA=3Di7HMsB7iRYqP9yyBx4w7pGer9rTE9wkJZRgcmX= RQMaJezwg@mail.gmail.com"><div dir=3D"ltr">Hi All,<div> </div><div= the schema and provide online help.</div><div> </div><div> <= /div><div>If you're using vdsClient, we will be happy to assist you in = migrating to the new vdsm client.</div><div> </div><div> </di= v><div> </div><div><b><u>vdsm-client usage:</u></b></div><div>&nbs= p;</div><div><div>vdsm-client [-h] [-a ADDRESS] [-p PORT] [--unsecure] = [--timeout TIMEOUT]</div><div> = [-f FILE] namespace method [name=3Dvalue [n= ame=3Dvalue] ...]</div></div><div> </div><div> </div><div><di= v>Invoking simple methods:</div><div> </div><div># vdsm-client Hos= t getVMList</div><div>['b3f6fa00-b315-4ad4-8108-<wbr />f73da817b5c5']</= div></div><div> </div><div>For invoking methods with many or compl= ex parameters, you can read the parameters from a JSON format file= :</div><div> </div><div># vdsm-client Lease info -f lease.json</di= v><div> </div><div>where lease.json file content is:</div><div>&nb= sp;</div><div><div>{ &= nbsp; &n= bsp; &nb= sp; &nbs= p;</div><div> "lease": {  = ; = = </d= iv><div> "sd=5Fid": "75= ab40e3-06b1-4a54-a825-<wbr />2df7a40b93b2", = </div><div>  = ; "lease=5Fid": "b3f6fa00-b315-4ad4-= 8108-<wbr />f73da817b5c5" &nb= sp; </div><div> } = &= nbsp; &n= bsp; &nb= sp; </div><div> } </div><= /div><div> </div><div>It is also possible to read parameters from = standard input, creating complex parameters interactively:</div><d= iv> </div><div><div># cat <<EOF | vdsm-client Lease info -f = - = </div><div>&nbs= p; { &nbs= p;  = ; = <= /div><div> "lease": { &n= bsp; &nb= sp; &nbs= p; </div><= div> "sd=5Fid": "75ab40e= 3-06b1-4a54-a825-<wbr />2df7a40b93b2", &nbs= p; </div><div> &nb= sp; "lease=5Fid": "b3f6fa00-b315-4ad4-8108-<= wbr />f73da817b5c5" &n= bsp; </div><div> } = &= nbsp; &n= bsp; &nb= sp; </div><div> } = &= nbsp; &n= bsp; &nb= sp; </div><div> E= OF </div></div><div> </div><div> </div><div><b><u>Const= ructing a command from vdsm schema:</u></b></div><div> </div><div>= Let's take VM.getStats as an example.</div><div>This is the entry in th= e schema:</div><div> </div><div><div>VM.getStats: &n= bsp; &nb= sp; &nbs= p;  = ; </div><div> added: '3.1' &nbs= p;  = ; = </div><div>&nbs= p; description: Get statistics about a running virtual machine. = </div><div> = ; params:  = ; = = </div><div> = - description: The UUID of the VM &= nbsp; &n= bsp; </div><div> &= nbsp; name: vmID  = ; = = </div><div> type:= *UUID &= nbsp; &n= bsp; &nb= sp; </div><div> return: &= nbsp; &n= bsp; &nb= sp;  = ;</div><div> description: An array containin= g a single VmStats record &nb= sp; </div><div> type: &n= bsp; &nb= sp; &nbs= p;  = ; </div><div> - *VmStats = &= nbsp; &n= bsp; </div></div=
<div> </div><div>namespace: VM</div><div>method name: getStats</d= iv><div>params: vmID</div><div> </div><div>The vdsm-client command= is:</div><div> </div><div># vdsm-client VM getStats vmID=3Db= 3f6fa00-b315-4ad4-8108-<wbr />f73da817b5c5</div><div> </div><div>&= nbsp;</div><div><div><b><u>Invoking getVdsCaps command:</u></b></div><d= iv> </div><div># vdsm-client Host getCapabilities</div></div>= <div> </div><div><div> </div><div> </div><div>Please con= sult vdsm-client help and man page for further details and options.</di= v><div> </div><div> </div><div> </div><div>[1] <a target= =3D"=5Fblank" href=3D"https://github.com/oVirt/vdsm/blob/master/lib/api= /vdsm-api.yml">https://github.com/oVirt/vdsm/<wbr />blob/master/lib/api= /vdsm-api.<wbr />yml</a></div><div> </div><span class=3D"HOEnZb"><= font color=3D"#888888">--</font></span><div class=3D"m=5F-7891996504513= 696655gmail=5Fsignature"><div dir=3D"ltr"><span class=3D"HOEnZb"><font =
color=3D"#888888">Irit Goihman</font></span><div><span class=3D"HOEnZb"= ><font color=3D"#888888">Software Engineer</font></span></div><div><spa= n class=3D"HOEnZb"><font color=3D"#888888">Red Hat Israel Ltd.</font></= span></div></div></div></div></div></blockquote><br /><br /><br />=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F<wbr />=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F<= br />Users mailing list<br /><a href=3D"mailto:Users@ovirt.org">Users@o= virt.org</a><br /><a rel=3D"noreferrer" target=3D"=5Fblank" href=3D"htt= p://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/<wbr= />mailman/listinfo/users</a><br /> </blockquote></div></div></div= ></blockquote><br /><br /><style type=3D"text/css">.Text1 { color: black; font-size:9pt; font-family:Verdana; } .Text2 { color: black; font-size:7pt; font-family:Verdana; }</style></html>
------=_=-_OpenGroupware_org_NGMime-17652-1523634867.580834-85--------

On Fri, Apr 13, 2018 at 6:54 PM, fsoyer <fsoyer@systea.fr> wrote:
Hi, This task is listed (since 2 days) in the GUI / up right "tasks" icon. It is visibly freezed as no OVA file has been created, but no errors in GUI, just... it runs. Or : it loops :) This (test) vm is one on which I have extended the disk (50 -> 100G). Before being stopped and trying to export it to OVA, it works fine. All other vms around can be well exported but not this one. I've tried to restart engine, change SPM, restart one by one each node, but the task is always here. I could even restart the vm today without error and it works fine ! But... the task runs... Today also, I tried to clone the vm : same thing, now I have 2 tasks running indefinitly :(
Strange bug, where no timeout stopped the tasks in error. I can't see any revelant things in engine.log or vdsm.log, but probably I've not seen them in all the messages. No problem to remove this (test) vm and try on another (test) one (extend disk to see if this is the reason of the problem). But before I want to kill this tasks !
Please don't remove that VM yet. It would be appreciated if you could file a bug and share the engine log that covers the attempt to export this VM to OVA + the ansible log of that operation.
Thanks. Frank
Le Vendredi, Avril 13, 2018 16:24 CEST, Arik Hadas <ahadas@redhat.com> a écrit:
On Fri, Apr 13, 2018 at 11:14 AM, fsoyer <fsoyer@systea.fr> wrote:
Hi all, I can't find any exhaustive doc for new vdsm-client. My problem actually is a task (export a vm to OVA) blocked.
I'm afraid you won't find any task in VDSM for 'export a VM to OVA'. Expoting a VM to OVA is comprised of three steps: 1. Creating temporary cloned disks - you'll find a task of copy-image-group for each disk. 2. Creating the OVA file - that's done by a python script executed by ansible, there is no task for that in VDSM. 3. Removing the temporary cloned disks - you'll find a task of remove-image for each disk.
Can you please elaborate on the problem you're having - where do you see that task and how can you see that it's blocked?
I found that I can interact with vdsm-client Task getInfo taskID=<uuid>, and replace getInfo by "stop", BUT : how can I find this UUID ??? Old "vdsClient -s 0 getAllTasksStatuses" has no equivalent ??
Does someone knows if a complete doc exists dot vdsm-client ? Thanks Frank
Le Mercredi, Janvier 25, 2017 12:30 CET, Irit Goihman < igoihman@redhat.com> a écrit:
Hi All,
vdsClient will be removed from master branch today. It is using XMLRPC protocol which has been deprecated and replaced by JSON-RPC.
A new client for vdsm was introduced in 4.1: vdsm-client. This is a simple client that uses JSON-RPC protocol which was introduced in ovirt 3.5.
The client is not aware of the available methods and parameters, and you should consult the schema [1] in order to construct the desired command.
Future version should parse the schema and provide online help.
If you're using vdsClient, we will be happy to assist you in migrating to the new vdsm client.
*vdsm-client usage:*
vdsm-client [-h] [-a ADDRESS] [-p PORT] [--unsecure] [--timeout TIMEOUT] [-f FILE] namespace method [name=value [name=value] ...]
Invoking simple methods:
# vdsm-client Host getVMList ['b3f6fa00-b315-4ad4-8108-f73da817b5c5']
For invoking methods with many or complex parameters, you can read the parameters from a JSON format file:
# vdsm-client Lease info -f lease.json
where lease.json file content is:
{
"lease": {
"sd_id": "75ab40e3-06b1-4a54-a825-2df7a40b93b2",
"lease_id": "b3f6fa00-b315-4ad4-8108-f73da817b5c5"
}
}
It is also possible to read parameters from standard input, creating complex parameters interactively:
# cat <<EOF | vdsm-client Lease info -f -
{
"lease": {
"sd_id": "75ab40e3-06b1-4a54-a825-2df7a40b93b2",
"lease_id": "b3f6fa00-b315-4ad4-8108-f73da817b5c5"
}
}
EOF
*Constructing a command from vdsm schema:*
Let's take VM.getStats as an example. This is the entry in the schema:
VM.getStats:
added: '3.1'
description: Get statistics about a running virtual machine.
params:
- description: The UUID of the VM
name: vmID
type: *UUID
return:
description: An array containing a single VmStats record
type:
- *VmStats
namespace: VM method name: getStats params: vmID
The vdsm-client command is:
# vdsm-client VM getStats vmID=b3f6fa00-b315-4ad4-8108-f73da817b5c5
*Invoking getVdsCaps command:*
# vdsm-client Host getCapabilities
Please consult vdsm-client help and man page for further details and options.
[1] https://github.com/oVirt/vdsm/blob/master/lib/api/vdsm-api.yml
-- Irit Goihman Software Engineer Red Hat Israel Ltd.
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

It would be appreciated if you could file a bug and share the engine l= og that covers the attempt to export this VM to OVA + the ansible log o= f that operation.</div><div> </div><blockquote class=3D"gmail=5Fqu= ote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left= :1ex"><br />Thanks.<br />Frank<p class=3D"m=5F-8163250753670249515Text2= "><br /> </p>Le Vendredi, Avril 13, 2018 16:24 CEST, Arik Hadas &l= t;<a target=3D"=5Fblank" href=3D"mailto:ahadas@redhat.com">ahadas@redha= t.com</a>> a =C3=A9crit:<br /> <blockquote type=3D"cite" cite=3D= "http://CAMCgCFGSJRUVE3pAhwoFZcmjzOBY=5FJgPhYrkEgF6e7tB=3D+2oyw@mail.gm= ail.com"><div dir=3D"ltr"> <div class=3D"gmail=5Fextra"> <div= class=3D"gmail=5Fquote">On Fri, Apr 13, 2018 at 11:14 AM, fsoyer <span=
</div><div> </div><div>It is also possible to read parameters fro= m standard input, creating complex parameters interactively:</div>= <div> </div><div><div># cat <<EOF | vdsm-client Lease info -= f - &nbs=
<div> "sd=5Fid": "75ab4= 0e3-06b1-4a54-a825-2df7a<wbr />40b93b2", &n= bsp; </div><div> &= nbsp; "lease=5Fid": "b3f6fa00-b315-4ad4-8108= -f73da<wbr />817b5c5" = </div><div> }  = ; = = &= nbsp; </div><div> }  = ; = = &= nbsp; </div><div> = EOF </div></div><div> </div><div> </div><div><b><u>Con= structing a command from vdsm schema:</u></b></div><div> </div><di= v>Let's take VM.getStats as an example.</div><div>This is the entry in =
------=_=-_OpenGroupware_org_NGMime-17652-1523872312.930736-101------ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Length: 11769 Hi Arik, unfortunatly I couldn't discuss last friday with a colleague who needs = to work on the cluster this week-end. Discovering the freezed tasks, he= found a workaround by deleting the lines in the job table, and the tas= ks disappear in the GUI. Then... He drops the faulty VM :( But, I have shared the engine.log of april 11 and 12. The export to OVA= of the "CO7=5FVM1" vm was lauched around 17:01, with other vms (to the= same directory on host "victor"). Other vms exports end successfully b= ut not this one. Another export of the same vm was launched on april 12 at 10:42, to see= if it says "already working"... But it didn't, and the second task ran= s with the first, indefinitly.=C2=A0 This links are active for 2 days : https://seafile.systea.fr/f/12d90cc5c59b488c9fde/?dl=3D1 https://seafile.systea.fr/f/ce7cd61231924020bc62/?dl=3D1 I've not seen something revelant in it, but have a look ? This morning I tried to reproduce the problem. I've create a vm from te= mplate (50G). Migrate it : OK. Export it to OVA : OK. I then extended the disk to 100G, then tested again. Migrate it : OK. E= xport it to OVA...... OK :( So I wasn't able to reproduce the error. Thx Frank =C2=A0 Le Vendredi, Avril 13, 2018 21:53 CEST, Arik Hadas <ahadas@redhat.com> = a =C3=A9crit:=C2=A0=C2=A0=C2=A0On Fri, Apr 13, 2018 at 6:54 PM, fsoyer = <fsoyer@systea.fr> wrote:Hi, This task is listed (since 2 days) in the GUI / up right "tasks" icon. = It is visibly freezed as no OVA file has been created, but no errors in= GUI, just... it runs. Or : it loops :) This (test) vm is one on which I have extended the disk (50 -> 100G). B= efore being stopped and trying to export it to OVA, it works fine. All = other vms around can be well exported but not this one. I've tried to r= estart engine, change SPM, restart one by one each node, but the task i= s always here. I could even restart the vm today without error and it w= orks fine ! But... the task runs... Today also, I tried to clone the vm : same thing, now I have 2 tasks ru= nning indefinitly :(=C2=A0 Strange bug, where no timeout stopped the tasks in error. I can't see a= ny revelant things in engine.log or vdsm.log, but probably I've not see= n them in all the messages. No problem to remove this (test) vm and try on another (test) one (exte= nd disk to see if this is the reason of the problem). But before I want= to kill this tasks !=C2=A0Please don't remove that VM yet.It would be = appreciated if you could file a bug and share the engine log that cover= s the attempt to export this VM to OVA + the ansible log of that operat= ion.=C2=A0 Thanks. Frank =C2=A0Le Vendredi, Avril 13, 2018 16:24 CEST, Arik Hadas <ahadas@redhat= .com> a =C3=A9crit: =C2=A0=C2=A0=C2=A0On Fri, Apr 13, 2018 at 11:14 AM, fsoyer <fsoyer@syst= ea.fr> wrote:Hi all, I can't find any exhaustive doc for new vdsm-client. My problem actuall= y is a task (export a vm to OVA) blocked.=C2=A0I'm afraid you won't fin= d any task in VDSM for 'export a VM to OVA'.Expoting a VM to OVA is com= prised of three steps:1. Creating temporary cloned disks - you'll find = a task of copy-image-group for each disk.2. Creating the OVA file - tha= t's done by a python script executed by ansible, there is no task for t= hat in VDSM.3. Removing the temporary cloned disks - you'll find a task= of remove-image for each disk.=C2=A0Can you please elaborate on the pr= oblem you're having - where do you see that task and how can you see th= at it's blocked?=C2=A0I found that I can interact with vdsm-client Task getInfo taskID=3D<uuid>, and replace getInfo by "stop"= , BUT : how can I find this UUID ??? Old "vdsClient -s 0 getAllTasksStatuses" has no equivalent ?? Does someone knows if a complete doc exists dot vdsm-client ? Thanks Frank =C2=A0 Le Mercredi, Janvier 25, 2017 12:30 CET, Irit Goihman <igoihman@redhat.= com> a =C3=A9crit: =C2=A0Hi All,=C2=A0vdsClient will be removed from master branch today.I= t is using XMLRPC protocol which has been deprecated and replaced by JS= ON-RPC.=C2=A0A new client for vdsm was introduced in 4.1: vdsm-client.T= his is a simple client that uses JSON-RPC protocol which was introduced= in ovirt 3.5.=C2=A0The client is not aware of the available methods an= d parameters, and you should consult=C2=A0the schema [1] in order to co= nstruct the desired command.=C2=A0Future version should parse the schem= a and provide online help.=C2=A0=C2=A0If you're using vdsClient, we wil= l be happy to assist you in migrating to the new vdsm client.=C2=A0=C2=A0= =C2=A0vdsm-client usage:=C2=A0vdsm-client [-h] [-a ADDRESS] [-p PORT] [= --unsecure] [--timeout TIMEOUT]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0[-f FILE] namespace method [name=3Dvalue [n= ame=3Dvalue] ...]=C2=A0=C2=A0Invoking simple methods:=C2=A0# vdsm-clien= t Host getVMList['b3f6fa00-b315-4ad4-8108-f73da817b5c5']=C2=A0For invok= ing methods with many or complex parameters, you can read the=C2=A0para= meters from a JSON format file:=C2=A0# vdsm-client Lease info -f lease.= json=C2=A0where lease.json file content is:=C2=A0{ =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0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A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2= =A0 } =C2=A0=C2=A0It is also possible to read parameters from standard = input, creating complex=C2=A0parameters interactively:=C2=A0# cat <<EOF= | vdsm-client Lease info -f - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0=C2=A0 =C2=A0 =C2=A0{ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"lease": { =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"sd=5Fid": "75ab40e3-06b1-4a54-a8= 25-2df7a40b93b2", =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"le= ase=5Fid": "b3f6fa00-b315-4ad4-8108-f73da817b5c5" =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0} =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 =C2=A0} =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 EOF =C2=A0=C2= =A0=C2=A0Constructing a command from vdsm schema:=C2=A0Let's take VM.ge= tStats as an example.This is the entry in the schema:=C2=A0VM.getStats:= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 added: '3.1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A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0=C2=A0namespace: VMmethod name: getStatsparams: vmID=C2=A0The vds= m-client command is:=C2=A0# vdsm-client VM=C2=A0getStats vmID=3Db3f6fa0= 0-b315-4ad4-8108-f73da817b5c5=C2=A0=C2=A0Invoking getVdsCaps command:=C2= =A0# vdsm-client Host=C2=A0getCapabilities=C2=A0=C2=A0=C2=A0Please cons= ult vdsm-client help and man page for further details and options.=C2=A0= =C2=A0=C2=A0[1] https://github.com/oVirt/vdsm/blob/master/lib/api/vdsm-= api.yml=C2=A0--Irit GoihmanSoftware EngineerRed Hat Israel Ltd. =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users =C2=A0 =C2=A0 ------=_=-_OpenGroupware_org_NGMime-17652-1523872312.930736-101------ Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Length: 16293 <html>Hi Arik,<br />unfortunatly I couldn't discuss last friday with a = colleague who needs to work on the cluster this week-end. Discovering t= he freezed tasks, he found a workaround by deleting the lines in the jo= b table, and the tasks disappear in the GUI. Then... He drops the fault= y VM :(<br />But, I have shared the engine.log of april 11 and 12. The = export to OVA of the "CO7=5FVM1" vm was lauched around 17:01, with othe= r vms (to the same directory on host "victor"). Other vms exports end s= uccessfully but not this one.<br />Another export of the same vm was la= unched on april 12 at 10:42, to see if it says "already working"... But= it didn't, and the second task rans with the first, indefinitly. = <br />This links are active for 2 days :<br />https://seafile.systea.fr= /f/12d90cc5c59b488c9fde/?dl=3D1<br />https://seafile.systea.fr/f/ce7cd6= 1231924020bc62/?dl=3D1<br />I've not seen something revelant in it, but= have a look ?<br /><br />This morning I tried to reproduce the problem= . I've create a vm from template (50G). Migrate it : OK. Export it to O= VA : OK.<br />I then extended the disk to 100G, then tested again. Migr= ate it : OK. Export it to OVA...... OK :( So I wasn't able to reproduce= the error.<br /><br />Thx<br />Frank<br /> <p class=3D"Text1"><sp= an style=3D"color: rgb(51, 51, 51); font-family: sans-serif, Arial, Ver= dana, "Trebuchet MS"; font-size: 13px;">Le Vendredi, Avril 13= , 2018 21:53 CEST, Arik Hadas <ahadas@redhat.com> a =C3=A9crit:</= span></p> <blockquote type=3D"cite" cite=3D"CAMCgCFG48-HZuOb7qqnhn= NX73q-WZKyZ=3D1KZC7nGsUWPhVcBzg@mail.gmail.com"><div dir=3D"ltr"> = <div class=3D"gmail=5Fextra"> <div class=3D"gmail=5Fquote">On Fri,= Apr 13, 2018 at 6:54 PM, fsoyer <span dir=3D"ltr"><<a target=3D"=5F= blank" href=3D"mailto:fsoyer@systea.fr">fsoyer@systea.fr</a>></span>= wrote:<blockquote class=3D"gmail=5Fquote" style=3D"margin:0 0 0 .8ex;b= order-left:1px #ccc solid;padding-left:1ex">Hi,<br />This task is liste= d (since 2 days) in the GUI / up right "tasks" icon. It is visibly free= zed as no OVA file has been created, but no errors in GUI, just... it r= uns. Or : it loops :)<br />This (test) vm is one on which I have extend= ed the disk (50 -> 100G). Before being stopped and trying to export = it to OVA, it works fine. All other vms around can be well exported but= not this one. I've tried to restart engine, change SPM, restart one by= one each node, but the task is always here. I could even restart the v= m today without error and it works fine ! But... the task runs...<br />= Today also, I tried to clone the vm : same thing, now I have 2 tasks ru= nning indefinitly :( </blockquote><blockquote class=3D"gmail=5Fquo= te" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:= 1ex"><br />Strange bug, where no timeout stopped the tasks in error. I = can't see any revelant things in engine.log or vdsm.log, but probably I= 've not seen them in all the messages.<br />No problem to remove this (= test) vm and try on another (test) one (extend disk to see if this is t= he reason of the problem). But before I want to kill this tasks !</bloc= kquote><div> </div><div>Please don't remove that VM yet.</div><div= dir=3D"ltr"><<a target=3D"=5Fblank" href=3D"mailto:fsoyer@systea.fr= ">fsoyer@systea.fr</a>></span> wrote:<blockquote class=3D"gmail=5Fqu= ote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left= :1ex">Hi all,<br />I can't find any exhaustive doc for new vdsm-client.= My problem actually is a task (export a vm to OVA) blocked.</blockquot= e><div> </div><div>I'm afraid you won't find any task in VDSM for = 'export a VM to OVA'.</div><div>Expoting a VM to OVA is comprised of th= ree steps:</div><div>1. Creating temporary cloned disks - you'll find a= task of copy-image-group for each disk.</div><div>2. Creating the OVA = file - that's done by a python script executed by ansible, there is no = task for that in VDSM.</div><div>3. Removing the temporary cloned disks= - you'll find a task of remove-image for each disk.</div><div> </= div><div>Can you please elaborate on the problem you're having - where = do you see that task and how can you see that it's blocked?</div><div>&= nbsp;</div><blockquote class=3D"gmail=5Fquote" style=3D"margin:0 0 0 .8= ex;border-left:1px #ccc solid;padding-left:1ex">I found that I can inte= ract with<br />vdsm-client Task getInfo taskID=3D<uuid>, and repl= ace getInfo by "stop", BUT : how can I find this UUID ???<br />Old "vds= Client -s 0 getAllTasksStatuses" has no equivalent ??<br /><br />Does s= omeone knows if a complete doc exists dot vdsm-client ?<br />Thanks<br = />Frank<p class=3D"m=5F-8163250753670249515m=5F-7891996504513696655Text= 2"><br /> </p><br /><br />Le Mercredi, Janvier 25, 2017 12:30 CET,= Irit Goihman <<a target=3D"=5Fblank" href=3D"mailto:igoihman@redhat= .com">igoihman@redhat.com</a>> a =C3=A9crit:<br /> <blockquote = type=3D"cite" cite=3D"http://CAA=3Di7HMsB7iRYqP9yyBx4w7pGer9rTE9wkJZRgc= mXRQMaJezwg@mail.gmail.com"><div dir=3D"ltr">Hi All,<div> </div><d= iv>vdsClient will be removed from master branch today.</div><div>It is = using XMLRPC protocol which has been deprecated and replaced by JSON-RP= C.</div><div> </div><div>A new client for vdsm was introduced in 4= .1: vdsm-client.</div><div>This is a simple client that uses JSON-RPC p= rotocol which was introduced in ovirt 3.5.</div><div> </div><div>T= he client is not aware of the available methods and parameters, and you= should consult </div><div>the schema [1] in order to construct th= e desired command.</div><div> </div><div>Future version should par= se the schema and provide online help.</div><div> </div><div> = ;</div><div>If you're using vdsClient, we will be happy to assist you i= n migrating to the new vdsm client.</div><div> </div><div> </= div><div> </div><div><b><u>vdsm-client usage:</u></b></div><div>&n= bsp;</div><div><div>vdsm-client [-h] [-a ADDRESS] [-p PORT] [--unsecure= ] [--timeout TIMEOUT]</div><div> &nbs= p; [-f FILE] namespace method [name=3Dvalue = [name=3Dvalue] ...]</div></div><div> </div><div> </div><div><= div>Invoking simple methods:</div><div> </div><div># vdsm-client H= ost getVMList</div><div>['b3f6fa00-b315-4ad4-8108-f73d<wbr />a817b5c5']= </div></div><div> </div><div>For invoking methods with many or com= plex parameters, you can read the parameters from a JSON format fi= le:</div><div> </div><div># vdsm-client Lease info -f lease.json</= div><div> </div><div>where lease.json file content is:</div><div>&= nbsp;</div><div><div>{ = = &= nbsp; &n= bsp;</div><div> "lease": { &nb= sp; &nbs= p;  = ; <= /div><div> "sd=5Fid": "= 75ab40e3-06b1-4a54-a825-2df7a<wbr />40b93b2", &nbs= p; </div><div> &nb= sp; "lease=5Fid": "b3f6fa00-b315-4ad= 4-8108-f73da<wbr />817b5c5" &= nbsp; </div><div> = } = = &= nbsp; </div><div> } </div= p; </div><div>&n= bsp; { &n= bsp; &nb= sp; &nbs= p;  = ;</div><div> "lease": { = &= nbsp; &n= bsp; </div= the schema:</div><div> </div><div><div>VM.getStats: = &= nbsp; &n= bsp; &nb= sp; </div><div> added: '3.1' &n= bsp; &nb= sp; &nbs= p; </div><div>&n= bsp; description: Get statistics about a running virtual machine= . </div><div>&nb= sp; params: &nb= sp; &nbs= p;  = ; </div><div> &nbs= p; - description: The UUID of the VM = = </div><div> = name: vmID &nb= sp; &nbs= p;  = ; </div><div> typ= e: *UUID = = &= nbsp; </div><div> return: = = &= nbsp; &nb= sp;</div><div> description: An array contain= ing a single VmStats record &= nbsp; </div><div> type: = &= nbsp; &n= bsp; &nb= sp; </div><div> - *VmStats  = ; = = </div></d= iv><div> </div><div>namespace: VM</div><div>method name: getStats<= /div><div>params: vmID</div><div> </div><div>The vdsm-client comma= nd is:</div><div> </div><div># vdsm-client VM getStats vmID=3D= b3f6fa00-b315-4ad4-8108-f<wbr />73da817b5c5</div><div> </div><div>= </div><div><div><b><u>Invoking getVdsCaps command:</u></b></div><= div> </div><div># vdsm-client Host getCapabilities</div></div=
<div> </div><div><div> </div><div> </div><div>Please co= nsult vdsm-client help and man page for further details and options.</d= iv><div> </div><div> </div><div> </div><div>[1] <a targe= t=3D"=5Fblank" href=3D"https://github.com/oVirt/vdsm/blob/master/lib/ap= i/vdsm-api.yml">https://github.com/oVirt/vdsm/<wbr />blob/master/lib/ap= i/vdsm-api.y<wbr />ml</a></div><div> </div><span class=3D"m=5F-816= 3250753670249515HOEnZb"><font color=3D"#888888">--</font></span><div cl= ass=3D"m=5F-8163250753670249515m=5F-7891996504513696655gmail=5Fsignatur= e"><div dir=3D"ltr"><span class=3D"m=5F-8163250753670249515HOEnZb"><fon= t color=3D"#888888">Irit Goihman</font></span><div><span class=3D"m=5F-= 8163250753670249515HOEnZb"><font color=3D"#888888">Software Engineer</f= ont></span></div><div><span class=3D"m=5F-8163250753670249515HOEnZb"><f= ont color=3D"#888888">Red Hat Israel Ltd.</font></span></div></div></di= v></div></div></blockquote><br /><br /><br />=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F<wbr />=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F<br />Users mailing lis= t<br /><a target=3D"=5Fblank" href=3D"mailto:Users@ovirt.org">Users@ovi= rt.org</a><br /><a rel=3D"noreferrer" target=3D"=5Fblank" href=3D"http:= //lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailma= n<wbr />/listinfo/users</a><br /> </blockquote></div></div></div><= /blockquote><br /> </blockquote></div></div></div></blockquote><br= /><br /><style type=3D"text/css">.Text1 { color: black; font-size:9pt; font-family:Verdana; } .Text2 { color: black; font-size:7pt; font-family:Verdana; }</style></html>
------=_=-_OpenGroupware_org_NGMime-17652-1523872312.930736-101--------
participants (4)
-
Arik Hadas
-
fsoyer
-
Irit Goihman
-
Michal Skrivanek