<div dir="ltr">You could also go database diving.  I had an issue where I tried to import a VM from my export domain and it just got hung.  I tried running the unlock_entity script but it just kept failing.  It sat there for months stuck, and found <br><span id="gmail-docs-internal-guid-5ebb4940-a672-4eba-f34e-1a270e527ab2"><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);vertical-align:baseline;white-space:pre-wrap"><a href="http://lists.ovirt.org/pipermail/users/2015-April/032346.html">http://lists.ovirt.org/pipermail/users/2015-April/032346.html</a></span></span><br><div><span><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);vertical-align:baseline;white-space:pre-wrap"><br></span></span></div><div><span><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);vertical-align:baseline;white-space:pre-wrap">Of course deleting something from your database is quite permanent.  I would wait and upgrade to 4.1.7, but something like the below should work.  But probably not recommended</span></span></div><div><span><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);vertical-align:baseline;white-space:pre-wrap"><br></span></span></div><div><font color="#333333" face="Arial"><span style="font-size:14px;white-space:pre-wrap">Drop into postgres</span></font></div><div><span id="gmail-docs-internal-guid-5ebb4940-a672-63ba-17e5-75046cc4d8ab"><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);font-style:italic;vertical-align:baseline;white-space:pre-wrap">psql -d engine -U postgres</span></span><font color="#333333" face="Arial"><span style="font-size:14px;white-space:pre-wrap"><br></span></font></div><div><span><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);font-style:italic;vertical-align:baseline;white-space:pre-wrap"><br></span></span></div><div><span><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);vertical-align:baseline;white-space:pre-wrap">List your tasks and grab the job_id</span></span></div><div><span id="gmail-docs-internal-guid-5ebb4940-a672-8df6-451a-11745cfb7b4c"><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);font-style:italic;vertical-align:baseline;white-space:pre-wrap">select * from job order by start_time desc;</span></span><span><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);vertical-align:baseline;white-space:pre-wrap"><br></span></span></div><div><span><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);font-style:italic;vertical-align:baseline;white-space:pre-wrap"><br></span></span></div><div><span id="gmail-docs-internal-guid-5ebb4940-a672-e152-ac09-37893a7dbb7b"><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);font-style:italic;vertical-align:baseline;white-space:pre-wrap">select DeleteJob(&#39;8424f7a9-2a4c-4567-b528-45bbc1c2534f&#39;);</span></span><span><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);font-style:italic;vertical-align:baseline;white-space:pre-wrap"><br></span></span></div><div><span><span style="font-size:10.5pt;font-family:Arial;color:rgb(51,51,51);vertical-align:baseline;white-space:pre-wrap">Where the string here is the job ID</span></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 10, 2017 at 9:48 AM,  <span dir="ltr">&lt;<a href="mailto:nicolas@devels.es" target="_blank">nicolas@devels.es</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">El 2017-11-10 14:41, Gianluca Cecchi escribió:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Fri, Nov 10, 2017 at 3:34 PM, &lt;<a href="mailto:nicolas@devels.es" target="_blank">nicolas@devels.es</a>&gt; wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
oVirt upgrade to 4.1.7 will probably cleanup this stale task.<br>
However, if you want to do it before upgrading, run this command:<br>
<br>
   PGPASSWORD=...<br>
/usr/share/ovirt-engine/setup/<wbr>dbutils/unlock_entity.sh -t all -u<br>
engine<br>
<br>
Note that unlock_entity.sh has many flags and this is just an<br>
example (should clean all stale tasks).<br>
<br>
You can find the PGPASSWORD value in the<br>
/etc/ovirt-engine/engine.conf.<wbr>d/10-setup-database.conf file. As of<br>
4.2 you won&#39;t need to supply credentials anymore [1].<br>
<br>
Regards,<br>
<br>
Nicolás<br>
</blockquote>
<br>
It seems it didn&#39;t work as expected.<br>
I got this at command line output<br>
<br>
&quot;<br>
<br>
select fn_db_unlock_all();<br>
 <br>
<br>
INSERT 0 1<br>
unlock all  completed successfully.<br>
&quot;<br>
<br>
</blockquote>
<br></span>
This is expected.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
But the task remains in webadmin gui and I got an alert message in<br>
alert section, of this type<br>
&quot;<br>
/usr/share/ovirt-engine/setup/<wbr>dbutils/unlock_entity.sh : System user<br>
root run manually unlock_entity script on entity [type,id] [all,] with<br>
db user engine<br>
&quot;<br>
<br>
</blockquote>
<br></span>
I&#39;ve seen this behavior too. IIRC the stale cleaning was not instant, it took some time to be applied.<br>
<br>
Regards.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Gianluca<br>
</blockquote><div class="HOEnZb"><div class="h5">
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
</div></div></blockquote></div><br></div>