[ClusterLabs] fence_vbox '--action=' not executing action

Kristoffer Grönlund kgronlund at suse.com
Thu Feb 2 00:49:54 EST 2017


durwin at mgtsciences.com writes:

> I have 2 Fedora 24 Virtualbox machines running on Windows 10 host.  On the 
> host from DOS shell I can start 'node1' with,
>
> VBoxManage.exe startvm node1 --type headless
>
> I can shut it down with,
>
> VBoxManage.exe controlvm node1 acpipowerbutton
>
> But running fence_vbox from 'node2' does not work correctly.  Below are 
> two commands and the output.  First action is 'status' second action is 
> 'off'.  The both get list of running nodes, but 'off' does *not* shutdown 
> or kill the node.
>
> Any ideas?

I haven't tested with Windows as the host OS for fence_vbox (I wrote the
initial implementation of the agent). My guess from looking at your
usage is that passing "cmd" to --ssh-options might not be
sufficient to get it to work in that environment, but I have no idea
what the right arguments might be.

Another possibility is that the command that fence_vbox tries to run
doesn't work for you for some reason. It will either call

VBoxManage startvm <vm> --type headless

or

VBoxManage controlvm <vm> poweroff

when passed on or off as the --action parameter.

Cheers,
Kristoffer

>
> Thank you,
>
> Durwin
>
>
> 02:04 PM root at node2 ~
> fc25> fence_vbox --verbose --ip=172.23.93.249 --username=durwin 
> --identity-file=/root/.ssh/id_rsa.pub --password= --plug="node1" 
> --ssh-options="cmd" --command-prompt='>' --login-timeout=10 
> --shell-timeout=20 --action=status
> Running command: /usr/bin/ssh  durwin at 172.23.93.249 -i 
> /root/.ssh/id_rsa.pub -p 22 cmd
> Received: Enter passphrase for key '/root/.ssh/id_rsa.pub':
> Sent:
>
> Received:
> stty: 'standard input': Inappropriate ioctl for device
> Microsoft Windows [Version 10.0.14393]
> (c) 2016 Microsoft Corporation. All rights reserved.
>
> D:\home\durwin>
> Sent: VBoxManage list runningvms
>
> Received: VBoxManage list runningvms
> VBoxManage list runningvms
>
> D:\home\durwin>
> Sent: VBoxManage list vms
>
> Received: VBoxManage list vms
> VBoxManage list vms
> "node2" {14bff1fe-bd26-4583-829d-bc3a393b2a01}
> "node1" {5a029c3c-4549-48be-8e80-c7a67584cd98}
>
> D:\home\durwin>
> Status: OFF
> Sent: quit
>
>
>
> 02:05 PM root at node2 ~
> fc25> fence_vbox --verbose --ip=172.23.93.249 --username=durwin 
> --identity-file=/root/.ssh/id_rsa.pub --password= --plug="node1" 
> --ssh-options="cmd" --command-prompt='>' --login-timeout=10 
> --shell-timeout=20 --action=off
> Delay 0 second(s) before logging in to the fence device
> Running command: /usr/bin/ssh  durwin at 172.23.93.249 -i 
> /root/.ssh/id_rsa.pub -p 22 cmd
> Received: Enter passphrase for key '/root/.ssh/id_rsa.pub':
> Sent:
>
> Received:
> stty: 'standard input': Inappropriate ioctl for device
> Microsoft Windows [Version 10.0.14393]
> (c) 2016 Microsoft Corporation. All rights reserved.
>
> D:\home\durwin>
> Sent: VBoxManage list runningvms
>
> Received: VBoxManage list runningvms
> VBoxManage list runningvms
>
> D:\home\durwin>
> Sent: VBoxManage list vms
>
> Received: VBoxManage list vms
> VBoxManage list vms
> "node2" {14bff1fe-bd26-4583-829d-bc3a393b2a01}
> "node1" {5a029c3c-4549-48be-8e80-c7a67584cd98}
>
> D:\home\durwin>
> Success: Already OFF
> Sent: quit
>
>
> Durwin F. De La Rue
> Management Sciences, Inc.
> 6022 Constitution Ave. NE
> Albuquerque, NM  87110
> Phone (505) 255-8611
>
>
> 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.
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> http://lists.clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org

-- 
// Kristoffer Grönlund
// kgronlund at suse.com




More information about the Users mailing list