
Hello everyone, i created a python tool to backup and restore oVirt's VMs. Also i created a little "how to" on my blog: http://blog.infratic.com/2017/07/create-ovirtrhevs-vm-backup/ I hope it help someone else Regards Victor Acosta

Thanks for sharing, looks great ! One remark, you should choose a license for your code and add it to the github repo. [1] [1] https://github.com/vacosta94/VirtBKP On Sat, Jul 8, 2017 at 12:40 AM, Victor José Acosta Domínguez < vic.ad94@gmail.com> wrote:
Hello everyone, i created a python tool to backup and restore oVirt's VMs.
Also i created a little "how to" on my blog: http://blog.infratic.com/2017/07/create-ovirtrhevs-vm-backup/
I hope it help someone else
Regards
Victor Acosta
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

This is a multi-part message in MIME format. --------------CCF81E5AB34D69D2C0BD504E Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hello Victor, I have some questions about your script Le 07/07/2017 =C3=A0 23:40, Victor Jos=C3=A9 Acosta Dom=C3=ADnguez a =C3=A9= crit :
Hello everyone, i created a python tool to backup and restore oVirt's V= Ms.
Also i created a little "how to" on my blog: http://blog.infratic.com/2017/07/create-ovirtrhevs-vm-backup/
* Backup step is okay, and I get a usable qcow2 image of the snapshot vm in the backup vm. It seems to be compliant with the official backup API, except on the step 2. 1. /Take a snapshot of the virtual machine to be backed up - (existing oVirt REST API operation)/ 2. /Back up the virtual machine configuration at the time of the snapshot (the disk configuration can be backed up as well if needed) - (added capability to oVirt as part of the Backup API)/ I can't see any vm configuration anywhere but only the qcow2 disk itself 1. /Attach the disk snapshots that were created in (1) to the virtual appliance for data backup - (added capability to oVirt as part of the Backup API)/ 2. / / 3. /Detach the disk snapshots that were attached in (4) from the virtual appliance - (added capability to oVirt as part of the Backup API)/ An other case is when the vm to backup has more than one disk. After I=20 tested it, I found that only one qcow2 disk is saved on the backup vm.=20 This is really a matter when the original vm has many disks part of lvm,=20 it makes the vm restoration unusable. * About vm restoration, it seems that you are using the upload_disk api, so the disk is uploaded to the pre-defined storage domain, so it is not a real vm restoration. Do you plan to backup and restore a full VM (disks + vm definition) in a=20 next release?
I hope it help someone else
Regards
Victor Acosta
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr --------------CCF81E5AB34D69D2C0BD504E Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf= -8"> </head> <body text=3D"#000000" bgcolor=3D"#FFFFFF"> <p>Hello Victor,</p> <p>I have some questions about your script<br> </p> <br> <div class=3D"moz-cite-prefix">Le 07/07/2017 =C3=A0 23:40, Victor Jos= =C3=A9 Acosta Dom=C3=ADnguez a =C3=A9crit=C2=A0:<br> </div> <blockquote type=3D"cite" cite=3D"mid:CAPdL93TR3CGcABZbfxiOH+WjyQb-K+itVHBDDBK3kimJSSe9uw@mail.gmai= l.com"> <div dir=3D"ltr"> <div>Hello everyone, i created a python tool to backup and restore oVirt's VMs.</div> <div><br> </div> <div>Also i created a little "how to" on my blog:</div> <div><a href=3D"http://blog.infratic.com/2017/07/create-ovirtrhevs-vm= -backup/" moz-do-not-send=3D"true">http://blog.infratic.com/2017/07/cre= ate-ovirtrhevs-vm-backup/</a></div> </div> </blockquote> <ul> <li>Backup step is okay, and I get a usable qcow2 image of the snapshot vm in the backup vm. It seems to be compliant with the official backup API, except on the step 2.</li> </ul> <ol> <li><i>Take a snapshot of the virtual machine to be backed up - (existing oVirt REST API operation)</i></li> <li><i>Back up the virtual machine configuration at the time of the snapshot (the disk configuration can be backed up as well if needed) - (added capability to oVirt as part of the Backup API)</i></li> </ol> <p><font color=3D"#ff0000">I can't see any vm configuration anywhere but only the qcow2 disk itself</font></p> <ol> <li><i>Attach the disk snapshots that were created in (1) to the virtual appliance for data backup - (added capability to oVirt as part of the Backup API)</i></li> <li> <i><br> </i></li> <li><i>Detach the disk snapshots that were attached in (4) from the virtual appliance - (added capability to oVirt as part of the Backup API)</i></li> </ol> <p>An other case is when the vm to backup has more than one disk. After I tested it, I found that only one qcow2 disk is saved on the backup vm. This is really a matter when the original vm has many disks part of lvm, it makes the vm restoration unusable.<br> </p> <ul> <li>About vm restoration, it seems that you are using the upload_disk api, so the disk is uploaded to the pre-defined storage domain, so it is not a real vm restoration.=C2=A0=C2=A0=C2= =A0 <br> </li> </ul> <p>Do you plan to backup and restore a full VM (disks + vm definition) in a next release?<br> </p> <blockquote type=3D"cite" cite=3D"mid:CAPdL93TR3CGcABZbfxiOH+WjyQb-K+itVHBDDBK3kimJSSe9uw@mail.gmai= l.com"> <div dir=3D"ltr"> <div><br> </div> <div>I hope it help someone else</div> <div><br> </div> <div>Regards</div> <div><br clear=3D"all"> <div> <div class=3D"gmail_signature"> <div dir=3D"ltr"> <div> <div dir=3D"ltr"> <div> <div dir=3D"ltr"> <div> <div dir=3D"ltr"> <div> <div dir=3D"ltr"> <div> <div dir=3D"ltr"> <div> <div dir=3D"ltr"> <div> <div dir=3D"ltr"><span>Victor Acosta<br> <br> </span></div> <div><span></span></div> <div dir=3D"ltr"><span></span><= span><span><img src=3D"https://docs.google.com/uc?id=3D0BxRkeOBHApwsV2Ywcl92YWlaQnc&e= xport=3Ddownload" moz-do-not-send=3D"true= " height=3D"96" width=3D"= 77"><img src=3D"https://docs.google.com/uc?id=3D0BxRkeOBHApwsWDFFcGZ2X1czc1E&e= xport=3Ddownload" moz-do-not-send=3D"true= " height=3D"96" width=3D"= 76"><img src=3D"https://docs.google.com/uc?id=3D0BxRkeOBHApwsMTVrSHp2Y0NEY28&e= xport=3Ddownload" moz-do-not-send=3D"true= " height=3D"96" width=3D"= 93"></span></span><br> <img alt=3D"" moz-do-not-send=3D"true"></= div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <br> <fieldset class=3D"mimeAttachmentHeader"></fieldset> <br> <pre wrap=3D"">_______________________________________________ Users mailing list <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:Users@ovirt.org">Use= rs@ovirt.org</a> <a class=3D"moz-txt-link-freetext" href=3D"http://lists.ovirt.org/mailman= /listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a> </pre> </blockquote> <br> <pre class=3D"moz-signature" cols=3D"72">--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:blanchet@abes.fr">bl= anchet@abes.fr</a> </pre> </body> </html> --------------CCF81E5AB34D69D2C0BD504E--

Hi Nathanael, You may want to take a look at this too: https://github.com/bjuanico/oVirtBackup Regards, Bernardo PGP Key <http://pgp.mit.edu/pks/lookup?op=get&search=0x695E5BCE34263F5B> Skype: mattraken 2017-09-21 11:00 GMT-03:00 Nathanaël Blanchet <blanchet@abes.fr>:
Hello Victor,
I have some questions about your script
Le 07/07/2017 à 23:40, Victor José Acosta Domínguez a écrit :
Hello everyone, i created a python tool to backup and restore oVirt's VMs.
Also i created a little "how to" on my blog: http://blog.infratic.com/2017/07/create-ovirtrhevs-vm-backup/
- Backup step is okay, and I get a usable qcow2 image of the snapshot vm in the backup vm. It seems to be compliant with the official backup API, except on the step 2.
1. *Take a snapshot of the virtual machine to be backed up - (existing oVirt REST API operation)* 2. *Back up the virtual machine configuration at the time of the snapshot (the disk configuration can be backed up as well if needed) - (added capability to oVirt as part of the Backup API)*
I can't see any vm configuration anywhere but only the qcow2 disk itself
1. *Attach the disk snapshots that were created in (1) to the virtual appliance for data backup - (added capability to oVirt as part of the Backup API)* 2. 3. *Detach the disk snapshots that were attached in (4) from the virtual appliance - (added capability to oVirt as part of the Backup API)*
An other case is when the vm to backup has more than one disk. After I tested it, I found that only one qcow2 disk is saved on the backup vm. This is really a matter when the original vm has many disks part of lvm, it makes the vm restoration unusable.
- About vm restoration, it seems that you are using the upload_disk api, so the disk is uploaded to the pre-defined storage domain, so it is not a real vm restoration.
Do you plan to backup and restore a full VM (disks + vm definition) in a next release?
I hope it help someone else
Regards
Victor Acosta
_______________________________________________ Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
-- Nathanaël Blanchet
Supervision réseau Pôle Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14blanchet@abes.fr
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

This is a multi-part message in MIME format. --------------9E6EDD31EB2E0839BEB900AD Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi Bernardo, Thanks, I knew this tool, but it is based on sdk3 which will be removed=20 in the next version 4.2, so I'm looking at sdk4 project. You may want to adapt it? Le 21/09/2017 =C3=A0 17:08, Bernardo Juanic=C3=B3 a =C3=A9crit :
Hi Nathanael,
You may want to take a look at this too:
https://github.com/bjuanico/oVirtBackup=20 <https://github.com/bjuanico/oVirtBackup>
Regards,
Bernardo
PGP Key <http://pgp.mit.edu/pks/lookup?op=3Dget&search=3D0x695E5BCE3426= 3F5B> Skype: mattraken
2017-09-21 11:00 GMT-03:00 Nathana=C3=ABl Blanchet <blanchet@abes.fr=20 <mailto:blanchet@abes.fr>>:
Hello Victor,
I have some questions about your script
Le 07/07/2017 =C3=A0 23:40, Victor Jos=C3=A9 Acosta Dom=C3=ADnguez = a =C3=A9crit :
Hello everyone, i created a python tool to backup and restore oVirt's VMs.
Also i created a little "how to" on my blog: http://blog.infratic.com/2017/07/create-ovirtrhevs-vm-backup/ <http://blog.infratic.com/2017/07/create-ovirtrhevs-vm-backup/>
* Backup step is okay, and I get a usable qcow2 image of the snapshot vm in the backup vm. It seems to be compliant with the official backup API, except on the step 2.
1. /Take a snapshot of the virtual machine to be backed up - (existing oVirt REST API operation)/ 2. /Back up the virtual machine configuration at the time of the snapshot (the disk configuration can be backed up as well if needed) - (added capability to oVirt as part of the Backup API)= /
I can't see any vm configuration anywhere but only the qcow2 disk itself
1. /Attach the disk snapshots that were created in (1) to the virtual appliance for data backup - (added capability to oVirt as part of the Backup API)/ 2. / / 3. /Detach the disk snapshots that were attached in (4) from the virtual appliance - (added capability to oVirt as part of the Backup API)/
An other case is when the vm to backup has more than one disk. After I tested it, I found that only one qcow2 disk is saved on the backup vm. This is really a matter when the original vm has many disks part of lvm, it makes the vm restoration unusable.
* About vm restoration, it seems that you are using the upload_disk api, so the disk is uploaded to the pre-defined storage domain, so it is not a real vm restoration.
Do you plan to backup and restore a full VM (disks + vm definition) in a next release?
I hope it help someone else
Regards
Victor Acosta
_______________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users <http://lists.ovirt.org/mailman/listinfo/users>
--=20 Nathana=C3=ABl Blanchet
Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr <mailto:blanchet@abes.fr> =20
_______________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users <http://lists.ovirt.org/mailman/listinfo/users>
--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr --------------9E6EDD31EB2E0839BEB900AD Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf= -8"> </head> <body text=3D"#000000" bgcolor=3D"#FFFFFF"> <p>Hi Bernardo,</p> <p>Thanks, I knew this tool, but it is based on sdk3 which will be removed in the next version 4.2, so I'm looking at sdk4 project. <b= r> </p> <p>You may want to adapt it?<br> </p> <br> <div class=3D"moz-cite-prefix">Le 21/09/2017 =C3=A0 17:08, Bernardo J= uanic=C3=B3 a =C3=A9crit=C2=A0:<br> </div> <blockquote type=3D"cite" cite=3D"mid:CA+PB0ihREWCa9-nko01=3D6v2GWXE4YeEBSmnZ7gryRF=3DOS_y5fg@mail.= gmail.com"> <div dir=3D"ltr">Hi Nathanael,=C2=A0 <div><br> </div> <div>You may want to take a look at this too:<br> <br> <a href=3D"https://github.com/bjuanico/oVirtBackup" target=3D"_blank" moz-do-not-send=3D"true">https://github.com= /bjuanico/<wbr>oVirtBackup</a><br> </div> <div><br> </div> <div>Regards,</div> <div><br> </div> <div>Bernardo</div> <div class=3D"gmail_extra"><br clear=3D"all"> <div> <div class=3D"m_-6967630627070421401gmail_signature" data-smartmail=3D"gmail_signature"> <div dir=3D"ltr"><a href=3D"http://pgp.mit.edu/pks/lookup?op=3Dget&search=3D0x695E5BCE342= 63F5B" target=3D"_blank" moz-do-not-send=3D"true">PGP Key</a><= br> <div><a moz-do-not-send=3D"true">Skype: mattraken</a><br> </div> </div> </div> </div> <br> <div class=3D"gmail_quote">2017-09-21 11:00 GMT-03:00 Nathana=C3= =ABl Blanchet <span dir=3D"ltr"><<a href=3D"mailto:blanchet@abes.fr" target=3D"_blank" moz-do-not-send=3D"true">blanchet@abes.fr</a>></span>:= <br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div text=3D"#000000" bgcolor=3D"#FFFFFF"> <p>Hello Victor,</p> <p>I have some questions about your script<br> </p> <br> <div class=3D"m_-6967630627070421401m_7400844792036080505moz= -cite-prefix">Le 07/07/2017 =C3=A0 23:40, Victor Jos=C3=A9 Acosta Dom=C3= =ADnguez a =C3=A9crit=C2=A0:<br> </div> <blockquote type=3D"cite"> <div dir=3D"ltr"> <div>Hello everyone, i created a python tool to backup and restore oVirt's VMs.</div> <div><br> </div> <div>Also i created a little "how to" on my blog:</di= v> <div><a href=3D"http://blog.infratic.com/2017/07/create-o= virtrhevs-vm-backup/" target=3D"_blank" moz-do-not-send=3D"true">http:/= /blog.infratic.com/2017/<wbr>07/create-ovirtrhevs-vm-backup<wbr>/</a></di= v> </div> </blockquote> <ul> <li>Backup step is okay, and I get a usable qcow2 image of the snapshot vm in the backup vm. It seems to be compliant with the official backup API, except on the step 2.</li> </ul> <ol> <li><i>Take a snapshot of the virtual machine to be backed up - (existing oVirt REST API operation)</i>= </li> <li><i>Back up the virtual machine configuration at the time of the snapshot (the disk configuration can be backed up as well if needed) - (added capability to oVirt as part of the Backup API)</i><= /li> </ol> <p><font color=3D"#ff0000">I can't see any vm configuration anywhere but only the qcow2 disk itself</font></p> <ol> <li><i>Attach the disk snapshots that were created in (1) to the virtual appliance for data backup - (added capability to oVirt as part of the Backup API)</i></li> <li> <i><br> </i></li> <li><i>Detach the disk snapshots that were attached in (4) from the virtual appliance - (added capability to oVirt as part of the Backup API)</i></li> </ol> <p>An other case is when the vm to backup has more than one disk. After I tested it, I found that only one qcow2 disk is saved on the backup vm. This is really a matter when the original vm has many disks part of lvm, it makes the vm restoration unusable.<br> </p> <ul> <li>About vm restoration, it seems that you are using the upload_disk api, so the disk is uploaded to the pre-defined storage domain, so it is not a real vm restoration.=C2=A0=C2=A0=C2=A0 <br> </li> </ul> <p>Do you plan to backup and restore a full VM (disks + vm definition) in a next release?<br> </p> <blockquote type=3D"cite"> <div dir=3D"ltr"> <div><br> </div> <div>I hope it help someone else</div> <div><br> </div> <div>Regards</div> <div><br clear=3D"all"> <div> <div class=3D"m_-6967630627070421401m_74008447920360= 80505gmail_signature"> <div dir=3D"ltr"> <div> <div dir=3D"ltr"> <div> <div dir=3D"ltr"> <div> <div dir=3D"ltr"> <div> <div dir=3D"ltr"> <div> <div dir=3D"ltr"> <div> <div dir=3D"ltr"> <div> <div dir=3D"ltr"><s= pan>Victor Acosta<br> <br> </span></div> <div><span></span><= /div> <div dir=3D"ltr"><s= pan></span><span><span><img src=3D"https://docs.google.com/uc?id=3D0BxRkeOBHApwsV2Ywcl92YWlaQnc&e= xport=3Ddownload" moz-do-not-send=3D"true" height=3D"96" width=3D"77"><img src=3D"https://docs.google.com/uc?id=3D0BxRkeOBHApwsWDFFcGZ2X1czc1E&e= xport=3Ddownload" moz-do-not-send=3D"true" height=3D"96" width=3D"76"><img src=3D"https://docs.google.com/uc?id=3D0BxRkeOBHApwsMTVrSHp2Y0NEY28&e= xport=3Ddownload" moz-do-not-send=3D"true" height=3D"96" width=3D"93"></span></span><br> <img alt=3D"" moz-do-not-send= =3D"true"></div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <br> <fieldset class=3D"m_-6967630627070421401m_7400844792036080505m= imeAttachmentHeader"></fieldset> <br> <pre>______________________________<wbr>_______________= __ Users mailing list <a class=3D"m_-6967630627070421401m_7400844792036080505moz-txt-link-abbre= viated" href=3D"mailto:Users@ovirt.org" target=3D"_blank" moz-do-not-send= =3D"true">Users@ovirt.org</a> <a class=3D"m_-6967630627070421401m_7400844792036080505moz-txt-link-freet= ext" href=3D"http://lists.ovirt.org/mailman/listinfo/users" target=3D"_bl= ank" moz-do-not-send=3D"true">http://lists.ovirt.org/mailman<wbr>/listinf= o/users</a><span class=3D"m_-6967630627070421401HOEnZb"><font color=3D"#8= 88888"> </font></span></pre> <span class=3D"m_-6967630627070421401HOEnZb"><font color=3D"#888888"> </font></span></blockquote> <span class=3D"m_-6967630627070421401HOEnZb"><font color=3D"#888888"> <br> <pre class=3D"m_-6967630627070421401m_740084479203608= 0505moz-signature" cols=3D"72">--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a class=3D"m_-6967630627070421401m_7400844792036080505moz-txt-link-abbre= viated" href=3D"mailto:blanchet@abes.fr" target=3D"_blank" moz-do-not-sen= d=3D"true">blanchet@abes.fr</a> </pre> </font></span></div> <br> ______________________________<wbr>_________________<br> Users mailing list<br> <a href=3D"mailto:Users@ovirt.org" target=3D"_blank" moz-do-not-send=3D"true">Users@ovirt.org</a><br> <a href=3D"http://lists.ovirt.org/mailman/listinfo/users" rel=3D"noreferrer" target=3D"_blank" moz-do-not-send=3D"t= rue">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br> <br> </blockquote> </div> <br> </div> </div> </blockquote> <br> <pre class=3D"moz-signature" cols=3D"72">--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:blanchet@abes.fr">bl= anchet@abes.fr</a> </pre> </body> </html> --------------9E6EDD31EB2E0839BEB900AD--

