Log the params dict passed from v2v to the plugin for easier debugging.
Here is an example output:
using params: {'diskid_file':
'/home/nsoffer/src/virt-v2v/tmp/rhvupload.To9y8J/diskid.0',
'disk_size': 6442450944, 'disk_format': 'raw',
'disk_name': 'v2v-000', 'output_name': 'v2v',
'verbose': True, 'output_conn': 'https://engine/ovirt-engine/api',
'output_password': '/var/tmp/engine-password',
'output_storage': 'nfs1-export2', 'output_sparse': True,
'rhv_cafile': '/etc/pki/vdsm/certs/cacert.pem',
'rhv_cluster': 'fc30', 'rhv_direct': True, 'insecure':
True}
---
v2v/rhv-upload-plugin.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py
index 7ed521f3..a9e82250 100644
--- a/v2v/rhv-upload-plugin.py
+++ b/v2v/rhv-upload-plugin.py
@@ -46,6 +46,7 @@ def config(key, value):
if key == "params":
with builtins.open(value, 'r') as fp:
params = json.load(fp)
+ debug("using params: %s" % params)
else:
raise RuntimeError("unknown configuration key '%s'" % key)
--
2.21.0