[pve-devel] [PATCH v3 ha-manager 8/9] Log timeout parameter when present
Thomas Lamprecht
t.lamprecht at proxmox.com
Fri Oct 4 17:29:36 CEST 2019
On 10/2/19 11:46 AM, Fabian Ebner wrote:
> Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
> ---
> src/PVE/HA/LRM.pm | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/src/PVE/HA/LRM.pm b/src/PVE/HA/LRM.pm
> index e5eee94..95ec351 100644
> --- a/src/PVE/HA/LRM.pm
> +++ b/src/PVE/HA/LRM.pm
> @@ -774,7 +774,11 @@ sub exec_resource_agent {
>
> return SUCCESS if !$running;
>
> - $haenv->log("info", "stopping service $sid");
> + if (defined($params->{timeout})) {
> + $haenv->log("info", "stopping service $sid (timeout=$params->{timeout})");
> + } else {
> + $haenv->log("info", "stopping service $sid");
> + }
>
> $plugin->shutdown($haenv, $id, $params->{timeout});
>
>
squash into 4/9, would help to show that it has no effect yet,
as regression test stayed stable.
More information about the pve-devel
mailing list