Por que não consigo me conectar à minha instância ec2 com Juju?

Por que não consigo me conectar à minha instância ec2 com Juju?

Estou usando o juju para impulsionar o rap e depois implantar um serviço. Consegui criar uma instância antes e implantá-la, mas depois de algumas criações e exclusões agora não consigo me conectar, ou seja, executar o status juju.

Executar juju -v status me dá isso, alguma ideia?:

juju -v status 
2011-12-17 18:12:21,682 DEBUG Initializing juju status runtime
2011-12-17 18:12:21,724 INFO Connecting to environment...
2011-12-17 18:12:22,396 DEBUG Connecting to environment using ec2-50-19-139-160.compute-1.amazonaws.com...
2011-12-17 18:12:22,397 DEBUG Spawning SSH process with remote_user="ubuntu" remote_host="ec2-50-19-139-160.compute-1.amazonaws.com" remote_port="2181" local_port="52821".
2011-12-17 18:12:23,407:4475(0x7fbfd3999720):ZOO_INFO@log_env@658: Client environment:zookeeper.version=zookeeper C client 3.3.3
2011-12-17 18:12:23,407:4475(0x7fbfd3999720):ZOO_INFO@log_env@662: Client environment:host.name=SHINYO
2011-12-17 18:12:23,407:4475(0x7fbfd3999720):ZOO_INFO@log_env@669: Client environment:os.name=Linux
2011-12-17 18:12:23,407:4475(0x7fbfd3999720):ZOO_INFO@log_env@670: Client environment:os.arch=3.0.0-15-generic
2011-12-17 18:12:23,407:4475(0x7fbfd3999720):ZOO_INFO@log_env@671: Client environment:os.version=#24-Ubuntu SMP Mon Dec 12 15:23:55 UTC 2011
2011-12-17 18:12:23,408:4475(0x7fbfd3999720):ZOO_INFO@log_env@679: Client environment:user.name=(null)
2011-12-17 18:12:23,408:4475(0x7fbfd3999720):ZOO_INFO@log_env@687: Client environment:user.home=/home/shazzner
2011-12-17 18:12:23,408:4475(0x7fbfd3999720):ZOO_INFO@log_env@699: Client environment:user.dir=/home/shazzner
2011-12-17 18:12:23,408:4475(0x7fbfd3999720):ZOO_INFO@zookeeper_init@727: Initiating client connection, host=localhost:52821 sessionTimeout=10000 watcher=0x7fbfd180d650 sessionId=0 sessionPasswd=<null> context=0x1a7c8d0 flags=0
2011-12-17 18:12:23,409:4475(0x7fbfcdb0f700):ZOO_INFO@check_events@1585: initiated connection to server [127.0.0.1:52821]
2011-12-17 18:12:23,844:4475(0x7fbfcdb0f700):ZOO_ERROR@handle_socket_error_msg@1603: Socket [127.0.0.1:52821] zk retcode=-4, errno=112(Host is down): failed while receiving a server response
2011-12-17 18:12:27,178:4475(0x7fbfcdb0f700):ZOO_WARN@zookeeper_interest@1461: Exceeded deadline by 436ms
2011-12-17 18:12:27,178:4475(0x7fbfcdb0f700):ZOO_ERROR@handle_socket_error_msg@1579: Socket [127.0.0.1:52821] zk retcode=-4, errno=111(Connection refused): server refused to accept the client
2011-12-17 18:12:30,515:4475(0x7fbfcdb0f700):ZOO_ERROR@handle_socket_error_msg@1579: Socket [127.0.0.1:52821] zk retcode=-4, errno=111(Connection refused): server refused to accept the client

EDIT Resolvido: consegui consertar meus problemas de conexão regenerando meu arquivo ambientes.yaml, excluindo-o e executando o juju bootstrap novamente.

Responder1

O problema geral é que leva um minuto imediatamente após a inicialização para que a instância esteja totalmente configurada.

No ppa/trunk isso foi feitoum pouco mais automáticofazendo com que os comandos após o bootstrap pesquisem/aguardem automaticamente a instância até que possam prosseguir.

informação relacionada