Scripting Guests migration , shutdown and reboot ( from ovirt) ?

--_000_1051EFB4D3A1704680C38CCAAC5836D292F02893WPTXMAIL2ptxaxw_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, In order to test reliability of some of my softwares running on Guest and= Hosts, I would like to script from RHEV-M manager host , via command line interface, sequences for reboot= ing , migrate and shutdown/run KVM Guests. What's your hint to achieve this ? I cannot use virsh on the host cos theses domains are transient ones , so t= hey disappear from the host virsh list as soon as they are off. Thx for your help. Regards, J.P. Ribeauville P: +33.(0).1.47.17.20.49 . Puteaux 3 Etage 5 Bureau 4 jpribeauville@axway.com<mailto:jpribeauville@axway.com> http://www.axway.com<http://www.axway.com/> P Pensez =E0 l'environnement avant d'imprimer. --_000_1051EFB4D3A1704680C38CCAAC5836D292F02893WPTXMAIL2ptxaxw_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:= //www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-= 1"> <meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Webdings; panose-1:5 3 1 2 1 5 9 6 7 3;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-fareast-language:EN-US;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; font-family:"Calibri","sans-serif"; mso-fareast-language:EN-US;} @page WordSection1 {size:612.0pt 792.0pt; margin:70.85pt 70.85pt 70.85pt 70.85pt;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3D"FR" link=3D"blue" vlink=3D"purple"> <div class=3D"WordSection1"> <p class=3D"MsoNormal"><span lang=3D"EN-US">Hi,<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">In order to test reliability &n= bsp; of some of my softwares running on Guest and Hosts, I would like = to script<br> from RHEV-M manager host , via command line interface, sequences for reboot= ing , migrate and shutdown/run KVM Guests.<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">What’s your hint to achie= ve this ?<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">I cannot use virsh on the host = cos theses domains are transient ones , so they disappear from the host &nb= sp;virsh list as soon as they are off.<br> <br> <o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">Thx for your help.<o:p></o:p></= span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">Regards,<o:p></o:p></span></p> <table class=3D"MsoNormalTable" border=3D"0" cellspacing=3D"0" cellpadding= =3D"0"> <tbody> <tr> <td valign=3D"top" style=3D"padding:0cm 4.5pt 0cm 0cm"> <p class=3D"MsoNormal"><b><span lang=3D"EN-US" style=3D"font-size:9.0pt;fon= t-family:"Arial","sans-serif";color:#888888;mso-fareast= -language:FR"><o:p> </o:p></span></b></p> <p class=3D"MsoNormal"><b><span lang=3D"EN-US" style=3D"font-size:8.5pt;fon= t-family:"Arial","sans-serif";color:#888888;mso-fareast= -language:FR">J.P. Ribeauville<o:p></o:p></span></b></p> <p class=3D"MsoNormal"><span lang=3D"EN-US" style=3D"font-size:8.5pt;font-f= amily:"Arial","sans-serif";color:#737373;mso-fareast-la= nguage:FR"><o:p> </o:p></span></p> </td> </tr> <tr> <td style=3D"padding:2.25pt 4.5pt 4.5pt 0cm"> <p class=3D"MsoNormal"><span style=3D"font-size:8.5pt;font-family:"Ari= al","sans-serif";color:red;mso-fareast-language:FR">P: </span><span style=3D"font-size:8.5pt;font-family:"Arial","s= ans-serif";color:#737373;mso-fareast-language:FR">+33.(0).1.47.17.= 20.49</span><span style=3D"font-size:8.5pt;font-family:"Arial",&q= uot;sans-serif";color:#737373;mso-fareast-language:FR"><o:p></o:p></sp= an></p> <p class=3D"MsoNormal"><span style=3D"font-size:8.5pt;font-family:"Ari= al","sans-serif";color:#737373;mso-fareast-language:FR">.<o:= p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:8.5pt;font-family:"Ari= al","sans-serif";color:#737373;mso-fareast-language:FR">Pute= aux 3 Etage 5 Bureau 4<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:8.5pt;font-family:"Ari= al","sans-serif";color:#737373;mso-fareast-language:FR"><o:p=
</o:p></span></p> <p class=3D"MsoNormal"><u><span lang=3D"EN-US" style=3D"font-size:9.0pt;col= or:red;mso-fareast-language:FR"><a href=3D"mailto:jpribeauville@axway.com">= <span lang=3D"FR" style=3D"color:blue">jpribeauville@axway.com</span></a></= span></u><u><span style=3D"font-size:9.0pt;color:red;mso-fareast-language:F= R"><br> </span></u><span style=3D"font-size:9.0pt;color:red;mso-fareast-language:FR= "><a href=3D"http://www.axway.com/"><span style=3D"color:red">http://www.ax= way.com</span></a><o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:8.5pt;font-family:"Ari= al","sans-serif";color:#737373;mso-fareast-language:FR"><o:p= </o:p></span></p> </td> </tr> </tbody> </table> <p class=3D"MsoNormal"><span style=3D"display:none;mso-fareast-language:FR"= <o:p> </o:p></span></p> <table class=3D"MsoNormalTable" border=3D"0" cellspacing=3D"0" cellpadding= =3D"0"> <tbody> <tr> <td style=3D"padding:4.5pt 4.5pt 4.5pt 0cm"> <p class=3D"MsoNormal"><span style=3D"font-size:18.0pt;font-family:Webdings= ;color:#888888;mso-fareast-language:FR">P</span><span style=3D"font-size:8.= 0pt;font-family:"Arial","sans-serif";color:#888888;mso-= fareast-language:FR"> Pensez =E0 l’environnement avant d’i= mprimer.</span><span style=3D"font-size:8.0pt;font-family:"Arial"= ,"sans-serif";color:#888888;mso-fareast-language:FR"><o:p></o:p><= /span></p> </td> </tr> </tbody> </table> <p class=3D"MsoNormal"><span style=3D"mso-fareast-language:FR"><o:p> <= /o:p></span></p> <p class=3D"MsoNormal"><o:p> </o:p></p> </div> </body> </html>
--_000_1051EFB4D3A1704680C38CCAAC5836D292F02893WPTXMAIL2ptxaxw_--

