<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 1, 2018 at 6:01 PM, nicola gentile <span dir="ltr">&lt;<a href="mailto:nicola.gentile.to@gmail.com" target="_blank">nicola.gentile.to@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I have a problem. I try to remove a pool and than I remove every vm<br>
but one of this display the message &quot;Cannot remove VM. Related<br>
operation is currently in progress. Please try again later.&quot; </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I try to unlock with this command<br>
<br>
PGPASSWORD=... /usr/share/ovirt-engine/setup/<wbr>dbutils/unlock_entity.sh<br>
-t all -u engine<br>
<br>
but not working<br></blockquote><div><br></div><div>Yeah, that wouldn&#39;t work since the VM is locked in-memory (as opposed to being locked in the database).</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
in /var/log/ovirt-engine/engine.<wbr>log<br>
<br>
2018-03-01 17:02:47,799+01 INFO<br>
[org.ovirt.engine.core.bll.<wbr>RemoveVmCommand] (default task-33)<br>
[0217d710-afb6-4450-9897-<wbr>02748d871aa1] Failed to Acquire Lock to<br>
object &#39;EngineLock:{exclusiveLocks=&#39;[<wbr>d623ad44-a645-4fd0-9993-<wbr>d21374e99eb5=VM]&#39;,<br>
sharedLocks=&#39;&#39;}&#39;<br>
2018-03-01 17:02:47,799+01 WARN<br>
[org.ovirt.engine.core.bll.<wbr>RemoveVmCommand] (default task-33)<br>
[0217d710-afb6-4450-9897-<wbr>02748d871aa1] Validation of action &#39;RemoveVm&#39;<br>
failed for user admin@internal-authz. Reasons:<br>
VAR__ACTION__REMOVE,VAR__TYPE_<wbr>_VM,ACTION_TYPE_FAILED_OBJECT_<wbr>LOCKED<br>
<br>
please help<br></blockquote><div><br></div><div>What&#39;s the status of the VMs that are attached to the pool? It may be that some of those VMs cannot be stopped and so they remain locked by the remove-pool operation, but hard to tell without a complete engine log.</div><div>Anyway, you can restart the engine - it would probably release that in-memory lock that prevents you from removing the VM.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
thanks<br>
<br>
Nick<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
</blockquote></div><br></div></div>