<div dir="ltr"><div dir="ltr">On Tue, Feb 15, 2022 at 6:49 PM Richard W.M. Jones <<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This simply replaces the existing -oo rhv-direct option with a new -oo<br>
rhv-proxy option.  Note that using this option "bare" (ie. just “-oo<br>
rhv-proxy”) does nothing in the current commit because the default is<br>
still to use the proxy.<br>
<br>
Related: <a href="https://bugzilla.redhat.com/show_bug.cgi?id=2033096" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=2033096</a><br>
Thanks: Nir Soffer<br>
---<br>
 docs/virt-v2v-output-rhv.pod   | 12 +++++-------<br>
 docs/virt-v2v.pod              | 15 ++++++---------<br>
 output/<a href="http://output_rhv_upload.ml" rel="noreferrer" target="_blank">output_rhv_upload.ml</a>    |  8 +++++---<br>
 tests/test-v2v-o-rhv-upload.sh |  1 -<br>
 4 files changed, 16 insertions(+), 20 deletions(-)<br>
<br>
diff --git a/docs/virt-v2v-output-rhv.pod b/docs/virt-v2v-output-rhv.pod<br>
index bd5e80c873..2ce697f4d7 100644<br>
--- a/docs/virt-v2v-output-rhv.pod<br>
+++ b/docs/virt-v2v-output-rhv.pod<br>
@@ -8,7 +8,7 @@ virt-v2v-output-rhv - Using virt-v2v to convert guests to oVirt or RHV<br>
                         [-op PASSWORD] [-of raw]<br>
                         [-oo rhv-cafile=FILE]<br>
                         [-oo rhv-cluster=CLUSTER]<br>
-                        [-oo rhv-direct]<br>
+                        [-oo rhv-proxy]<br>
                         [-oo rhv-disk-uuid=UUID ...]<br>
                         [-oo rhv-verifypeer]<br>
<br>
@@ -129,13 +129,11 @@ the specified UUIDs must not conflict with the UUIDs of existing disks<br>
<br>
 =back<br>
<br>
-=item I<-oo rhv-direct><br>
+=item I<-oo rhv-proxy><br>
<br>
-If this option is given then virt-v2v will attempt to directly upload<br>
-the disk to the oVirt node, otherwise it will proxy the upload through<br>
-the oVirt engine.  Direct upload requires that you have network access<br>
-to the oVirt nodes.  Non-direct upload is slightly slower but should<br>
-work in all situations.<br>
+Proxy the upload through oVirt Engine.  This is slower than uploading<br>
+directly to the oVirt node but may be necessary if you do not have<br>
+direct network access to the nodes.<br>
<br>
 =item I<-oo rhv-verifypeer><br>
<br>
diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod<br>
index 143c50671c..f50d27a0f0 100644<br>
--- a/docs/virt-v2v.pod<br>
+++ b/docs/virt-v2v.pod<br>
@@ -86,8 +86,7 @@ interface(s) are connected to the target network called C<ovirtmgmt>.<br>
  virt-v2v -ic vpx://<a href="http://vcenter.example.com/Datacenter/esxi" rel="noreferrer" target="_blank">vcenter.example.com/Datacenter/esxi</a> vmware_guest \<br>
    -o rhv-upload -oc <a href="https://ovirt-engine.example.com/ovirt-engine/api" rel="noreferrer" target="_blank">https://ovirt-engine.example.com/ovirt-engine/api</a> \<br>
    -os ovirt-data -op /tmp/ovirt-admin-password -of raw \<br>
-   -oo rhv-cafile=/tmp/ca.pem -oo rhv-direct \<br>
-   --bridge ovirtmgmt<br>
+   -oo rhv-cafile=/tmp/ca.pem --bridge ovirtmgmt<br>
<br>
 In this case the host running virt-v2v acts as a B<conversion server>.<br>
<br>
@@ -621,14 +620,12 @@ on the oVirt engine.<br>
 For I<-o rhv-upload> (L<virt-v2v-output-rhv(1)>) only, set the RHV Cluster<br>
 Name.  If not given it uses C<Default>.<br>