I didnt know that, we may adapt it in the future, but at first we will probably just write a basic set of scripts for minimal backup functionally since our dev time is limited. Ill keep you in mind when looking into it. Regards, Bernardo PGP Key <http://pgp.mit.edu/pks/lookup?op=get&search=0x695E5BCE34263F5B> Skype: mattraken 2017-09-21 13:08 GMT-03:00 Nathanaël Blanchet <blanchet@abes.fr>:
Hi Bernardo,
Thanks, I knew this tool, but it is based on sdk3 which will be removed in the next version 4.2, so I'm looking at sdk4 project.
You may want to adapt it?
Le 21/09/2017 à 17:08, Bernardo Juanicó a écrit :
Hi Nathanael,
You may want to take a look at this too:
https://github.com/bjuanico/oVirtBackup
Regards,
Bernardo
PGP Key <http://pgp.mit.edu/pks/lookup?op=get&search=0x695E5BCE34263F5B> Skype: mattraken
2017-09-21 11:00 GMT-03:00 Nathanaël Blanchet <blanchet@abes.fr>:
Hello Victor,
I have some questions about your script
Le 07/07/2017 à 23:40, Victor José Acosta Domínguez a écrit :
Hello everyone, i created a python tool to backup and restore oVirt's VMs.
Also i created a little "how to" on my blog: http://blog.infratic.com/2017/07/create-ovirtrhevs-vm-backup/
- Backup step is okay, and I get a usable qcow2 image of the snapshot vm in the backup vm. It seems to be compliant with the official backup API, except on the step 2.
1. *Take a snapshot of the virtual machine to be backed up - (existing oVirt REST API operation)* 2. *Back up the virtual machine configuration at the time of the snapshot (the disk configuration can be backed up as well if needed) - (added capability to oVirt as part of the Backup API)*
I can't see any vm configuration anywhere but only the qcow2 disk itself
1. *Attach the disk snapshots that were created in (1) to the virtual appliance for data backup - (added capability to oVirt as part of the Backup API)* 2. 3. *Detach the disk snapshots that were attached in (4) from the virtual appliance - (added capability to oVirt as part of the Backup API)*
An other case is when the vm to backup has more than one disk. After I tested it, I found that only one qcow2 disk is saved on the backup vm. This is really a matter when the original vm has many disks part of lvm, it makes the vm restoration unusable.
- About vm restoration, it seems that you are using the upload_disk api, so the disk is uploaded to the pre-defined storage domain, so it is not a real vm restoration.
Do you plan to backup and restore a full VM (disks + vm definition) in a next release?
I hope it help someone else
Regards
Victor Acosta
_______________________________________________ Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
-- Nathanaël Blanchet
Supervision réseau Pôle Infrastrutures Informatiques227 avenue Professeur-Jean-Louis-Viala <https://maps.google.com/?q=227+avenue+Professeur-Jean-Louis-Viala&entry=gmail&source=g> 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14blanchet@abes.fr
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Nathanaël Blanchet
Supervision réseau Pôle Infrastrutures Informatiques227 avenue Professeur-Jean-Louis-Viala <https://maps.google.com/?q=227+avenue+Professeur-Jean-Louis-Viala&entry=gmail&source=g> 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14blanchet@abes.fr

Hi, You may check my project Bacchus at https://github.com/openbacchus/bacchus On Sep 21, 2017 19:54, "Bernardo Juanicó" <bjuanico@gmail.com> wrote: I didnt know that, we may adapt it in the future, but at first we will probably just write a basic set of scripts for minimal backup functionally since our dev time is limited. Ill keep you in mind when looking into it. Regards, Bernardo PGP Key <http://pgp.mit.edu/pks/lookup?op=get&search=0x695E5BCE34263F5B> Skype: mattraken 2017-09-21 13:08 GMT-03:00 Nathanaël Blanchet <blanchet@abes.fr>:
Hi Bernardo,
Thanks, I knew this tool, but it is based on sdk3 which will be removed in the next version 4.2, so I'm looking at sdk4 project.
You may want to adapt it?
Le 21/09/2017 à 17:08, Bernardo Juanicó a écrit :
Hi Nathanael,
You may want to take a look at this too:
https://github.com/bjuanico/oVirtBackup
Regards,
Bernardo
PGP Key <http://pgp.mit.edu/pks/lookup?op=get&search=0x695E5BCE34263F5B> Skype: mattraken
2017-09-21 11:00 GMT-03:00 Nathanaël Blanchet <blanchet@abes.fr>:
Hello Victor,
I have some questions about your script
Le 07/07/2017 à 23:40, Victor José Acosta Domínguez a écrit :
Hello everyone, i created a python tool to backup and restore oVirt's VMs.
Also i created a little "how to" on my blog: http://blog.infratic.com/2017/07/create-ovirtrhevs-vm-backup/
- Backup step is okay, and I get a usable qcow2 image of the snapshot vm in the backup vm. It seems to be compliant with the official backup API, except on the step 2.
1. *Take a snapshot of the virtual machine to be backed up - (existing oVirt REST API operation)* 2. *Back up the virtual machine configuration at the time of the snapshot (the disk configuration can be backed up as well if needed) - (added capability to oVirt as part of the Backup API)*
I can't see any vm configuration anywhere but only the qcow2 disk itself
1. *Attach the disk snapshots that were created in (1) to the virtual appliance for data backup - (added capability to oVirt as part of the Backup API)* 2. 3. *Detach the disk snapshots that were attached in (4) from the virtual appliance - (added capability to oVirt as part of the Backup API)*
An other case is when the vm to backup has more than one disk. After I tested it, I found that only one qcow2 disk is saved on the backup vm. This is really a matter when the original vm has many disks part of lvm, it makes the vm restoration unusable.
- About vm restoration, it seems that you are using the upload_disk api, so the disk is uploaded to the pre-defined storage domain, so it is not a real vm restoration.
Do you plan to backup and restore a full VM (disks + vm definition) in a next release?
I hope it help someone else
Regards
Victor Acosta
_______________________________________________ Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
-- Nathanaël Blanchet
Supervision réseau Pôle Infrastrutures Informatiques227 avenue Professeur-Jean-Louis-Viala <https://maps.google.com/?q=227+avenue+Professeur-Jean-Louis-Viala&entry=gmail&source=g> 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14blanchet@abes.fr
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Nathanaël Blanchet
Supervision réseau Pôle Infrastrutures Informatiques227 avenue Professeur-Jean-Louis-Viala <https://maps.google.com/?q=227+avenue+Professeur-Jean-Louis-Viala&entry=gmail&source=g> 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14blanchet@abes.fr
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

