This patch series fixes various issues in the rhv-upload output mode:
- properly find and use RHV resources
- cleanup orphan disks, and possibly the current disk transfer on
failure
In reality, the first 4 patches deal with resources, and the other 4
with cleanups. The latter block can be theoretically sent alone --
I just happened to start working on it as part of my "let's fix
rhv-upload oddities" initiative.
Pino Toscano (8):
v2v: -o rhv-upload: split vmcheck out of precheck
v2v: -o rhv-upload: change precheck script to return a JSON
v2v: -o rhv-upload: improve lookup of specified resources
(RHBZ#1612653)
v2v: -o rhv-upload: tell whether a SD actually exists
v2v: add output#disk_copied hook
v2v: -o rhv-upload: collect disks UUIDs right after copy
v2v: -o rhv-upload: remove uploaded disks on failure
v2v: -o rhv-upload: cancel disk transfer on failure
v2v/Makefile.am | 14 ++-
v2v/output_rhv_upload.ml | 106 ++++++++++++++-----
v2v/output_rhv_upload_deletedisks_source.mli | 19 ++++
v2v/output_rhv_upload_vmcheck_source.mli | 19 ++++
v2v/rhv-upload-createvm.py | 11 +-
v2v/rhv-upload-deletedisks.py | 71 +++++++++++++
v2v/rhv-upload-plugin.py | 2 +
v2v/rhv-upload-precheck.py | 55 +++++++---
v2v/rhv-upload-vmcheck.py | 73 +++++++++++++
v2v/types.ml | 1 +
v2v/types.mli | 4 +
v2v/v2v.ml | 9 +-
12 files changed, 331 insertions(+), 53 deletions(-)
create mode 100644 v2v/output_rhv_upload_deletedisks_source.mli
create mode 100644 v2v/output_rhv_upload_vmcheck_source.mli
create mode 100644 v2v/rhv-upload-deletedisks.py
create mode 100644 v2v/rhv-upload-vmcheck.py
--
2.21.0