Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
pacemaker.13349
bsc#1151007-0003-Log-fencer-Indicate-fencing-ta...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bsc#1151007-0003-Log-fencer-Indicate-fencing-target-in-the-logs-when-.patch of Package pacemaker.13349
From 01669b935b61fed6751c4948bea25a9fb95ea9a7 Mon Sep 17 00:00:00 2001 From: "Gao,Yan" <ygao@suse.com> Date: Fri, 11 Oct 2019 15:33:17 +0200 Subject: [PATCH 3/3] Log: fencer: Indicate fencing target in the logs when scheduling and executing fencing command --- daemons/fenced/fenced_commands.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/daemons/fenced/fenced_commands.c b/daemons/fenced/fenced_commands.c index 266a45726..07c45afbc 100644 --- a/daemons/fenced/fenced_commands.c +++ b/daemons/fenced/fenced_commands.c @@ -352,7 +352,7 @@ stonith_device_execute(stonith_device_t * device) if (pending_op && pending_op->delay_id) { crm_trace ("Operation %s%s%s on %s was asked to run too early, waiting for start_delay timeout of %dms", - pending_op->action, pending_op->victim ? " for node " : "", + pending_op->action, pending_op->victim ? " targeting " : "", pending_op->victim ? pending_op->victim : "", device->id, pending_op->start_delay); continue; @@ -484,11 +484,15 @@ schedule_stonith_command(async_command_t * cmd, stonith_device_t * device) cmd->timeout = get_action_timeout(device, cmd->action, cmd->default_timeout); if (cmd->remote_op_id) { - crm_debug("Scheduling %s on %s for remote peer %s with op id (%s) (timeout=%ds)", - cmd->action, device->id, cmd->origin, cmd->remote_op_id, cmd->timeout); + crm_debug("Scheduling %s%s%s on %s for remote peer %s with op id (%s) (timeout=%ds)", + cmd->action, + cmd->victim ? " targeting " : "", cmd->victim ? cmd->victim : "", + device->id, cmd->origin, cmd->remote_op_id, cmd->timeout); } else { - crm_debug("Scheduling %s on %s for %s (timeout=%ds)", - cmd->action, device->id, cmd->client, cmd->timeout); + crm_debug("Scheduling %s%s%s on %s for %s (timeout=%ds)", + cmd->action, + cmd->victim ? " targeting " : "", cmd->victim ? cmd->victim : "", + device->id, cmd->client, cmd->timeout); } device->pending_ops = g_list_append(device->pending_ops, cmd); @@ -510,9 +514,11 @@ schedule_stonith_command(async_command_t * cmd, stonith_device_t * device) cmd->start_delay = ((delay_max != delay_base)?(rand() % (delay_max - delay_base)):0) + delay_base; - crm_notice("Delaying %s on %s for %dms (timeout=%ds, base=%dms, " + crm_notice("Delaying %s%s%s on %s for %dms (timeout=%ds, base=%dms, " "max=%dms)", - cmd->action, device->id, cmd->start_delay, cmd->timeout, + cmd->action, + cmd->victim ? " targeting " : "", cmd->victim ? cmd->victim : "", + device->id, cmd->start_delay, cmd->timeout, delay_base, delay_max); cmd->delay_id = g_timeout_add(cmd->start_delay, start_delay_helper, cmd); -- 2.16.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor