Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:Update
pacemaker.29834
bsc#1210074-0008-Log-controller-log-fencing-tim...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bsc#1210074-0008-Log-controller-log-fencing-timeout-consistently-in-s.patch of Package pacemaker.29834
From 469b203462dcc0dea38646c3fd49577fd9b310b7 Mon Sep 17 00:00:00 2001 From: "Gao,Yan" <ygao@suse.com> Date: Mon, 17 Apr 2023 12:11:06 +0200 Subject: [PATCH 08/11] Log: controller: log fencing timeout consistently in seconds as priority fencing delay --- daemons/controld/controld_te_actions.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) Index: pacemaker-2.0.1+20190417.13d370ca9/daemons/controld/controld_te_actions.c =================================================================== --- pacemaker-2.0.1+20190417.13d370ca9.orig/daemons/controld/controld_te_actions.c +++ pacemaker-2.0.1+20190417.13d370ca9/daemons/controld/controld_te_actions.c @@ -156,7 +156,8 @@ te_fence_node(crm_graph_t * graph, crm_a const char *priority_delay = NULL; int delay_i = 0; gboolean invalid_action = FALSE; - guint stonith_timeout = transition_graph->stonith_timeout; + int stonith_timeout = (int) (transition_graph->stonith_timeout + / 1000); enum stonith_call_options options = st_opt_none; id = ID(action->xml); @@ -177,7 +178,7 @@ te_fence_node(crm_graph_t * graph, crm_a priority_delay = crm_meta_value(action->params, XML_CONFIG_ATTR_PRIORITY_FENCING_DELAY); crm_notice("Requesting fencing (%s) of node %s " - CRM_XS " action=%s timeout=%u%s%s", + CRM_XS " action=%s timeout=%i%s%s", type, target, id, stonith_timeout, priority_delay ? " priority_delay=" : "", priority_delay ? priority_delay : ""); @@ -191,11 +192,11 @@ te_fence_node(crm_graph_t * graph, crm_a delay_i = crm_atoi(priority_delay, "0"); rc = stonith_api->cmds->fence_with_delay(stonith_api, options, target, type, - (int) (stonith_timeout / 1000), + stonith_timeout, 0, delay_i); stonith_api->cmds->register_callback(stonith_api, rc, - ((int) (stonith_timeout / 1000) + (stonith_timeout + (delay_i > 0 ? delay_i : 0)), st_opt_timeout_updates, generate_transition_key(transition_graph->id, action->id,
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