[ovirt-users] Incremental backup using ovirt api

2019-09-28 Thread smidhunraj
Hi,
I tried to take incremental backup of a vm using this script.

 public function downloadDiskIncremental(){

  $data=array();



   $xmlStr = "

  incremental
 
";

  $curlParam=array(
  "url" => 
"vms/4044e014-7e20-4dbc-abe5-64690ec45f63/diskattachments",
  "method" => "POST",
  "data" =>$xmlStr,


  );
}

But it is throwing me error as
Array ( [status] => error [message] => For correct usage, see: 
https://ovirt.bobcares.com/ovirt-engine/api/v4/model#services/disk-attachments/methods/add
 
Please help me with this issue
   
___
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/7BON6MWHIDJCZ3IWTTJVWXEP2NMJYGGP/


[ovirt-users] Incremental backup using ovirt api

2019-09-28 Thread smidhunraj
Hi,
I tried to take incremental backup of a vm using this script.

 public function downloadDiskIncremental(){

  $data=array();



   $xmlStr = "

  incremental
 
";

  $curlParam=array(
  "url" => 
"vms/4044e014-7e20-4dbc-abe5-64690ec45f63/diskattachments",
  "method" => "POST",
  "data" =>$xmlStr,


  );
}

But it is throwing me error as
Array ( [status] => error [message] => For correct usage, see: 
https://ovirt.bobcares.com/ovirt-engine/api/v4/model#services/disk-attachments/methods/add
 
Please help me with this issue
   
___
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/AZPPQRUCAV6MFJYZXHNBNM3RJVQEPHIX/


[ovirt-users] How to take incremental backup of a vm

2019-09-27 Thread smidhunraj
Can you tell me the method on how to take incremental backup of a VM in ovirt 
.Is there any opensource python script available to get this done.
___
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/4ULD53SLA62RFDW7RKXXIKHM4NFQGNUB/


[ovirt-users] Got a RequestError: status: 409 reason: Conflict

2019-09-24 Thread smidhunraj

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 'hello'
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.
___
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/


[ovirt-users] Attach the snapshot to the backup virtual machine and activate the disk

2019-07-23 Thread smidhunraj
This is the doubt regarding to the rest api 



Can you please tell me what would be the response of the api request of step 4 
((will it be a success or a error))
=

Attach the snapshot to the backup virtual machine and activate the disk:

 POST /api/vms/----/disks/ HTTP/1.1
 Accept: application/xml
 Content-type: application/xml

 
 
 true
 


==
 

if we are  setting up a  bare VM without any backup mechanism in it and try to 
attach a vm to it.
___
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/OLXHVPK7KHRSU4ITIWEZWGST45P7SKDA/