brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Svetoslav Neykov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (BROOKLYN-361) Brooklyn will block on initial ssh attempt indefinitely
Date Tue, 11 Oct 2016 16:19:20 GMT
Svetoslav Neykov created BROOKLYN-361:
-----------------------------------------

             Summary: Brooklyn will block on initial ssh attempt indefinitely
                 Key: BROOKLYN-361
                 URL: https://issues.apache.org/jira/browse/BROOKLYN-361
             Project: Brooklyn
          Issue Type: Bug
            Reporter: Svetoslav Neykov


Had a case where the initial ssh attempt  would hang at 
{noformat}
Opening ssh connection

Task[ssh: initializing on-box base dir ./brooklyn-managed-processes]@PYxsD6KS
Submitted by SoftlyPresent[value=Task[pre-start]@yQTQ08Py]

In progress (RUNNABLE)
At: net.schmizz.sshj.transport.TransportImpl.init(TransportImpl.java:158)
    net.schmizz.sshj.SSHClient.onConnect(SSHClient.java:671)
    net.schmizz.sshj.SocketClient.connect(SocketClient.java:71)
    net.schmizz.sshj.SocketClient.connect(SocketClient.java:77)
    org.apache.brooklyn.util.core.internal.ssh.sshj.SshjClientConnection.create(SshjClientConnection.java:188)
    org.apache.brooklyn.util.core.internal.ssh.sshj.SshjClientConnection.create(SshjClientConnection.java:41)
    org.apache.brooklyn.util.core.internal.ssh.sshj.SshjTool.acquire(SshjTool.java:630)
    org.apache.brooklyn.util.core.internal.ssh.sshj.SshjTool.acquire(SshjTool.java:616)
    org.apache.brooklyn.util.core.internal.ssh.sshj.SshjTool.connect(SshjTool.java:205)
    org.apache.brooklyn.location.ssh.SshMachineLocation.connectSsh(SshMachineLocation.java:697)
    org.apache.brooklyn.location.ssh.SshMachineLocation$10.get(SshMachineLocation.java:402)
    org.apache.brooklyn.location.ssh.SshMachineLocation$10.get(SshMachineLocation.java:400)
    org.apache.brooklyn.util.pool.BasicPool.leaseObject(BasicPool.java:134)
    org.apache.brooklyn.util.pool.BasicPool.exec(BasicPool.java:143)
    org.apache.brooklyn.location.ssh.SshMachineLocation.execSsh(SshMachineLocation.java:612)
    org.apache.brooklyn.location.ssh.SshMachineLocation$13.execWithTool(SshMachineLocation.java:791)
    org.apache.brooklyn.util.core.task.system.internal.ExecWithLoggingHelpers.execWithLogging(ExecWithLoggingHelpers.java:164)
    org.apache.brooklyn.util.core.task.system.internal.ExecWithLoggingHelpers.execScript(ExecWithLoggingHelpers.java:80)
    org.apache.brooklyn.location.ssh.SshMachineLocation.execScript(SshMachineLocation.java:775)
    org.apache.brooklyn.util.core.task.ssh.internal.AbstractSshExecTaskFactory$1.run(AbstractSshExecTaskFactory.java:52)
    org.apache.brooklyn.util.core.task.system.ProcessTaskWrapper$ProcessTaskInternalJob.call(ProcessTaskWrapper.java:99)
    org.apache.brooklyn.util.core.task.BasicExecutionManager$SubmissionCallable.call(BasicExecutionManager.java:519)
{noformat}

The reason in this case is that the connection goes through a proxy and it will accept a connection
and keep it open indefinitely if there's no upstream host to forward to.

Should time out if ssh handshake doesn't complete in a reasonable time.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message