<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Thu, Jun 21, 2018 at 3:35 PM Richard W.M. Jones <<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">These two patches add support for using a Unix domain socket to<br>
directly access imageio in the case where imageio is running on the<br>
conversion host (usually that means virt-v2v is running on the RHV<br>
node and something else -- eg. CFME scripts -- arranges that the RHV<br>
node is the same one running imageio).<br></blockquote><div><br></div><div>Actually CFME does not know anything about this optimization. It is virt-v2v</div><div>starting the transfer on the same host it is running on.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Conversions in the normal case are not affected - they happen over TCP<br>
as usual. </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
This was extremely hard to test, </blockquote><div><br></div><div>Why? is this something that we can improve in ovirt?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">but I did eventually manage to test<br>
it both ways.  </blockquote><div><br></div><div>Do you mean both using https and unix socket?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The log from the Unix domain socket case is here:<br>
<br>
  <a href="https://paste.fedoraproject.org/paste/RDhnpSaoUGI-jccIKy2e-g" rel="noreferrer" target="_blank">https://paste.fedoraproject.org/paste/RDhnpSaoUGI-jccIKy2e-g</a> </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
You can tell that the optimization was used because you will see this<br>
in the debug output:<br>
<br>
  <a href="http://disk.id" rel="noreferrer" target="_blank">disk.id</a> = 'c5bb72bf-b9ab-4797-9ecf-fcbf79679742'<br>
  <a href="http://host.id" rel="noreferrer" target="_blank">host.id</a> = '87daa64d-b27e-4336-a156-973544be708b'<br>
  <a href="http://transfer.id" rel="noreferrer" target="_blank">transfer.id</a> = '2207ddda-00fd-4caf-b02c-e025e8173da9'<br>
  imageio features: flush=True trim=False zero=True unix_socket='\x00/org/ovirt/imageio'<br>
  optimizing connection using unix socket '\x00/org/ovirt/imageio'<br>
<br>
(Note are the references to the unix socket.)<br>
<br>
This requires the absolute latest versions of imageio (1.4.0) and<br>
ovirt-engine (4.2.4-5) in order to get the optimization.  However it<br>
should work (without optimization) with older versions.<br>
<br>
Thanks Nir Soffer and Daniel Erez in particular for help with this.<br>
<br>
Rich.<br>
<br>
</blockquote></div></div>