On Tue, Sep 24, 2019 at 5:21 PM <smidhun...@gmail.com> wrote: > > I'm trying to clone the snapshot into a new vm. The tool I am using is > ovirtBAckup from the github wefixit-AT The link is here > https://github.com/wefixit-AT/oVirtBackup > > this piece of code snippet throws me error. > > if not config.get_dry_run(): > api.vms.add(params.VM(name=vm_clone_name, memory=vm.get_memory(), > cluster=api.clusters.get(config.get_cluster_name()), > snapshots=snapshots_param)) > VMTools.wait_for_vm_operation(api, config, "Cloning", vm_from_list) > print 'hellooooo' > logger.info("Cloning finished") > > The above lines are from the 325 line number of backup.py of the github. > > I am getting error as > > !!! Got a RequestError: > status: 409 > reason: Conflict > detail: Cannot add VM. The VM is performing an operation on a Snapshot. > Please wait for the operation to finish, and try again. > How can i further debug the code to know what is happening wrong in my > program.I am new to python please help me. >
- Can run in debug mode with --debug flag - Could also set set debug=True in [1] - Example how to clone VM from snapshot using ovirt sdk in [2]. [1] https://github.com/wefixit-AT/oVirtBackup/blob/5acd25af6b9876b883c02218f653812d5e7845f3/backup.py#L400 [2] https://lists.ovirt.org/pipermail/users/2016-January/037321.html > _______________________________________________ > Users mailing list -- users@ovirt.org > To unsubscribe send an email to users-le...@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/QFV2KGHO3Z4YRQ3UC3WVIWT43AP2MAVM/ >
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@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/FIXY2YH3KYH75RYDDEDCM2KCHZO2KXDL/