<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 16, 2016 at 3:34 PM, Michal Skrivanek <span dir="ltr">&lt;<a href="mailto:michal.skrivanek@redhat.com" target="_blank">michal.skrivanek@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><br><div><span class="gmail-"><blockquote type="cite"><div>On 16 Sep 2016, at 15:31, <a href="mailto:aleksey.maksimov@it-kb.ru" target="_blank">aleksey.maksimov@it-kb.ru</a> wrote:</div><br><div><div>Hi Simone.</div><div>Exactly.</div><div>Now I&#39;ll put the journald on the guest and try to understand how the guest off.</div></div></blockquote><div><br></div></span>great. thanks</div><div><span class="gmail-"><br><blockquote type="cite"><div><div> </div><div>16.09.2016, 16:25, &quot;Simone Tiraboschi&quot; &lt;<a href="mailto:stirabos@redhat.com" target="_blank">stirabos@redhat.com</a>&gt;:</div><blockquote type="cite"><div> <div> <div>On Fri, Sep 16, 2016 at 3:13 PM, Michal Skrivanek <span>&lt;<a href="mailto:michal.skrivanek@redhat.com" target="_blank">michal.skrivanek@redhat.com</a>&gt;</span> wrote:<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left:1px solid rgb(204,204,204)"><div> <div><blockquote type="cite"><div><span>On 16 Sep 2016, at 15:05, Gianluca Cecchi &lt;<a href="mailto:gianluca.cecchi@gmail.com" target="_blank">gianluca.cecchi@gmail.com</a>&gt; wrote:</span></div> <div><div><div><div><span>On Fri, Sep 16, 2016 at 2:50 PM, Michal Skrivanek <span>&lt;<a href="mailto:michal.skrivanek@redhat.com" target="_blank">michal.skrivanek@redhat.com</a>&gt;</span> wrote:</span><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left:1px solid rgb(204,204,204)"><div><div><div> </div><span>no, that’s not how HA works today. When you log into a guest and issue “shutdown” 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> <blockquote type="cite"><div><div><div><div><div> <div style="font-family:arial,helvetica,sans-serif;display:inline"><span><span>​AFAIK that&#39;s correct, we need to be able ​</span></span></div><div style="font-family:arial,helvetica,sans-serif;display:inline"><span><span>​shutdown HA VM​</span></span></div><span><span>​</span></span><div style="font-family:arial,helvetica,sans-serif;display:inline"><span><span>​ 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></blockquote><div> </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</span></div><div><div><div> </div></div></div></div></blockquote></div></div><div><span>Hi, just another question in case HA is not configured at all.</span></div></div></div></blockquote><div> </div>by “HA configured” I expect you’re referring to the “Highly Available” checkbox in Edit VM dialog.</div><div> <blockquote type="cite"><div><div><div><span>If I run the &quot;shutdown -h now&quot; command on an host where some VMs are running, what is the expected behavior?</span></div><div><span>Clean VM shutdown (with or without timeout in case it doesn&#39;t complete?) or crash of their related QEMU processes?</span></div></div></div></blockquote><div> </div>expectation is that you won’t do that. That’s 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. From the perspective of each guest this is not a clean shutdown and it would just get killed </div><div> </div></div></blockquote><div> </div><div>Aleksey is reporting that he started a shutdown on his host by power management and the VM processes didn&#39;t get roughly killed but smoothly shut down and so they didn&#39;t restarted regardless of their HA flag and so this thread. </div></div></div></div></blockquote></div></blockquote><div><br></div></span>Gianluca talks about “shutdown -h now”, 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><span class="gmail-"><div><br></div></span></div></blockquote><div><br></div><div>Aleksey, can you please also test this scenario?<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><span class="gmail-"><div><blockquote type="cite"><div><blockquote type="cite"><div><div><div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left:1px solid rgb(204,204,204)"><div><div> </div><div>Thanks,</div><div>michal<blockquote type="cite"><div><div><div> </div><div>Thanks,</div><div>Gianluca</div></div><span>______________________________<wbr>_________________<br>Users mailing list<br><a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br><a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a></span></div></blockquote></div></div><br>______________________________<wbr>_________________<br>Users mailing list<br><a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br><a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br> </blockquote></div></div></div></blockquote>______________________________<wbr>_________________<br>Users mailing list<br><a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br><a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br></div></blockquote></div><br></span></div></blockquote></div><br></div></div>