<tt><font size=2>Kristoffer Grönlund <kgronlund@suse.com> wrote
on 02/01/2017 10:49:54 PM:<br>
<br>
> From: Kristoffer Grönlund <kgronlund@suse.com></font></tt>
<br><tt><font size=2>> To: durwin@mgtsciences.com, users@clusterlabs.org</font></tt>
<br><tt><font size=2>> Date: 02/01/2017 11:23 PM</font></tt>
<br><tt><font size=2>> Subject: Re: [ClusterLabs] fence_vbox '--action='
not executing action</font></tt>
<br><tt><font size=2>> <br>
> durwin@mgtsciences.com writes:<br>
> <br>
> > I have 2 Fedora 24 Virtualbox machines running on Windows 10
host.  On the <br>
> > host from DOS shell I can start 'node1' with,<br>
> ><br>
> > VBoxManage.exe startvm node1 --type headless<br>
> ><br>
> > I can shut it down with,<br>
> ><br>
> > VBoxManage.exe controlvm node1 acpipowerbutton<br>
> ><br>
> > But running fence_vbox from 'node2' does not work correctly.
 Below are <br>
> > two commands and the output.  First action is 'status' second
action is <br>
> > 'off'.  The both get list of running nodes, but 'off' does
*not* shutdown <br>
> > or kill the node.<br>
> ><br>
> > Any ideas?<br>
> <br>
> I haven't tested with Windows as the host OS for fence_vbox (I wrote
the<br>
> initial implementation of the agent). My guess from looking at your<br>
> usage is that passing "cmd" to --ssh-options might not be<br>
> sufficient to get it to work in that environment, but I have no idea<br>
> what the right arguments might be.<br>
> <br>
> Another possibility is that the command that fence_vbox tries to run<br>
> doesn't work for you for some reason. It will either call<br>
> <br>
> VBoxManage startvm <vm> --type headless<br>
> <br>
> or<br>
> <br>
> VBoxManage controlvm <vm> poweroff<br>
> <br>
> when passed on or off as the --action parameter.</font></tt>
<br>
<br><tt><font size=2>If there is no further work being done on fence_vbox,
is there a 'dummy' fence</font></tt>
<br><tt><font size=2>which I might use to make STONITH happy in my configuration?
 It need only send</font></tt>
