<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Ha ok, I understand the difference.
Sorry for that, I thought that the stop button did the same thing
ha or not as stated by Alexandre.<br>
<br>
This is the task when I stop a VM in HA. <br>
<br>
<blockquote type="cite">Executing HA stop for VM 113<br>
Local machine disabling pvevm:113...Success<br>
TASK OK</blockquote>
<br>
The HA disable pvevm and I have a VM task which makes a shutdown.<br>
The VM shutdown properly with no errors.<br>
<br>
And on a VM which is not on HA, the stop button kill the VM with
"qm stop" I guess.<br>
<br>
Sorry for the confusion and thank you !<br>
<br>
<blockquote type="cite">(Does shutdown button works properly
without HA ?</blockquote>
Yes<br>
<br>
<div class="moz-signature"><font face="arial"><span size="3"
style="color:#00ADF4"><b>Cédric Bernard | Network and System
Engineer</b></span><br>
<br>
</font></div>
Le 02/10/2014 14:23, Alexandre DERUMIER a écrit :<br>
</div>
<blockquote cite="mid:7518ebb9-a21e-4ddf-afbd-59ac3fb9623c@mailpro"
type="cite">
<pre wrap="">Ok, thanks! (I think this should be write somewhere in the wiki).
But It's pretty confusing to have 2 differents behavior.
stop should be stop, ha or not
and
shutdown should be shutdown , ha or not.
@Cedric :
Can you send the complete task log ?
Maybe stop is forced, because the vm don't respond correctly to acpi shutdown.
(Does shutdown button works properly without HA ?)
----- Mail original -----
De: "Dietmar Maurer" <a class="moz-txt-link-rfc2396E" href="mailto:dietmar@proxmox.com"><dietmar@proxmox.com></a>
À: "Alexandre DERUMIER" <a class="moz-txt-link-rfc2396E" href="mailto:aderumier@odiso.com"><aderumier@odiso.com></a>
Cc: "Cedric Bernard" <a class="moz-txt-link-rfc2396E" href="mailto:cbernard@sisteer.com"><cbernard@sisteer.com></a>, <a class="moz-txt-link-abbreviated" href="mailto:pve-devel@pve.proxmox.com">pve-devel@pve.proxmox.com</a>
Envoyé: Jeudi 2 Octobre 2014 14:07:10
Objet: RE: [pve-devel] Proxmox - HA & VM Shutdown
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">The stop button should work (executes 'clusvcadm -d <service>').
</pre>
</blockquote>
</blockquote>
<pre wrap="">
Does the stop button (with HAà sent a clean acpi shutdown to the guest ? (vs kill
process without HA)
</pre>
</blockquote>
<pre wrap="">
'clusvcadm -d ..' simply calls the resource agent /usr/share/cluster/pvevm
---
my $param = {
node => $nodename,
vmid => $status->{vmid},
timeout => $timeout,
forceStop => 1,
};
if ($status->{type} eq 'qemu') {
$upid = PVE::API2::Qemu->vm_shutdown($param);
} else {
$upid = PVE::API2::OpenVZ->vm_shutdown($param);
}
---
so this use acpi shutdown, but forces a kill if VM does not stop.
</pre>
</blockquote>
<br>
<BR />
<BR />
<HR />
**************************************************************************************************************************<BR />
Ce message et toutes les pieces jointes sont confidentiels et etablis à l'intention exclusive de ses destinataires.<BR />
Toute utilisation ou diffusion non autorisee est interdite.<BR />
Tout message electronique est susceptible d'alteration.<BR />
SISTEER decline toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie.<BR />
Si vous n'etes pas le destinataire de ce message, merci de le detruire et d'informer l'expediteur.<BR />
**************************************************************************************************************************<BR />
This message and any attachments are confidential and intended solely for the addressee(s).<BR />
Any unauthorised use or dissemination is prohibited. <BR />
E-mails are susceptible to alteration.<BR />
SISTEER shall not be liable for the message if altered, changed or falsified.<BR />
If you are not the intended addressee of this message, please cancel it immediately and inform the sender.<BR />
**************************************************************************************************************************<BR />
</body>
</html>