auser/poolparty

cloud start occasionally hangs in chef bootstrap

alexg0 opened this issue · 0 comments

Cloud start occasionally hangs in chef bootstrap, or errors out with following error from ssh: "ssh_exchange_identification: Connection closed by remote host".

This seems to be caused by Connections#ping_port leaving TCP port open, and starving out ssh session (maximum number of concurrent ssh session (this is controlled either MaxSession and MaxStartups parameters in sshd_config, each defaults to 10). Fix is to close TCPSocket after using it. Will provide a patch.