
--Apple-Mail=_AF0DFAC1-FA37-4D5C-A60C-1F7D8972E4B0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8
On 16 Sep 2016, at 15:31, aleksey.maksimov@it-kb.ru wrote: =20 Hi Simone. Exactly. Now I'll put the journald on the guest and try to understand how the = guest off.
=20 16.09.2016, 16:25, "Simone Tiraboschi" <stirabos@redhat.com>:
=20 =20 On Fri, Sep 16, 2016 at 3:13 PM, Michal Skrivanek = <michal.skrivanek@redhat.com <mailto:michal.skrivanek@redhat.com>> = wrote: =20
On 16 Sep 2016, at 15:05, Gianluca Cecchi <gianluca.cecchi@gmail.com = <mailto: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=8B= shutdown 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 Hi, just another question in case HA is not configured at all. =20 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. =20 =20 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? =20 expectation is that you won=E2=80=99t do that. That=E2=80=99s why =
great. thanks 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 =20 =20 Aleksey is reporting that he started a shutdown on his host by power = management and the VM processes didn't get roughly killed but smoothly = shut down and so they didn't restarted regardless of their HA flag and = so this thread.=20
Gianluca talks about =E2=80=9Cshutdown -h now=E2=80=9D, you talk about = power management action, those are two different things. The current = idea is that systemd or some other component just propagates the action = to the guest and if that guest is configured to handle it as a shutdown = it starts it itself as well so it looks like a user-initiated one. Even = though this mostly makes sense it is not ok for current HA logic
=20 =20 Thanks, michal
=20 =20 Thanks, Gianluca _______________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users = <http://lists.ovirt.org/mailman/listinfo/users>
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
Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
--Apple-Mail=_AF0DFAC1-FA37-4D5C-A60C-1F7D8972E4B0 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:31, <a = href=3D"mailto:aleksey.maksimov@it-kb.ru" = class=3D"">aleksey.maksimov@it-kb.ru</a> wrote:</div><br = class=3D"Apple-interchange-newline"><div class=3D""><div class=3D"">Hi = Simone.</div><div class=3D"">Exactly.</div><div class=3D"">Now I'll put = the journald on the guest and try to understand how the guest = off.</div></div></blockquote><div><br class=3D""></div>great. = thanks</div><div><br class=3D""><blockquote type=3D"cite" class=3D""><div = class=3D""><div class=3D""> </div><div class=3D"">16.09.2016, = 16:25, "Simone Tiraboschi" <<a href=3D"mailto:stirabos@redhat.com" = class=3D"">stirabos@redhat.com</a>>:</div><blockquote type=3D"cite" = class=3D""><div class=3D""> <div class=3D""> <div class=3D"">On = Fri, Sep 16, 2016 at 3:13 PM, Michal Skrivanek <span class=3D""><<a = href=3D"mailto:michal.skrivanek@redhat.com" target=3D"_blank" = class=3D"">michal.skrivanek@redhat.com</a>></span> wrote:<blockquote = style=3D"margin:0px 0px 0px = 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-widt= h:1px;border-left-style:solid;" class=3D""><div class=3D""> <div = class=3D""><blockquote type=3D"cite" class=3D""><div class=3D""><span = class=3D"">On 16 Sep 2016, at 15:05, Gianluca Cecchi <<a = href=3D"mailto:gianluca.cecchi@gmail.com" target=3D"_blank" = class=3D"">gianluca.cecchi@gmail.com</a>> = wrote:</span></div> <div class=3D""><div class=3D""><div = class=3D""><div class=3D""><span class=3D"">On Fri, Sep 16, 2016 at 2:50 = PM, Michal Skrivanek <span class=3D""><<a = href=3D"mailto:michal.skrivanek@redhat.com" target=3D"_blank" = class=3D"">michal.skrivanek@redhat.com</a>></span> = wrote:</span><blockquote style=3D"margin:0px 0px 0px = 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-widt= h:1px;border-left-style:solid;" class=3D""><div class=3D""><div = class=3D""><div class=3D""> </div><span class=3D"">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.</span></div><div class=3D""> <blockquote = type=3D"cite" class=3D""><div class=3D""><div class=3D""><div = class=3D""><div class=3D""><div class=3D""> <div = style=3D"font-family:arial,helvetica,sans-serif;display:inline;" = class=3D""><span class=3D""><span class=3D"">=E2=80=8BAFAIK that's = correct, we need to be able =E2=80=8B</span></span></div><div = style=3D"font-family:arial,helvetica,sans-serif;display:inline;" = class=3D""><span class=3D""><span class=3D"">=E2=80=8Bshutdown HA = VM=E2=80=8B</span></span></div><span class=3D""><span = class=3D"">=E2=80=8B</span></span><div = style=3D"font-family:arial,helvetica,sans-serif;display:inline;" = class=3D""><span class=3D""><span 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.</span></span></div></div></div></div></div></div></blockqu= ote><div class=3D""> </div><span class=3D"">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</span></div><div class=3D""><div = class=3D""><div = class=3D""> </div></div></div></div></blockquote></div></div><div = class=3D""><span class=3D"">Hi, just another question in case HA is not = configured at all.</span></div></div></div></blockquote><div = class=3D""> </div>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.</div><div class=3D""> <blockquote = type=3D"cite" class=3D""><div class=3D""><div class=3D""><div = class=3D""><span class=3D"">If I run the "shutdown -h now" command on an = host where some VMs are running, what is the expected = behavior?</span></div><div class=3D""><span class=3D"">Clean VM shutdown = (with or without timeout in case it doesn't complete?) or crash of their = related QEMU processes?</span></div></div></div></blockquote><div = 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 = class=3D"">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 = class=3D""> </div></div></blockquote><div class=3D""> </div><div= class=3D"">Aleksey is reporting that he started a shutdown on his host = by power management and the VM processes didn't get roughly killed = but smoothly shut down and so they didn't restarted regardless of their = HA flag and so this = thread. </div></div></div></div></blockquote></div></blockquote><div>= <br class=3D""></div>Gianluca talks about =E2=80=9Cshutdown -h now=E2=80=9D= , you talk about power management action, those are two different = things. The current idea is that systemd or some other component just = propagates the action to the guest and if that guest is configured to = handle it as a shutdown it starts it itself as well so it looks like a = user-initiated one. Even though this mostly makes sense it is not ok for = current HA logic</div><div><br class=3D""><blockquote type=3D"cite" = class=3D""><div class=3D""><blockquote type=3D"cite" class=3D""><div = class=3D""><div class=3D""><div class=3D""><div = class=3D""> </div><blockquote style=3D"margin:0px 0px 0px = 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-widt= h:1px;border-left-style:solid;" class=3D""><div class=3D""><div = class=3D""> </div><div class=3D"">Thanks,</div><div = class=3D"">michal<blockquote type=3D"cite" class=3D""><div class=3D""><div= class=3D""><div class=3D""> </div><div class=3D"">Thanks,</div><div = class=3D"">Gianluca</div></div><span = class=3D"">_______________________________________________<br = class=3D"">Users mailing list<br class=3D""><a = href=3D"mailto:Users@ovirt.org" target=3D"_blank" = class=3D"">Users@ovirt.org</a><br class=3D""><a = href=3D"http://lists.ovirt.org/mailman/listinfo/users" target=3D"_blank" = class=3D"">http://lists.ovirt.org/mailman/listinfo/users</a></span></div><= /blockquote></div></div><br = class=3D"">_______________________________________________<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""><a href=3D"http://lists.ovirt.org/mailman/listinfo/users" = target=3D"_blank" = class=3D"">http://lists.ovirt.org/mailman/listinfo/users</a><br = class=3D""> </blockquote></div></div></div></blockquote>_____________= __________________________________<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=_AF0DFAC1-FA37-4D5C-A60C-1F7D8972E4B0--