
On 16 Sep 2016, at 15:05, Gianluca Cecchi <gianluca.cecchi@gmail.com> = wrote: =20 On Fri, Sep 16, 2016 at 2:50 PM, Michal Skrivanek = <michal.skrivanek@redhat.com <mailto:michal.skrivanek@redhat.com>> = wrote: =20 no, that=E2=80=99s not how HA works today. When you log into a guest = and issue =E2=80=9Cshutdown=E2=80=9D we do not restart the VM under your = hands. We can argue how it should or may work, but this is the defined = behavior since the dawn of oVirt. =20
=20 =E2=80=8BAFAIK that's correct, we need to be able =E2=80=8B=E2=80=8Bshu=
--Apple-Mail=_3EFDE72F-C600-476D-A90A-60B2A94A261E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 tdown HA VM=E2=80=8B=E2=80=8B=E2=80=8B without being it immediately = restarted on different host. We want to restart HA VM only if host, = where HA VM is running, is non-responsive.
=20 we try to restart it in all other cases other than user initiated = shutdown, e.g. a QEMU process crash on an otherwise-healthy host =20 =20 Hi, just another question in case HA is not configured at all.
by =E2=80=9CHA configured=E2=80=9D I expect you=E2=80=99re referring to = the =E2=80=9CHighly Available=E2=80=9D checkbox in Edit VM dialog.
If I run the "shutdown -h now" command on an host where some VMs are = running, what is the expected behavior? Clean VM shutdown (with or without timeout in case it doesn't = complete?) or crash of their related QEMU processes?
expectation is that you won=E2=80=99t do that. That=E2=80=99s why there = is the Maintenance host state. But if you do that regardless, with VMs running, all the processes will = be terminated in a regular system way, i.e. all QEMU processes get = SIGTERM. =46rom the perspective of each guest this is not a clean = shutdown and it would just get killed=20 Thanks, michal
=20 Thanks, Gianluca _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
--Apple-Mail=_3EFDE72F-C600-476D-A90A-60B2A94A261E 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 16 Sep 2016, at 15:05, Gianluca Cecchi <<a = href=3D"mailto:gianluca.cecchi@gmail.com" = class=3D"">gianluca.cecchi@gmail.com</a>> wrote:</div><br = class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" = class=3D""><div class=3D"gmail_extra"><div class=3D"gmail_quote">On Fri, = Sep 16, 2016 at 2:50 PM, Michal Skrivanek <span dir=3D"ltr" = class=3D""><<a href=3D"mailto:michal.skrivanek@redhat.com" = target=3D"_blank" class=3D"">michal.skrivanek@redhat.com</a>></span> = wrote:<br class=3D""><blockquote class=3D"gmail_quote" style=3D"margin:0 = 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div = style=3D"word-wrap:break-word" class=3D""><div class=3D""><span = class=3D""><div class=3D""><br class=3D""></div></span>no, that=E2=80=99s = not how HA works today. When you log into a guest and issue = =E2=80=9Cshutdown=E2=80=9D we do not restart the VM under your hands. We = can argue how it should or may work, but this is the defined behavior = since the dawn of oVirt.</div><div class=3D""><span class=3D""><br = class=3D""><blockquote type=3D"cite" class=3D""><div class=3D""><div = dir=3D"ltr" class=3D""><div class=3D"gmail_extra"><div = class=3D"gmail_quote"><div class=3D""><br class=3D""><div = style=3D"font-family:arial,helvetica,sans-serif;display:inline" = class=3D"">=E2=80=8BAFAIK that's correct, we need to be able = =E2=80=8B</div><div = style=3D"font-family:arial,helvetica,sans-serif;display:inline" = class=3D"">=E2=80=8Bshutdown HA VM=E2=80=8B</div>=E2=80=8B<div = style=3D"font-family:arial,helvetica,sans-serif;display:inline" = class=3D"">=E2=80=8B without being it immediately restarted on different = host. We want to restart HA VM only if host, where HA VM is running, is = non-responsive.<br = class=3D""></div></div></div></div></div></div></blockquote><div = class=3D""><br class=3D""></div></span>we try to restart it in all other = cases other than user initiated shutdown, e.g. a QEMU process crash on = an otherwise-healthy host</div><div class=3D""><div class=3D"h5"><div = class=3D""><br class=3D""></div></div></div></div></blockquote></div><br = class=3D""></div><div class=3D"gmail_extra">Hi, just another question in = case HA is not configured at all.</div></div></div></blockquote><div><br = class=3D""></div>by =E2=80=9CHA configured=E2=80=9D I expect you=E2=80=99r= e referring to the =E2=80=9CHighly Available=E2=80=9D checkbox in Edit = VM dialog.</div><div><br class=3D""><blockquote type=3D"cite" = class=3D""><div class=3D""><div dir=3D"ltr" class=3D""><div = class=3D"gmail_extra">If I run the "shutdown -h now" command on an host = where some VMs are running, what is the expected behavior?</div><div = class=3D"gmail_extra">Clean VM shutdown (with or without timeout in case = it doesn't complete?) or crash of their related QEMU = processes?</div></div></div></blockquote><div><br = class=3D""></div>expectation is that you won=E2=80=99t do that. That=E2=80= =99s why there is the Maintenance host state.</div><div>But if you do = that regardless, with VMs running, all the processes will be terminated = in a regular system way, i.e. all QEMU processes get SIGTERM. =46rom the = perspective of each guest this is not a clean shutdown and it would just = get killed </div><div><br = class=3D""></div><div>Thanks,</div><div>michal<br class=3D""><blockquote = type=3D"cite" class=3D""><div class=3D""><div dir=3D"ltr" class=3D""><div = class=3D"gmail_extra"><br class=3D""></div><div = class=3D"gmail_extra">Thanks,</div><div = class=3D"gmail_extra">Gianluca</div></div> _______________________________________________<br class=3D"">Users = mailing list<br class=3D""><a href=3D"mailto:Users@ovirt.org" = class=3D"">Users@ovirt.org</a><br = class=3D"">http://lists.ovirt.org/mailman/listinfo/users<br = class=3D""></div></blockquote></div><br class=3D""></body></html>= --Apple-Mail=_3EFDE72F-C600-476D-A90A-60B2A94A261E--