Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:FrontRunner
pacemaker.15718
bsc#1171372-0002-Fix-libstonithd-action-paramet...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bsc#1171372-0002-Fix-libstonithd-action-parameter-of-RHCS-style-fence.patch of Package pacemaker.15718
From c0b7b77571ca5b6b10b08d08f9c8b71c4455427a Mon Sep 17 00:00:00 2001 From: "Gao,Yan" <ygao@suse.com> Date: Wed, 15 Apr 2020 19:39:29 +0200 Subject: [PATCH 2/2] Fix: libstonithd: `action` parameter of RHCS-style fence-agents is shown as non-required in the metadata The parameter `action` of RHCS-style fence-agents shouldn't usually be specified in fencing resource configuration, although it'd be properly remapped anyways with 9c0c3d60b4. With this commit, the parameter `action` of RHCS-style fence-agents is fudged to be shown as `required="0"` in the metadata output by `stonith_admin --metadata` or `crm_resource --show-metadata`. So that users know they don't have to configure it. Pacemaker handles and passes the parameter to the agent when executing it. --- lib/fencing/st_rhcs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/fencing/st_rhcs.c b/lib/fencing/st_rhcs.c index 16aa0f0c6..c84f76464 100644 --- a/lib/fencing/st_rhcs.c +++ b/lib/fencing/st_rhcs.c @@ -177,7 +177,8 @@ stonith__rhcs_metadata(const char *agent, int timeout, char **output) } freeXpathObject(xpathObj); - // Fudge metadata so port isn't required in config (pacemaker adds it) + // Fudge metadata so parameters are not required in config (pacemaker adds them) + stonith_rhcs_parameter_not_required(xml, "action"); stonith_rhcs_parameter_not_required(xml, "port"); buffer = dump_xml_formatted_with_text(xml); -- 2.26.1
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