<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 9, 2016 at 9:48 AM, Martin Sivak <span dir="ltr"><<a href="mailto:msivak@redhat.com" target="_blank">msivak@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> Isn’t the most likely cause by far a simple startup delay? We do open the listener “soon” and responds with code 99, but it’s still not instant of course<br>
<br>
</span>That is possible of course and we handle those "errors" just fine. But<br>
connection refused never happened with xmlrpc. It might have been<br>
luck, but it always worked there :)<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>There is no difference how we open listening socket (it is used by both protocols) and I have seen the engine attempting to connect using both protocols<br></div><div>before the socket was open. What is the time difference that you see?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
<br>
Martin<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Wed, Nov 9, 2016 at 9:11 AM, Michal Skrivanek<br>
<<a href="mailto:michal.skrivanek@redhat.com">michal.skrivanek@redhat.com</a>> wrote:<br>
><br>
>> On 9 Nov 2016, at 08:55, Francesco Romani <<a href="mailto:fromani@redhat.com">fromani@redhat.com</a>> wrote:<br>
>><br>
>> ----- Original Message -----<br>
>>> From: "Piotr Kliczewski" <<a href="mailto:pkliczew@redhat.com">pkliczew@redhat.com</a>><br>
>>> To: "Martin Perina" <<a href="mailto:mperina@redhat.com">mperina@redhat.com</a>><br>
>>> Cc: "Francesco Romani" <<a href="mailto:fromani@redhat.com">fromani@redhat.com</a>>, "Shira Maximov" <<a href="mailto:mshira@redhat.com">mshira@redhat.com</a>>, "devel" <<a href="mailto:devel@ovirt.org">devel@ovirt.org</a>><br>
>>> Sent: Tuesday, November 8, 2016 9:31:43 PM<br>
>>> Subject: Re: [vdsm] Connection refused when talking to jsonrpc<br>
>><br>
>><br>
>>>>> 2016-11-08 18:25:30,030 - mom - ERROR - Failed to initialize MOM threads<br>
>>>>> Traceback (most recent call last):<br>
>>>>> File "/usr/lib/python2.7/site-<wbr>packages/mom/__init__.py", line 29, in<br>
>>>>> run<br>
>>>>> hypervisor_iface = self.get_hypervisor_interface(<wbr>)<br>
>>>>> File "/usr/lib/python2.7/site-<wbr>packages/mom/__init__.py", line 217,<br>
>>>>> in get_hypervisor_interface<br>
>>>>> return module.instance(self.config)<br>
>>>>> File "/usr/lib/python2.7/site-<wbr>packages/mom/<wbr>HypervisorInterfaces/v<br>
>>>>> dsmjsonrpcbulkInterface.py",<br>
>>>>> line 47, in instance<br>
>>>>> return JsonRpcVdsmBulkInterface()<br>
>>>>> File "/usr/lib/python2.7/site-<wbr>packages/mom/<wbr>HypervisorInterfaces/v<br>
>>>>> dsmjsonrpcbulkInterface.py",<br>
>>>>> line 29, in __init__<br>
>>>>> super(<wbr>JsonRpcVdsmBulkInterface, self).__init__()<br>
>>>>> File "/usr/lib/python2.7/site-<wbr>packages/mom/<wbr>HypervisorInterfaces/v<br>
>>>>> dsmjsonrpcInterface.py",<br>
>>>>> line 43, in __init__<br>
>>>>> .orRaise(RuntimeError, 'No connection to VDSM.')<br>
>>>>> File "/usr/lib/python2.7/site-<wbr>packages/mom/optional.py", line 28, in<br>
>>>>> orRaise<br>
>>>>> raise exception(*args, **kwargs)<br>
>>>>> RuntimeError: No connection to VDSM.<br>
>>>>><br>
>>>>><br>
>>>>> The question here is, how much time does VDSM need to allow jsonrpc to<br>
>>>>> connect and request a ping and list of VMs?<br>
>>>>><br>
>>>>><br>
>>> It depends on recovery logic in vdsm and it can take quite some time.<br>
>>><br>
>>> Please share vdsm logs so I could take a look?<br>
>><br>
>> +1<br>
>><br>
>> the most likely cause is the recovery still in progress, however I was expecting<br>
>> a different error, so worth looking at the logs.<br>
><br>
> Isn’t the most likely cause by far a simple startup delay? We do open the listener “soon” and responds with code 99, but it’s still not instant of course<br>
><br>
>><br>
>> Bests,<br>
>><br>
>> --<br>
>> Francesco Romani<br>
>> Red Hat Engineering Virtualization R & D<br>
>> Phone: 8261328<br>
>> IRC: fromani<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>
>><br>
>><br>
><br>
</div></div></blockquote></div><br></div></div>