<div dir="ltr"><div>Hi Ken,</div><div><br></div><div>I&#39;ve tried configuring without pcmk_host_list as well with the same result.</div><div><br></div><div>Stonith Devices: </div><div> Resource: NFS1 (class=stonith type=fence_xvm)</div><div>  Attributes: key_file=/etc/cluster/fence_xvm_ceph1.key multicast_address=225.0.0.12 port=NFS1 </div><div>  Operations: monitor interval=20s (NFS1-monitor-interval-20s)</div><div> Resource: NFS2 (class=stonith type=fence_xvm)</div><div>  Attributes: key_file=/etc/cluster/fence_xvm_ceph2.key multicast_address=225.0.1.12 port=NFS2 </div><div>  Operations: monitor interval=20s (NFS2-monitor-interval-20s)</div><div> Resource: NFS3 (class=stonith type=fence_xvm)</div><div>  Attributes: key_file=/etc/cluster/fence_xvm_ceph3.key multicast_address=225.0.2.12 port=NFS3 </div><div>  Operations: monitor interval=20s (NFS3-monitor-interval-20s)</div><div><br></div><div>I can get the list of VM&#39;s from any of the 3 cluster nodes using the multicast address:</div><div><br></div><div><div># fence_xvm -a 225.0.0.12 -k /etc/cluster/fence_xvm_ceph1.key -o list</div><div>NFS1                 1814d93d-3e40-797f-a3c6-102aaa6a3d01 on<br></div></div><div><br></div><div><div># fence_xvm -a 225.0.1.12 -k /etc/cluster/fence_xvm_ceph2.key -o list</div><div>NFS2                 75ab85fc-40e9-45ae-8b0a-c346d59b24e8 on<br></div></div><div><br></div><div><div># fence_xvm -a 225.0.2.12 -k /etc/cluster/fence_xvm_ceph3.key -o list</div><div>NFS3                 f23cca5d-d50b-46d2-85dd-d8357337fd22 on<br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 2, 2015 at 10:07 AM, Ken Gaillot <span dir="ltr">&lt;<a href="mailto:kgaillot@redhat.com" target="_blank">kgaillot@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 06/02/2015 11:40 AM, Steve Dainard wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; I have 3 CentOS7 guests running on 3 CentOS7 hypervisors and I can&#39;t get<br>
&gt; stonith operations to work.<br>
&gt;<br>
&gt; Config:<br>
&gt;<br>
&gt; Cluster Name: nfs<br>
&gt; Corosync Nodes:<br>
&gt;  node1 node2 node3<br>
&gt; Pacemaker Nodes:<br>
&gt;  node1 node2 node3<br>
&gt;<br>
&gt; Resources:<br>
&gt;  Group: group_rbd_fs_nfs_vip<br>
&gt;   Resource: rbd_nfs-ha (class=ocf provider=ceph type=<a href="http://rbd.in" target="_blank">rbd.in</a>)<br>
&gt;    Attributes: user=admin pool=rbd name=nfs-ha cephconf=/etc/ceph/ceph.conf<br>
&gt;    Operations: start interval=0s timeout=20 (rbd_nfs-ha-start-timeout-20)<br>
&gt;                stop interval=0s timeout=20 (rbd_nfs-ha-stop-timeout-20)<br>
&gt;                monitor interval=10s timeout=20s<br>
&gt; (rbd_nfs-ha-monitor-interval-10s)<br>
&gt;   Resource: rbd_home (class=ocf provider=ceph type=<a href="http://rbd.in" target="_blank">rbd.in</a>)<br>
&gt;    Attributes: user=admin pool=rbd name=home cephconf=/etc/ceph/ceph.conf<br>
&gt;    Operations: start interval=0s timeout=20 (rbd_home-start-timeout-20)<br>
&gt;                stop interval=0s timeout=20 (rbd_home-stop-timeout-20)<br>
&gt;                monitor interval=10s timeout=20s<br>
&gt; (rbd_home-monitor-interval-10s)<br>
&gt;   Resource: fs_nfs-ha (class=ocf provider=heartbeat type=Filesystem)<br>
&gt;    Attributes: directory=/mnt/nfs-ha fstype=btrfs<br>
&gt; device=/dev/rbd/rbd/nfs-ha fast_stop=no<br>
&gt;    Operations: monitor interval=20s timeout=40s<br>
&gt; (fs_nfs-ha-monitor-interval-20s)<br>
&gt;                start interval=0 timeout=60s (fs_nfs-ha-start-interval-0)<br>
&gt;                stop interval=0 timeout=60s (fs_nfs-ha-stop-interval-0)<br>
&gt;   Resource: FS_home (class=ocf provider=heartbeat type=Filesystem)<br>
&gt;    Attributes: directory=/mnt/home fstype=btrfs device=/dev/rbd/rbd/home<br>
&gt; options=rw,compress-force=lzo fast_stop=no<br>
&gt;    Operations: monitor interval=20s timeout=40s<br>
&gt; (FS_home-monitor-interval-20s)<br>
&gt;                start interval=0 timeout=60s (FS_home-start-interval-0)<br>
&gt;                stop interval=0 timeout=60s (FS_home-stop-interval-0)<br>
&gt;   Resource: nfsserver (class=ocf provider=heartbeat type=nfsserver)<br>
&gt;    Attributes: nfs_shared_infodir=/mnt/nfs-ha<br>
&gt;    Operations: stop interval=0s timeout=20s (nfsserver-stop-timeout-20s)<br>
&gt;                monitor interval=10s timeout=20s<br>
&gt; (nfsserver-monitor-interval-10s)<br>
&gt;                start interval=0 timeout=40s (nfsserver-start-interval-0)<br>
&gt;   Resource: vip_nfs_private (class=ocf provider=heartbeat type=IPaddr)<br>
&gt;    Attributes: ip=10.0.231.49 cidr_netmask=24<br>
&gt;    Operations: start interval=0s timeout=20s<br>
&gt; (vip_nfs_private-start-timeout-20s)<br>
&gt;                stop interval=0s timeout=20s<br>
&gt; (vip_nfs_private-stop-timeout-20s)<br>
&gt;                monitor interval=5 (vip_nfs_private-monitor-interval-5)<br>
&gt;<br>
&gt; Stonith Devices:<br>
&gt;  Resource: NFS1 (class=stonith type=fence_xvm)<br>
&gt;   Attributes: pcmk_host_list=10.0.231.50<br>
&gt; key_file=/etc/cluster/fence_xvm_ceph1.key multicast_address=225.0.0.12<br>
&gt; port=NFS1<br>
&gt;   Operations: monitor interval=20s (NFS1-monitor-interval-20s)<br>
&gt;  Resource: NFS2 (class=stonith type=fence_xvm)<br>
&gt;   Attributes: pcmk_host_list=10.0.231.51<br>
&gt; key_file=/etc/cluster/fence_xvm_ceph2.key multicast_address=225.0.1.12<br>
&gt; port=NFS2<br>
&gt;   Operations: monitor interval=20s (NFS2-monitor-interval-20s)<br>
&gt;  Resource: NFS3 (class=stonith type=fence_xvm)<br>
&gt;   Attributes: pcmk_host_list=10.0.231.52<br>
&gt; key_file=/etc/cluster/fence_xvm_ceph3.key multicast_address=225.0.2.12<br>
&gt; port=NFS3<br>
<br>
</div></div>I think pcmk_host_list should have the node name rather than the IP<br>
address. If fence_xvm -o list -a whatever shows the right nodes to<br>
fence, you don&#39;t even need to set pcmk_host_list.<br>
<div><div class="h5"><br>
&gt;   Operations: monitor interval=20s (NFS3-monitor-interval-20s)<br>
&gt; Fencing Levels:<br>
&gt;<br>
&gt; Location Constraints:<br>
&gt;   Resource: NFS1<br>
&gt;     Enabled on: node1 (score:1) (id:location-NFS1-node1-1)<br>
&gt;     Enabled on: node2 (score:1000) (id:location-NFS1-node2-1000)<br>
&gt;     Enabled on: node3 (score:500) (id:location-NFS1-node3-500)<br>
&gt;   Resource: NFS2<br>
&gt;     Enabled on: node2 (score:1) (id:location-NFS2-node2-1)<br>
&gt;     Enabled on: node3 (score:1000) (id:location-NFS2-node3-1000)<br>
&gt;     Enabled on: node1 (score:500) (id:location-NFS2-node1-500)<br>
&gt;   Resource: NFS3<br>
&gt;     Enabled on: node3 (score:1) (id:location-NFS3-node3-1)<br>
&gt;     Enabled on: node1 (score:1000) (id:location-NFS3-node1-1000)<br>
&gt;     Enabled on: node2 (score:500) (id:location-NFS3-node2-500)<br>
&gt; Ordering Constraints:<br>
&gt; Colocation Constraints:<br>
&gt;<br>
&gt; Cluster Properties:<br>
&gt;  cluster-infrastructure: corosync<br>
&gt;  cluster-name: nfs<br>
&gt;  dc-version: 1.1.12-a14efad<br>
&gt;  have-watchdog: false<br>
&gt;  stonith-enabled: true<br>
&gt;<br>
&gt; When I stop networking services on node1 (stonith resource NFS1) I see logs<br>
&gt; on the other two cluster nodes attempting to reboot the vm NFS1 without<br>
&gt; success.<br>
&gt;<br>
&gt; Logs:<br>
&gt;<br>
&gt; Jun 01 15:38:17 [2130] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a>    pengine:   notice: LogActions:<br>
&gt;      Move    rbd_nfs-ha      (Started node1 -&gt; node2)<br>
&gt; Jun 01 15:38:17 [2130] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a>    pengine:   notice: LogActions:<br>
&gt;      Move    rbd_home        (Started node1 -&gt; node2)<br>
&gt; Jun 01 15:38:17 [2130] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a>    pengine:   notice: LogActions:<br>
&gt;      Move    fs_nfs-ha       (Started node1 -&gt; node2)<br>
&gt; Jun 01 15:38:17 [2130] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a>    pengine:   notice: LogActions:<br>
&gt;      Move    FS_home (Started node1 -&gt; node2)<br>
&gt; Jun 01 15:38:17 [2130] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a>    pengine:   notice: LogActions:<br>
&gt;      Move    nfsserver       (Started node1 -&gt; node2)<br>
&gt; Jun 01 15:38:17 [2130] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a>    pengine:   notice: LogActions:<br>
&gt;      Move    vip_nfs_private (Started node1 -&gt; node2)<br>
&gt; Jun 01 15:38:17 [2130] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a>    pengine:     info: LogActions:<br>
&gt;      Leave   NFS1    (Started node2)<br>
&gt; Jun 01 15:38:17 [2130] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a>    pengine:     info: LogActions:<br>
&gt;      Leave   NFS2    (Started node3)<br>
&gt; Jun 01 15:38:17 [2130] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a>    pengine:   notice: LogActions:<br>
&gt;      Move    NFS3    (Started node1 -&gt; node2)<br>
&gt; Jun 01 15:38:17 [2130] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a>    pengine:  warning:<br>
&gt; process_pe_message:      Calculated Transition 8:<br>
&gt; /var/lib/pacemaker/pengine/pe-warn-0.bz2<br>
&gt; Jun 01 15:38:17 [2131] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a>       crmd:     info:<br>
&gt; do_state_transition:     State transition S_POLICY_ENGINE -&gt;<br>
&gt; S_TRANSITION_ENGINE [ input=I_PE_SUCCESS cause=C_IPC_MESSAGE<br>
&gt; origin=handle_response ]<br>
&gt; Jun 01 15:38:17 [2131] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a>       crmd:     info:<br>
&gt; do_te_invoke:    Processing graph 8 (ref=pe_calc-dc-1433198297-78) derived<br>
&gt; from /var/lib/pacemaker/pengine/pe-warn-0.bz2<br>
&gt; Jun 01 15:38:17 [2131] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a>       crmd:   notice:<br>
&gt; te_fence_node:   Executing reboot fencing operation (37) on node1<br>
&gt; (timeout=60000)<br>
&gt; Jun 01 15:38:17 [2127] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a> stonith-ng:   notice:<br>
&gt; handle_request:  Client crmd.2131.f7e79b61 wants to fence (reboot) &#39;node1&#39;<br>
&gt; with device &#39;(any)&#39;<br>
&gt; Jun 01 15:38:17 [2127] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a> stonith-ng:   notice:<br>
&gt; initiate_remote_stonith_op:      Initiating remote operation reboot for<br>
&gt; node1: a22a16f3-b699-453e-a090-43a640dd0e3f (0)<br>
&gt; Jun 01 15:38:17 [2127] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a> stonith-ng:   notice:<br>
&gt; can_fence_host_with_device:      NFS1 can not fence (reboot) node1:<br>
&gt; static-list<br>
&gt; Jun 01 15:38:17 [2127] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a> stonith-ng:   notice:<br>
&gt; can_fence_host_with_device:      NFS2 can not fence (reboot) node1:<br>
&gt; static-list<br>
&gt; Jun 01 15:38:17 [2127] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a> stonith-ng:   notice:<br>
&gt; can_fence_host_with_device:      NFS3 can not fence (reboot) node1:<br>
&gt; static-list<br>
&gt; Jun 01 15:38:17 [2127] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a> stonith-ng:     info:<br>
&gt; process_remote_stonith_query:    All queries have arrived, continuing (2,<br>
&gt; 2, 2, a22a16f3-b699-453e-a090-43a640dd0e3f)<br>
&gt; Jun 01 15:38:17 [2127] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a> stonith-ng:   notice:<br>
&gt; stonith_choose_peer:     Couldn&#39;t find anyone to fence node1 with &lt;any&gt;<br>
&gt; Jun 01 15:38:17 [2127] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a> stonith-ng:     info:<br>
&gt; call_remote_stonith:     Total remote op timeout set to 60 for fencing of<br>
&gt; node node1 for crmd.2131.a22a16f3<br>
&gt; Jun 01 15:38:17 [2127] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a> stonith-ng:     info:<br>
&gt; call_remote_stonith:     None of the 2 peers have devices capable of<br>
&gt; terminating node1 for crmd.2131 (0)<br>
&gt; Jun 01 15:38:17 [2127] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a> stonith-ng:    error:<br>
&gt; remote_op_done:  Operation reboot of node1 by &lt;no-one&gt; for<br>
&gt; crmd.2131@node3.a22a16f3: No such device<br>
&gt; Jun 01 15:38:17 [2131] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a>       crmd:   notice:<br>
&gt; tengine_stonith_callback:        Stonith operation<br>
&gt; 2/37:8:0:241ee032-f3a1-4c2b-8427-63af83b54343: No such device (-19)<br>
&gt; Jun 01 15:38:17 [2131] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a>       crmd:   notice:<br>
&gt; tengine_stonith_callback:        Stonith operation 2 for node1 failed (No<br>
&gt; such device): aborting transition.<br>
&gt; Jun 01 15:38:17 [2131] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a>       crmd:   notice:<br>
&gt; abort_transition_graph:  Transition aborted: Stonith failed<br>
&gt; (source=tengine_stonith_callback:697, 0)<br>
&gt; Jun 01 15:38:17 [2131] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a>       crmd:   notice:<br>
&gt; tengine_stonith_notify:  Peer node1 was not terminated (reboot) by &lt;anyone&gt;<br>
&gt; for node3: No such device (ref=a22a16f3-b699-453e-a090-43a640dd0e3f) by<br>
&gt; client crmd.2131<br>
&gt; Jun 01 15:38:17 [2131] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a>       crmd:   notice: run_graph:<br>
&gt;     Transition 8 (Complete=1, Pending=0, Fired=0, Skipped=27, Incomplete=0,<br>
&gt; Source=/var/lib/pacemaker/pengine/pe-warn-0.bz2): Stopped<br>
&gt; Jun 01 15:38:17 [2131] <a href="http://nfs3.pcic.uvic.ca" target="_blank">nfs3.pcic.uvic.ca</a>       crmd:   notice:<br>
&gt; too_many_st_failures:    No devices found in cluster to fence node1, giving<br>
&gt; up<br>
&gt;<br>
&gt; I can manually fence a guest without any issue:<br>
&gt; # fence_xvm -a 225.0.0.12 -k /etc/cluster/fence_xvm_ceph1.key -o reboot -H<br>
&gt; NFS1<br>
&gt;<br>
&gt; But the cluster doesn&#39;t recover resources to another host:<br>
<br>
</div></div>The cluster doesn&#39;t know that the manual fencing succeeded, so it plays<br>
it safe by not moving resources. If you fix the cluster fencing issue,<br>
I&#39;d expect this to work.<br>
<br>
&gt; # pcs status *&lt;-- after manual fencing*<br>
<div><div class="h5">&gt; Cluster name: nfs<br>
&gt; Last updated: Tue Jun  2 08:34:18 2015<br>
&gt; Last change: Mon Jun  1 16:02:58 2015<br>
&gt; Stack: corosync<br>
&gt; Current DC: node3 (3) - partition with quorum<br>
&gt; Version: 1.1.12-a14efad<br>
&gt; 3 Nodes configured<br>
&gt; 9 Resources configured<br>
&gt;<br>
&gt;<br>
&gt; Node node1 (1): UNCLEAN (offline)<br>
&gt; Online: [ node2 node3 ]<br>
&gt;<br>
&gt; Full list of resources:<br>
&gt;<br>
&gt;  Resource Group: group_rbd_fs_nfs_vip<br>
&gt;      rbd_nfs-ha (ocf::ceph:<a href="http://rbd.in" target="_blank">rbd.in</a>):     Started node1<br>
&gt;      rbd_home   (ocf::ceph:<a href="http://rbd.in" target="_blank">rbd.in</a>):     Started node1<br>
&gt;      fs_nfs-ha  (ocf::heartbeat:Filesystem):    Started node1<br>
&gt;      FS_home    (ocf::heartbeat:Filesystem):    Started node1<br>
&gt;      nfsserver  (ocf::heartbeat:nfsserver):     Started node1<br>
&gt;      vip_nfs_private    (ocf::heartbeat:IPaddr):        Started node1<br>
&gt;  NFS1   (stonith:fence_xvm):    Started node2<br>
&gt;  NFS2   (stonith:fence_xvm):    Started node3<br>
&gt;  NFS3   (stonith:fence_xvm):    Started node1<br>
&gt;<br>
&gt; PCSD Status:<br>
&gt;   node1: Online<br>
&gt;   node2: Online<br>
&gt;   node3: Online<br>
&gt;<br>
&gt; Daemon Status:<br>
&gt;   corosync: active/disabled<br>
&gt;   pacemaker: active/disabled<br>
&gt;   pcsd: active/enabled<br>
&gt;<br>
&gt; Fence_virtd config on one of the hypervisors:<br>
&gt; # cat fence_virt.conf<br>
&gt; backends {<br>
&gt;         libvirt {<br>
&gt;                 uri = &quot;qemu:///system&quot;;<br>
&gt;         }<br>
&gt;<br>
&gt; }<br>
&gt;<br>
&gt; listeners {<br>
&gt;         multicast {<br>
&gt;                 port = &quot;1229&quot;;<br>
&gt;                 family = &quot;ipv4&quot;;<br>
&gt;                 interface = &quot;br1&quot;;<br>
&gt;                 address = &quot;225.0.0.12&quot;;<br>
&gt;                 key_file = &quot;/etc/cluster/fence_xvm_ceph1.key&quot;;<br>
&gt;         }<br>
&gt;<br>
&gt; }<br>
&gt;<br>
&gt; fence_virtd {<br>
&gt;         module_path = &quot;/usr/lib64/fence-virt&quot;;<br>
&gt;         backend = &quot;libvirt&quot;;<br>
&gt;         listener = &quot;multicast&quot;;<br>
&gt; }<br>
<br>
<br>
</div></div>_______________________________________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
<a href="http://clusterlabs.org/mailman/listinfo/users" target="_blank">http://clusterlabs.org/mailman/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote></div><br></div>