Skip to content

Instantly share code, notes, and snippets.

@fifthecho
Created May 5, 2015 17:17
Show Gist options
  • Save fifthecho/31b5d1b1c86981dd6026 to your computer and use it in GitHub Desktop.
Save fifthecho/31b5d1b1c86981dd6026 to your computer and use it in GitHub Desktop.
chef-provisioning-ssh error
Converging 1 resources
Recipe: @recipe_files::/tmp/vagrant-chef/ca34a44bc2ba93b21c02fdec9854c6ac/cookbooks/cms-provisioning/recipes/infrastructure.rb
* machine[mgo1] action ready
================================================================================
Error executing action `ready` on resource 'machine[mgo1]'
================================================================================
RuntimeError
------------
Machine Options for mgo1 are invalid cannot create machine.
:transport_options => :host or :ip_address required.
:transport_options => :username required.
:transport_options => :ip_address not allowed.
:transport_options => :username not allowed.
:transport_options => :ssh_options not allowed.
Resource Declaration:
---------------------
# In /tmp/vagrant-chef/ca34a44bc2ba93b21c02fdec9854c6ac/cookbooks/cms-provisioning/recipes/infrastructure.rb
46: machine "mgo#{i}" do
47: action [:ready, :setup, :converge]
48: machine_options :transport_options => {
49: 'ip_address' => mgo_ip_addr[i],
50: 'username' => 'vagrant',
51: 'ssh_options' => {
52: 'password' => 'vagrant'
53: }
54: }
55: recipe 'mongodb::default'
56: converge true
57: end
58: end
Compiled Resource:
------------------
# Declared in /tmp/vagrant-chef/ca34a44bc2ba93b21c02fdec9854c6ac/cookbooks/cms-provisioning/recipes/infrastructure.rb:46:in `block in from_file'
machine("mgo1") do
action [:ready, :setup, :converge]
retries 0
retry_delay 2
default_guard_interpreter :default
chef_server {:chef_server_url=>"chefzero://localhost:8889", :options=>{:client_name=>"cms-control-01", :signing_key_filename=>nil}}
driver "ssh"
machine_options {:transport_options=>{"ip_address"=>"172.20.115.51", "username"=>"vagrant", "ssh_options"=>{"password"=>"vagrant"}}}
declared_type :machine
cookbook_name "@recipe_files"
recipe_name "/tmp/vagrant-chef/ca34a44bc2ba93b21c02fdec9854c6ac/cookbooks/cms-provisioning/recipes/infrastructure.rb"
run_list_modifiers [#<Chef::RunList::RunListItem:0x000000047732c0 @version=nil, @type=:recipe, @name="mongodb::default">]
converge true
end
Running handlers:
[2015-05-05T15:57:51+00:00] ERROR: Running exception handlers
Running handlers complete
[2015-05-05T15:57:51+00:00] ERROR: Exception handlers complete
[2015-05-05T15:57:51+00:00] FATAL: Stacktrace dumped to /home/vagrant/.chef/local-mode-cache/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 1.290048392 seconds
[2015-05-05T15:57:51+00:00] ERROR: machine[mgo1] (@recipe_files::/tmp/vagrant-chef/ca34a44bc2ba93b21c02fdec9854c6ac/cookbooks/cms-provisioning/recipes/infrastructure.rb line 46) had an error: RuntimeError: Machine Options for mgo1 are invalid cannot create machine.
:transport_options => :host or :ip_address required.
:transport_options => :username required.
:transport_options => :ip_address not allowed.
:transport_options => :username not allowed.
:transport_options => :ssh_options not allowed.
[2015-05-05T15:57:51+00: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