<br><tt><font size=2>the correct signals to STONITH so that I might create
an active/active cluster</font></tt>
<br><tt><font size=2>to experiment with?  This is only an experimental
configuration.</font></tt>
<br>
<br><tt><font size=2>Thank you,</font></tt>
<br>
<br><tt><font size=2>Durwin</font></tt>
<br><tt><font size=2><br>
> <br>
> Cheers,<br>
> Kristoffer<br>
> <br>
> ><br>
> > Thank you,<br>
> ><br>
> > Durwin<br>
> ><br>
> ><br>
> > 02:04 PM root@node2 ~<br>
> > fc25> fence_vbox --verbose --ip=172.23.93.249 --username=durwin
<br>
> > --identity-file=/root/.ssh/id_rsa.pub --password= --plug="node1"
<br>
> > --ssh-options="cmd" --command-prompt='>' --login-timeout=10
<br>
> > --shell-timeout=20 --action=status<br>
> > Running command: /usr/bin/ssh  durwin@172.23.93.249 -i <br>
> > /root/.ssh/id_rsa.pub -p 22 cmd<br>
> > Received: Enter passphrase for key '/root/.ssh/id_rsa.pub':<br>
> > Sent:<br>
> ><br>
> > Received:<br>
> > stty: 'standard input': Inappropriate ioctl for device<br>
> > Microsoft Windows [Version 10.0.14393]<br>
> > (c) 2016 Microsoft Corporation. All rights reserved.<br>
> ><br>
> > D:\home\durwin><br>
> > Sent: VBoxManage list runningvms<br>
> ><br>
> > Received: VBoxManage list runningvms<br>
> > VBoxManage list runningvms<br>
> ><br>
> > D:\home\durwin><br>
> > Sent: VBoxManage list vms<br>
> ><br>
> > Received: VBoxManage list vms<br>
> > VBoxManage list vms<br>
> > "node2" {14bff1fe-bd26-4583-829d-bc3a393b2a01}<br>
> > "node1" {5a029c3c-4549-48be-8e80-c7a67584cd98}<br>
> ><br>
> > D:\home\durwin><br>
> > Status: OFF<br>
> > Sent: quit<br>
> ><br>
> ><br>
> ><br>
> > 02:05 PM root@node2 ~<br>
> > fc25> fence_vbox --verbose --ip=172.23.93.249 --username=durwin
<br>
> > --identity-file=/root/.ssh/id_rsa.pub --password= --plug="node1"
<br>
> > --ssh-options="cmd" --command-prompt='>' --login-timeout=10
<br>
> > --shell-timeout=20 --action=off<br>
> > Delay 0 second(s) before logging in to the fence device<br>
> > Running command: /usr/bin/ssh  durwin@172.23.93.249 -i <br>
> > /root/.ssh/id_rsa.pub -p 22 cmd<br>
> > Received: Enter passphrase for key '/root/.ssh/id_rsa.pub':<br>
> > Sent:<br>
> ><br>
> > Received:<br>
> > stty: 'standard input': Inappropriate ioctl for device<br>
> > Microsoft Windows [Version 10.0.14393]<br>
> > (c) 2016 Microsoft Corporation. All rights reserved.<br>
> ><br>
> > D:\home\durwin><br>
> > Sent: VBoxManage list runningvms<br>
> ><br>
> > Received: VBoxManage list runningvms<br>
> > VBoxManage list runningvms<br>
> ><br>
> > D:\home\durwin><br>
> > Sent: VBoxManage list vms<br>
> ><br>
> > Received: VBoxManage list vms<br>
> > VBoxManage list vms<br>
> > "node2" {14bff1fe-bd26-4583-829d-bc3a393b2a01}<br>
> > "node1" {5a029c3c-4549-48be-8e80-c7a67584cd98}<br>
> ><br>
> > D:\home\durwin><br>
> > Success: Already OFF<br>
> > Sent: quit<br>
> ><br>
> ><br>
> > Durwin F. De La Rue<br>
> > Management Sciences, Inc.<br>
> > 6022 Constitution Ave. NE<br>
> > Albuquerque, NM  87110<br>
> > Phone (505) 255-8611<br>
> ><br>
> ><br>
> > This email message and any attachments are for the sole use of
the <br>
> > intended recipient(s) and may contain proprietary and/or confidential
<br>
> > information which may be privileged or otherwise protected from
<br>
> > disclosure. Any unauthorized review, use, disclosure or distribution
is <br>
> > prohibited. If you are not the intended recipient(s), please
contact the <br>
> > sender by reply email and destroy the original message and any
copies of <br>
> > the message as well as any attachments to the original message.<br>
> > _______________________________________________<br>
> > Users mailing list: Users@clusterlabs.org<br>
> > </font></tt><a href=http://lists.clusterlabs.org/mailman/listinfo/users><tt><font size=2>http://lists.clusterlabs.org/mailman/listinfo/users</font></tt></a><tt><font size=2><br>
> ><br>
> > Project Home: </font></tt><a href=http://www.clusterlabs.org/><tt><font size=2>http://www.clusterlabs.org</font></tt></a><tt><font size=2><br>
> > Getting started: </font></tt><a href=http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf><tt><font size=2>http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</font></tt></a><tt><font size=2><br>
> > Bugs: </font></tt><a href=http://bugs.clusterlabs.org/><tt><font size=2>http://bugs.clusterlabs.org</font></tt></a><tt><font size=2><br>
> <br>
> -- <br>
> // Kristoffer Grönlund<br>
> // kgronlund@suse.com<br>
</font></tt><font size=2 face="sans-serif"><br>
<br>
<br>
This email message and any attachments are for the sole use of the intended
recipient(s) and may contain proprietary and/or confidential information
which may be privileged or otherwise protected from disclosure. Any unauthorized
review, use, disclosure or distribution is prohibited. If you are not the
intended recipient(s), please contact the sender by reply email and destroy
the original message and any copies of the message as well as any attachments
to the original message.</font>