[pve-devel] [PATCH ha-manager] always queue service stop if node shuts down

Thomas Lamprecht t.lamprecht at proxmox.com
Fri May 26 16:22:51 CEST 2017


On 05/26/2017 03:45 PM, Thomas Lamprecht wrote:
> [..snip..]
>
> diff --git a/src/PVE/HA/NodeStatus.pm b/src/PVE/HA/NodeStatus.pm
> index b99689c..493298f 100644
> --- a/src/PVE/HA/NodeStatus.pm
> +++ b/src/PVE/HA/NodeStatus.pm
> @@ -221,8 +221,12 @@ sub fence_node {
>       if ($success) {
>   	my $msg = "fencing: acknowledged - got agent lock for node '$node'";
>   	$haenv->log("info", $msg);
> +
> +	if ($state eq 'fence') {
> +	    &$send_fence_state_email($self, 'SUCCEED', $msg, $node);
> +	}
> +
>   	&$set_node_state($self, $node, 'unknown');
> -	&$send_fence_state_email($self, 'SUCCEED', $msg, $node);

This hunk is not needed (but does not affects anything here, as visible 
from the regression tests).
Sorry, unclean working directory on commit message re-edit.




More information about the pve-devel mailing list