This is a multi-part message in MIME format. --------------0465E569DB4509DF3124B780 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Yes seems to be good, the UI is very nice, but I didn't manage to make=20 one backup though the connection to the API is okay. I followed the=20 README but Nothing happens when lauching the backup processus... Le 21/09/2017 =C3=A0 19:34, Niyazi Elvan a =C3=A9crit :
Hi,
You may check my project Bacchus at=20 https://github.com/openbacchus/bacchus
On Sep 21, 2017 19:54, "Bernardo Juanic=C3=B3" <bjuanico@gmail.com=20 <mailto:bjuanico@gmail.com>> wrote:
I didnt know that, we may adapt it in the future, but at first we will probably just write a basic set of scripts for minimal backup functionally since our dev time is limited.
Ill keep you in mind when looking into it.
Regards,
Bernardo
PGP Key <http://pgp.mit.edu/pks/lookup?op=3Dget&search=3D0x695E5BCE34263F5B=
Skype: mattraken
2017-09-21 13:08 GMT-03:00 Nathana=C3=ABl Blanchet <blanchet@abes.f= r <mailto:blanchet@abes.fr>>:
Hi Bernardo,
Thanks, I knew this tool, but it is based on sdk3 which will be removed in the next version 4.2, so I'm looking at sdk4 project.
You may want to adapt it?
Le 21/09/2017 =C3=A0 17:08, Bernardo Juanic=C3=B3 a =C3=A9crit = :
Hi Nathanael,
You may want to take a look at this too:
https://github.com/bjuanico/oVirtBackup <https://github.com/bjuanico/oVirtBackup>
Regards,
Bernardo
PGP Key <http://pgp.mit.edu/pks/lookup?op=3Dget&search=3D0x695E5BCE342=
63F5B>
Skype: mattraken
2017-09-21 11:00 GMT-03:00 Nathana=C3=ABl Blanchet <blanchet@abes.fr <mailto:blanchet@abes.fr>>:
Hello Victor,
I have some questions about your script
Le 07/07/2017 =C3=A0 23:40, Victor Jos=C3=A9 Acosta Dom=C3=
=ADnguez a =C3=A9crit :
Hello everyone, i created a python tool to backup and restore oVirt's VMs.
Also i created a little "how to" on my blog: http://blog.infratic.com/2017/07/create-ovirtrhevs-vm-bac=
kup/
ckup/>
* Backup step is okay, and I get a usable qcow2 image of the snapshot vm in the backup vm. It seems to be compliant with the official backup API, except on the step 2.
1. /Take a snapshot of the virtual machine to be backed up - (existing oVirt REST API operation)/ 2. /Back up the virtual machine configuration at the time of the snapshot (the disk configuration can be backed up as well if needed) - (added capability to oVirt as part of the Backup API)/
I can't see any vm configuration anywhere but only the qcow2 disk itself
1. /Attach the disk snapshots that were created in (1) to the virtual appliance for data backup - (added capability to oVirt as part of the Backup API)/ 2. / / 3. /Detach the disk snapshots that were attached in (4) from the virtual appliance - (added capability to oVirt as part of the Backup API)/
An other case is when the vm to backup has more than one disk. After I tested it, I found that only one qcow2 disk is saved on the backup vm. This is really a matter when the original vm has many disks part of lvm, it makes the vm restoration unusable.
* About vm restoration, it seems that you are using the upload_disk api, so the disk is uploaded to the pre-defined storage domain, so it is not a real vm restoration.
Do you plan to backup and restore a full VM (disks + vm definition) in a next release?
I hope it help someone else
Regards
Victor Acosta
_______________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users <http://lists.ovirt.org/mailman/listinfo/users>
--=20 Nathana=C3=ABl Blanchet
Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala <https://maps.google.com/?q=3D227+avenue+Professeur-Jean-L= ouis-Viala&entry=3Dgmail&source=3Dg> 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr <mailto:blanchet@abes.fr> =20
_______________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users <http://lists.ovirt.org/mailman/listinfo/users>
--=20 Nathana=C3=ABl Blanchet
Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala <https://maps.google.com/?q=3D227+avenue+Professeur-Jean-Louis-= Viala&entry=3Dgmail&source=3Dg> 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr <mailto:blanchet@abes.fr> =20
_______________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users <http://lists.ovirt.org/mailman/listinfo/users>
--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr --------------0465E569DB4509DF3124B780 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf= -8"> </head> <body text=3D"#000000" bgcolor=3D"#FFFFFF"> <p>Yes seems to be good, the UI is very nice, but I didn't manage to make one backup though the connection to the API is okay. I followed the README but Nothing happens when lauching the backup processus...<br> </p> <br> <div class=3D"moz-cite-prefix">Le 21/09/2017 =C3=A0 19:34, Niyazi Elv= an a =C3=A9crit=C2=A0:<br> </div> <blockquote type=3D"cite" cite=3D"mid:CAKwPMRfD0md25+85NkuviM+W8Cv3WmxNe2ZHXTZSxC4pLPRzoQ@mail.gmai= l.com"> <div dir=3D"auto"> <div>Hi, <div dir=3D"auto"><br> </div> <div dir=3D"auto">You may check my project Bacchus at <a href=3D"https://github.com/openbacchus/bacchus" moz-do-not-send=3D"true">https://github.com/openbacchus/bac= chus</a>=C2=A0</div> <div dir=3D"auto"><br> </div> <div dir=3D"auto"><br> </div> <br> <div class=3D"gmail_extra"><br> <div class=3D"gmail_quote">On Sep 21, 2017 19:54, "Bernardo Juanic=C3=B3" <<a href=3D"mailto:bjuanico@gmail.com" moz-do-not-send=3D"true">bjuanico@gmail.com</a>> wrote= :<br type=3D"attribution"> <blockquote class=3D"quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div dir=3D"ltr">I didnt know that, we may adapt it in th= e future, but at first we will probably just write a basic set of scripts for minimal backup functionally since our dev time is limited. <div><br> </div> <div>Ill keep you in mind when looking into it.</div> <div><br> </div> <div>Regards,</div> <div><br> </div> <div>Bernardo</div> </div> <div class=3D"gmail_extra"><br clear=3D"all"> <div> <div class=3D"m_297017758352693916gmail_signature" data-smartmail=3D"gmail_signature"> <div dir=3D"ltr"><a href=3D"http://pgp.mit.edu/pks/lookup?op=3Dget&search=3D0x695E5BCE342= 63F5B" target=3D"_blank" moz-do-not-send=3D"true">PGP = Key</a><br> <div><a moz-do-not-send=3D"true">Skype: mattraken= </a><br> </div> </div> </div> </div> <div class=3D"elided-text"> <br> <div class=3D"gmail_quote">2017-09-21 13:08 GMT-03:00 Nathana=C3=ABl Blanchet <span dir=3D"ltr"><<a href=3D"mailto:blanchet@abes.fr" target=3D"_bla= nk" moz-do-not-send=3D"true">blanchet@abes.fr</a>&g= t;</span>:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0= 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div text=3D"#000000" bgcolor=3D"#FFFFFF"> <p>Hi Bernardo,</p> <p>Thanks, I knew this tool, but it is based on sdk3 which will be removed in the next version 4.2, so I'm looking at sdk4 project. <br> </p> <p>You may want to adapt it?<br> </p> <div> <div class=3D"m_297017758352693916h5"> <br> <div class=3D"m_297017758352693916m_-869459347= 3241100559moz-cite-prefix">Le 21/09/2017 =C3=A0 17:08, Bernardo Juanic=C3= =B3 a =C3=A9crit=C2=A0:<br> </div> <blockquote type=3D"cite"> <div dir=3D"ltr">Hi Nathanael,=C2=A0 <div><br> </div> <div>You may want to take a look at this too:<br> <br> <a href=3D"https://github.com/bjuanico= /oVirtBackup" target=3D"_blank" moz-do-not-send=3D"true">https://gi= thub.com/bjuanico/oV<wbr>irtBackup</a><br> </div> <div><br> </div> <div>Regards,</div> <div><br> </div> <div>Bernardo</div> <div class=3D"gmail_extra"><br clear=3D"all"> <div> <div class=3D"m_297017758352693916m_-8694593473241100559m_-6967630627070421401= gmail_signature" data-smartmail=3D"gmail_signature= "> <div dir=3D"ltr"><a href=3D"http://pgp.mit.edu/pks/lookup?op=3Dget&search=3D0x695E5BCE342= 63F5B" target=3D"_blank" moz-do-not-send=3D"true">PGP Key</a><br> <div><a moz-do-not-send=3D"true= ">Skype: mattraken</a><br> </div> </div> </div> </div> <br> <div class=3D"gmail_quote">2017-09-21 11:00 GMT-03:00 Nathana=C3=ABl Blan= chet <span dir=3D"ltr"><<a href=3D"mailto:blanchet@abes.fr= " target=3D"_blank" moz-do-not-send=3D"true">blanch= et@abes.fr</a>></span>:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div text=3D"#000000" bgcolor=3D"#FFFFFF"> <p>Hello Victor,</p> <p>I have some questions about your script<br> </p> <br> <div class=3D"m_297017758352693916m_-8694593473241100559m_-6967630627070421401= m_7400844792036080505moz-cite-prefix">Le 07/07/2017 =C3=A0 23:40, Vict= or Jos=C3=A9 Acosta Dom=C3=ADngu= ez a =C3=A9crit=C2=A0:<br> </div> <blockquote type=3D"cite"> <div dir=3D"ltr"> <div>Hello everyone, i created a python tool to backup and restore oVirt's VMs.</div> <div><br> </div> <div>Also i created a little "how to" on my blog:</div> <div><a href=3D"http://blog.inf= ratic.com/2017/07/create-ovirtrhevs-vm-backup/" target=3D"_blank" moz-do-not-send=3D"true= ">http://blog.infratic.com/2017/<wbr>07/create-ovirtrhevs-vm-backup<wbr>/= </a></div> </div> </blockquote> <ul> <li>Backup step is okay, and I get a usable qcow2 image of the snapshot vm in the backup vm. It seems to be compliant with the official backup API, except on the step 2.</li> </ul> <ol> <li><i>Take a snapshot of the virtual machine to be backed up - (existing oVirt REST API operation)</i></li> <li><i>Back up the virtual machine configuration at the time of the snapshot (the disk configuration can be backed up as well if needed) - (added capability to oVirt as part of the Backup API)</= i></li> </ol> <p><font color=3D"#ff0000">I can't see any vm configuration anywhere but only the qcow2 disk itself<= /font></p> <ol> <li><i>Attach the disk snapshots that were created in (1) to the virtual appliance for data backup - (added capability to oVirt as part of the Backup API)</= i></li> <li> <i><br> </i></li> <li><i>Detach the disk snapshots that were attached in (4) from the virtual appliance - (added capability to oVirt as part of the Backup API)</i></li> </ol> <p>An other case is when the vm to backup has more than one disk. After I tested it, I found that only one qcow2 disk is saved on the backup vm. This is really a matter when the original vm has many disks part of lvm, it makes the vm restoration unusable.<br> </p> <ul> <li>About vm restoration, it seems that you are using the upload_disk api, so the disk is uploaded to the pre-defined storage domain, so it is not a real vm restoration.=C2=A0=C2= =A0=C2=A0 <br> </li> </ul> <p>Do you plan to backup and restore a full VM (disks + vm definition) in a next release?<br> </p> <blockquote type=3D"cite"> <div dir=3D"ltr"> <div><br> </div> <div>I hope it help someone else</div> <div><br> </div> <div>Regards</div> <div><br clear=3D"all"> <div> <div class=3D"m_297017758352693916m_-8694593473241100559m_-6967630627070421401= m_7400844792036080505gmail_signature"> <div dir=3D"ltr"> <div> <div dir=3D"ltr"> <div> <div dir=3D"ltr= "> <div> <div dir=3D"ltr= "> <div> <div dir=3D"ltr= "> <div> <div dir=3D"ltr= "> <div> <div dir=3D"ltr= "> <div> <div dir=3D"ltr= "><span>Victor Acosta<br> <br> </span></div> <div><span></sp= an></div> <div dir=3D"ltr= "><span></span><span><span><img src=3D"https://docs.google.com/uc?id=3D0BxRkeOBHApwsV2Ywcl92YWlaQnc&e= xport=3Ddownload" moz-do-not-send=3D"true" height=3D"96" width=3D"77"><img src=3D"https://docs.google.com/uc?id=3D0BxRkeOBHApwsWDFFcGZ2X1czc1E&e= xport=3Ddownload" moz-do-not-send=3D"true" height=3D"96" width=3D"76"><img src=3D"https://docs.google.com/uc?id=3D0BxRkeOBHApwsMTVrSHp2Y0NEY28&e= xport=3Ddownload" moz-do-not-send=3D"true" height=3D"96" width=3D"93"></span></span><br> <img alt=3D"" moz-do-not-send= =3D"true"></div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <br> <fieldset class=3D"m_297017758352693916m_-8694593473241100559m_-6967630627070421401= m_7400844792036080505mimeAttachmentHeader"></fieldset> <br> <pre>________________________= ______<wbr>_________________ Users mailing list <a class=3D"m_297017758352693916m_-8694593473241100559m_-6967630627070421= 401m_7400844792036080505moz-txt-link-abbreviated" href=3D"mailto:Users@ov= irt.org" target=3D"_blank" moz-do-not-send=3D"true">Users@ovirt.org</a> <a class=3D"m_297017758352693916m_-8694593473241100559m_-6967630627070421= 401m_7400844792036080505moz-txt-link-freetext" href=3D"http://lists.ovirt= .org/mailman/listinfo/users" target=3D"_blank" moz-do-not-send=3D"true">h= ttp://lists.ovirt.org/mailman<wbr>/listinfo/users</a><span class=3D"m_297= 017758352693916m_-8694593473241100559m_-6967630627070421401HOEnZb"><font = color=3D"#888888"> </font></span></pre> <span class=3D"m_297017758352693916m_-8694593473241100559m_-6967630627070421401= HOEnZb"><font color=3D"#888888"> </font=
</span></blockquote> <span class=3D"m_297017758352693916m_-8694593473241100559m_-6967630627070421401= HOEnZb"><font color=3D"#888888"> <br> <pre class=3D"m_29701775835= 2693916m_-8694593473241100559m_-6967630627070421401m_7400844792036080505m= oz-signature" cols=3D"72">--=20 Nathana=C3=ABl Blanchet
Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques <a href=3D"https://maps.google.com/?q=3D227+avenue+Professeur-Jean-Louis-= Viala&entry=3Dgmail&source=3Dg" target=3D"_blank" moz-do-not-send= =3D"true">227 avenue Professeur-Jean-Louis-Viala</a> 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a class=3D"m_297017758352693916m_-8694593473241100559m_-6967630627070421= 401m_7400844792036080505moz-txt-link-abbreviated" href=3D"mailto:blanchet= @abes.fr" target=3D"_blank" moz-do-not-send=3D"true">blanchet@abes.fr</a>= </pre> </font></span></div> <br> ______________________________<wb= r>_________________<br> Users mailing list<br> <a href=3D"mailto:Users@ovirt.org= " target=3D"_blank" moz-do-not-send=3D"true">Users@= ovirt.org</a><br> <a href=3D"http://lists.ovirt.org/= mailman/listinfo/users" rel=3D"noreferrer" target=3D"_blank" moz-do-not-send=3D"true">http:/= /lists.ovirt.org/mailman<wbr>/listinfo/users</a><br> <br> </blockquote> </div> <br> </div> </div> </blockquote> <br> <pre class=3D"m_297017758352693916m_-869459= 3473241100559moz-signature" cols=3D"72">--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques <a href=3D"https://maps.google.com/?q=3D227+avenue+Professeur-Jean-Louis-= Viala&entry=3Dgmail&source=3Dg" target=3D"_blank" moz-do-not-send= =3D"true">227 avenue Professeur-Jean-Louis-Viala</a> 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a class=3D"m_297017758352693916m_-8694593473241100559moz-txt-link-abbrev= iated" href=3D"mailto:blanchet@abes.fr" target=3D"_blank" moz-do-not-send= =3D"true">blanchet@abes.fr</a> </pre> </div> </div> </div> </blockquote> </div> <br> </div> </div> <br> ______________________________<wbr>_________________<br> Users mailing list<br> <a href=3D"mailto:Users@ovirt.org" moz-do-not-send=3D"tru= e">Users@ovirt.org</a><br> <a href=3D"http://lists.ovirt.org/mailman/listinfo/users" rel=3D"noreferrer" target=3D"_blank" moz-do-not-send=3D"true">http://lists.ovirt.org/<wbr>ma= ilman/listinfo/users</a><br> <br> </blockquote> </div> <br> </div> </div> </div> </blockquote> <br> <pre class=3D"moz-signature" cols=3D"72">--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:blanchet@abes.fr">bl= anchet@abes.fr</a> </pre> </body> </html> --------------0465E569DB4509DF3124B780--

