On 15 Jan 2020, at 23:12, paolo@airaldi.it wrote:

Hello everybody!

I'm trying to automate a copy of a VM from one Datacenter to another using an Ansible.playbook.

I'm able to:
- Create a snapshot of the source VM
- create a clone from the snapshot
- remove the snapshot
- attach an Export Domain
- export the clone to the Export Domain
- remove the clone
- detach the Export domain from the source Datacenter and attach to the destination.

Unfortunately I cannot find a module to:
- import the VM from the Export Domain
- delete the VM image from the Export Domain.

Hi,
those are legacy flows, on their way out. Use OVA export and import, it’s going to be much more straightforward. 
See import and export examples at https://github.com/oVirt/ovirt-engine-sdk/tree/master/sdk/examples
It is in ansible too

Thanks,
michal


Any hint on how to do that?

Thanks in advance. Cheers.

Paolo


PS: if someone is interested I can share the playbook.
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/QMFXXQFYYW6SJ43QO6W44IQZ2M3V2WU2/