Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
pacemaker.3577
bug-986265_pacemaker-fence_legacy-hostlist.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bug-986265_pacemaker-fence_legacy-hostlist.patch of Package pacemaker.3577
commit 3f2d1b1302adc40d9647e854187b7a85bd38f8fb Author: Gao,Yan <ygao@suse.com> Date: Thu Jun 23 20:53:05 2016 +0200 Fix: fencing: fence_legacy - Search capable devices by querying them through "list" action for cluster-glue stonith agents Cluster-glue stonith agents have their own parameters for the host list. We need to query the devices and get the so-called dynamic-list via "stonith -l", which invokes "gethosts" action of the cluster-glue stonith agents. diff --git a/fencing/fence_legacy b/fencing/fence_legacy index 39d4d6a..3625687 100755 --- a/fencing/fence_legacy +++ b/fencing/fence_legacy @@ -73,6 +73,7 @@ be configured in cluster.conf, not directly in Pacemaker. <action name="off" /> <action name="on" /> <action name="status" /> + <action name="list" /> <action name="metadata" /> </actions> </resource-agent> @@ -193,6 +194,10 @@ $opt_o=lc($opt_o); fail "failed: unrecognised action: $opt_o" unless $opt_o =~ /^(on|off|reset|reboot|stat|status|monitor|list|hostlist|poweroff|poweron)$/; +if ( $opt_o eq "hostlist"|| $opt_o eq "list" ) { + $opt_q = "1"; +} + if ( $pid=fork() == 0 ) { if ( $opt_o eq "reboot" )
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