This is a multi-part message in MIME format. --------------CD14183D7010EED916923476 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Is it just me just finds strange the way oVirt/RHEV does backup ? At the present you have to snapshot the VM (fine by that), but them you have to clone AND export it to an Export Domain, then delete the cloned VM. That means three copies of the same VM somewhere. Wouldn't it be more logical to take a snapshot, get the then read-only disk and export it directly from any host that can read it, and finally remove the snapshot ? Why the need to clone AND export ? What is the limitation to pull this VM directlly from host decreasing the time it takes the overall process and mainly the amount of storage necessary to do this job. Ohh and before I forget by this workflow the disks are hammered a lot more decreasing their lifetime and may causing performance issues mainly during the clone process. Fernando On 21/09/2017 14:59, Nathanaël Blanchet wrote:
Yes seems to be good, the UI is very nice, but I didn't manage to make one backup though the connection to the API is okay. I followed the README but Nothing happens when lauching the backup processus...
Le 21/09/2017 à 19:34, Niyazi Elvan a écrit :
Hi,
You may check my project Bacchus at https://github.com/openbacchus/bacchus
On Sep 21, 2017 19:54, "Bernardo Juanicó" <bjuanico@gmail.com <mailto:bjuanico@gmail.com>> wrote:
I didnt know that, we may adapt it in the future, but at first we will probably just write a basic set of scripts for minimal backup functionally since our dev time is limited.
Ill keep you in mind when looking into it.
Regards,
Bernardo
PGP Key <http://pgp.mit.edu/pks/lookup?op=get&search=0x695E5BCE34263F5B> Skype: mattraken
2017-09-21 13:08 GMT-03:00 Nathanaël Blanchet <blanchet@abes.fr <mailto:blanchet@abes.fr>>:
Hi Bernardo,
Thanks, I knew this tool, but it is based on sdk3 which will be removed in the next version 4.2, so I'm looking at sdk4 project.
You may want to adapt it?
Le 21/09/2017 à 17:08, Bernardo Juanicó a écrit :
Hi Nathanael,
You may want to take a look at this too:
https://github.com/bjuanico/oVirtBackup <https://github.com/bjuanico/oVirtBackup>
Regards,
Bernardo
PGP Key <http://pgp.mit.edu/pks/lookup?op=get&search=0x695E5BCE34263F5B> Skype: mattraken
2017-09-21 11:00 GMT-03:00 Nathanaël Blanchet <blanchet@abes.fr <mailto:blanchet@abes.fr>>:
Hello Victor,
I have some questions about your script
Le 07/07/2017 à 23:40, Victor José Acosta Domínguez a écrit :
Hello everyone, i created a python tool to backup and restore oVirt's VMs.
Also i created a little "how to" on my blog: http://blog.infratic.com/2017/07/create-ovirtrhevs-vm-backup/ <http://blog.infratic.com/2017/07/create-ovirtrhevs-vm-backup/>
* Backup step is okay, and I get a usable qcow2 image of the snapshot vm in the backup vm. It seems to be compliant with the official backup API, except on the step 2.
1. /Take a snapshot of the virtual machine to be backed up - (existing oVirt REST API operation)/ 2. /Back up the virtual machine configuration at the time of the snapshot (the disk configuration can be backed up as well if needed) - (added capability to oVirt as part of the Backup API)/
I can't see any vm configuration anywhere but only the qcow2 disk itself
1. /Attach the disk snapshots that were created in (1) to the virtual appliance for data backup - (added capability to oVirt as part of the Backup API)/ 2. / / 3. /Detach the disk snapshots that were attached in (4) from the virtual appliance - (added capability to oVirt as part of the Backup API)/
An other case is when the vm to backup has more than one disk. After I tested it, I found that only one qcow2 disk is saved on the backup vm. This is really a matter when the original vm has many disks part of lvm, it makes the vm restoration unusable.
* About vm restoration, it seems that you are using the upload_disk api, so the disk is uploaded to the pre-defined storage domain, so it is not a real vm restoration.
Do you plan to backup and restore a full VM (disks + vm definition) in a next release?
I hope it help someone else
Regards
Victor Acosta
_______________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users <http://lists.ovirt.org/mailman/listinfo/users>
-- Nathanaël Blanchet
Supervision réseau Pôle Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala <https://maps.google.com/?q=227+avenue+Professeur-Jean-Louis-Viala&entry=gmail&source=g> 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr <mailto:blanchet@abes.fr>
_______________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users <http://lists.ovirt.org/mailman/listinfo/users>
-- Nathanaël Blanchet
Supervision réseau Pôle Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala <https://maps.google.com/?q=227+avenue+Professeur-Jean-Louis-Viala&entry=gmail&source=g> 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr <mailto:blanchet@abes.fr>
_______________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users <http://lists.ovirt.org/mailman/listinfo/users>
-- Nathanaël Blanchet
Supervision réseau Pôle Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
--------------CD14183D7010EED916923476 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body bgcolor="#FFFFFF" text="#000000"> <p>Is it just me just finds strange the way oVirt/RHEV does backup ?</p> <p>At the present you have to snapshot the VM (fine by that), but them you have to clone AND export it to an Export Domain, then delete the cloned VM. That means three copies of the same VM somewhere.</p> <p>Wouldn't it be more logical to take a snapshot, get the then read-only disk and export it directly from any host that can read it, and finally remove the snapshot ?</p> <p>Why the need to clone AND export ? What is the limitation to pull this VM directlly from host decreasing the time it takes the overall process and mainly the amount of storage necessary to do this job.<br> Ohh and before I forget by this workflow the disks are hammered a lot more decreasing their lifetime and may causing performance issues mainly during the clone process.</p> <p>Fernando<br> </p> <br> <div class="moz-cite-prefix">On 21/09/2017 14:59, Nathanaël Blanchet wrote:<br> </div> <blockquote type="cite" cite="mid:a04a5248-4735-90b6-90f8-33c59c88c914@abes.fr"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <p>Yes seems to be good, the UI is very nice, but I didn't manage to make one backup though the connection to the API is okay. I followed the README but Nothing happens when lauching the backup processus...<br> </p> <br> <div class="moz-cite-prefix">Le 21/09/2017 à 19:34, Niyazi Elvan a écrit :<br> </div> <blockquote type="cite" cite="mid:CAKwPMRfD0md25+85NkuviM+W8Cv3WmxNe2ZHXTZSxC4pLPRzoQ@mail.gmail.com"> <div dir="auto"> <div>Hi, <div dir="auto"><br> </div> <div dir="auto">You may check my project Bacchus at <a href="https://github.com/openbacchus/bacchus" moz-do-not-send="true">https://github.com/openbacchus/bacchus</a> </div> <div dir="auto"><br> </div> <div dir="auto"><br> </div> <br> <div class="gmail_extra"><br> <div class="gmail_quote">On Sep 21, 2017 19:54, "Bernardo Juanicó" <<a href="mailto:bjuanico@gmail.com" moz-do-not-send="true">bjuanico@gmail.com</a>> wrote:<br type="attribution"> <blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div dir="ltr">I didnt know that, we may adapt it in the future, but at first we will probably just write a basic set of scripts for minimal backup functionally since our dev time is limited. <div><br> </div> <div>Ill keep you in mind when looking into it.</div> <div><br> </div> <div>Regards,</div> <div><br> </div> <div>Bernardo</div> </div> <div class="gmail_extra"><br clear="all"> <div> <div class="m_297017758352693916gmail_signature" data-smartmail="gmail_signature"> <div dir="ltr"><a href="http://pgp.mit.edu/pks/lookup?op=get&search=0x695E5BCE34263F5B" target="_blank" moz-do-not-send="true">PGP Key</a><br> <div><a moz-do-not-send="true">Skype: mattraken</a><br> </div> </div> </div> </div> <div class="elided-text"> <br> <div class="gmail_quote">2017-09-21 13:08 GMT-03:00 Nathanaël Blanchet <span dir="ltr"><<a href="mailto:blanchet@abes.fr" target="_blank" moz-do-not-send="true">blanchet@abes.fr</a>></span>:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div text="#000000" bgcolor="#FFFFFF"> <p>Hi Bernardo,</p> <p>Thanks, I knew this tool, but it is based on sdk3 which will be removed in the next version 4.2, so I'm looking at sdk4 project. <br> </p> <p>You may want to adapt it?<br> </p> <div> <div class="m_297017758352693916h5"> <br> <div class="m_297017758352693916m_-8694593473241100559moz-cite-prefix">Le 21/09/2017 à 17:08, Bernardo Juanicó a écrit :<br> </div> <blockquote type="cite"> <div dir="ltr">Hi Nathanael, <div><br> </div> <div>You may want to take a look at this too:<br> <br> <a href="https://github.com/bjuanico/oVirtBackup" target="_blank" moz-do-not-send="true">https://github.com/bjuanico/oV<wbr>irtBackup</a><br> </div> <div><br> </div> <div>Regards,</div> <div><br> </div> <div>Bernardo</div> <div class="gmail_extra"><br clear="all"> <div> <div class="m_297017758352693916m_-8694593473241100559m_-6967630627070421401gmail_signature" data-smartmail="gmail_signature"> <div dir="ltr"><a href="http://pgp.mit.edu/pks/lookup?op=get&search=0x695E5BCE34263F5B" target="_blank" moz-do-not-send="true">PGP Key</a><br> <div><a moz-do-not-send="true">Skype: mattraken</a><br> </div> </div> </div> </div> <br> <div class="gmail_quote">2017-09-21 11:00 GMT-03:00 Nathanaël Blanchet <span dir="ltr"><<a href="mailto:blanchet@abes.fr" target="_blank" moz-do-not-send="true">blanchet@abes.fr</a>></span>:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div text="#000000" bgcolor="#FFFFFF"> <p>Hello Victor,</p> <p>I have some questions about your script<br> </p> <br> <div class="m_297017758352693916m_-8694593473241100559m_-6967630627070421401m_7400844792036080505moz-cite-prefix">Le 07/07/2017 à 23:40, Victor José Acosta Domínguez a écrit :<br> </div> <blockquote type="cite"> <div dir="ltr"> <div>Hello everyone, i created a python tool to backup and restore oVirt's VMs.</div> <div><br> </div> <div>Also i created a little "how to" on my blog:</div> <div><a href="http://blog.infratic.com/2017/07/create-ovirtrhevs-vm-backup/" target="_blank" moz-do-not-send="true">http://blog.infratic.com/2017/<wbr>07/create-ovirtrhevs-vm-backup<wbr>/</a></div> </div> </blockquote> <ul> <li>Backup step is okay, and I get a usable qcow2 image of the snapshot vm in the backup vm. It seems to be compliant with the official backup API, except on the step 2.</li> </ul> <ol> <li><i>Take a snapshot of the virtual machine to be backed up - (existing oVirt REST API operation)</i></li> <li><i>Back up the virtual machine configuration at the time of the snapshot (the disk configuration can be backed up as well if needed) - (added capability to oVirt as part of the Backup API)</i></li> </ol> <p><font color="#ff0000">I can't see any vm configuration anywhere but only the qcow2 disk itself</font></p> <ol> <li><i>Attach the disk snapshots that were created in (1) to the virtual appliance for data backup - (added capability to oVirt as part of the Backup API)</i></li> <li> <i><br> </i></li> <li><i>Detach the disk snapshots that were attached in (4) from the virtual appliance - (added capability to oVirt as part of the Backup API)</i></li> </ol> <p>An other case is when the vm to backup has more than one disk. After I tested it, I found that only one qcow2 disk is saved on the backup vm. This is really a matter when the original vm has many disks part of lvm, it makes the vm restoration unusable.<br> </p> <ul> <li>About vm restoration, it seems that you are using the upload_disk api, so the disk is uploaded to the pre-defined storage domain, so it is not a real vm restoration. <br> </li> </ul> <p>Do you plan to backup and restore a full VM (disks + vm definition) in a next release?<br> </p> <blockquote type="cite"> <div dir="ltr"> <div><br> </div> <div>I hope it help someone else</div> <div><br> </div> <div>Regards</div> <div><br clear="all"> <div> <div class="m_297017758352693916m_-8694593473241100559m_-6967630627070421401m_7400844792036080505gmail_signature"> <div dir="ltr"> <div> <div dir="ltr"> <div> <div dir="ltr"> <div> <div dir="ltr"> <div> <div dir="ltr"> <div> <div dir="ltr"> <div> <div dir="ltr"> <div> <div dir="ltr"><span>Victor Acosta<br> <br> </span></div> <div><span></span></div> <div dir="ltr"><span></span><span><span><img src="https://docs.google.com/uc?id=0BxRkeOBHApwsV2Ywcl92YWlaQnc&export=downlo..." moz-do-not-send="true" height="96" width="77"><img src="https://docs.google.com/uc?id=0BxRkeOBHApwsWDFFcGZ2X1czc1E&export=downlo..." moz-do-not-send="true" height="96" width="76"><img src="https://docs.google.com/uc?id=0BxRkeOBHApwsMTVrSHp2Y0NEY28&export=downlo..." moz-do-not-send="true" height="96" width="93"></span></span><br> <img alt="" moz-do-not-send="true"></div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <br> <fieldset class="m_297017758352693916m_-8694593473241100559m_-6967630627070421401m_7400844792036080505mimeAttachmentHeader"></fieldset> <br> <pre>______________________________<wbr>_________________ Users mailing list <a class="m_297017758352693916m_-8694593473241100559m_-6967630627070421401m_7400844792036080505moz-txt-link-abbreviated" href="mailto:Users@ovirt.org" target="_blank" moz-do-not-send="true">Users@ovirt.org</a> <a class="m_297017758352693916m_-8694593473241100559m_-6967630627070421401m_7400844792036080505moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank" moz-do-not-send="true">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><span class="m_297017758352693916m_-8694593473241100559m_-6967630627070421401HOEnZb"><font color="#888888"> </font></span></pre> <span class="m_297017758352693916m_-8694593473241100559m_-6967630627070421401HOEnZb"><font color="#888888"> </font></span></blockquote> <span class="m_297017758352693916m_-8694593473241100559m_-6967630627070421401HOEnZb"><font color="#888888"> <br> <pre class="m_297017758352693916m_-8694593473241100559m_-6967630627070421401m_7400844792036080505moz-signature" cols="72">-- Nathanaël Blanchet Supervision réseau Pôle Infrastrutures Informatiques <a href="https://maps.google.com/?q=227+avenue+Professeur-Jean-Louis-Viala&entry=..." target="_blank" moz-do-not-send="true">227 avenue Professeur-Jean-Louis-Viala</a> 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a class="m_297017758352693916m_-8694593473241100559m_-6967630627070421401m_7400844792036080505moz-txt-link-abbreviated" href="mailto:blanchet@abes.fr" target="_blank" moz-do-not-send="true">blanchet@abes.fr</a> </pre> </font></span></div> <br> ______________________________<wbr>_________________<br> Users mailing list<br> <a href="mailto:Users@ovirt.org" target="_blank" moz-do-not-send="true">Users@ovirt.org</a><br> <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br> <br> </blockquote> </div> <br> </div> </div> </blockquote> <br> <pre class="m_297017758352693916m_-8694593473241100559moz-signature" cols="72">-- Nathanaël Blanchet Supervision réseau Pôle Infrastrutures Informatiques <a href="https://maps.google.com/?q=227+avenue+Professeur-Jean-Louis-Viala&entry=..." target="_blank" moz-do-not-send="true">227 avenue Professeur-Jean-Louis-Viala</a> 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a class="m_297017758352693916m_-8694593473241100559moz-txt-link-abbreviated" href="mailto:blanchet@abes.fr" target="_blank" moz-do-not-send="true">blanchet@abes.fr</a> </pre> </div> </div> </div> </blockquote> </div> <br> </div> </div> <br> ______________________________<wbr>_________________<br> Users mailing list<br> <a href="mailto:Users@ovirt.org" moz-do-not-send="true">Users@ovirt.org</a><br> <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br> <br> </blockquote> </div> <br> </div> </div> </div> </blockquote> <br> <pre class="moz-signature" cols="72">-- Nathanaël Blanchet Supervision réseau Pôle Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a class="moz-txt-link-abbreviated" href="mailto:blanchet@abes.fr" moz-do-not-send="true">blanchet@abes.fr</a> </pre> <br> <fieldset class="mimeAttachmentHeader"></fieldset> <br> <pre wrap="">_______________________________________________ Users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a> <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a> </pre> </blockquote> <br> </body> </html> --------------CD14183D7010EED916923476--

Hi, Can you share the log files under scripts/logs directory ? On Sep 21, 2017 8:59 PM, "Nathanaël Blanchet" <blanchet@abes.fr> wrote:
Yes seems to be good, the UI is very nice, but I didn't manage to make one backup though the connection to the API is okay. I followed the README but Nothing happens when lauching the backup processus...
Le 21/09/2017 à 19:34, Niyazi Elvan a écrit :
Hi,
You may check my project Bacchus at https://github.com/openbacchus/bacchus
On Sep 21, 2017 19:54, "Bernardo Juanicó" <bjuanico@gmail.com> wrote:
I didnt know that, we may adapt it in the future, but at first we will probably just write a basic set of scripts for minimal backup functionally since our dev time is limited.
Ill keep you in mind when looking into it.
Regards,
Bernardo
PGP Key <http://pgp.mit.edu/pks/lookup?op=get&search=0x695E5BCE34263F5B> Skype: mattraken
2017-09-21 13:08 GMT-03:00 Nathanaël Blanchet <blanchet@abes.fr>:
Hi Bernardo,
Thanks, I knew this tool, but it is based on sdk3 which will be removed in the next version 4.2, so I'm looking at sdk4 project.
You may want to adapt it?
Le 21/09/2017 à 17:08, Bernardo Juanicó a écrit :
Hi Nathanael,
You may want to take a look at this too:
https://github.com/bjuanico/oVirtBackup
Regards,
Bernardo
PGP Key <http://pgp.mit.edu/pks/lookup?op=get&search=0x695E5BCE34263F5B> Skype: mattraken
2017-09-21 11:00 GMT-03:00 Nathanaël Blanchet <blanchet@abes.fr>:
Hello Victor,
I have some questions about your script
Le 07/07/2017 à 23:40, Victor José Acosta Domínguez a écrit :
Hello everyone, i created a python tool to backup and restore oVirt's VMs.
Also i created a little "how to" on my blog: http://blog.infratic.com/2017/07/create-ovirtrhevs-vm-backup/
- Backup step is okay, and I get a usable qcow2 image of the snapshot vm in the backup vm. It seems to be compliant with the official backup API, except on the step 2.
1. *Take a snapshot of the virtual machine to be backed up - (existing oVirt REST API operation)* 2. *Back up the virtual machine configuration at the time of the snapshot (the disk configuration can be backed up as well if needed) - (added capability to oVirt as part of the Backup API)*
I can't see any vm configuration anywhere but only the qcow2 disk itself
1. *Attach the disk snapshots that were created in (1) to the virtual appliance for data backup - (added capability to oVirt as part of the Backup API)* 2. 3. *Detach the disk snapshots that were attached in (4) from the virtual appliance - (added capability to oVirt as part of the Backup API)*
An other case is when the vm to backup has more than one disk. After I tested it, I found that only one qcow2 disk is saved on the backup vm. This is really a matter when the original vm has many disks part of lvm, it makes the vm restoration unusable.
- About vm restoration, it seems that you are using the upload_disk api, so the disk is uploaded to the pre-defined storage domain, so it is not a real vm restoration.
Do you plan to backup and restore a full VM (disks + vm definition) in a next release?
I hope it help someone else
Regards
Victor Acosta
_______________________________________________ Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
-- Nathanaël Blanchet
Supervision réseau Pôle Infrastrutures Informatiques227 avenue Professeur-Jean-Louis-Viala <https://maps.google.com/?q=227+avenue+Professeur-Jean-Louis-Viala&entry=gmail&source=g> 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14blanchet@abes.fr
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Nathanaël Blanchet
Supervision réseau Pôle Infrastrutures Informatiques227 avenue Professeur-Jean-Louis-Viala <https://maps.google.com/?q=227+avenue+Professeur-Jean-Louis-Viala&entry=gmail&source=g> 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14blanchet@abes.fr
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Nathanaël Blanchet
Supervision réseau Pôle Infrastrutures Informatiques227 avenue Professeur-Jean-Louis-Viala <https://maps.google.com/?q=227+avenue+Professeur-Jean-Louis-Viala&entry=gmail&source=g> 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14blanchet@abes.fr

