<div dir="ltr">I&#39;m seeing the same error in [1], during <span style="box-sizing:border-box;color:rgb(51,51,51);font-family:Helvetica,Arial,sans-serif;font-size:13px;font-weight:bold">006_migrations.migrate_vm.</span><div><br></div><div>[1] <a href="http://jenkins.ovirt.org/job/ovirt-4.2_change-queue-tester/1650/">http://jenkins.ovirt.org/job/ovirt-4.2_change-queue-tester/1650/</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 10, 2018 at 4:14 PM, Alona Kaplan <span dir="ltr">&lt;<a href="mailto:alkaplan@redhat.com" target="_blank">alkaplan@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi all,</div><div><br></div><div>Looking at the log it seems that the new GetCapabilitiesAsync is responsible for the mess.<br></div><pre><pre>-<b> 08:29:47 - engine loses connectivity to host &#39;lago-basic-suite-4-2-host-0&#39;.<br></b></pre><pre><b>- Every 3 seconds a getCapabalititiesAsync request is sent to the host (unsuccessfully).<br><br></b></pre><pre>     * before each &quot;getCapabilitiesAsync&quot; the monitoring lock is taken (VdsManager,refreshImpl)<br></pre><pre>     * &quot;getCapabilitiesAsync&quot; immediately fails and throws &#39;VDSNetworkException: java.net.ConnectException: Connection refused&#39;. The exception is caught by &#39;<wbr>GetCapabilitiesAsyncVDSCommand<wbr>.executeVdsBrokerCommand&#39; which calls &#39;onFailure&#39; of the callback and re-throws the exception.<br><br>         catch (Throwable t) {<br>            getParameters().getCallback().<wbr>onFailure(t);<br>            throw t;<br>         }<br></pre><pre>    * The &#39;onFailure&#39; of the callback releases the &quot;monitoringLock&quot; (&#39;postProcessRefresh()-&gt;<wbr>afterRefreshTreatment()-&gt; if (!succeeded) lockManager.releaseLock(<wbr>monitoringLock);&#39;)<br></pre><pre>    * &#39;VdsManager,refreshImpl&#39; catches the network exception, marks &#39;releaseLock = true&#39; and <span style="color:rgb(255,0,0)"><b>tries to release the already released lock</b>.</span><br></pre><pre>      The following warning is printed to the log - <pre>      WARN  [org.ovirt.engine.core.bll.<wbr>lock.InMemoryLockManager] (EE-ManagedThreadFactory-<wbr>engineScheduled-Thread-53) [] Trying to release exclusive lock which does not exist, lock key: &#39;ecf53d69-eb68-4b11-8df2-<wbr>c4aa4e19bd93VDS_INIT&#39;</pre><b><br></b></pre><pre><b>- 08:30:51 a successful getCapabilitiesAsync is sent.<br><br></b></pre><pre><b>- 08:32:55 - The failing test starts (Setup Networks for setting ipv6).<br>    </b><br></pre><pre>    * SetupNetworks takes the monitoring lock.<br><br><pre><pre><b>- 08:33:00 - ResponseTracker cleans the getCapabilitiesAsync requests from 4 minutes ago from its queue and prints a VDSNetworkException: Vds timeout occured.</b><br></pre><pre>      * When the first request is removed from the queue (&#39;ResponseTracker.remove()&#39;), the <span style="color:rgb(255,0,0)"><b>&#39;Callback.onFailure&#39; is invoked (for the second time) -&gt; monitoring lock is released (the lock taken by the SetupNetworks!).<br></b></span></pre><pre>      *<span style="color:rgb(255,0,0)"> <b>The other requests removed from the queue also try to release the monitoring lock</b></span>, but there is nothing to release.<br><br>      * The following warning log is printed - <br>        WARN  [org.ovirt.engine.core.bll.<wbr>lock.InMemoryLockManager] (EE-ManagedThreadFactory-<wbr>engineScheduled-Thread-14) [] Trying to release exclusive lock which does not exist, lock key: &#39;ecf53d69-eb68-4b11-8df2-<wbr>c4aa4e19bd93VDS_INIT&#39; <br></pre><pre><b></b></pre><pre>- <b>08:33:00 - SetupNetwork fails on Timeout ~4 seconds after is started</b>. Why? I&#39;m not 100% sure but I guess the late processing of the &#39;getCapabilitiesAsync&#39; that causes losing of the monitoring lock and the late + mupltiple processing of failure is root cause.<br><br><br></pre><pre>Ravi, &#39;getCapabilitiesAsync&#39; failure is treated twice and the lock is trying to be released three times. Please share your opinion regarding how it should be fixed.<br><br><br></pre><pre>Thanks,<br></pre><pre>Alona.<br></pre><pre><b></b></pre></pre></pre><pre><br></pre><pre><b></b><br><br></pre><pre><br></pre></pre><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Sun, Apr 8, 2018 at 1:21 PM, Dan Kenigsberg <span dir="ltr">&lt;<a href="mailto:danken@redhat.com" target="_blank">danken@redhat.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="m_-9018820350375279086gmail-">On Sun, Apr 8, 2018 at 9:21 AM, Edward Haas <span dir="ltr">&lt;<a href="mailto:ehaas@redhat.com" target="_blank">ehaas@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Sun, Apr 8, 2018 at 9:15 AM, Eyal Edri <span dir="ltr">&lt;<a href="mailto:eedri@redhat.com" target="_blank">eedri@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Was already done by Yaniv - <a href="https://gerrit.ovirt.org/#/c/89851" target="_blank">https://gerrit.ovirt.org/#/c<wbr>/89851</a>.<div>Is it still failing? </div></div><div class="gmail_extra"><div><div class="m_-9018820350375279086gmail-m_2954871527889988252m_-7799404494298195144h5"><br><div class="gmail_quote">On Sun, Apr 8, 2018 at 8:59 AM, Barak Korren <span dir="ltr">&lt;<a href="mailto:bkorren@redhat.com" target="_blank">bkorren@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>On 7 April 2018 at 00:30, Dan Kenigsberg &lt;<a href="mailto:danken@redhat.com" target="_blank">danken@redhat.com</a>&gt; wrote:<br>
&gt; No, I am afraid that we have not managed to understand why setting and<br>
&gt; ipv6 address too the host off the grid. We shall continue researching<br>
&gt; this next week.<br>
&gt;<br>
&gt; Edy, <a href="https://gerrit.ovirt.org/#/c/88637/" rel="noreferrer" target="_blank">https://gerrit.ovirt.org/#/c/8<wbr>8637/</a> is already 4 weeks old, but<br>
&gt; could it possibly be related (I really doubt that)?<br>
&gt;<br></span></blockquote></div></div></div></div></blockquote><div><br></div></span><div>Sorry, but I do not see how this problem is related to VDSM.<br></div><div>There is nothing that indicates that there is a VDSM problem.<br><br></div><div>Has the RPC connection between Engine and VDSM failed?<br></div><br></div></div></div></blockquote></span><div><br>Further up the thread, Piotr noticed that (at least on one failure of this test) that the Vdsm host lost connectivity to its storage, and Vdsm process was restarted. However, this does not seems to happen in all cases where this test fails.<br></div></div></div></div>
<br></div></div><span class="">______________________________<wbr>_________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org" target="_blank">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/devel</a><br></span></blockquote></div><br></div></div>
<br>______________________________<wbr>_________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/devel</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="overpass, sans-serif" color="#000000" size="2"><span style="text-transform:uppercase"><b>GAL bEN HAIM</b></span></font><div><span style="color:rgb(0,0,0);font-family:overpass,sans-serif;text-transform:uppercase"><font size="2">RHV DEVOPS</font></span><br></div></div></div>
</div>