<br>
-=item B<-oo rhv-direct><br>
+=item B<-oo rhv-proxy><br>
<br>
-For I<-o rhv-upload> (L<virt-v2v-output-rhv(1)>) only, if this option is given<br>
-then virt-v2v will attempt to directly upload the disk to the oVirt<br>
-node, otherwise it will proxy the upload through the oVirt engine.<br>
-Direct upload requires that you have network access to the oVirt<br>
-nodes.  Non-direct upload is slightly slower but should work in all<br>
-situations.<br>
+For I<-o rhv-upload> (L<virt-v2v-output-rhv(1)>) only, proxy the<br>
+upload through oVirt Engine.  This is slower than uploading directly<br>
+to the oVirt node but may be necessary if you do not have direct<br>
+network access to the nodes.<br>
<br>
 =item B<-oo rhv-verifypeer><br>
<br>
diff --git a/output/<a href="http://output_rhv_upload.ml" rel="noreferrer" target="_blank">output_rhv_upload.ml</a> b/output/<a href="http://output_rhv_upload.ml" rel="noreferrer" target="_blank">output_rhv_upload.ml</a><br>
index 7c2434bde4..d3b5b412db 100644<br>
--- a/output/<a href="http://output_rhv_upload.ml" rel="noreferrer" target="_blank">output_rhv_upload.ml</a><br>
+++ b/output/<a href="http://output_rhv_upload.ml" rel="noreferrer" target="_blank">output_rhv_upload.ml</a><br>
@@ -50,9 +50,9 @@ module RHVUpload = struct<br>
   let query_output_options () =<br>
     printf (f_"Output options (-oo) which can be used with -o rhv-upload:<br>
<br>
-  -oo rhv-cafile=CA.PEM           Set ‘ca.pem’ certificate bundle filename.<br>
-  -oo rhv-cluster=CLUSTERNAME     Set RHV cluster name.<br>
-  -oo rhv-direct[=true|false]     Use direct transfer mode (default: false).<br>
+  -oo rhv-cafile=CA.PEM         Set ‘ca.pem’ certificate bundle filename.<br>
+  -oo rhv-cluster=CLUSTERNAME   Set RHV cluster name.<br>
+  -oo rhv-proxy                 Connect via oVirt Engine proxy (default: true).<br>
   -oo rhv-verifypeer[=true|false] Verify server identity (default: false).<br>
<br>
 You can override the UUIDs of the disks, instead of using autogenerated UUIDs<br>
@@ -97,6 +97,8 @@ after their uploads (if you do, you must supply one for each disk):<br>
          rhv_cluster := Some v<br>
       | "rhv-direct", "" -> rhv_direct := true<br>
       | "rhv-direct", v -> rhv_direct := bool_of_string v<br>
+      | "rhv-proxy", "" -> rhv_direct := false<br>
+      | "rhv-proxy", v -> rhv_direct := not (bool_of_string v)<br>
       | "rhv-verifypeer", "" -> rhv_verifypeer := true<br>
       | "rhv-verifypeer", v -> rhv_verifypeer := bool_of_string v<br>
       | "rhv-disk-uuid", v -><br>
diff --git a/tests/test-v2v-o-rhv-upload.sh b/tests/test-v2v-o-rhv-upload.sh<br>
index f6aabda7cc..15d5d02818 100755<br>
--- a/tests/test-v2v-o-rhv-upload.sh<br>
+++ b/tests/test-v2v-o-rhv-upload.sh<br>
@@ -70,6 +70,5 @@ $VG virt-v2v --debug-gc -v -x \<br>
     -o rhv-upload \<br>
     -oc <a href="https://example.com/ovirt-engine/api" rel="noreferrer" target="_blank">https://example.com/ovirt-engine/api</a> \<br>
     -oo rhv-cafile=/dev/null \<br>
-    -oo rhv-direct \<br>
     -op /dev/null \<br>
     -os Storage<br>
-- <br>
2.35.1<br></blockquote><div><br></div><div>Looks good, much more clear than the original name that nobody</div><div>understood.</div><div><br></div><div>Nir </div></div></div>