[chef] Re: Re: Re: Why does my run fail wheh I use ignore_failure true?


Chronological Thread 
  • From: David Montgomery < >
  • To:
  • Subject: [chef] Re: Re: Re: Why does my run fail wheh I use ignore_failure true?
  • Date: Tue, 6 Aug 2013 02:15:03 +0800

Thats the the thing....I am using the  /etc/chef/ohai/hints/
ec.json in a previous recipe before I try and add the tag.  It did work on an existing server.


On Mon, Aug 5, 2013 at 11:14 PM, Daniel DeLeo < " target="_blank"> > wrote:
On Monday, August 5, 2013 at 7:40 AM, Andrew Gross wrote:
Can you paste a larger snippet of the failed run?  It is possible it is failing when it is parsing the code, not when it is running it, however it is hard to tell from this message.
This is definitely the case: 
(snip…)
ec2-54-215-148-92.us-west-1.compute.amazonaws.com   8>> aws_resource_tag node['ec2']['instance_id'] do\
Your error is in the compile phase right there. Probably you're on VPC or a new EC2 account that is "VPC-ish", so ohai can't automatically detect EC2.

And, when the ticket system comes back, see OHAI-310.

To create the ec2 "hint", create /etc/chef/ohai/hints/ec.json (doesn't need any content). The knife-ec2 plugin does this automatically, if you're using a different provisioning workflow, you'll probably want to add a step to create that file.

-- 
Daniel DeLeo





Archive powered by MHonArc 2.6.16.

§