You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cloned this repo onto my local mac and tried to run "rake kitchen:standalone-centos65" and noticed that it failed trying to SCP a key file from a directory that doesn't exist (/root). Is this not meant to be run on OSX?
$ rake kitchen:standalone-centos65
-----> Cleaning up any prior instances of <standalone-centos65>
-----> Destroying <standalone-centos65>...
Finished destroying <standalone-centos65> (0m0.00s).
-----> Testing <standalone-centos65>
-----> Creating <standalone-centos65>...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'box-cutter/centos65' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'box-cutter/centos65'
default: URL: https://atlas.hashicorp.com/box-cutter/centos65
==> default: Adding box 'box-cutter/centos65' (v1.0.15) for provider: virtualbox
default: Downloading: https://atlas.hashicorp.com/box-cutter/boxes/centos65/versions/1.0.15/providers/virtualbox.box
==> default: Box download is resuming from prior download progress
==> default: Successfully added box 'box-cutter/centos65' (v1.0.15) for 'virtualbox'!
==> default: Importing base box 'box-cutter/centos65'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'box-cutter/centos65' is up to date...
==> default: Setting the name of the VM: kitchen-chef-server12-standalone-centos65_default_1431973768272_31714
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if its present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Machine not provisioning because `--no-provision` is specified.
[SSH] Established
Vagrant instance <standalone-centos65> created.
Finished creating <standalone-centos65> (1m49.61s).
-----> Converging <standalone-centos65>...
Preparing files for transfer
Preparing dna.json
Resolving cookbook dependencies with Berkshelf 3.2.4...
Removing non-cookbook files before transfer
Preparing solo.rb
-----> Installing Chef Omnibus (install only if missing)
Downloading https://www.chef.io/chef/install.sh to file /tmp/install.sh
Trying wget...
Trying curl...
Download complete.
Downloading Chef for el...
downloading https://www.chef.io/chef/metadata?v=&prerelease=false&nightlies=false&p=el&pv=6&m=x86_64
to file /tmp/install.sh.2660/metadata.txt
trying wget...
trying curl...
url https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-12.3.0-1.el6.x86_64.rpm
md5 c19fefcb3d033107e9fbdb3839312584
sha256 4b7c846a9ad93564cc203a5ac99890431f7d6ad159c424aa89827fd772c9881d
downloaded metadata file looks valid...
downloading https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-12.3.0-1.el6.x86_64.rpm
to file /tmp/install.sh.2660/chef-12.3.0-1.el6.x86_64.rpm
trying wget...
Comparing checksum with sha256sum...
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
You are installing an omnibus package without a version pin. If you are installing
on production servers via an automated process this is DANGEROUS and you will
be upgraded without warning on new releases, even to new major releases.
Letting the version float is only appropriate in desktop, test, development or
CI/CD environments.
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
Installing Chef
installing with rpm...
warning: /tmp/install.sh.2660/chef-12.3.0-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 83ef826a: NOKEY
Preparing... ########################################### [100%]
1:chef ########################################### [100%]
Thank you for installing Chef!
Transferring files to <standalone-centos65>
Starting Chef Client, version 12.3.0
Compiling Cookbooks...
Converging 21 resources
Recipe: chef-server12::_configure_server_dns
- update content in file /etc/hosts from 9cb7f3 to b9e2d9
--- /etc/hosts 2015-05-18 18:29:45.048320787 +0000
+++ /tmp/chef-rendered-template20150518-2760-kvf2uq 2015-05-18 18:30:04.999291284 +0000
@@ -1,3 +1,8 @@
127.0.0.1 standalone.vagrantup.com standalone localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
+
+192.168.33.34 standalone.vagrantup.com
+192.168.33.35 node1.vagrantup.com
+192.168.33.36 node2.vagrantup.com
Recipe: chef-server12::_install_server
- update content in file /etc/opscode/chef-server.rb from none to 33b0c4
--- /etc/opscode/chef-server.rb 2015-05-18 18:30:05.033308284 +0000
+++ /tmp/chef-rendered-template20150518-2760-1ua5xdr 2015-05-18 18:30:05.033308284 +0000
@@ -1 +1,6 @@
+# This file was created by Chef - manual changes may be overwritten
+
+dark_launch['actions'] = true
+rabbitmq['vip'] = "192.168.33.34"
+rabbitmq['node_ip_address'] = '0.0.0.0'
- change mode from '' to '0644'
- change owner from '' to 'root'
- update content in file /tmp/kitchen/cache/chef-server-core-12.0.0-1.el6.x86_64.rpm from none to 89e212
(file sizes exceed 10000000 bytes, diff output suppressed)
* yum_package[chef-server-core-12.0.0-1.el6.x86_64.rpm] action install
- install version 12.0.0-1.el6 of package chef-server-core-12.0.0-1.el6.x86_64.rpm
- execute chef-server-ctl reconfigure
* execute[reconfigure-chef-server] action nothing (skipped due to action :nothing)
- execute chef-server-ctl install opscode-manage
* execute[opscode-manage-ctl reconfigure] action run
- execute opscode-manage-ctl reconfigure
* execute[opscode-manage-ctl reconfigure] action nothing (skipped due to action :nothing)
- execute chef-server-ctl install opscode-reporting
* execute[opscode-reporting-ctl reconfigure] action run
- execute opscode-reporting-ctl reconfigure
* execute[opscode-reporting-ctl reconfigure] action nothing (skipped due to action :nothing)
Recipe: chef-server12::_create_admin
- execute chef-server-ctl user-create chefadmin Chef Admin [email protected] chefadmin > /tmp/chefadmin.pem
Recipe: chef-server12::_create_org
- execute chef-server-ctl org-create default Default Organization -a chefadmin > /tmp/default-validator.pem
Recipe: chef-server12::_create_ssh_key_for_server
* directory[/root/.ssh] action create
- change mode from '' to '0700'
- change owner from '' to 'root'
* cookbook_file[/root/.ssh/id_rsa] action create
- update content in file /root/.ssh/id_rsa from none to f1a8dc
--- /root/.ssh/id_rsa 2015-05-18 18:37:24.593978740 +0000
+++ /root/.ssh/.id_rsa20150518-2760-2dn3el 2015-05-18 18:37:24.590977240 +0000
@@ -1 +1,28 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIIEowIBAAKCAQEA45w6A3sBerbesyq7isYIu4zebIjpOlm6UP17voI6IloEbls9
+0JGMecGrO9jN1FWBLp+TvkdK9X7EoXf4M7J2vyJ53FJXgi4rTYPdjnQBAPXF9U+1
+89V/Aa0SZ/5etRJUn7b+JlFcffmORqbEObzl1HR1VjoBUIzcCqaP6NI31xKLWf3e
+i/P+pW+C4QlCdR9L/fDgx2kpfGB7zgaTVvXiqJm2ta2AK9fnqmNXfyW53bh+O+kz
+m4rJA5piH1cWJxkjVUhIoL3uB+86khB0KDrYuITMyRYMeTDgaDJ3Y3b3UxTVzBxm
+JMhxOhOl5ttcgSXjV8n+21kKYcPWsIuKmQhKHwIDAQABAoIBACWXf91jS3NBELb2
+r9LTsk2HjpTOZ/bDKwqFUxK7324c/+5aE3OHFnRlkCpqPFR9asCQio46qB6zuTYR
+4mRnbUVUJFxHHTza8zvyM317m07VSMSjTaHf+QIF26xhTrMJPADE8GTTuzrzJJR2
+pqICmNLmCRscqWrsWMtJhyskzSQwFBfamgPFcpiswoljXRW5D0W9e/1bJpvZKswO
+T2e0niPyaYKaQ0apxQhVyn2OvMmDel3l24+SWq7sqYtF0qYIhJCnzQEOrHHexmlf
+8izi/guoELUzwU1nxMu3Puf5hCFRjOc0BITDvHU/6o9a4ZeiAZVEK9KyfuqX7HPd
+R4njIsECgYEA+wZNzq+lEjqP5/QiHMcOvb6tTlRvciG2z4AMEsuKUUEuFAUxx7+v
+bvwPU/dUeBjZx0rX9My9hN9wQRWkgnfdowTRXfm1lLyXvhFLIioHME1ImhvdQ6kj
+KPjXWNVepEF7NQTi9v/Cts+e5Lu6PdV4CPErSvBm3upSut3tfXu0z2sCgYEA6B8e
+U6LNKiThnEstwiFWQXTjCNOugaR1rC5aukzi0hmkdVmMCuVSY3CURzAvPQhpUCsm
+NosdP5Hr3j+jHGQ7D7UFQduLuBNCejqc70z602a9IqiTQwOurnWxhqN3Nd0OCKLf
+2aaf550PiDvXHdq1A6po8Q8f65Us06T6HZhwIR0CgYAsHfmCv7/lKkGsZG2yXRGs
+K1zODWzgxCga48g7bWZLzYbJofgTwQ6WFNqkyS0hRkzQB8lYjrsoJRTXe3REMcjU
+I76gI4jUMSkCEIwB3x0QUiTWYNtMTueNBd7jD+zoNVHwCYHSIzUXZ/nm/U9IGsJT
+3/7Z1tJdjxUnHmXkzd8DLQKBgQDSJspIIk7pZvazkATfi1sSbAbYiP2m9gRrXJRb
+sxxv5zNT4zy86J3M1bIJOYCrGyBtqoMwQoa6dRw83RSJsd0e/V7DH0fB4f3/t205
+4lH8bzmxVTnuJDlUTc3p/bkCFR6Nhxhvb0G6aiITz0mVB9t2dCQKiwz1NtucyfKA
+NPDfqQKBgENTSepncFnaovzxmfVe1juOkh2oIDerWOwYHvFk4J8n/BAloLH0tt8W
+wG4VVpVxQZsGKFIUkZ13/wCwX/98TBiXQgbnbkxrs/eSmDu9jnwFDqhCOjF4WJUg
+4gTLWMFJPMC95exmcWVroMRJiimRJjobuiE1wluo6dhHszS42uVS
+-----END RSA PRIVATE KEY-----
- change mode from '' to '0600'
- change owner from '' to 'root'
- change group from '' to 'root'
Recipe: chef-server12::_configure_analytics
================================================================================
Error executing action `run` on resource 'execute[scp -i /root/.ssh/id_rsa -o StrictHostKeyChecking=no -r /etc/opscode-analytics [email protected]:/etc]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of scp -i /root/.ssh/id_rsa -o StrictHostKeyChecking=no -r /etc/opscode-analytics [email protected]:/etc ----
STDOUT:
STDERR: ssh: connect to host 192.168.33.37 port 22: No route to host
lost connection
---- End output of scp -i /root/.ssh/id_rsa -o StrictHostKeyChecking=no -r /etc/opscode-analytics [email protected]:/etc ----
Ran scp -i /root/.ssh/id_rsa -o StrictHostKeyChecking=no -r /etc/opscode-analytics [email protected]:/etc returned 1
Resource Declaration:
---------------------
# In /tmp/kitchen/cookbooks/chef-server12/recipes/_configure_analytics.rb
2: execute "scp -i /root/.ssh/id_rsa -o StrictHostKeyChecking=no \
3: -r /etc/opscode-analytics \
Compiled Resource:
------------------
# Declared in /tmp/kitchen/cookbooks/chef-server12/recipes/_configure_analytics.rb:2:in `from_file'
execute("scp -i /root/.ssh/id_rsa -o StrictHostKeyChecking=no -r /etc/opscode-analytics [email protected]:/etc") do
action "run"
retries 0
retry_delay 2
default_guard_interpreter :execute
command "scp -i /root/.ssh/id_rsa -o StrictHostKeyChecking=no -r /etc/opscode-analytics [email protected]:/etc"
backup 5
returns 0
declared_type :execute
cookbook_name :"chef-server12"
recipe_name "_configure_analytics"
end
Recipe: chef-server12::_install_server
- execute chef-server-ctl reconfigure
Running handlers:
[2015-05-18T18:37:48+00:00] ERROR: Running exception handlers
Running handlers complete
[2015-05-18T18:37:48+00:00] ERROR: Exception handlers complete
[2015-05-18T18:37:48+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
Chef Client failed. 15 resources updated in 464.244765535 seconds
[2015-05-18T18:37:48+00:00] ERROR: execute[scp -i /root/.ssh/id_rsa -o StrictHostKeyChecking=no -r /etc/opscode-analytics [email protected]:/etc] (chef-server12::_configure_analytics line 2) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of scp -i /root/.ssh/id_rsa -o StrictHostKeyChecking=no -r /etc/opscode-analytics [email protected]:/etc ----
STDOUT:
STDERR: ssh: connect to host 192.168.33.37 port 22: No route to host
lost connection
---- End output of scp -i /root/.ssh/id_rsa -o StrictHostKeyChecking=no -r /etc/opscode-analytics [email protected]:/etc ----
Ran scp -i /root/.ssh/id_rsa -o StrictHostKeyChecking=no -r /etc/opscode-analytics [email protected]:/etc returned 1
[2015-05-18T18:37:48+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
-----> Destroying <standalone-centos65>...
==> default: Forcing shutdown of VM...
==> default: Destroying VM and associated drives...
Vagrant instance <standalone-centos65> destroyed.
Finished destroying <standalone-centos65> (0m3.60s).
rake aborted!
Kitchen::InstanceFailure: Converge failed on instance <standalone-centos65>. Please see .kitchen/logs/standalone-centos65.log for more details
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/provisioner/base.rb:74:in `rescue in call'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/provisioner/base.rb:77:in `call'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:366:in `block in converge_action'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:488:in `call'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:488:in `synchronize_or_call'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:453:in `block in action'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:452:in `action'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:362:in `converge_action'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:341:in `block in transition_to'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:340:in `each'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:340:in `transition_to'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:160:in `verify'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:189:in `block in test'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:185:in `test'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/rake_tasks.rb:54:in `block (3 levels) in define'
Kitchen::ActionFailed: SSH exited (1) for command: [sh -c '
sudo -E /opt/chef/bin/chef-solo --config /tmp/kitchen/solo.rb --log_level auto --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json
']/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/provisioner/base.rb:74:in `rescue in call'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/provisioner/base.rb:77:in `call'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:366:in `block in converge_action'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:488:in `call'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:488:in `synchronize_or_call'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:453:in `block in action'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:452:in `action'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:362:in `converge_action'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:341:in `block in transition_to'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:340:in `each'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:340:in `transition_to'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:160:in `verify'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:189:in `block in test'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:185:in `test'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/rake_tasks.rb:54:in `block (3 levels) in define'
Kitchen::Transport::SshFailed: SSH exited (1) for command: [sh -c '
sudo -E /opt/chef/bin/chef-solo --config /tmp/kitchen/solo.rb --log_level auto --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json
']/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/transport/ssh.rb:103:in `execute'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/provisioner/base.rb:71:in `block in call'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/transport/ssh.rb:341:in `reuse_connection'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/transport/ssh.rb:72:in `connection'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/provisioner/base.rb:64:in `call'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:366:in `block in converge_action'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:488:in `call'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:488:in `synchronize_or_call'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:453:in `block in action'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:452:in `action'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:362:in `converge_action'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:341:in `block in transition_to'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:340:in `each'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:340:in `transition_to'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:160:in `verify'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:189:in `block in test'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/instance.rb:185:in `test'
/Users/jamesgoin/.chefdk/gem/ruby/2.1.0/gems/test-kitchen-1.4.0/lib/kitchen/rake_tasks.rb:54:in `block (3 levels) in define'
Tasks: TOP => kitchen:standalone-centos65
(See full trace by running task with --trace)
The text was updated successfully, but these errors were encountered:
I cloned this repo onto my local mac and tried to run "rake kitchen:standalone-centos65" and noticed that it failed trying to SCP a key file from a directory that doesn't exist (/root). Is this not meant to be run on OSX?
The text was updated successfully, but these errors were encountered: