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