splunk / splunk-aws-cloudformation

AWS CloudFormation templates for Splunk distributed cluster deployment
Apache License 2.0
109 stars 66 forks source link

Failed to run cfn-init #9

Closed ccummings1 closed 9 years ago

ccummings1 commented 9 years ago

I see the below issue when trying to run a small deployment

6:45:26 UTC-0700 CREATE_FAILED AWS::CloudFormation::Stack Master-BastionHost-KBPI1BOJYH7P The following resource(s) failed to create: [ControllerCondition]. 16:45:25 UTC-0700 CREATE_FAILED AWS::CloudFormation::WaitCondition ControllerCondition WaitCondition received failed message: 'Failed to run cfn-init' for uniqueId: i-94dc6a56

rarsan commented 9 years ago

@ccummings1 thanks for reporting this. Is this still occuring? If so, can you please paste contents of /var/log/cloud-init.log and /var/log/cfn-init.log from the corresponding ec2 instance.

rarsan commented 9 years ago

I think I managed to repro this issue. Can't be certain it's the same without your logs, but it's likely the same root cause: I traced it to a bug in aws cfn-init which strangely fails to install a required package (python-boto). Pushed a workaround (c92fe596fbf512da341b01909d1a1f2cae837f78 ) where we manually install the package instead.

rarsan commented 9 years ago

Closing. Please re-open if this is still occurring.