I didnt know that, we may adapt it in the future, but at first we will=20 probably just write a basic set of scripts for minimal backup=20 functionally since our dev time is limited.
Ill keep you in mind when looking into it.
Regards,
Bernardo
PGP Key <http://pgp.mit.edu/pks/lookup?op=3Dget&search=3D0x695E5BCE3426= 3F5B> Skype: mattraken
2017-09-21 13:08 GMT-03:00 Nathana=C3=ABl Blanchet <blanchet@abes.fr=20 <mailto:blanchet@abes.fr>>:
Hi Bernardo,
Thanks, I knew this tool, but it is based on sdk3 which will be removed in the next version 4.2, so I'm looking at sdk4 project.
You may want to adapt it?
Le 21/09/2017 =C3=A0 17:08, Bernardo Juanic=C3=B3 a =C3=A9crit :
Hi Nathanael,
You may want to take a look at this too:
https://github.com/bjuanico/oVirtBackup <https://github.com/bjuanico/oVirtBackup>
Regards,
Bernardo
PGP Key <http://pgp.mit.edu/pks/lookup?op=3Dget&search=3D0x695E5BCE34263F5=
B>
Skype: mattraken
2017-09-21 11:00 GMT-03:00 Nathana=C3=ABl Blanchet <blanchet@abes.=
fr
<mailto:blanchet@abes.fr>>:
Hello Victor,
I have some questions about your script
Le 07/07/2017 =C3=A0 23:40, Victor Jos=C3=A9 Acosta Dom=C3=ADn=
guez a =C3=A9crit :
Hello everyone, i created a python tool to backup and restore oVirt's VMs.
Also i created a little "how to" on my blog: http://blog.infratic.com/2017/07/create-ovirtrhevs-vm-backup/ <http://blog.infratic.com/2017/07/create-ovirtrhevs-vm-backup=
/>
* Backup step is okay, and I get a usable qcow2 image of the snapshot vm in the backup vm. It seems to be compliant with the official backup API, except on the step=
This is a multi-part message in MIME format. --------------D29F8D1D5428B978905C700E Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Thanks for your work Le 21/09/2017 =C3=A0 18:53, Bernardo Juanic=C3=B3 a =C3=A9crit : 2.
1. /Take a snapshot of the virtual machine to be backed up - (existing oVirt REST API operation)/ 2. /Back up the virtual machine configuration at the time of the snapshot (the disk configuration can be backed up as well if needed) - (added capability to oVirt as part of the Backup API)/
I can't see any vm configuration anywhere but only the qcow2 disk itself
1. /Attach the disk snapshots that were created in (1) to the virtual appliance for data backup - (added capability to oVirt as part of the Backup API)/ 2. / / 3. /Detach the disk snapshots that were attached in (4) from the virtual appliance - (added capability to oVirt as part of the Backup API)/
An other case is when the vm to backup has more than one disk. After I tested it, I found that only one qcow2 disk is saved on the backup vm. This is really a matter when the original vm has many disks part of lvm, it makes the vm restoration unusable.
* About vm restoration, it seems that you are using the upload_disk api, so the disk is uploaded to the pre-defined storage domain, so it is not a real vm restoration.
Do you plan to backup and restore a full VM (disks + vm definition) in a next release?
I hope it help someone else
Regards
Victor Acosta
_______________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users <http://lists.ovirt.org/mailman/listinfo/users>
--=20 Nathana=C3=ABl Blanchet
Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala <https://maps.google.com/?q=3D227+avenue+Professeur-Jean-Louis=
-Viala&entry=3Dgmail&source=3Dg>
34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr <mailto:blanchet@abes.fr> =20
_______________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users <http://lists.ovirt.org/mailman/listinfo/users>
--=20 Nathana=C3=ABl Blanchet
Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala <https://maps.google.com/?q=3D227+avenue+Professeur-Jean-Louis-Vial= a&entry=3Dgmail&source=3Dg> 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr <mailto:blanchet@abes.fr> =20
--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr --------------D29F8D1D5428B978905C700E Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf= -8"> </head> <body text=3D"#000000" bgcolor=3D"#FFFFFF"> <p>Thanks for your work<br> </p> <br> <div class=3D"moz-cite-prefix">Le 21/09/2017 =C3=A0 18:53, Bernardo J= uanic=C3=B3 a =C3=A9crit=C2=A0:<br> </div> <blockquote type=3D"cite" cite=3D"mid:CA+PB0ijteA2XjPMcjzZTDP_AAN5o=3D7S33ndfA-tVNkJcoH0Jbg@mail.gm= ail.com"> <div dir=3D"ltr">I didnt know that, we may adapt it in the future, but at first we will probably just write a basic set of scripts for minimal backup functionally since our dev time is limited. <div><br> </div> <div>Ill keep you in mind when looking into it.</div> <div><br> </div> <div>Regards,</div> <div><br> </div> <div>Bernardo</div> </div> <div class=3D"gmail_extra"><br clear=3D"all"> <div> <div class=3D"gmail_signature" data-smartmail=3D"gmail_signatur= e"> <div dir=3D"ltr"><a href=3D"http://pgp.mit.edu/pks/lookup?op=3Dget&search=3D0x695E5BCE342= 63F5B" target=3D"_blank" moz-do-not-send=3D"true">PGP Key</a><br=
<div><a moz-do-not-send=3D"true">Skype: mattraken</a><br> </div> </div> </div> </div> <br> <div class=3D"gmail_quote">2017-09-21 13:08 GMT-03:00 Nathana=C3=AB= l Blanchet <span dir=3D"ltr"><<a href=3D"mailto:blanchet@abes.fr" target=3D"_blank" moz-do-not-send=3D"true">blanchet@abes.fr</a>></span>:<b= r> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div text=3D"#000000" bgcolor=3D"#FFFFFF"> <p>Hi Bernardo,</p> <p>Thanks, I knew this tool, but it is based on sdk3 which will be removed in the next version 4.2, so I'm looking at sdk4 project. <br> </p> <p>You may want to adapt it?<br> </p> <div> <div class=3D"h5"> <br> <div class=3D"m_-8694593473241100559moz-cite-prefix">Le 21/09/2017 =C3=A0 17:08, Bernardo Juanic=C3=B3 a =C3=A9= crit=C2=A0:<br> </div> <blockquote type=3D"cite"> <div dir=3D"ltr">Hi Nathanael,=C2=A0 <div><br> </div> <div>You may want to take a look at this too:<br> <br> <a href=3D"https://github.com/bjuanico/oVirtBackup= " target=3D"_blank" moz-do-not-send=3D"true">http= s://github.com/bjuanico/oV<wbr>irtBackup</a><br> </div> <div><br> </div> <div>Regards,</div> <div><br> </div> <div>Bernardo</div> <div class=3D"gmail_extra"><br clear=3D"all"> <div> <div class=3D"m_-8694593473241100559m_-69676306270= 70421401gmail_signature" data-smartmail=3D"gmail_signature"> <div dir=3D"ltr"><a href=3D"http://pgp.mit.edu/pks/lookup?op=3Dget&search=3D0x695E5BCE342= 63F5B" target=3D"_blank" moz-do-not-send=3D"true= ">PGP Key</a><br> <div><a moz-do-not-send=3D"true">Skype: mattraken</a><br> </div> </div> </div> </div> <br> <div class=3D"gmail_quote">2017-09-21 11:00 GMT-03:00 Nathana=C3=ABl Blanchet <span dir=3D"= ltr"><<a href=3D"mailto:blanchet@abes.fr" target=3D"_blank" moz-do-not-send=3D"true">= blanchet@abes.fr</a>></span>:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div text=3D"#000000" bgcolor=3D"#FFFFFF"> <p>Hello Victor,</p> <p>I have some questions about your script<= br> </p> <br> <div class=3D"m_-8694593473241100559m_-6967630627070421401m_740084479203608050= 5moz-cite-prefix">Le 07/07/2017 =C3=A0 23:40, Victor Jos=C3=A9= Acosta Dom=C3=ADnguez a =C3=A9crit=C2=A0:<br> </div> <blockquote type=3D"cite"> <div dir=3D"ltr"> <div>Hello everyone, i created a python tool to backup and restore oVirt's VMs.</div> <div><br> </div> <div>Also i created a little "how to" on my blog:</div> <div><a href=3D"http://blog.infratic.com/20= 17/07/create-ovirtrhevs-vm-backup/" target=3D"_blank" moz-do-not-send=3D"true">http://blo= g.infratic.com/2017/<wbr>07/create-ovirtrhevs-vm-backup<wbr>/</a></div> </div> </blockquote> <ul> <li>Backup step is okay, and I get a usable qcow2 image of the snapshot vm in the backup vm. It seems to be compliant with the official backup API, except on the step 2.</li> </ul> <ol> <li><i>Take a snapshot of the virtual machine to be backed up - (existing oVirt REST API operation)</i></li> <li><i>Back up the virtual machine configuration at the time of the snapshot (the disk configuration can be backed up as well if needed) - (added capability to oVirt as part of the Backup API)</i></li> </ol> <p><font color=3D"#ff0000">I can't see any vm configuration anywhere but only the qcow2 disk itself</font></p> <ol> <li><i>Attach the disk snapshots that were created in (1) to the virtual appliance for data backup - (added capability to oVirt as part of the Backup API)</i></li> <li> <i><br> </i></li> <li><i>Detach the disk snapshots that were attached in (4) from the virtual appliance - (added capability to oVirt as part of the Backup API)</i></li> </ol> <p>An other case is when the vm to backup has more than one disk. After I tested it, I found that only one qcow2 disk is saved on the backup vm. This is really a matter when the original vm has many disks part of lvm, it makes the vm restoration unusable.<br> </p> <ul> <li>About vm restoration, it seems that you are using the upload_disk api, so the disk is uploaded to the pre-defined storage domain, so it is not a real vm restoration.=C2=A0=C2=A0=C2= =A0 <br> </li> </ul> <p>Do you plan to backup and restore a full VM (disks + vm definition) in a next release?<br> </p> <blockquote type=3D"cite"> <div dir=3D"ltr"> <div><br> </div> <div>I hope it help someone else</div> <div><br> </div> <div>Regards</div> <div><br clear=3D"all"> <div> <div class=3D"m_-8694593473241100559m_-6967630627070421401m_740084479203608050= 5gmail_signature"> <div dir=3D"ltr"> <div> <div dir=3D"ltr"> <div> <div dir=3D"ltr"> <div> <div dir=3D"ltr"> <div> <div dir=3D"ltr"> <div> <div dir=3D"ltr= "> <div> <div dir=3D"ltr= "> <div> <div dir=3D"ltr= "><span>Victor Acosta<br> <br> </span></div> <div><span></sp= an></div> <div dir=3D"ltr= "><span></span><span><span><img src=3D"https://docs.google.com/uc?id=3D0BxRkeOBHApwsV2Ywcl92YWlaQnc&e= xport=3Ddownload" moz-do-not-send=3D"true" height=3D"96" width=3D"77"><img src=3D"https://docs.google.com/uc?id=3D0BxRkeOBHApwsWDFFcGZ2X1czc1E&e= xport=3Ddownload" moz-do-not-send=3D"true" height=3D"96" width=3D"76"><img src=3D"https://docs.google.com/uc?id=3D0BxRkeOBHApwsMTVrSHp2Y0NEY28&e= xport=3Ddownload" moz-do-not-send=3D"true" height=3D"96" width=3D"93"></span></span><br> <img alt=3D"" moz-do-not-send= =3D"true"></div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <br> <fieldset class=3D"m_-8694593473241100559m_-6967630627070421401m_740084479203608050= 5mimeAttachmentHeader"></fieldset> <br> <pre>______________________________<wbr>_= ________________ Users mailing list <a class=3D"m_-8694593473241100559m_-6967630627070421401m_740084479203608= 0505moz-txt-link-abbreviated" href=3D"mailto:Users@ovirt.org" target=3D"_= blank" moz-do-not-send=3D"true">Users@ovirt.org</a> <a class=3D"m_-8694593473241100559m_-6967630627070421401m_740084479203608= 0505moz-txt-link-freetext" href=3D"http://lists.ovirt.org/mailman/listinf= o/users" target=3D"_blank" moz-do-not-send=3D"true">http://lists.ovirt.or= g/mailman<wbr>/listinfo/users</a><span class=3D"m_-8694593473241100559m_-= 6967630627070421401HOEnZb"><font color=3D"#888888"> </font></span></pre> <span class=3D"m_-8694593473241100559m_-69676= 30627070421401HOEnZb"><font color=3D"#888888"> </font></span></bl= ockquote> <span class=3D"m_-8694593473241100559m_-6967630= 627070421401HOEnZb"><font color=3D"#888888"> <br> <pre class=3D"m_-8694593473241100559m_-= 6967630627070421401m_7400844792036080505moz-signature" cols=3D"72">--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques <a href=3D"https://maps.google.com/?q=3D227+avenue+Professeur-Jean-Louis-= Viala&entry=3Dgmail&source=3Dg" moz-do-not-send=3D"true">227 aven= ue Professeur-Jean-Louis-Viala</a> 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a class=3D"m_-8694593473241100559m_-6967630627070421401m_740084479203608= 0505moz-txt-link-abbreviated" href=3D"mailto:blanchet@abes.fr" target=3D"= _blank" moz-do-not-send=3D"true">blanchet@abes.fr</a> </pre> </font></span></div> <br> ______________________________<wbr>__________= _______<br> Users mailing list<br> <a href=3D"mailto:Users@ovirt.org" target=3D"_blank" moz-do-not-send=3D"true">= Users@ovirt.org</a><br> <a href=3D"http://lists.ovirt.org/mailman/list= info/users" rel=3D"noreferrer" target=3D"_blank" moz-do-not-send=3D"true">http://lists.ovirt= .org/mailman<wbr>/listinfo/users</a><br> <br> </blockquote> </div> <br> </div> </div> </blockquote> <br> <pre class=3D"m_-8694593473241100559moz-signature" cols= =3D"72">--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques <a href=3D"https://maps.google.com/?q=3D227+avenue+Professeur-Jean-Louis-= Viala&entry=3Dgmail&source=3Dg" moz-do-not-send=3D"true">227 aven= ue Professeur-Jean-Louis-Viala</a> 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a class=3D"m_-8694593473241100559moz-txt-link-abbreviated" href=3D"mailt= o:blanchet@abes.fr" target=3D"_blank" moz-do-not-send=3D"true">blanchet@a= bes.fr</a> </pre> </div> </div> </div> </blockquote> </div> <br> </div> </blockquote> <br> <pre class=3D"moz-signature" cols=3D"72">--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:blanchet@abes.fr">bl= anchet@abes.fr</a> </pre> </body> </html> --------------D29F8D1D5428B978905C700E--

The Data Domain is in Maintenance Mode. The Data Domain will not activate because we have no active hosts. The hosts will not activate -- they always have a status of connecting or not responding. A sample of the VDSM log errors is copied below (about 500 lines of the VDSM log is attached) Storage.HSM:connectStorageServer) Could not connect to storageServer {'status': {'message': "Wrong Master domain or its version: u'SD=e6b9c52e-a528-4ae9-884a-4831967f24dc, pool=6ff24c27-9227-4f7c-abf3-263950cf5d35'", 'code': 324}} dDomain) looking for unfetched domain 673b27d3-862b-42d2-bdfb-3ee6267270cc Thread-13::ERROR::2017-09-21 11:13:02,957::sdc::157::Storage.StorageDomainCache:_findUnfetchedDomain) looking for domain 673b27d3-862b-42d2-bdfb-3ee6267270cc Thread-13::ERROR::2017-09-21 11:13:03,068::sdc::146::Storage.StorageDomainCache:_findDomain) domain 673b27d3-862b-42d2-bdfb-3ee6267270cc not found Thread-13::ERROR::2017-09-21 11:13:03,069::monitor::328::Storage.Monitor:_setupLoop) Setting up monitor for 673b27d3-862b-42d2-bdfb-3ee6267270cc failed Thread-14::ERROR::2017-09-21 11:13:03,078::sdc::140::Storage.StorageDomainCache:_findDomain) looking for unfetched domain caa44e02-6ff2-46df-a156-3a74ae26e910 Thread-14::ERROR::2017-09-21 11:13:03,078::sdc::157::Storage.StorageDomainCache:: Thanks, Netad

