<div dir="ltr"><div>It&#39;s not the most elegant or guaranteed to fix your issue, but I&#39;ve found that running engine-setup again on the hosted-engine server usually cleans up broken and orphaned tasks.<br><br></div>Any running VM&#39;s will stay up, you&#39;ll just briefly loose access to the UI while engine-setup restarts the interface.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 26 September 2017 at 13:36,  <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">In the engine.log I can see this:<br>
<br>
2017-09-26 13:35:33,345+01 INFO  [org.ovirt.engine.core.bll.tas<wbr>ks.AsyncTaskManager] (DefaultQuartzScheduler7) [6a4aa90c] Polling and updating Async Tasks: 2 tasks, 1 tasks to poll now<br>
2017-09-26 13:35:34,500+01 INFO  [org.ovirt.engine.core.bll.sto<wbr>rage.domain.DeactivateStorageD<wbr>omainWithOvfUpdateCommand] (default task-37) [2ec47109-db9d-425c-85fc-ee555<wbr>e7dc4db] Lock Acquired to object &#39;EngineLock:{exclusiveLocks=&#39;[<wbr>42222886-cee8-47ba-a679-16a7db<wbr>522779=STORAGE]&#39;, sharedLocks=&#39;[75bf8f48-970f-42<wbr>bc-8596-f8ab6efb2b63=POOL]&#39;}&#39;<br>
2017-09-26 13:35:34,580+01 WARN  [org.ovirt.engine.core.bll.sto<wbr>rage.domain.DeactivateStorageD<wbr>omainWithOvfUpdateCommand] (default task-37) [2ec47109-db9d-425c-85fc-ee555<wbr>e7dc4db] Validation of action &#39;DeactivateStorageDomainWithOv<wbr>fUpdate&#39; failed for user admin@internal. Reasons: VAR__TYPE__STORAGE__DOMAIN,VAR<wbr>__ACTION__DEACTIVATE,ERROR_CAN<wbr>NOT_DEACTIVATE_DOMAIN_WITH_TAS<wbr>KS<br>
2017-09-26 13:35:34,581+01 INFO  [org.ovirt.engine.core.bll.sto<wbr>rage.domain.DeactivateStorageD<wbr>omainWithOvfUpdateCommand] (default task-37) [2ec47109-db9d-425c-85fc-ee555<wbr>e7dc4db] Lock freed to object &#39;EngineLock:{exclusiveLocks=&#39;[<wbr>42222886-cee8-47ba-a679-16a7db<wbr>522779=STORAGE]&#39;, sharedLocks=&#39;[75bf8f48-970f-42<wbr>bc-8596-f8ab6efb2b63=POOL]&#39;}&#39;<br>
2017-09-26 13:35:36,440+01 INFO  [org.ovirt.engine.core.bll.tas<wbr>ks.AsyncTaskManager] (DefaultQuartzScheduler7) [6a4aa90c] Finished polling Tasks, will poll again in 10 seconds.<div class="HOEnZb"><div class="h5"><br>
<br>
El 2017-09-26 13:34, <a href="mailto:nicolas@devels.es" target="_blank">nicolas@devels.es</a> escribió:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
We&#39;re running ovirt-engine-4.1.5.2-1 and we&#39;re trying to set one of<br>
the storage domains on maintenance in order to remove it, as there&#39;s<br>
nothing left on it besides some templates.<br>
<br>
To do so, I open the &#39;Data Centers&#39; tab, then the &#39;Storage&#39; subtab,<br>
select the storage domain and click on &#39;Maintenance&#39;. When asked for<br>
confirmation I click OK. After that, this error message is shown:<br>
<br>
Error while executing action: Cannot deactivate Storage while there<br>
are running tasks on this Storage.<br>
-Please wait until tasks will finish and try again.<br>
<br>
As far as I know, there are no pending tasks on this storage. The<br>
Events tab only shows a movement of a disk which has nothing to do<br>
with this storage domain.<br>
<br>
What can I do to solve this?<br>
<br>
Thanks.<br>
<br>
Nicolás<br>
______________________________<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>
</blockquote>
______________________________<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>