Hi Fred!
Thank you very much for your help! It is working!
I only added the following (as suggested in
https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.2/...;
page 12) in order to wait for a vm to go from "image locked" to "down"
state.
vm_service = vms_service.vm_service(vm.id)
while True:
time.sleep(5)
vm_s = vm_service.get()
if vm_s.status == types.VmStatus.DOWN:
break
Thank you once more!
Regards,
Branimir