The Data Domain is in Maintenance Mode. The Data Domain will not activate because we have no active hosts. The hosts will not activate -- they always have a status of connecting or not responding. A sample of the VDSM log errors is copied below (about 500 lines of the VDSM log is attached) Storage.HSM:connectStorageServer) Could not connect to storageServer {'status': {'message': "Wrong Master domain or its version: u'SD=e6b9c52e-a528-4ae9-884a-4831967f24dc, pool=6ff24c27-9227-4f7c-abf3-263950cf5d35'", 'code': 324}} dDomain) looking for unfetched domain 673b27d3-862b-42d2-bdfb-3ee6267270cc Thread-13::ERROR::2017-09-21 11:13:02,957::sdc::157::Storage.StorageDomainCache:_findUnfetchedDomain) looking for domain 673b27d3-862b-42d2-bdfb-3ee6267270cc Thread-13::ERROR::2017-09-21 11:13:03,068::sdc::146::Storage.StorageDomainCache:_findDomain) domain 673b27d3-862b-42d2-bdfb-3ee6267270cc not found Thread-13::ERROR::2017-09-21 11:13:03,069::monitor::328::Storage.Monitor:_setupLoop) Setting up monitor for 673b27d3-862b-42d2-bdfb-3ee6267270cc failed Thread-14::ERROR::2017-09-21 11:13:03,078::sdc::140::Storage.StorageDomainCache:_findDomain) looking for unfetched domain caa44e02-6ff2-46df-a156-3a74ae26e910 Thread-14::ERROR::2017-09-21 11:13:03,078::sdc::157::Storage.StorageDomainCache:: Thanks, Netad

On Sep 21, 2017 7:09 PM, "Nathanaël Blanchet" <blanchet@abes.fr> wrote: Hi Bernardo, Thanks, I knew this tool, but it is based on sdk3 which will be removed in the next version 4.2, so I'm looking at sdk4 project. SDKv3 will not be removed in 4.2. You may want to adapt it? Note that you can gradually move to v4. You can mix v4 API with v3 API and convert function by function. Y. Le 21/09/2017 à 17:08, Bernardo Juanicó a écrit : Hi Nathanael, You may want to take a look at this too: https://github.com/bjuanico/oVirtBackup Regards, Bernardo PGP Key <http://pgp.mit.edu/pks/lookup?op=get&search=0x695E5BCE34263F5B> Skype: mattraken 2017-09-21 11:00 GMT-03:00 Nathanaël Blanchet <blanchet@abes.fr>:
Hello Victor,
I have some questions about your script
Le 07/07/2017 à 23:40, Victor José Acosta Domínguez a écrit :
Hello everyone, i created a python tool to backup and restore oVirt's VMs.
Also i created a little "how to" on my blog: http://blog.infratic.com/2017/07/create-ovirtrhevs-vm-backup/
- Backup step is okay, and I get a usable qcow2 image of the snapshot vm in the backup vm. It seems to be compliant with the official backup API, except on the step 2.
1. *Take a snapshot of the virtual machine to be backed up - (existing oVirt REST API operation)* 2. *Back up the virtual machine configuration at the time of the snapshot (the disk configuration can be backed up as well if needed) - (added capability to oVirt as part of the Backup API)*
I can't see any vm configuration anywhere but only the qcow2 disk itself
1. *Attach the disk snapshots that were created in (1) to the virtual appliance for data backup - (added capability to oVirt as part of the Backup API)* 2. 3. *Detach the disk snapshots that were attached in (4) from the virtual appliance - (added capability to oVirt as part of the Backup API)*
An other case is when the vm to backup has more than one disk. After I tested it, I found that only one qcow2 disk is saved on the backup vm. This is really a matter when the original vm has many disks part of lvm, it makes the vm restoration unusable.
- About vm restoration, it seems that you are using the upload_disk api, so the disk is uploaded to the pre-defined storage domain, so it is not a real vm restoration.
Do you plan to backup and restore a full VM (disks + vm definition) in a next release?
I hope it help someone else
Regards
Victor Acosta
_______________________________________________ Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
-- Nathanaël Blanchet
Supervision réseau Pôle Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14blanchet@abes.fr
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Nathanaël Blanchet Supervision réseau Pôle Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14blanchet@abes.fr _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

This is a multi-part message in MIME format. --------------897B4BA87E7FAE56B1CD245D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Le 24/09/2017 =C3=A0 11:11, Yaniv Kaul a =C3=A9crit=C2=A0:
On Sep 21, 2017 7:09 PM, "Nathana=C3=ABl Blanchet" <blanchet@abes.fr=20 <mailto:blanchet@abes.fr>> wrote:
Hi Bernardo,
Thanks, I knew this tool, but it is based on sdk3 which will be removed in the next version 4.2, so I'm looking at sdk4 project.
So it has recently changed! There was a dedicated ticket in bugzilla=20 about this and many warnings intended to users, but nothing to tell sdk3=20 removal will be postponed...
SDKv3 will not be removed in 4.2.
You may want to adapt it?
Note that you can gradually move to v4. You can mix v4 API with v3 API=20 and convert function by function. Y.
Le 21/09/2017 =C3=A0 17:08, Bernardo Juanic=C3=B3 a =C3=A9crit=C2=A0=
Hi Nathanael,
You may want to take a look at this too:
https://github.com/bjuanico/oVirtBackup <https://github.com/bjuanico/oVirtBackup>
Regards,
Bernardo
PGP Key <http://pgp.mit.edu/pks/lookup?op=3Dget&search=3D0x695E5BCE34263F5=
B>
Skype: mattraken
2017-09-21 11:00 GMT-03:00 Nathana=C3=ABl Blanchet <blanchet@abes.=
fr
<mailto:blanchet@abes.fr>>:
Hello Victor,
I have some questions about your script
Le 07/07/2017 =C3=A0 23:40, Victor Jos=C3=A9 Acosta Dom=C3=ADn=
guez a =C3=A9crit=C2=A0:
Hello everyone, i created a python tool to backup and restore oVirt's VMs.
Also i created a little "how to" on my blog: http://blog.infratic.com/2017/07/create-ovirtrhevs-vm-backup/ <http://blog.infratic.com/2017/07/create-ovirtrhevs-vm-backup=
/>
* Backup step is okay, and I get a usable qcow2 image of the snapshot vm in the backup vm. It seems to be compliant with the official backup API, except on the step=
: 2.
1. /Take a snapshot of the virtual machine to be backed up - (existing oVirt REST API operation)/ 2. /Back up the virtual machine configuration at the time of the snapshot (the disk configuration can be backed up as well if needed) - (added capability to oVirt as part of the Backup API)/
I can't see any vm configuration anywhere but only the qcow2 disk itself
1. /Attach the disk snapshots that were created in (1) to the virtual appliance for data backup - (added capability to oVirt as part of the Backup API)/ 2. / / 3. /Detach the disk snapshots that were attached in (4) from the virtual appliance - (added capability to oVirt as part of the Backup API)/
An other case is when the vm to backup has more than one disk. After I tested it, I found that only one qcow2 disk is saved on the backup vm. This is really a matter when the original vm has many disks part of lvm, it makes the vm restoration unusable.
* About vm restoration, it seems that you are using the upload_disk api, so the disk is uploaded to the pre-defined storage domain, so it is not a real vm restoration.
Do you plan to backup and restore a full VM (disks + vm definition) in a next release?
I hope it help someone else
Regards
Victor Acosta
_______________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users <http://lists.ovirt.org/mailman/listinfo/users>
--=20 Nathana=C3=ABl Blanchet
Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr <mailto:blanchet@abes.fr> =20
_______________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users <http://lists.ovirt.org/mailman/listinfo/users>
--=20 Nathana=C3=ABl Blanchet
Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr <mailto:blanchet@abes.fr> =20
_______________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users <http://lists.ovirt.org/mailman/listinfo/users>
--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr --------------897B4BA87E7FAE56B1CD245D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf= -8"> </head> <body text=3D"#000000" bgcolor=3D"#FFFFFF"> <p><br> </p> <br> <div class=3D"moz-cite-prefix">Le 24/09/2017 =C3=A0 11:11, Yaniv Kaul= a =C3=A9crit=C2=A0:<br> </div> <blockquote type=3D"cite" cite=3D"mid:CAJgorsYqDnL_6BZcKKsTBraz2jfigRD8hKc_HGig5EYQxCTNzw@mail.gmai= l.com"> <div dir=3D"auto"> <div><br> <div class=3D"gmail_extra"><br> <div class=3D"gmail_quote">On Sep 21, 2017 7:09 PM, "Nathana=C3= =ABl Blanchet" <<a href=3D"mailto:blanchet@abes.fr" moz-do-not-send=3D"true">blanchet@abes.fr</a>> wrote:<= br type=3D"attribution"> <blockquote class=3D"quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div text=3D"#000000" bgcolor=3D"#FFFFFF"> <p>Hi Bernardo,</p> <p>Thanks, I knew this tool, but it is based on sdk3 which will be removed in the next version 4.2, so I'm looking at sdk4 project. <br> </p> </div> </blockquote> </div> </div> </div> </div> </blockquote> So it has recently changed! There was a dedicated ticket in bugzilla about this and many warnings intended to users, but nothing to tell sdk3 removal will be postponed...<br> <blockquote type=3D"cite" cite=3D"mid:CAJgorsYqDnL_6BZcKKsTBraz2jfigRD8hKc_HGig5EYQxCTNzw@mail.gmai= l.com"> <div dir=3D"auto"> <div dir=3D"auto"><br> </div> <div dir=3D"auto">SDKv3 will not be removed in 4.2.</div> <div dir=3D"auto"><br> </div> <div dir=3D"auto"> <div class=3D"gmail_extra"> <div class=3D"gmail_quote"> <blockquote class=3D"quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div text=3D"#000000" bgcolor=3D"#FFFFFF"> <p> </p> <p>You may want to adapt it?<br> </p> </div> </blockquote> </div> </div> </div> <div dir=3D"auto"><br> </div> <div dir=3D"auto">Note that you can gradually move to v4. You can mix v4 API with v3 API and convert function by function.=C2=A0<= /div> <div dir=3D"auto">Y.=C2=A0</div> <div dir=3D"auto"><br> </div> <div dir=3D"auto"> <div class=3D"gmail_extra"> <div class=3D"gmail_quote"> <blockquote class=3D"quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div text=3D"#000000" bgcolor=3D"#FFFFFF"> <p> </p> <div class=3D"elided-text"> <br> <div class=3D"m_1249185257908678384moz-cite-prefix">L= e 21/09/2017 =C3=A0 17:08, Bernardo Juanic=C3=B3 a =C3= =A9crit=C2=A0:<br> </div> <blockquote type=3D"cite"> <div dir=3D"ltr">Hi Nathanael,=C2=A0 <div><br> </div> <div>You may want to take a look at this too:<br> <br> <a href=3D"https://github.com/bjuanico/oVirtBack= up" target=3D"_blank" moz-do-not-send=3D"true">ht= tps://github.com/bjuanico/oV<wbr>irtBackup</a><br> </div> <div><br> </div> <div>Regards,</div> <div><br> </div> <div>Bernardo</div> <div class=3D"gmail_extra"><br clear=3D"all"> <div> <div class=3D"m_1249185257908678384m_-6967630627= 070421401gmail_signature" data-smartmail=3D"gmail_signature"> <div dir=3D"ltr"><a href=3D"http://pgp.mit.edu/pks/lookup?op=3Dget&search=3D0x695E5BCE342= 63F5B" target=3D"_blank" moz-do-not-send=3D"tr= ue">PGP Key</a><br> <div><a moz-do-not-send=3D"true">Skype: mattraken</a><br> </div> </div> </div> </div> <br> <div class=3D"gmail_quote">2017-09-21 11:00 GMT-03:00 Nathana=C3=ABl Blanchet <span dir=3D"ltr"><<a href=3D"mailto:blanchet@abes.fr" target=3D"_blank" moz-do-not-send=3D"true= ">blanchet@abes.fr</a>></span>:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div text=3D"#000000" bgcolor=3D"#FFFFFF"> <p>Hello Victor,</p> <p>I have some questions about your script<br> </p> <br> <div class=3D"m_1249185257908678384m_-6967630627070421401m_7400844792036080505= moz-cite-prefix">Le 07/07/2017 =C3=A0 23:40, Victor Jos=C3=A9= Acosta Dom=C3=ADnguez a =C3=A9crit=C2=A0:<br> </div> <blockquote type=3D"cite"> <div dir=3D"ltr"> <div>Hello everyone, i created a python tool to backup and restore oVirt's VMs.</div> <div><br> </div> <div>Also i created a little "how to" on my blog:</div> <div><a href=3D"http://blog.infratic.com/= 2017/07/create-ovirtrhevs-vm-backup/" target=3D"_blank" moz-do-not-send=3D"true">http://b= log.infratic.com/2017/<wbr>07/create-ovirtrhevs-vm-backup<wbr>/</a></div> </div> </blockquote> <ul> <li>Backup step is okay, and I get a usable qcow2 image of the snapshot vm in the backup vm. It seems to be compliant with the official backup API, except on the step 2.</li> </ul> <ol> <li><i>Take a snapshot of the virtual machine to be backed up - (existing oVirt REST API operation)</i></li> <li><i>Back up the virtual machine configuration at the time of the snapshot (the disk configuration can be backed up as well if needed) - (added capability to oVirt as part of the Backup API)</i=
</li> </ol> <p><font color=3D"#ff0000">I can't see an= y vm configuration anywhere but only the qcow2 disk itself</font></p> <ol> <li><i>Attach the disk snapshots that were created in (1) to the virtual appliance for data backup - (added capability to oVirt as part of the Backup API)</i></li> <li> <i><br> </i></li> <li><i>Detach the disk snapshots that were attached in (4) from the virtual appliance - (added capability to oVirt as part of the Backup API)</i></li> </ol> <p>An other case is when the vm to backup has more than one disk. After I tested it, I found that only one qcow2 disk is saved on the backup vm. This is really a matter when the original vm has many disks part of lvm, it makes the vm restoration unusable.<br> </p> <ul> <li>About vm restoration, it seems that you are using the upload_disk api, so the disk is uploaded to the pre-defined storage domain, so it is not a real vm restoration.=C2=A0=C2=A0= =C2=A0 <br> </li> </ul> <p>Do you plan to backup and restore a full VM (disks + vm definition) in a next release?<br> </p> <blockquote type=3D"cite"> <div dir=3D"ltr"> <div><br> </div> <div>I hope it help someone else</div=
_________________ Users mailing list <a class=3D"m_1249185257908678384m_-6967630627070421401m_7400844792036080= 505moz-txt-link-abbreviated" href=3D"mailto:Users@ovirt.org" target=3D"_b= lank" moz-do-not-send=3D"true">Users@ovirt.org</a> <a class=3D"m_1249185257908678384m_-6967630627070421401m_7400844792036080= 505moz-txt-link-freetext" href=3D"http://lists.ovirt.org/mailman/listinfo= /users" target=3D"_blank" moz-do-not-send=3D"true">http://lists.ovirt.org= /mailman<wbr>/listinfo/users</a><span class=3D"m_1249185257908678384m_-69= 67630627070421401HOEnZb"><font color=3D"#888888"> </font></span></pre> <span class=3D"m_1249185257908678384m_-6967= 630627070421401HOEnZb"><font color=3D"#888888"> </font></span></=
<div><br> </div> <div>Regards</div> <div><br clear=3D"all"> <div> <div class=3D"m_1249185257908678384m_-6967630627070421401m_7400844792036080505= gmail_signature"> <div dir=3D"ltr"> <div> <div dir=3D"ltr"> <div> <div dir=3D"ltr"> <div> <div dir=3D"ltr"> <div> <div dir=3D"ltr= "> <div> <div dir=3D"ltr= "> <div> <div dir=3D"ltr= "> <div> <div dir=3D"ltr= "><span>Victor Acosta<br> <br> </span></div> <div><span></sp= an></div> <div dir=3D"ltr= "><span></span><span><span><img src=3D"https://docs.google.com/uc?id=3D0BxRkeOBHApwsV2Ywcl92YWlaQnc&e= xport=3Ddownload" moz-do-not-send=3D"true" height=3D"96" width=3D"77"><img src=3D"https://docs.google.com/uc?id=3D0BxRkeOBHApwsWDFFcGZ2X1czc1E&e= xport=3Ddownload" moz-do-not-send=3D"true" height=3D"96" width=3D"76"><img src=3D"https://docs.google.com/uc?id=3D0BxRkeOBHApwsMTVrSHp2Y0NEY28&e= xport=3Ddownload" moz-do-not-send=3D"true" height=3D"96" width=3D"93"></span></span><br> <img alt=3D"" moz-do-not-send= =3D"true"></div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <br> <fieldset class=3D"m_1249185257908678384m_-6967630627070421401m_7400844792036080505= mimeAttachmentHeader"></fieldset> <br> <pre>______________________________<wbr= blockquote> <span class=3D"m_1249185257908678384m_-696763= 0627070421401HOEnZb"><font color=3D"#888888"> <br> <pre class=3D"m_1249185257908678384m_= -6967630627070421401m_7400844792036080505moz-signature" cols=3D"72">--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a class=3D"m_1249185257908678384m_-6967630627070421401m_7400844792036080= 505moz-txt-link-abbreviated" href=3D"mailto:blanchet@abes.fr" target=3D"_= blank" moz-do-not-send=3D"true">blanchet@abes.fr</a> </pre> </font></span></div> <br> ______________________________<wbr>________= _________<br> Users mailing list<br> <a href=3D"mailto:Users@ovirt.org" target=3D"_blank" moz-do-not-send=3D"true= ">Users@ovirt.org</a><br> <a href=3D"http://lists.ovirt.org/mailman/li= stinfo/users" rel=3D"noreferrer" target=3D"_blank" moz-do-not-send=3D"true">http://lists.ovi= rt.org/mailman<wbr>/listinfo/users</a><br> <br> </blockquote> </div> <br> </div> </div> </blockquote> <br> <pre class=3D"m_1249185257908678384moz-signature" col= s=3D"72">--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a class=3D"m_1249185257908678384moz-txt-link-abbreviated" href=3D"mailto= :blanchet@abes.fr" target=3D"_blank" moz-do-not-send=3D"true">blanchet@ab= es.fr</a> </pre> </div> </div> <br> ______________________________<wbr>_________________<br> Users mailing list<br> <a href=3D"mailto:Users@ovirt.org" moz-do-not-send=3D"tru= e">Users@ovirt.org</a><br> <a href=3D"http://lists.ovirt.org/mailman/listinfo/users" rel=3D"noreferrer" target=3D"_blank" moz-do-not-send=3D"true">http://lists.ovirt.org/<wbr>ma= ilman/listinfo/users</a><br> <br> </blockquote> </div> <br> </div> </div> </div> </blockquote> <br> <pre class=3D"moz-signature" cols=3D"72">--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:blanchet@abes.fr">bl= anchet@abes.fr</a> </pre> </body> </html> --------------897B4BA87E7FAE56B1CD245D--

