Skip to content

Instantly share code, notes, and snippets.

@TonyLovesDevOps
Created September 15, 2015 20:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TonyLovesDevOps/d65fbffe147ddb56199f to your computer and use it in GitHub Desktop.
Save TonyLovesDevOps/d65fbffe147ddb56199f to your computer and use it in GitHub Desktop.
================================================================================
Error executing action `converge` on resource 'machine[multi]'
================================================================================
Chef::Exceptions::ValidationFailed
----------------------------------
Option name must be a kind of String! You passed {:network_interface_id=>"eth0", :device_index=>0, :subnet_id=>"subnet-foo", :description=>"String", :private_ip_address
=>"foo.foo.foo.foo", :delete_on_termination=>false, :private_ip_addresses=>[{:private_ip_address=>"foo.foo.foo.foo", :primary=>false}], :secondary_private_ip_address_count=>1, :associa
te_public_ip_address=>false}.
Resource Declaration:
---------------------
# In /home/tflint/git/chef-server-bootstrap/provisioning-scripts/multip.rb
5: machine 'multi' do
6: machine_options ({
7: bootstrap_options: {
8: key_name: 'foo',
9: instance_type: 'm4.large',
10: image_id: 'ami-foo',
11: subnet: 'subnet-foo',
12: security_group_ids: 'sg-foo',
13: placement: {
14: availability_zone: 'us-west-2b',
15: },
16: network_interfaces: [
17: {
18: network_interface_id: "eth0",
19: device_index: 0,
20: subnet_id: 'subnet-foo',
21: description: "String",
22: private_ip_address: "foo.foo.foo.primary",
23: delete_on_termination: false,
24: private_ip_addresses: [
25: {
26: private_ip_address: "foo.foo.foo.secondary", # required
27: primary: false,
28: },
29: ],
30: secondary_private_ip_address_count: 1,
31: associate_public_ip_address: false,
32: },
33: ],
34: },
35: })
36: end
Compiled Resource:
------------------
# Declared in /home/tflint/git/chef-server-bootstrap/provisioning-scripts/multip.rb:5:in `from_file'
machine("multi") do
action [:converge]
retries 0
retry_delay 2
default_guard_interpreter :default
chef_server {:chef_server_url=>"chefzero://localhost:8889", :options=>{:client_name=>"provisioner", :signing_key_filename=>"/home/tflint/git/chef-server-bootstrap/.chef/dummy.pem", :api_version=>"0"}}
driver "aws"
machine_options {:bootstrap_options=>{:key_name=>"foo", :instance_type=>"m4.large", :image_id=>"ami-foo", :subnet=>"subnet-foo", :security_group_ids=>"sg-foo", :placement=>{:availability_zone=>"us-west-2b"}, :network_interfaces=>[{:network_interface_id=>"eth0", :device_index=>0, :subnet_id=>"subnet-foo", :description=>"String", :private_ip_address=>"foo.foo.foo.primary", :delete_on_termination=>false, :private_ip_addresses=>[{:private_ip_address=>"foo.foo.foo.secondary", :primary=>false}], :secondary_private_ip_address_count=>1, :associate_public_ip_address=>false}]}}
declared_type :machine
cookbook_name "@recipe_files"
recipe_name "/home/tflint/git/chef-server-bootstrap/provisioning-scripts/multip.rb"
end
[2015-09-15T13:34:01-07:00] INFO: Running queued delayed notifications before re-raising exception
Running handlers:
[2015-09-15T13:34:01-07:00] ERROR: Running exception handlers
Running handlers complete
[2015-09-15T13:34:01-07:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 3.699552708 seconds
[2015-09-15T13:34:01-07:00] FATAL: Stacktrace dumped to /home/tflint/git/chef-server-bootstrap/.chef/local-mode-cache/cache/chef-stacktrace.out
[2015-09-15T13:34:01-07:00] ERROR: machine[multi] (@recipe_files::/home/tflint/git/chef-server-bootstrap/provisioning-scripts/multip.rb line 5) had an error: Chef::Exceptions::ValidationFailed: Option name must be a kind of String! You passed {:network_interface_id=>"eth0", :device_index=>0, :subnet_id=>"subnet-foo", :description=>"String", :private_ip_address=>"foo.foo.foo.primary", :delete_on_termination=>false, :private_ip_addresses=>[{:private_ip_address=>"foo.foo.foo.secondary", :primary=>false}], :secondary_private_ip_address_count=>1, :associate_public_ip_address=>false}.
[2015-09-15T13:34:01-07:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment