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


Chronological Thread 
  • From: David Montgomery < >
  • To:
  • Subject: [chef] Why does my run fail wheh I use ignore_failure true?
  • Date: Mon, 5 Aug 2013 17:31:04 +0800

Why does my run fail when I use ignore_failure true?

I was under the impression that if I use ignore_failure and  have a fail will continue........

ec2-54-215-148-92.us-west-1.compute.amazonaws.com
ec2-54-215-148-92.us-west-1.compute.amazonaws.com
ec2-54-215-148-92.us-west-1.compute.amazonaws.com
ec2-54-215-148-92.us-west-1.compute.amazonaws.com
ec2-54-215-148-92.us-west-1.compute.amazonaws.com Relevant File Content:
ec2-54-215-148-92.us-west-1.compute.amazonaws.com
ec2-54-215-148-92.us-west-1.compute.amazonaws.com ----------------------
ec2-54-215-148-92.us-west-1.compute.amazonaws.com
ec2-54-215-148-92.us-west-1.compute.amazonaws.com /var/chef/cache/cookbooks/bootstrap/recipes/aws_monitor_tag.rb:
ec2-54-215-148-92.us-west-1.compute.amazonaws.com
ec2-54-215-148-92.us-west-1.compute.amazonaws.com   1:  include_recipe "aws"
ec2-54-215-148-92.us-west-1.compute.amazonaws.com   2:  data_bag("my_data_bag")
ec2-54-215-148-92.us-west-1.compute.amazonaws.com   3:  db = data_bag_item("my_data_bag", "my")
ec2-54-215-148-92.us-west-1.compute.amazonaws.com   4:  aws = db[ node.chef_environment]['aws']
ec2-54-215-148-92.us-west-1.compute.amazonaws.com   5:  AWS_ACCESS_KEY_ID = aws['AWS_ACCESS_KEY_ID']
ec2-54-215-148-92.us-west-1.compute.amazonaws.com   6:  AWS_SECRET_ACCESS_KEY = aws['AWS_SECRET_ACCESS_KEY']
ec2-54-215-148-92.us-west-1.compute.amazonaws.com   7: 
ec2-54-215-148-92.us-west-1.compute.amazonaws.com   8>> aws_resource_tag node['ec2']['instance_id'] do
ec2-54-215-148-92.us-west-1.compute.amazonaws.com   9:    aws_access_key aws['AWS_ACCESS_KEY_ID']
ec2-54-215-148-92.us-west-1.compute.amazonaws.com  10:    aws_secret_access_key aws['AWS_SECRET_ACCESS_KEY']
ec2-54-215-148-92.us-west-1.compute.amazonaws.com  11:    tags({"Name" => "Monitor",
ec2-54-215-148-92.us-west-1.compute.amazonaws.com  12:          "node_name" => "#{node.name}",
ec2-54-215-148-92.us-west-1.compute.amazonaws.com  13:          "environment" => node.chef_environment})
ec2-54-215-148-92.us-west-1.compute.amazonaws.com  14:    action :update
ec2-54-215-148-92.us-west-1.compute.amazonaws.com  15:    ignore_failure true
ec2-54-215-148-92.us-west-1.compute.amazonaws.com  16:  end 17: 
ec2-54-215-148-92.us-west-1.compute.amazonaws.com
ec2-54-215-148-92.us-west-1.compute.amazonaws.com
ec2-54-215-148-92.us-west-1.compute.amazonaws.com
ec2-54-215-148-92.us-west-1.compute.amazonaws.com
ec2-54-215-148-92.us-west-1.compute.amazonaws.com [2013-08-05T09:27:01+00:00] ERROR: Running exception handlers
ec2-54-215-148-92.us-west-1.compute.amazonaws.com [2013-08-05T09:27:01+00:00] ERROR: Exception handlers complete
ec2-54-215-148-92.us-west-1.compute.amazonaws.com [2013-08-05T09:27:01+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
ec2-54-215-148-92.us-west-1.compute.amazonaws.com Chef Client failed. 0 resources updated
ec2-54-215-148-92.us-west-1.compute.amazonaws.com
ec2-54-215-148-92.us-west-1.compute.amazonaws.com [2013-08-05T09:27:01+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)




Archive powered by MHonArc 2.6.16.

§