On Mon, Sep 25, 2017 at 11:02 AM, Nathanaël Blanchet <blanchet@abes.fr> wrote:
Le 24/09/2017 à 11:11, Yaniv Kaul a écrit :
On Sep 21, 2017 7:09 PM, "Nathanaël Blanchet" <blanchet@abes.fr> wrote:
Hi Bernardo,
Thanks, I knew this tool, but it is based on sdk3 which will be removed in the next version 4.2, so I'm looking at sdk4 project.
So it has recently changed! There was a dedicated ticket in bugzilla about this and many warnings intended to users, but nothing to tell sdk3 removal will be postponed...
We decided to just let it stay, instead of forcing everyone to convert. Note that none of the new features since 4.0 are supported in v3 API, it has far fewer examples, documentation or features for the SDKs themselves (see[1] for example).
From personal experience, I believe it is also easier to develop with the new SDKs. Y.
[1] https://ovirt.org/blog/2017/05/higher-performance-for-python-sdk/
SDKv3 will not be removed in 4.2.
You may want to adapt it?
Note that you can gradually move to v4. You can mix v4 API with v3 API and convert function by function. Y.
Le 21/09/2017 à 17:08, Bernardo Juanicó a écrit :
Hi Nathanael,
You may want to take a look at this too:
https://github.com/bjuanico/oVirtBackup
Regards,
Bernardo
PGP Key <http://pgp.mit.edu/pks/lookup?op=get&search=0x695E5BCE34263F5B> Skype: mattraken
2017-09-21 11:00 GMT-03:00 Nathanaël Blanchet <blanchet@abes.fr>:
Hello Victor,
I have some questions about your script
Le 07/07/2017 à 23:40, Victor José Acosta Domínguez a écrit :
Hello everyone, i created a python tool to backup and restore oVirt's VMs.
Also i created a little "how to" on my blog: http://blog.infratic.com/2017/07/create-ovirtrhevs-vm-backup/
- Backup step is okay, and I get a usable qcow2 image of the snapshot vm in the backup vm. It seems to be compliant with the official backup API, except on the step 2.
1. *Take a snapshot of the virtual machine to be backed up - (existing oVirt REST API operation)* 2. *Back up the virtual machine configuration at the time of the snapshot (the disk configuration can be backed up as well if needed) - (added capability to oVirt as part of the Backup API)*
I can't see any vm configuration anywhere but only the qcow2 disk itself
1. *Attach the disk snapshots that were created in (1) to the virtual appliance for data backup - (added capability to oVirt as part of the Backup API)* 2. 3. *Detach the disk snapshots that were attached in (4) from the virtual appliance - (added capability to oVirt as part of the Backup API)*
An other case is when the vm to backup has more than one disk. After I tested it, I found that only one qcow2 disk is saved on the backup vm. This is really a matter when the original vm has many disks part of lvm, it makes the vm restoration unusable.
- About vm restoration, it seems that you are using the upload_disk api, so the disk is uploaded to the pre-defined storage domain, so it is not a real vm restoration.
Do you plan to backup and restore a full VM (disks + vm definition) in a next release?
I hope it help someone else
Regards
Victor Acosta
_______________________________________________ Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
-- Nathanaël Blanchet
Supervision réseau Pôle Infrastrutures Informatiques227 avenue Professeur-Jean-Louis-Viala <https://maps.google.com/?q=227+avenue+Professeur-Jean-Louis-Viala&entry=gmail&source=g> 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14blanchet@abes.fr
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Nathanaël Blanchet
Supervision réseau Pôle Infrastrutures Informatiques227 avenue Professeur-Jean-Louis-Viala <https://maps.google.com/?q=227+avenue+Professeur-Jean-Louis-Viala&entry=gmail&source=g> 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14blanchet@abes.fr
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Nathanaël Blanchet
Supervision réseau Pôle Infrastrutures Informatiques227 avenue Professeur-Jean-Louis-Viala <https://maps.google.com/?q=227+avenue+Professeur-Jean-Louis-Viala&entry=gmail&source=g> 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14blanchet@abes.fr

