[ClusterLabs] Can fence_vbox ssh-options be configured to use Windows DOS shell?

Marek Grac mgrac at redhat.com
Fri Jan 27 04:05:20 EST 2017


Hi,

command prompt is start of the line after you login to a machine via ssh.
On my machine it is:

login at hostname:~$

because command prompt depends on shell, settings, ...we are starting ssh
to run shell with predefined command prompt: [EXPECT]$. What does not work
on your system

m,

On Thu, Jan 26, 2017 at 6:09 PM, <durwin at mgtsciences.com> wrote:

> Marek Grac <mgrac at redhat.com> wrote on 01/26/2017 09:19:41 AM:
>
> > From: Marek Grac <mgrac at redhat.com>
> > To: Cluster Labs - All topics related to open-source clustering
> > welcomed <users at clusterlabs.org>
> > Date: 01/26/2017 09:20 AM
> > Subject: Re: [ClusterLabs] Can fence_vbox ssh-options be configured
> > to use Windows DOS shell?
> >
> > Hi,
> >
> > On Thu, Jan 26, 2017 at 5:06 PM, <durwin at mgtsciences.com> wrote:
> > I have Windows 10 running Virtualbox with 2 VMs running Fedora 25.
> > I have followed 'Pacemaker 1.1 Clusters from Scratch' 9th edition up
> > through chapter 7.  It works.  I am now trying to fence VMs.  I use
> > Cygwin ssh daemon and of course bash is default for the options.
> >
> > I have used command below from one of the nodes and get the following
> return.
> >
> > fence_vbox -vv --ip=172.23.93.249 --username=durwin --identity-
> > file=/root/.ssh/id_rsa.pub --password= --plug="node1" --action=off
> >
> > add --verbose please.
> >
> > but it looks, you will have to change --ssh-options so it does not
> > execute /bin/bash; it should be be enough to set it to "". You will
> > also have to set --command-prompt to an appropriate value then.
> >
> > m,
> >
>
> Thank you.  Verbose is set '-vv'.
>
> I added --ssh-options="" to the command, see below.  I do not know how to
> find out what value command-prompt needs.  What do I look for?
>
> fc25> fence_vbox --verbose --ip=172.23.93.249 --username=durwin
> --identity-file=/root/.ssh/id_rsa.pub --password= --plug="node1"
> --action=off --ssh-options=""
> 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
> Timeout exceeded.
> <fencing.fspawn object at 0x7ff4d38e6d50>
> command: /usr/bin/ssh
> args: ['/usr/bin/ssh', 'durwin at 172.23.93.249', '-i',
> '/root/.ssh/id_rsa.pub', '-p', '22']
> buffer (last 100 chars): "durwin at 172.23.93.249's password: "
> before (last 100 chars): "durwin at 172.23.93.249's password: "
> after: <class 'pexpect.exceptions.TIMEOUT'>
> match: None
> match_index: None
> exitstatus: None
> flag_eof: False
> pid: 17014
> child_fd: 6
> closed: False
> timeout: 30
> delimiter: <class 'pexpect.exceptions.EOF'>
> logfile: None
> logfile_read: None
> logfile_send: None
> maxread: 2000
> ignorecase: False
> searchwindowsize: None
> delaybeforesend: 0.05
> delayafterclose: 0.1
> delayafterterminate: 0.1
> searcher: searcher_re:
>     0: re.compile("Enter passphrase for key '/root/.ssh/id_rsa.pub':")
>     1: re.compile("Are you sure you want to continue connecting (yes/no)?")
>     2: re.compile("\[EXPECT\]#\ ")
> Unable to connect/login to fencing device
>
>
> > 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 -t '/bin/bash -c "PS1=\\[EXPECT\\]#\  /bin/bash --
> > noprofile --norc"'
> > Received: Enter passphrase for key '/root/.ssh/id_rsa.pub':
> > Sent:
> >
> > Received:
> > [EXPECT]#
> > Sent: VBoxManage list runningvms
> >
> > Connection timed out
> >
> > I tried the following commands from a DOS shell on the Windows host
> > and commands successfully executed (from Cygwin terminal it fails).
> >
> > VBoxManage controlvm node1 acpipowerbutton
> > VBoxManage startvm node1 --type=gui
> >
> > I am aware that some Windows executables do not communicate with
> > Cygwin terminals.  Is there a way to pass ssh options so that
> > VBoxManage is executed from DOS shell?
> >
> > Thank you,
> >
> > Durwin
> >
> >
> > 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
>
> > _______________________________________________
> > 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
>
>
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20170127/23dfb958/attachment-0003.html>


More information about the Users mailing list