<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Sat, Jun 30, 2018 at 1:39 AM Nir Soffer <<a href="mailto:nirsof@gmail.com">nirsof@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The optimization to start the transfer on the local host makes sense<br>
only when using the rhv-direct=true option. When using a proxy, let the<br>
engine choose a host.<br></blockquote><div><br></div><div>This avoids the issues with running on host from another dc[1] or host in</div><div>maintenance mode[2] when not using rh-direct=true. So I think this worth</div><div>a backport.</div><div><br></div><div><div>[1] <a href="https://bugzilla.redhat.com/1596810">https://bugzilla.redhat.com/1596810</a></div></div><div>[2] <a href="https://bugzilla.redhat.com/1596851">https://bugzilla.redhat.com/1596851</a></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
---<br>
 v2v/rhv-upload-plugin.py | 4 ++--<br>
 1 file changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py<br>
index 8805e3552..1404ed1f5 100644<br>
--- a/v2v/rhv-upload-plugin.py<br>
+++ b/v2v/rhv-upload-plugin.py<br>
@@ -143,8 +143,8 @@ def open(readonly):<br>
     # Get a reference to the transfer service.<br>
     transfers_service = system_service.image_transfers_service()<br>
<br>
-    # Create a new image transfer.<br>
-    host = find_host(connection)<br>
+    # Create a new image transfer, using the local host is possible.<br>
+    host = find_host(connection) if params['rhv_direct'] else None<br>
     transfer = transfers_service.add(<br>
         types.ImageTransfer(<br>
             disk = types.Disk(id = <a href="http://disk.id" rel="noreferrer" target="_blank">disk.id</a>),<br>
-- <br>
2.17.1<br></blockquote><div> </div></div></div>