<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 the freezed tasks, he found a workaround by deleting the lines in the job table, and the tasks disappear in the GUI. Then... He drops the faulty VM :(<br />But, I have shared the engine.log of april 11 and 12. The export to OVA of the "CO7_VM1" vm was lauched around 17:01, with other vms (to the same directory on host "victor"). Other vms exports end successfully but not this one.<br />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 rans with the first, indefinitly. <br />This links are active for 2 days :<br />https://seafile.systea.fr/f/12d90cc5c59b488c9fde/?dl=1<br />https://seafile.systea.fr/f/ce7cd61231924020bc62/?dl=1<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 OVA : OK.<br />I then extended the disk to 100G, then tested again. Migrate it : OK. Export it to OVA...... OK :( So I wasn't able to reproduce the error.<br /><br />Thx<br />Frank<br /> <p class="Text1"><span style="color: rgb(51, 51, 51); font-family: sans-serif, Arial, Verdana, "Trebuchet MS"; font-size: 13px;">Le Vendredi, Avril 13, 2018 21:53 CEST, Arik Hadas <ahadas@redhat.com> a écrit:</span></p> <blockquote type="cite" cite="CAMCgCFG48-HZuOb7qqnhnNX73q-WZKyZ=1KZC7nGsUWPhVcBzg@mail.gmail.com"><div dir="ltr"> <div class="gmail_extra"> <div class="gmail_quote">On Fri, Apr 13, 2018 at 6:54 PM, fsoyer <span dir="ltr"><<a target="_blank" href="mailto:fsoyer@systea.fr">fsoyer@systea.fr</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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, but 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 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...<br />Today also, I tried to clone the vm : same thing, now I have 2 tasks running indefinitly :( </blockquote><blockquote class="gmail_quote" style="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 the reason of the problem). But before I want to kill this tasks !</blockquote><div> </div><div>Please don't remove that VM yet.</div><div>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.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br />Thanks.<br />Frank<p class="m_-8163250753670249515Text2"><br /> </p>Le Vendredi, Avril 13, 2018 16:24 CEST, Arik Hadas <<a target="_blank" href="mailto:ahadas@redhat.com">ahadas@redhat.com</a>> a écrit:<br /> <blockquote type="cite" cite="http://CAMCgCFGSJRUVE3pAhwoFZcmjzOBY_JgPhYrkEgF6e7tB=+2oyw@mail.gmail.com"><div dir="ltr"> <div class="gmail_extra"> <div class="gmail_quote">On Fri, Apr 13, 2018 at 11:14 AM, fsoyer <span dir="ltr"><<a target="_blank" href="mailto:fsoyer@systea.fr">fsoyer@systea.fr</a>></span> wrote:<blockquote class="gmail_quote" style="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 find any task in VDSM for 'export a VM to OVA'.</div><div>Expoting a VM to OVA is comprised of three 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> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I found that I can interact with<br />vdsm-client Task getInfo taskID=<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="m_-8163250753670249515m_-7891996504513696655Text2"><br /> </p><br /><br />Le Mercredi, Janvier 25, 2017 12:30 CET, Irit Goihman <<a target="_blank" href="mailto:igoihman@redhat.com">igoihman@redhat.com</a>> a écrit:<br /> <blockquote type="cite" cite="http://CAA=i7HMsB7iRYqP9yyBx4w7pGer9rTE9wkJZRgcmXRQMaJezwg@mail.gmail.com"><div dir="ltr">Hi All,<div> </div><div>vdsClient will be removed from master branch today.</div><div>It is using 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 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 schema [1] in order to construct the desired command.</div><div> </div><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.</div><div> </div><div> </div><div> </div><div><b><u>vdsm-client 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=value [name=value] ...]</div></div><div> </div><div> </div><div><div>Invoking simple methods:</div><div> </div><div># vdsm-client Host getVMList</div><div>['b3f6fa00-b315-4ad4-8108-f73d<wbr />a817b5c5']</div></div><div> </div><div>For invoking methods with many or complex parameters, you can read the parameters from a JSON format file:</div><div> </div><div># vdsm-client Lease info -f lease.json</div><div> </div><div>where lease.json file content is:</div><div> </div><div><div>{ </div><div> "lease": { </div><div> "sd_id": "75ab40e3-06b1-4a54-a825-2df7a<wbr />40b93b2", </div><div> "lease_id": "b3f6fa00-b315-4ad4-8108-f73da<wbr />817b5c5" </div><div> } </div><div> } </div></div><div> </div><div>It is also possible to read parameters from standard input, creating complex parameters interactively:</div><div> </div><div><div># cat <<EOF | vdsm-client Lease info -f - </div><div> { </div><div> "lease": { </div><div> "sd_id": "75ab40e3-06b1-4a54-a825-2df7a<wbr />40b93b2", </div><div> "lease_id": "b3f6fa00-b315-4ad4-8108-f73da<wbr />817b5c5" </div><div> } </div><div> } </div><div> EOF </div></div><div> </div><div> </div><div><b><u>Constructing 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 the schema:</div><div> </div><div><div>VM.getStats: </div><div> added: '3.1' </div><div> description: Get statistics about a running virtual machine. </div><div> params: </div><div> - description: The UUID of the VM </div><div> name: vmID </div><div> type: *UUID </div><div> return: </div><div> description: An array containing a single VmStats record </div><div> type: </div><div> - *VmStats </div></div><div> </div><div>namespace: VM</div><div>method name: getStats</div><div>params: vmID</div><div> </div><div>The vdsm-client command is:</div><div> </div><div># vdsm-client VM getStats vmID=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 consult vdsm-client help and man page for further details and options.</div><div> </div><div> </div><div> </div><div>[1] <a target="_blank" href="https://github.com/oVirt/vdsm/blob/master/lib/api/vdsm-api.yml">https://github.com/oVirt/vdsm/<wbr />blob/master/lib/api/vdsm-api.y<wbr />ml</a></div><div> </div><span class="m_-8163250753670249515HOEnZb"><font color="#888888">--</font></span><div class="m_-8163250753670249515m_-7891996504513696655gmail_signature"><div dir="ltr"><span class="m_-8163250753670249515HOEnZb"><font color="#888888">Irit Goihman</font></span><div><span class="m_-8163250753670249515HOEnZb"><font color="#888888">Software Engineer</font></span></div><div><span class="m_-8163250753670249515HOEnZb"><font color="#888888">Red Hat Israel Ltd.</font></span></div></div></div></div></div></blockquote><br /><br /><br />______________________________<wbr />_________________<br />Users mailing list<br /><a target="_blank" href="mailto:Users@ovirt.org">Users@ovirt.org</a><br /><a rel="noreferrer" target="_blank" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman<wbr />/listinfo/users</a><br /> </blockquote></div></div></div></blockquote><br /> </blockquote></div></div></div></blockquote><br /><br /><style type="text/css">.Text1 {
color: black;
font-size:9pt;
font-family:Verdana;
}
.Text2 {
color: black;
font-size:7pt;
font-family:Verdana;
}</style></html>