
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--