随机地,刀似乎挂了。我使用下面的方法启动了三个ami。
warning: commands will be executed using /bin/sh
job 106 at Thu Apr 5 20:35:00 2012
knife ec2 server create -r "role[redis_server]" -N redis_singapore_development_1_1_1333629300 -E development --region ap-southeast-1 -Z ap-southeast-1a -I ami-c4622596 --flavor t1.micro -G redis -x ubuntu -S sg_development -i /home/ubuntu/.ec2/sg_development.pem > /tmp/redis_singapore_development_1_1_1333629300
warning: commands will be executed using /bin/sh
job 107 at Thu Apr 5 20:36:00 2012
knife ec2 server create -r "role[redis_server]" -N redis_singapore_development_1_2_1333629300 -E development --region ap-southeast-1 -Z ap-southeast-1a -I ami-c4622596 --flavor t1.micro -G redis -x ubuntu -S sg_development -i /home/ubuntu/.ec2/sg_development.pem > /tmp/redis_singapore_development_1_2_1333629300
warning: commands will be executed using /bin/sh
knife ec2 server create -r "role[nginx_server]" -N bidder_singapore_development_1_1_1333629300 -E development --region ap-southeast-1 -Z ap-southeast-1a -I ami-c4622596 --flavor t1.micro -G nginx -x ubuntu -S sg_development -i /home/ubuntu/.ec2/sg_development.pem > /tmp/bidder_singapore_development_1_1_1333629300job 108 at Thu Apr 5 20:37:00 2012
两个将完成,一个将卡住。以下是绞死刀的输出。所有三种靴子都可以在大约20%的时间内起作用。刀有问题吗?我甚至试图在执行命令之间等待60秒无济于事。
Waiting for server............
Public DNS Name: ec2-122-248-207-247.ap-southeast-1.compute.amazonaws.com
Public IP Address: 122.248.207.247
Private DNS Name: ip-10-131-22-222.ap-southeast-1.compute.internal
Private IP Address: 10.131.22.222
Waiting for sshd.done
Bootstrapping Chef on ec2-122-248-207-247.ap-southeast-1.compute.amazonaws.com
答案 0 :(得分:0)
出于某种原因,ssh恶魔的启动没有完成,或者你的刀实例无法进入框中。我经历过这两件事影响了我。你需要做一些工作来弄清楚这里发生了什么。
第一步是确定ssh是否在盒子上运行。作为第一步,我将查看您的AWS控制台,并查看它为相关实例显示的内容。
我还会增加刀的冗长程度。我总是用'-VV'option打刀,以获得尽可能多的细节。
答案 1 :(得分:0)
在我的情况下,这是由于我的网络上的ssh端口(22)被阻止了。也许下次检查你是否在防火墙后面。