[Libguestfs] [PATCH] -o rhv-upload: wait for VM creation task

Tomáš Golembiovský tgolembi at redhat.com
Wed Apr 13 09:03:24 UTC 2022


On Tue, Apr 12, 2022 at 08:34:27PM +0200, Tomáš Golembiovský wrote:
> oVirt API call for VM creation finishes before the VM is actually
> created. Entities may be still locked after virt-v2v terminates and if
> user tries to perform (scripted) actions after virt-v2v those operations
> may fail. To prevent this it is useful to monitor the task and wait for
> the completion. This will also help to prevent some corner case
> scenarios (that would be difficult to debug) when the VM creation job
> fails after virt-v2v already termintates with success.
> 

Forgot to mention this is related to bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1985827


> Thanks: Nir Soffer
> Signed-off-by: Tomáš Golembiovský <tgolembi at redhat.com>
> Reviewed-by: Arik Hadas <ahadas at redhat.com>
> ---
>  output/rhv-upload-createvm.py | 57 ++++++++++++++++++++++++++++++++++-
>  1 file changed, 56 insertions(+), 1 deletion(-)

-- 
Tomáš Golembiovský <tgolembi at redhat.com>



More information about the Libguestfs mailing list