Displaying 6 results from an estimated 6 matches for "a2d09458".
2019 Nov 21
1
Re: [PATCH 1/2] rhv-upload: Extract cancel_transfer() function
...48. Without this we can
leave leftover disks if get_options() raises.
> Thanks: Martin Kletzander
> ---
> v2v/rhv-upload-plugin.py | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py
> index a2d09458..b9b9e967 100644
> --- a/v2v/rhv-upload-plugin.py
> +++ b/v2v/rhv-upload-plugin.py
> @@ -93,7 +93,7 @@ def open(readonly):
> options = get_options(http, destination_url)
> http = optimize_http(http, host, options)
> except:
> - transfer_service.can...
2019 Nov 18
0
[PATCH v2 11/11] rhv-upload: Clean up username and password
Extract functions for getting the username and password, cleaning up
open().
---
v2v/rhv-upload-plugin.py | 27 ++++++++++++++++-----------
1 file changed, 16 insertions(+), 11 deletions(-)
diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py
index 0dcd164d..a2d09458 100644
--- a/v2v/rhv-upload-plugin.py
+++ b/v2v/rhv-upload-plugin.py
@@ -57,21 +57,26 @@ def debug(s):
print(s, file=sys.stderr)
sys.stderr.flush()
-def open(readonly):
- # Parse out the username from the output_conn URL.
- parsed = urlparse(params['output_conn'])...
2019 Nov 19
0
[PATCH 1/2] rhv-upload: Extract cancel_transfer() function
...in open
transfer_service.cancel()
NameError: name 'transfer_service' is not defined
Thanks: Martin Kletzander
---
v2v/rhv-upload-plugin.py | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py
index a2d09458..b9b9e967 100644
--- a/v2v/rhv-upload-plugin.py
+++ b/v2v/rhv-upload-plugin.py
@@ -93,7 +93,7 @@ def open(readonly):
options = get_options(http, destination_url)
http = optimize_http(http, host, options)
except:
- transfer_service.cancel()
+ cancel_transfer(conn...
2019 Nov 19
5
[PATCH 0/2] rhv-upload: Complete refactoring
Fix NameError introduced by inocomplete change to extract create_transfer() by
extracting cancel_transfer() function.
Finally extract finallize_transfer() function, dealing with the poorly
documented and over complicated oVirt SDK.
Tested with:
libguestfs-1.40.2-4.fc30.x86_64
nbdkit-1.12.8-1.fc30.x86_64
Tested flows:
- Successful import
- Error in close() - by injecting long sleep in vdsm
2019 Nov 20
2
[PATCH] rhv-upload: Support qcow2 disks
...utput format ‘raw’ or ‘qcow2’ is supported. If the input is in a different format then force one of these output formats by adding either ‘-of raw’ or ‘-of qcow2’ on the command line.")
target_format in
diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py
index a2d09458..4272a89f 100644
--- a/v2v/rhv-upload-plugin.py
+++ b/v2v/rhv-upload-plugin.py
@@ -17,6 +17,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
import builtins
+import inspect
import json
import logging
import socket
@@ -456,6 +457,8 @@ def create_disk(connection):...
2019 Nov 18
15
[PATCH v2 00/11] rvh-upload: Various fixes and cleanups
This series extract oVirt SDK and imageio code to make it eaiser to follow the
code and improve error handing in open() and close().
Tested with virt-v2v master.
Changes since v1:
- Rebase on merged patches from v1
- Fix regression introduced by "rhv-upload: Fix cleanup after errors"
- Remove "rhv-upload: Try to remove disk on timeout" since it cannot
succeed
- Add more