Cfn Cluster在创建主服务器时失败

时间:2016-06-03 19:43:03

标签: amazon-web-services amazon-ec2

我正在尝试通过发出命令" pip install cfncluster"创建cfncluster,并且创建主服务器时集群creaton失败,它表示资源创建失败。请查看下面的日志。请帮助我解决问题。

2016-06-04  Status  Type    Logical ID  Status reason
00:50:08 UTC+0550   ROLLBACK_COMPLETE   AWS::CloudFormation::Stack  cfncluster-cfnclustertest   
00:47:35 UTC+0550   ROLLBACK_IN_PROGRESS    AWS::CloudFormation::Stack  cfncluster-cfnclustertest   The following resource(s) failed to create: MasterServer. . Rollback requested by user.
00:47:34 UTC+0550   CREATE_FAILED   AWS::EC2::Instance  MasterServer    Failed to receive 1 resource signal(s) within the specified duration
Physical ID:i-ea2af076
00:16:26 UTC+0550   CREATE_IN_PROGRESS  AWS::EC2::Instance  MasterServer    Resource creation Initiated
Physical ID:i-ea2af076
00:16:24 UTC+0550   CREATE_IN_PROGRESS  AWS::EC2::Instance  MasterServer    
00:16:16 UTC+0550   CREATE_COMPLETE AWS::IAM::InstanceProfile   RootInstanceProfile 
00:14:21 UTC+0550   CREATE_COMPLETE AWS::EC2::EIPAssociation    AssosiateEIP    
00:14:15 UTC+0550   CREATE_IN_PROGRESS  AWS::IAM::InstanceProfile   RootInstanceProfile Resource creation Initiated
00:14:15 UTC+0550   CREATE_IN_PROGRESS  AWS::IAM::InstanceProfile   RootInstanceProfile 
00:14:14 UTC+0550   CREATE_COMPLETE AWS::IAM::Policy    CfnClusterPolicies  
00:14:14 UTC+0550   CREATE_IN_PROGRESS  AWS::IAM::Policy    CfnClusterPolicies  Resource creation Initiated
00:14:13 UTC+0550   CREATE_IN_PROGRESS  AWS::IAM::Policy    CfnClusterPolicies  
00:14:06 UTC+0550   CREATE_COMPLETE AWS::IAM::Role  RootRole    
00:14:05 UTC+0550   CREATE_IN_PROGRESS  AWS::EC2::EIPAssociation    AssosiateEIP    Resource creation Initiated
00:14:04 UTC+0550   CREATE_COMPLETE AWS::EC2::SecurityGroupIngress  ComputeSecurityGroupIngress 
00:14:04 UTC+0550   CREATE_COMPLETE AWS::EC2::SecurityGroupIngress  MasterSecurityGroupIngress  
00:14:03 UTC+0550   CREATE_IN_PROGRESS  AWS::EC2::EIPAssociation    AssosiateEIP    
00:14:03 UTC+0550   CREATE_IN_PROGRESS  AWS::EC2::SecurityGroupIngress  MasterSecurityGroupIngress  Resource creation Initiated
00:14:03 UTC+0550   CREATE_IN_PROGRESS  AWS::EC2::SecurityGroupIngress  ComputeSecurityGroupIngress Resource creation Initiated
00:14:02 UTC+0550   CREATE_IN_PROGRESS  AWS::EC2::SecurityGroupIngress  MasterSecurityGroupIngress  
00:14:02 UTC+0550   CREATE_IN_PROGRESS  AWS::EC2::SecurityGroupIngress  ComputeSecurityGroupIngress 
00:13:55 UTC+0550   CREATE_COMPLETE AWS::EC2::NetworkInterface  MasterENI   
00:13:55 UTC+0550   CREATE_COMPLETE AWS::EC2::SecurityGroup ComputeSecurityGroup    
00:13:53 UTC+0550   CREATE_IN_PROGRESS  AWS::EC2::SecurityGroup ComputeSecurityGroup    Resource creation Initiated
00:13:39 UTC+0550   CREATE_IN_PROGRESS  AWS::EC2::NetworkInterface  MasterENI   Resource creation Initiated
00:13:37 UTC+0550   CREATE_IN_PROGRESS  AWS::EC2::NetworkInterface  MasterENI   
00:13:37 UTC+0550   CREATE_IN_PROGRESS  AWS::EC2::SecurityGroup ComputeSecurityGroup    
00:13:31 UTC+0550   CREATE_IN_PROGRESS  AWS::IAM::Role  RootRole    Resource creation Initiated
00:13:31 UTC+0550   CREATE_COMPLETE AWS::EC2::SecurityGroup MasterSecurityGroup 
00:13:29 UTC+0550   CREATE_IN_PROGRESS  AWS::EC2::SecurityGroup MasterSecurityGroup Resource creation Initiated
00:13:24 UTC+0550   CREATE_COMPLETE AWS::DynamoDB::Table    DynamoDBTable   
00:13:19 UTC+0550   CREATE_COMPLETE AWS::SQS::QueuePolicy   SQSPolicy   
00:13:19 UTC+0550   CREATE_IN_PROGRESS  AWS::SQS::QueuePolicy   SQSPolicy   Resource creation Initiated
00:13:18 UTC+0550   CREATE_IN_PROGRESS  AWS::SQS::QueuePolicy   SQSPolicy   
00:13:13 UTC+0550   CREATE_IN_PROGRESS  AWS::EC2::SecurityGroup MasterSecurityGroup 
00:13:13 UTC+0550   CREATE_COMPLETE AWS::SNS::Topic SNS 
00:13:11 UTC+0550   CREATE_COMPLETE AWS::EC2::Volume    SharedVolume    
00:13:09 UTC+0550   CREATE_COMPLETE AWS::EC2::EIP   MasterEIP   
00:13:01 UTC+0550   CREATE_IN_PROGRESS  AWS::SNS::Topic SNS Resource creation Initiated
00:13:00 UTC+0550   CREATE_IN_PROGRESS  AWS::SNS::Topic SNS 
00:12:55 UTC+0550   CREATE_IN_PROGRESS  AWS::IAM::Role  RootRole    
00:12:55 UTC+0550   CREATE_IN_PROGRESS  AWS::EC2::Volume    SharedVolume    Resource creation Initiated
00:12:54 UTC+0550   CREATE_IN_PROGRESS  AWS::EC2::Volume    SharedVolume    
00:12:53 UTC+0550   CREATE_IN_PROGRESS  AWS::DynamoDB::Table    DynamoDBTable   Resource creation Initiated
00:12:53 UTC+0550   CREATE_IN_PROGRESS  AWS::EC2::EIP   MasterEIP   Resource creation Initiated
00:12:53 UTC+0550   CREATE_COMPLETE AWS::SQS::Queue SQS 
00:12:53 UTC+0550   CREATE_IN_PROGRESS  AWS::DynamoDB::Table    DynamoDBTable   
00:12:53 UTC+0550   CREATE_IN_PROGRESS  AWS::EC2::EIP   MasterEIP   
00:12:51 UTC+0550   CREATE_IN_PROGRESS  AWS::SQS::Queue SQS Resource creation Initiated
00:12:50 UTC+0550   CREATE_IN_PROGRESS  AWS::SQS::Queue SQS 
00:12:44 UTC+0550   CREATE_IN_PROGRESS  AWS::CloudFormation::Stack  cfncluster-cfnclustertest   User Initiated

2 个答案:

答案 0 :(得分:1)

当在私有子网中创建EC2实例时,默认情况下它没有Internet连接,您必须使用NAT实例提供。由于EC2实例没有互联网,因此无法将创建完成信号发送回CFN代理检查此错误“无法接收1个资源信号”,因此EC2实例正在创建但是作为CFN代理执行没有收到它认为存在问题的信号并且它会回滚更改

答案 1 :(得分:0)

在CFNcluster配置文件的配置设置中添加用于Internet访问的安全组我能够成功创建集群。