This is a multi-part message in MIME format. --------------C42E7FFCE99756698D894E4D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Le 25/09/2017 =C3=A0 11:27, Yaniv Kaul a =C3=A9crit=C2=A0:
On Mon, Sep 25, 2017 at 11:02 AM, Nathana=C3=ABl Blanchet <blanchet@abe=
s.fr=20
<mailto:blanchet@abes.fr>> wrote:
Le 24/09/2017 =C3=A0 11:11, Yaniv Kaul a =C3=A9crit=C2=A0:
On Sep 21, 2017 7:09 PM, "Nathana=C3=ABl Blanchet" <blanchet@abes.=
fr
<mailto:blanchet@abes.fr>> wrote:
Hi Bernardo,
Thanks, I knew this tool, but it is based on sdk3 which will be removed in the next version 4.2, so I'm looking at sdk4 project.
So it has recently changed! There was a dedicated ticket in bugzilla about this and many warnings intended to users, but nothing to tell sdk3 removal will be postponed...
We decided to just let it stay, instead of forcing everyone to convert. Nice to hear such a new, community is the key, and ovirt devs seem to=20 remember! Note that none of the new features since 4.0 are supported in v3 API,=20 it has far fewer examples, documentation or features for the SDKs=20 themselves (see[1] for example). So does that mean v3 API will be kept far in the future? What about=20 derivated tools like ovirt-shell?
From personal experience, I believe it is also easier to develop with=20 the new SDKs. Y.
[1] https://ovirt.org/blog/2017/05/higher-performance-for-python-sdk/
SDKv3 will not be removed in 4.2.
You may want to adapt it?
Note that you can gradually move to v4. You can mix v4 API with v3 API and convert function by function. Y.
Le 21/09/2017 =C3=A0 17:08, Bernardo Juanic=C3=B3 a =C3=A9crit=
=C2=A0:
Hi Nathanael,
You may want to take a look at this too:
https://github.com/bjuanico/oVirtBackup <https://github.com/bjuanico/oVirtBackup>
Regards,
Bernardo
PGP Key <http://pgp.mit.edu/pks/lookup?op=3Dget&search=3D0x695E5BCE34=
263F5B>
Skype: mattraken
2017-09-21 11:00 GMT-03:00 Nathana=C3=ABl Blanchet <blanchet@abes.fr <mailto:blanchet@abes.fr>>:
Hello Victor,
I have some questions about your script
Le 07/07/2017 =C3=A0 23:40, Victor Jos=C3=A9 Acosta Dom=C3=
=ADnguez a
=C3=A9crit=C2=A0:
Hello everyone, i created a python tool to backup and restore oVirt's VMs.
Also i created a little "how to" on my blog: http://blog.infratic.com/2017/07/create-ovirtrhevs-vm-ba=
ckup/
ackup/>
* Backup step is okay, and I get a usable qcow2 image of the snapshot vm in the backup vm. It seems to be compliant with the official backup API, except on the step 2.
1. /Take a snapshot of the virtual machine to be backed up - (existing oVirt REST API operation)/ 2. /Back up the virtual machine configuration at the time of the snapshot (the disk configuration can be backed up as well if needed) - (added capability to oVirt as part of the Backup API)/
I can't see any vm configuration anywhere but only the qcow2 disk itself
1. /Attach the disk snapshots that were created in (1) to the virtual appliance for data backup - (added capability to oVirt as part of the Backup API)/ 2. / / 3. /Detach the disk snapshots that were attached in (4) from the virtual appliance - (added capability to oVirt as part of the Backup API)/
An other case is when the vm to backup has more than one disk. After I tested it, I found that only one qcow2 disk is saved on the backup vm. This is really a matter when the original vm has many disks part of lvm, it makes the vm restoration unusable.
* About vm restoration, it seems that you are using the upload_disk api, so the disk is uploaded to the pre-defined storage domain, so it is not a real vm restoration.
Do you plan to backup and restore a full VM (disks + vm definition) in a next release?
I hope it help someone else
Regards
Victor Acosta
_______________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users <http://lists.ovirt.org/mailman/listinfo/users>
--=20 Nathana=C3=ABl Blanchet
Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala <https://maps.google.com/?q=3D227+avenue+Professeur-Jean-= Louis-Viala&entry=3Dgmail&source=3Dg> 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr <mailto:blanchet@abes.fr> =20
_______________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users <http://lists.ovirt.org/mailman/listinfo/users>
--=20 Nathana=C3=ABl Blanchet
Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala <https://maps.google.com/?q=3D227+avenue+Professeur-Jean-Louis= -Viala&entry=3Dgmail&source=3Dg> 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr <mailto:blanchet@abes.fr> =20
_______________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users <http://lists.ovirt.org/mailman/listinfo/users>
--=20 Nathana=C3=ABl Blanchet
Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala <https://maps.google.com/?q=3D227+avenue+Professeur-Jean-Louis-Vial= a&entry=3Dgmail&source=3Dg> 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr <mailto:blanchet@abes.fr> =20
--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 blanchet@abes.fr --------------C42E7FFCE99756698D894E4D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf= -8"> </head> <body text=3D"#000000" bgcolor=3D"#FFFFFF"> <p><br> </p> <br> <div class=3D"moz-cite-prefix">Le 25/09/2017 =C3=A0 11:27, Yaniv Kaul= a =C3=A9crit=C2=A0:<br> </div> <blockquote type=3D"cite" cite=3D"mid:CAJgorsZqxj9QEP8gCsRxH24KWYWPCfaNT3srR13uiVdrOZHJpQ@mail.gmai= l.com"> <div dir=3D"ltr"><br> <div class=3D"gmail_extra"><br> <div class=3D"gmail_quote">On Mon, Sep 25, 2017 at 11:02 AM, Nathana=C3=ABl Blanchet <span dir=3D"ltr"><<a href=3D"mailto:blanchet@abes.fr" target=3D"_blank" moz-do-not-send=3D"true">blanchet@abes.fr</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <div bgcolor=3D"#FFFFFF"><span class=3D"gmail-"> <p><br> </p> <br> <div class=3D"gmail-m_6176317096150595339moz-cite-prefix">= Le 24/09/2017 =C3=A0 11:11, Yaniv Kaul a =C3=A9crit=C2=A0= :<br> </div> <blockquote type=3D"cite"> <div dir=3D"auto"> <div><br> <div class=3D"gmail_extra"><br> <div class=3D"gmail_quote">On Sep 21, 2017 7:09 PM, "Nathana=C3=ABl Blanchet" <<a href=3D"mailto:blanchet@abes.fr" target=3D"_blank" moz-do-not-send=3D"true">= blanchet@abes.fr</a>> wrote:<br type=3D"attribution"> <blockquote class=3D"gmail-m_6176317096150595339quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <div bgcolor=3D"#FFFFFF"> <p>Hi Bernardo,</p> <p>Thanks, I knew this tool, but it is based on sdk3 which will be removed in the next version 4.2, so I'm looking at sdk4 project. <br> </p> </div> </blockquote> </div> </div> </div> </div> </blockquote> </span> So it has recently changed! There was a dedicated ticket in bugzilla about this and many warnings intended to users, but nothing to tell sdk3 removal will be postponed...</div> </blockquote> <div><br> </div> <div>We decided to just let it stay, instead of forcing everyone to convert. <br> </div> </div> </div> </div> </blockquote> Nice to hear such a new, community is the key, and ovirt devs seem to remember!<br> <blockquote type=3D"cite" cite=3D"mid:CAJgorsZqxj9QEP8gCsRxH24KWYWPCfaNT3srR13uiVdrOZHJpQ@mail.gmai= l.com"> <div dir=3D"ltr"> <div class=3D"gmail_extra"> <div class=3D"gmail_quote"> <div>Note that none of the new features since 4.0 are supported in v3 API, it has far fewer examples, documentation or features for the SDKs themselves (see[1] for example).</div> </div> </div> </div> </blockquote> So does that mean v3 API will be kept far in the future? What about derivated tools like ovirt-shell?<br> <blockquote type=3D"cite" cite=3D"mid:CAJgorsZqxj9QEP8gCsRxH24KWYWPCfaNT3srR13uiVdrOZHJpQ@mail.gmai= l.com"> <div dir=3D"ltr"> <div class=3D"gmail_extra"> <div class=3D"gmail_quote"> <div><br> </div> <div>From personal experience, I believe it is also easier to develop with the new SDKs.</div> <div>Y.</div> <div><br> </div> <div>[1]=C2=A0<a href=3D"https://ovirt.org/blog/2017/05/higher-performance= -for-python-sdk/" moz-do-not-send=3D"true">https://ovirt.org/blog/2017/05/h= igher-performance-for-python-sdk/</a></div> <div><br> </div> <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <div bgcolor=3D"#FFFFFF"> <div> <div class=3D"gmail-h5"><br> <blockquote type=3D"cite"> <div dir=3D"auto"> <div dir=3D"auto"><br> </div> <div dir=3D"auto">SDKv3 will not be removed in 4.2.</div> <div dir=3D"auto"><br> </div> <div dir=3D"auto"> <div class=3D"gmail_extra"> <div class=3D"gmail_quote"> <blockquote class=3D"gmail-m_6176317096150595339quote= " style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <div bgcolor=3D"#FFFFFF"> <p> </p> <p>You may want to adapt it?<br> </p> </div> </blockquote> </div> </div> </div> <div dir=3D"auto"><br> </div> <div dir=3D"auto">Note that you can gradually mov= e to v4. You can mix v4 API with v3 API and convert function by function.=C2=A0</div> <div dir=3D"auto">Y.=C2=A0</div> <div dir=3D"auto"><br> </div> <div dir=3D"auto"> <div class=3D"gmail_extra"> <div class=3D"gmail_quote"> <blockquote class=3D"gmail-m_6176317096150595339quote= " style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <div bgcolor=3D"#FFFFFF"> <p> </p> <div class=3D"gmail-m_6176317096150595339e= lided-text"> <br> <div class=3D"gmail-m_617631709615059533= 9m_1249185257908678384moz-cite-prefix">Le 21/09/2017 =C3=A0 17:08, Bernardo Juanic=C3=B3 a =C3=A9crit=C2=A0:<br=
</div> <blockquote type=3D"cite"> <div dir=3D"ltr">Hi Nathanael,=C2=A0 <div><br> </div> <div>You may want to take a look at this too:<br> <br> <a href=3D"https://github.com/bj= uanico/oVirtBackup" target=3D"_blank" moz-do-not-send=3D"true">http= s://github.com/bjuanico/oV<wbr>irtBackup</a><br> </div> <div><br> </div> <div>Regards,</div> <div><br> </div> <div>Bernardo</div> <div class=3D"gmail_extra"><br clear=3D"all"> <div> <div class=3D"gmail-m_6176317096150595339m_1249185257908678384m_-6967630627070= 421401gmail_signature"> <div dir=3D"ltr"><a href=3D"http://pgp.mit.edu/pks/lookup?op=3Dget&search=3D0x695E5BCE342= 63F5B" target=3D"_blank" moz-do-not-send=3D"true= ">PGP Key</a><br> <div><a moz-do-not-send=3D"tr= ue">Skype: mattraken</a><br> </div> </div> </div> </div> <br> <div class=3D"gmail_quote">2017= -09-21 11:00 GMT-03:00 Nathana=C3=AB= l Blanchet <span dir=3D"ltr">&l= t;<a href=3D"mailto:blanchet@abes.fr" target=3D"_blank" moz-do-not-send=3D"tru= e">blanchet@abes.fr</a>></span>:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-le= ft:1ex"> <div bgcolor=3D"#FFFFFF"> <p>Hello Victor,</p> <p>I have some questions about your script<br> </p> <br> <div class=3D"gmail-m_6176317096150595339m_1249185257908678384m_-6967630627070= 421401m_7400844792036080505moz-cite-prefix">Le 07/07/2017 =C3=A0 23:40= , Victor Jos=C3=A9 Acosta Dom=C3=ADnguez a =C3=A9= crit=C2=A0:<br> </div> <blockquote type=3D"cite"=
<div dir=3D"ltr"> <div>Hello everyone, i created a python tool to backup and restore oVirt's VMs.</div> <div><br> </div> <div>Also i created a little "how to" on my blog:</div> <div><a href=3D"http://bl= og.infratic.com/2017/07/create-ovirtrhevs-vm-backup/" target=3D"_blank" moz-do-not-send=3D"true">http://blog.infratic.com/2017/<wbr>07/create-ovi= rtrhevs-vm-backup<wbr>/</a></div> </div> </blockquote> <ul> <li>Backup step is okay, and I get a usable qcow2 image of the snapshot vm in the backup vm. It seems to be compliant with the official backup API, except on the step 2.</li> </ul> <ol> <li><i>Take a snapshot of the virtual machine to be backed up - (existing oVirt REST API operation)</i></li> <li><i>Back up the virtual machine configuration at the time of the snapshot (the disk configuration can be backed up as well if needed) - (added capability to oVirt as part of the Backup API)<= /i></li> </ol> <p><font color=3D"#ff0000= ">I can't see any vm configuration anywhere but only the qcow2 disk itself</font></p> <ol> <li><i>Attach the disk snapshots that were created in (1) to the virtual appliance for data backup - (added capability to oVirt as part of the Backup API)</i>= </li> <li> <i><br> </i></li> <li><i>Detach the disk snapshots that were attached in (4) from the virtual appliance - (added capability to oVirt as part of the Backup API)</i>= </li> </ol> <p>An other case is when the vm to backup has more than one disk. After I tested it, I found that only one qcow2 disk is saved on the backup vm. This is really a matter when the original vm has many disks part of lvm, it makes the vm restoration unusable.<b= r> </p> <ul> <li>About vm restoration, it seems that you are using the upload_disk api, so the disk is uploaded to the pre-defined storage domain, so it is not a real vm restoration.=C2=A0=C2= =A0=C2=A0 <br> </li> </ul> <p>Do you plan to backup and restore a full VM (disks + vm definition) in a next release?<br> </p> <blockquote type=3D"cite"=
<div dir=3D"ltr"> <div><br> </div> <div>I hope it help someone else</div> <div><br> </div> <div>Regards</div> <div><br clear=3D"all= "> <div> <div class=3D"gmail-m_6176317096150595339m_1249185257908678384m_-6967630627070= 421401m_7400844792036080505gmail_signature"> <div dir=3D"ltr= "> <div> <div dir=3D"ltr= "> <div> <div dir=3D"ltr= "> <div> <div dir=3D"ltr= "> <div> <div dir=3D"ltr= "> <div> <div dir=3D"ltr= "> <div> <div dir=3D"ltr= "> <div> <div dir=3D"ltr= "><span>Victor Acosta<br> <br> </span></div> <div><span></sp= an></div> <div dir=3D"ltr= "><span></span><span><span><img src=3D"https://docs.google.com/uc?id=3D0BxRkeOBHApwsV2Ywcl92YWlaQnc&e= xport=3Ddownload" moz-do-not-send=3D"true" height=3D"96" width=3D"77"><img src=3D"https://docs.google.com/uc?id=3D0BxRkeOBHApwsWDFFcGZ2X1czc1E&e= xport=3Ddownload" moz-do-not-send=3D"true" height=3D"96" width=3D"76"><img src=3D"https://docs.google.com/uc?id=3D0BxRkeOBHApwsMTVrSHp2Y0NEY28&e= xport=3Ddownload" moz-do-not-send=3D"true" height=3D"96" width=3D"93"></span></span><br> <img alt=3D"" moz-do-not-send= =3D"true"></div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <br> <fieldset class=3D"gmail-m_6176317096150595339m_1249185257908678384m_-6967630627070= 421401m_7400844792036080505mimeAttachmentHeader"></fieldset> <br> <pre>__________________= ____________<wbr>_________________ Users mailing list <a class=3D"gmail-m_6176317096150595339m_1249185257908678384m_-6967630627= 070421401m_7400844792036080505moz-txt-link-abbreviated" href=3D"mailto:Us= ers@ovirt.org" target=3D"_blank" moz-do-not-send=3D"true">Users@ovirt.org= </a> <a class=3D"gmail-m_6176317096150595339m_1249185257908678384m_-6967630627= 070421401m_7400844792036080505moz-txt-link-freetext" href=3D"http://lists= .ovirt.org/mailman/listinfo/users" target=3D"_blank" moz-do-not-send=3D"t= rue">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><span class=3D= "gmail-m_6176317096150595339m_1249185257908678384m_-6967630627070421401HO= EnZb"><font color=3D"#888888"> </font></span></pre> <span class=3D"gmail-m_6176317096150595339m_1249185257908678384m_-6967630627070= 421401HOEnZb"><font color=3D"#888888"> = </font></span></blockquote> <span class=3D"gmail-m_6176317096150595339m_1249185257908678384m_-6967630627070= 421401HOEnZb"><font color=3D"#888888"> <b= r> <pre class=3D"gmail-m= _6176317096150595339m_1249185257908678384m_-6967630627070421401m_74008447= 92036080505moz-signature" cols=3D"72">--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques <a href=3D"https://maps.google.com/?q=3D227+avenue+Professeur-Jean-Louis-= Viala&entry=3Dgmail&source=3Dg" moz-do-not-send=3D"true">227 aven= ue Professeur-Jean-Louis-Viala</a> 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a class=3D"gmail-m_6176317096150595339m_1249185257908678384m_-6967630627= 070421401m_7400844792036080505moz-txt-link-abbreviated" href=3D"mailto:bl= anchet@abes.fr" target=3D"_blank" moz-do-not-send=3D"true">blanchet@abes.= fr</a> </pre> </font></span></div> <br> ______________________________<wbr>_________________<br> Users mailing list<br> <a href=3D"mailto:Users@ovir= t.org" target=3D"_blank" moz-do-not-send=3D"true">= Users@ovirt.org</a><br> <a href=3D"http://lists.ovir= t.org/mailman/listinfo/users" rel=3D"noreferrer" target=3D"_blank" moz-do-not-send=3D"true">= http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br> <br> </blockquote> </div> <br> </div> </div> </blockquote> <br> <pre class=3D"gmail-m_617631709615059= 5339m_1249185257908678384moz-signature" cols=3D"72">--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques <a href=3D"https://maps.google.com/?q=3D227+avenue+Professeur-Jean-Louis-= Viala&entry=3Dgmail&source=3Dg" moz-do-not-send=3D"true">227 aven= ue Professeur-Jean-Louis-Viala</a> 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a class=3D"gmail-m_6176317096150595339m_1249185257908678384moz-txt-link-= abbreviated" href=3D"mailto:blanchet@abes.fr" target=3D"_blank" moz-do-no= t-send=3D"true">blanchet@abes.fr</a> </pre> </div> </div> <br> ______________________________<wbr>______= ___________<br> Users mailing list<br> <a href=3D"mailto:Users@ovirt.org" target=3D"_blank" moz-do-not-send=3D"tr= ue">Users@ovirt.org</a><br> <a href=3D"http://lists.ovirt.org/mailman/= listinfo/users" rel=3D"noreferrer" target=3D"_blank" moz-do-not-send=3D"true">http://lists.o= virt.org/mailman<wbr>/listinfo/users</a><br> <br> </blockquote> </div> <br> </div> </div> </div> </blockquote> <br> <pre class=3D"gmail-m_6176317096150595339moz-signatur= e" cols=3D"72">--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques <a href=3D"https://maps.google.com/?q=3D227+avenue+Professeur-Jean-Louis-= Viala&entry=3Dgmail&source=3Dg" moz-do-not-send=3D"true">227 aven= ue Professeur-Jean-Louis-Viala</a> 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a class=3D"gmail-m_6176317096150595339moz-txt-link-abbreviated" href=3D"= mailto:blanchet@abes.fr" target=3D"_blank" moz-do-not-send=3D"true">blanc= het@abes.fr</a> </pre> </div> </div> </div> </blockquote> </div> <br> </div> </div> </blockquote> <br> <pre class=3D"moz-signature" cols=3D"72">--=20 Nathana=C3=ABl Blanchet Supervision r=C3=A9seau P=C3=B4le Infrastrutures Informatiques 227 avenue Professeur-Jean-Louis-Viala 34193 MONTPELLIER CEDEX 5 =09 T=C3=A9l. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14 <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:blanchet@abes.fr">bl= anchet@abes.fr</a> </pre> </body> </html> --------------C42E7FFCE99756698D894E4D--

On Mon, Sep 25, 2017 at 12:51 PM, Nathanaël Blanchet <blanchet@abes.fr> wrote:
Le 25/09/2017 à 11:27, Yaniv Kaul a écrit :
On Mon, Sep 25, 2017 at 11:02 AM, Nathanaël Blanchet <blanchet@abes.fr> wrote:
Le 24/09/2017 à 11:11, Yaniv Kaul a écrit :
On Sep 21, 2017 7:09 PM, "Nathanaël Blanchet" <blanchet@abes.fr> wrote:
Hi Bernardo,
Thanks, I knew this tool, but it is based on sdk3 which will be removed in the next version 4.2, so I'm looking at sdk4 project.
So it has recently changed! There was a dedicated ticket in bugzilla about this and many warnings intended to users, but nothing to tell sdk3 removal will be postponed...
We decided to just let it stay, instead of forcing everyone to convert.
Nice to hear such a new, community is the key, and ovirt devs seem to remember!
Note that none of the new features since 4.0 are supported in v3 API, it has far fewer examples, documentation or features for the SDKs themselves (see[1] for example).
So does that mean v3 API will be kept far in the future? What about derivated tools like ovirt-shell?
There is no promise, but we are not dropping it at the moment. As long it's there, old (3.6.x) ovirt-shell should continue to work. We do not maintain either though. Ansible seems to be a great and powerful replacement to ovirt-shell. Another recommendation I can give is ovirtcmd[1], though I have not tried it myself, I've looked at the code and it looks good. Y. [1] https://github.com/fbacchella/ovirtcmd
From personal experience, I believe it is also easier to develop with the new SDKs. Y.
[1] https://ovirt.org/blog/2017/05/higher-performance-for-python-sdk/
SDKv3 will not be removed in 4.2.
You may want to adapt it?
Note that you can gradually move to v4. You can mix v4 API with v3 API and convert function by function. Y.
Le 21/09/2017 à 17:08, Bernardo Juanicó a écrit :
Hi Nathanael,
You may want to take a look at this too:
https://github.com/bjuanico/oVirtBackup
Regards,
Bernardo
PGP Key <http://pgp.mit.edu/pks/lookup?op=get&search=0x695E5BCE34263F5B> Skype: mattraken
2017-09-21 11:00 GMT-03:00 Nathanaël Blanchet <blanchet@abes.fr>:
Hello Victor,
I have some questions about your script
Le 07/07/2017 à 23:40, Victor José Acosta Domínguez a écrit :
Hello everyone, i created a python tool to backup and restore oVirt's VMs.
Also i created a little "how to" on my blog: http://blog.infratic.com/2017/07/create-ovirtrhevs-vm-backup/
- Backup step is okay, and I get a usable qcow2 image of the snapshot vm in the backup vm. It seems to be compliant with the official backup API, except on the step 2.
1. *Take a snapshot of the virtual machine to be backed up - (existing oVirt REST API operation)* 2. *Back up the virtual machine configuration at the time of the snapshot (the disk configuration can be backed up as well if needed) - (added capability to oVirt as part of the Backup API)*
I can't see any vm configuration anywhere but only the qcow2 disk itself
1. *Attach the disk snapshots that were created in (1) to the virtual appliance for data backup - (added capability to oVirt as part of the Backup API)* 2. 3. *Detach the disk snapshots that were attached in (4) from the virtual appliance - (added capability to oVirt as part of the Backup API)*
An other case is when the vm to backup has more than one disk. After I tested it, I found that only one qcow2 disk is saved on the backup vm. This is really a matter when the original vm has many disks part of lvm, it makes the vm restoration unusable.
- About vm restoration, it seems that you are using the upload_disk api, so the disk is uploaded to the pre-defined storage domain, so it is not a real vm restoration.
Do you plan to backup and restore a full VM (disks + vm definition) in a next release?
I hope it help someone else
Regards
Victor Acosta
_______________________________________________ Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
-- Nathanaël Blanchet
Supervision réseau Pôle Infrastrutures Informatiques227 avenue Professeur-Jean-Louis-Viala <https://maps.google.com/?q=227+avenue+Professeur-Jean-Louis-Viala&entry=gmail&source=g> 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14blanchet@abes.fr
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Nathanaël Blanchet
Supervision réseau Pôle Infrastrutures Informatiques227 avenue Professeur-Jean-Louis-Viala <https://maps.google.com/?q=227+avenue+Professeur-Jean-Louis-Viala&entry=gmail&source=g> 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14blanchet@abes.fr
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Nathanaël Blanchet
Supervision réseau Pôle Infrastrutures Informatiques227 avenue Professeur-Jean-Louis-Viala <https://maps.google.com/?q=227+avenue+Professeur-Jean-Louis-Viala&entry=gmail&source=g> 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14blanchet@abes.fr
-- Nathanaël Blanchet
Supervision réseau Pôle Infrastrutures Informatiques227 avenue Professeur-Jean-Louis-Viala <https://maps.google.com/?q=227+avenue+Professeur-Jean-Louis-Viala&entry=gmail&source=g> 34193 MONTPELLIER CEDEX 5 Tél. 33 (0)4 67 54 84 55 Fax 33 (0)4 67 54 84 14blanchet@abes.fr
participants (8)
-
Bernardo Juanicó
-
FERNANDO FREDIANI
-
Fred Rolland
-
Nathanaël Blanchet
-
netad
-
Niyazi Elvan
-
Victor José Acosta Domínguez
-
Yaniv Kaul