Test TCP connection before moving VMs from 'pending' to 'ready'

This commit is contained in:
Scott Schneider 2014-08-29 11:17:11 -07:00
parent dcde1baadd
commit 291152b5b9

View file

@ -48,6 +48,10 @@ module Vmpooler
)
begin
Socket.getaddrinfo(vm, nil)
Timeout::timeout(5) {
TCPSocket.new vm, 22
}
rescue
end