--Apple-Mail=_47AAD7BF-9FE7-4EB9-AE68-6DB056F0DE87 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8
On Jan 15, 2016, at 9:53 AM, Jean-Pierre Ribeauville = <jpribeauville@axway.com> wrote: =20 Hi, =20 In order to test reliability of some of my softwares running on = Guest and Hosts, I would like to script from RHEV-M manager host , via command line interface, sequences for = rebooting , migrate and shutdown/run KVM Guests. =20 What=E2=80=99s your hint to achieve this ?
Well you could use the Python SDK http://www.ovirt.org/Python-sdk
=20 =20 I cannot use virsh on the host cos theses domains are transient ones , = so they disappear from the host virsh list as soon as they are off. =20 =20 Thx for your help. =20 Regards, =20 J.P. Ribeauville =20 P: +33.(0).1.47.17.20.49 . Puteaux 3 Etage 5 Bureau 4 =20 jpribeauville@axway.com <mailto:jpribeauville@axway.com> http://www.axway.com <http://www.axway.com/> =20 P Pensez =C3=A0 l=E2=80=99environnement avant d=E2=80=99imprimer. =20 =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>
--Apple-Mail=_47AAD7BF-9FE7-4EB9-AE68-6DB056F0DE87 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" = class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div = class=3D"">On Jan 15, 2016, at 9:53 AM, Jean-Pierre Ribeauville <<a = href=3D"mailto:jpribeauville@axway.com" = class=3D"">jpribeauville@axway.com</a>> wrote:</div><br = class=3D"Apple-interchange-newline"><div class=3D""><div = class=3D"WordSection1" style=3D"page: WordSection1; font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; orphans: auto; text-align: = start; text-indent: 0px; text-transform: none; white-space: normal; = widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div = style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: = Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" class=3D"">Hi,<o:p = class=3D""></o:p></span></div><div style=3D"margin: 0cm 0cm 0.0001pt; = font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span = lang=3D"EN-US" class=3D""><o:p class=3D""> </o:p></span></div><div = style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: = Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" class=3D"">In = order to test reliability of some of my softwares running on = Guest and Hosts, I would like to script<br class=3D"">from RHEV-M = manager host , via command line interface, sequences for rebooting , = migrate and shutdown/run KVM Guests.<o:p = class=3D""></o:p></span></div><div style=3D"margin: 0cm 0cm 0.0001pt; = font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span = lang=3D"EN-US" class=3D""><o:p class=3D""> </o:p></span></div><div = style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: = Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" class=3D"">What=E2=80= =99s your hint to achieve this = ?</span></div></div></div></blockquote><div><br class=3D""></div><div>Well= you could use the Python SDK <a = href=3D"http://www.ovirt.org/Python-sdk" = class=3D"">http://www.ovirt.org/Python-sdk</a></div><br = class=3D""><blockquote type=3D"cite" class=3D""><div class=3D""><div = class=3D"WordSection1" style=3D"page: WordSection1; font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; orphans: auto; text-align: = start; text-indent: 0px; text-transform: none; white-space: normal; = widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div = style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: = Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" class=3D""><o:p = class=3D""></o:p></span></div><div style=3D"margin: 0cm 0cm 0.0001pt; = font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span = lang=3D"EN-US" class=3D""><o:p class=3D""> </o:p></span></div><div = style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: = Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" class=3D""><o:p = class=3D""> </o:p></span></div><div style=3D"margin: 0cm 0cm = 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" = class=3D""><span lang=3D"EN-US" class=3D"">I cannot use virsh on the = host cos theses domains are transient ones , so they disappear from the = host virsh list as soon as they are off.<br class=3D""><br = class=3D""><o:p class=3D""></o:p></span></div><div style=3D"margin: 0cm = 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" = class=3D""><span lang=3D"EN-US" class=3D""><o:p = class=3D""> </o:p></span></div><div style=3D"margin: 0cm 0cm = 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" = class=3D""><span lang=3D"EN-US" class=3D"">Thx for your help.<o:p = class=3D""></o:p></span></div><div style=3D"margin: 0cm 0cm 0.0001pt; = font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span = lang=3D"EN-US" class=3D""><o:p class=3D""> </o:p></span></div><div = style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: = Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" = class=3D"">Regards,<o:p class=3D""></o:p></span></div><table = class=3D"MsoNormalTable" border=3D"0" cellspacing=3D"0" = cellpadding=3D"0"><tbody class=3D""><tr class=3D""><td valign=3D"top" = style=3D"padding: 0cm 4.5pt 0cm 0cm;" class=3D""><div style=3D"margin: = 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" = class=3D""><b class=3D""><span lang=3D"EN-US" style=3D"font-size: 9pt; = font-family: Arial, sans-serif; color: rgb(136, 136, 136);" = class=3D""><o:p class=3D""> </o:p></span></b></div><div = style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: = Calibri, sans-serif;" class=3D""><b class=3D""><span lang=3D"EN-US" = style=3D"font-size: 8.5pt; font-family: Arial, sans-serif; color: = rgb(136, 136, 136);" class=3D"">J.P. Ribeauville<o:p = class=3D""></o:p></span></b></div><div style=3D"margin: 0cm 0cm = 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" = class=3D""><span lang=3D"EN-US" style=3D"font-size: 8.5pt; font-family: = Arial, sans-serif; color: rgb(115, 115, 115);" class=3D""><o:p = class=3D""> </o:p></span></div></td></tr><tr class=3D""><td = style=3D"padding: 2.25pt 4.5pt 4.5pt 0cm;" class=3D""><div = style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: = Calibri, sans-serif;" class=3D""><span style=3D"font-size: 8.5pt; = font-family: Arial, sans-serif; color: red;" class=3D"">P:<span = class=3D"Apple-converted-space"> </span></span><span = style=3D"font-size: 8.5pt; font-family: Arial, sans-serif; color: = rgb(115, 115, 115);" class=3D"">+33.(0).1.47.17.20.49</span><span = style=3D"font-size: 8.5pt; font-family: Arial, sans-serif; color: = rgb(115, 115, 115);" class=3D""><o:p class=3D""></o:p></span></div><div = style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: = Calibri, sans-serif;" class=3D""><span style=3D"font-size: 8.5pt; = font-family: Arial, sans-serif; color: rgb(115, 115, 115);" = class=3D"">.<o:p class=3D""></o:p></span></div><div style=3D"margin: 0cm = 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" = class=3D""><span style=3D"font-size: 8.5pt; font-family: Arial, = sans-serif; color: rgb(115, 115, 115);" class=3D"">Puteaux 3 Etage = 5 Bureau 4<o:p class=3D""></o:p></span></div><div style=3D"margin: = 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" = class=3D""><span style=3D"font-size: 8.5pt; font-family: Arial, = sans-serif; color: rgb(115, 115, 115);" class=3D""><o:p = class=3D""> </o:p></span></div><div style=3D"margin: 0cm 0cm = 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" = class=3D""><u class=3D""><span lang=3D"EN-US" style=3D"font-size: 9pt; = color: red;" class=3D""><a href=3D"mailto:jpribeauville@axway.com" = style=3D"color: purple; text-decoration: underline;" class=3D""><span = lang=3D"FR" style=3D"color: blue;" = class=3D"">jpribeauville@axway.com</span></a></span></u><u = class=3D""><span style=3D"font-size: 9pt; color: red;" class=3D""><br = class=3D""></span></u><span style=3D"font-size: 9pt; color: red;" = class=3D""><a href=3D"http://www.axway.com/" style=3D"color: purple; = text-decoration: underline;" class=3D""><span style=3D"color: red;" = class=3D"">http://www.axway.com</span></a><o:p = class=3D""></o:p></span></div><div style=3D"margin: 0cm 0cm 0.0001pt; = font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span = style=3D"font-size: 8.5pt; font-family: Arial, sans-serif; color: = rgb(115, 115, 115);" class=3D""><o:p = class=3D""> </o:p></span></div></td></tr></tbody></table><p = class=3D"MsoNormal" style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; = font-family: Calibri, sans-serif;"></p><table class=3D"MsoNormalTable" = border=3D"0" cellspacing=3D"0" cellpadding=3D"0"><tbody class=3D""><tr = class=3D""><td style=3D"padding: 4.5pt 4.5pt 4.5pt 0cm;" class=3D""><div = style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: = Calibri, sans-serif;" class=3D""><span style=3D"font-size: 18pt; = font-family: Webdings; color: rgb(136, 136, 136);" = class=3D"">P</span><span style=3D"font-size: 8pt; font-family: Arial, = sans-serif; color: rgb(136, 136, 136);" class=3D""> Pensez =C3=A0 = l=E2=80=99environnement avant d=E2=80=99imprimer.</span><span = style=3D"font-size: 8pt; font-family: Arial, sans-serif; color: rgb(136, = 136, 136);" class=3D""><o:p = class=3D""></o:p></span></div></td></tr></tbody></table><div = style=3D"margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: = Calibri, sans-serif;" class=3D""><span class=3D""><o:p = class=3D""> </o:p></span></div><div style=3D"margin: 0cm 0cm = 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" = class=3D""><o:p class=3D""> </o:p></div></div><span = style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant: normal; font-weight: normal; letter-spacing: normal; = orphans: auto; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: auto; word-spacing: 0px; = -webkit-text-stroke-width: 0px; float: none; display: inline = !important;" = class=3D"">_______________________________________________</span><br = style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant: normal; font-weight: normal; letter-spacing: normal; = orphans: auto; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: auto; word-spacing: 0px; = -webkit-text-stroke-width: 0px;" class=3D""><span style=3D"font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant: normal; = font-weight: normal; letter-spacing: normal; orphans: auto; text-align: = start; text-indent: 0px; text-transform: none; white-space: normal; = widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: = none; display: inline !important;" class=3D"">Users mailing = list</span><br style=3D"font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant: normal; font-weight: normal; = letter-spacing: normal; orphans: auto; text-align: start; text-indent: = 0px; text-transform: none; white-space: normal; widows: auto; = word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><a = href=3D"mailto:Users@ovirt.org" style=3D"color: purple; text-decoration: = underline; font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant: normal; font-weight: normal; letter-spacing: normal; = orphans: auto; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: auto; word-spacing: 0px; = -webkit-text-stroke-width: 0px;" class=3D"">Users@ovirt.org</a><br = style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant: normal; font-weight: normal; letter-spacing: normal; = orphans: auto; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: auto; word-spacing: 0px; = -webkit-text-stroke-width: 0px;" class=3D""><a = href=3D"http://lists.ovirt.org/mailman/listinfo/users" style=3D"color: = purple; text-decoration: underline; font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant: normal; font-weight: normal; = letter-spacing: normal; orphans: auto; text-align: start; text-indent: = 0px; text-transform: none; white-space: normal; widows: auto; = word-spacing: 0px; -webkit-text-stroke-width: 0px;" = class=3D"">http://lists.ovirt.org/mailman/listinfo/users</a></div></blockq= uote></div><br class=3D""></body></html>= --Apple-Mail=_47AAD7BF-9FE7-4EB9-AE68-6DB056F0DE87--
participants (2)
-
Jean-Pierre Ribeauville
-
Vinzenz Feenstra