Skip to content

Instantly share code, notes, and snippets.

@Maniacal
Created January 27, 2015 21:47
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 Maniacal/1bc92cfc566b1a4e041c to your computer and use it in GitHub Desktop.
Save Maniacal/1bc92cfc566b1a4e041c to your computer and use it in GitHub Desktop.
Fail to converge with chef-client 12.0.1 and chef 12.0.3 using either chefdk 0.3.6 or 0.3.5
---
driver:
name: vagrant
synced_folders:
- ["/tmp/synced/%{instance_name}", "/tmp/synced", "create: true"]
provisioner:
name: chef_zero
require_chef_omnibus: 12.0.1
platforms:
- name: ubuntu-12.04
- name: centos-6.5
- name: centos-6.6
suites:
- name: default
run_list:
- recipe[jasper_reports::default]
attributes:
I, [2015-01-27T14:42:01.813255 #37582] INFO -- default-ubuntu-1204: Downloading Chef 12.0.1 for ubuntu...
I, [2015-01-27T14:42:01.813463 #37582] INFO -- default-ubuntu-1204: downloading https://www.chef.io/chef/metadata?v=12.0.1&prerelease=false&nightlies=false&p=ubuntu&pv=12.04&m=x86_64
I, [2015-01-27T14:42:01.813594 #37582] INFO -- default-ubuntu-1204: to file /tmp/install.sh.1260/metadata.txt
I, [2015-01-27T14:42:01.813952 #37582] INFO -- default-ubuntu-1204: trying wget...
I, [2015-01-27T14:42:02.120534 #37582] INFO -- default-ubuntu-1204: url https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chef_12.0.1-1_amd64.deb
I, [2015-01-27T14:42:02.121005 #37582] INFO -- default-ubuntu-1204: md5 77b9bf022a5dbe5f951e4517f0a3636e
I, [2015-01-27T14:42:02.121371 #37582] INFO -- default-ubuntu-1204: sha256 167f7e771168be20afe3a4dbd1627cf48354f5fccffb53d07b9e8bd691954bd8
I, [2015-01-27T14:42:02.124175 #37582] INFO -- default-ubuntu-1204: downloaded metadata file looks valid...
I, [2015-01-27T14:42:02.129918 #37582] INFO -- default-ubuntu-1204: downloading https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chef_12.0.1-1_amd64.deb
I, [2015-01-27T14:42:02.130069 #37582] INFO -- default-ubuntu-1204: to file /tmp/install.sh.1260/chef_12.0.1-1_amd64.deb
I, [2015-01-27T14:42:02.130361 #37582] INFO -- default-ubuntu-1204: trying wget...
I, [2015-01-27T14:42:12.139774 #37582] INFO -- default-ubuntu-1204: Comparing checksum with sha256sum...
I, [2015-01-27T14:42:12.328032 #37582] INFO -- default-ubuntu-1204: Installing Chef 12.0.1
I, [2015-01-27T14:42:12.328221 #37582] INFO -- default-ubuntu-1204: installing with dpkg...
I, [2015-01-27T14:42:12.371165 #37582] INFO -- default-ubuntu-1204: Selecting previously unselected package chef.
(Reading database ... 56035 files and directories currently installed.)eading database ...
I, [2015-01-27T14:42:12.482010 #37582] INFO -- default-ubuntu-1204: Unpacking chef (from .../chef_12.0.1-1_amd64.deb) ...
I, [2015-01-27T14:42:17.846764 #37582] INFO -- default-ubuntu-1204: Setting up chef (12.0.1-1) ...
I, [2015-01-27T14:42:17.909338 #37582] INFO -- default-ubuntu-1204: Thank you for installing Chef!
I, [2015-01-27T14:42:17.944296 #37582] INFO -- default-ubuntu-1204: Transferring files to <default-ubuntu-1204>
I, [2015-01-27T14:42:49.237894 #37582] INFO -- default-ubuntu-1204: Starting Chef Client, version 12.0.1
I, [2015-01-27T14:42:50.776018 #37582] INFO -- default-ubuntu-1204: Creating a new client identity for default-ubuntu-1204 using the validator key.
I, [2015-01-27T14:42:50.937591 #37582] INFO -- default-ubuntu-1204: [2015-01-27T21:42:50+00:00] WARN: Child with name 'dna.json' found in multiple directories: /tmp/kitchen/dna.json and /tmp/kitchen/dna.json
I, [2015-01-27T14:42:50.943962 #37582] INFO -- default-ubuntu-1204: [2015-01-27T21:42:51+00:00] WARN: Child with name 'dna.json' found in multiple directories: /tmp/kitchen/dna.json and /tmp/kitchen/dna.json
I, [2015-01-27T14:42:50.957768 #37582] INFO -- default-ubuntu-1204: resolving cookbooks for run list: ["jasper_reports::default"]
I, [2015-01-27T14:42:50.962289 #37582] INFO -- default-ubuntu-1204: [2015-01-27T21:42:51+00:00] WARN: Child with name 'dna.json' found in multiple directories: /tmp/kitchen/dna.json and /tmp/kitchen/dna.json
I, [2015-01-27T14:43:02.390700 #37582] INFO -- default-ubuntu-1204: Synchronizing Cookbooks:
E, [2015-01-27T14:43:08.247926 #37582] ERROR -- default-ubuntu-1204: Converge failed on instance <default-ubuntu-1204>.
E, [2015-01-27T14:43:08.248034 #37582] ERROR -- default-ubuntu-1204: ------Exception-------
E, [2015-01-27T14:43:08.248050 #37582] ERROR -- default-ubuntu-1204: Class: Kitchen::ActionFailed
E, [2015-01-27T14:43:08.248060 #37582] ERROR -- default-ubuntu-1204: Message: SSH exited (137) for command: [sh -c '
sudo -E /opt/chef/bin/chef-client --local-mode --config /tmp/kitchen/client.rb --log_level auto --force-formatter --no-color --chef-zero-port 8889 --json-attributes /tmp/kitchen/dna.json
']
E, [2015-01-27T14:43:08.248071 #37582] ERROR -- default-ubuntu-1204: ---Nested Exception---
E, [2015-01-27T14:43:08.248080 #37582] ERROR -- default-ubuntu-1204: Class: Kitchen::SSHFailed
E, [2015-01-27T14:43:08.248089 #37582] ERROR -- default-ubuntu-1204: Message: SSH exited (137) for command: [sh -c '
sudo -E /opt/chef/bin/chef-client --local-mode --config /tmp/kitchen/client.rb --log_level auto --force-formatter --no-color --chef-zero-port 8889 --json-attributes /tmp/kitchen/dna.json
']
E, [2015-01-27T14:43:08.248107 #37582] ERROR -- default-ubuntu-1204: ------Backtrace-------
E, [2015-01-27T14:43:08.248118 #37582] ERROR -- default-ubuntu-1204: /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/driver/ssh_base.rb:152:in `rescue in run_remote'
E, [2015-01-27T14:43:08.248128 #37582] ERROR -- default-ubuntu-1204: /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/driver/ssh_base.rb:148:in `run_remote'
E, [2015-01-27T14:43:08.248137 #37582] ERROR -- default-ubuntu-1204: /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/driver/ssh_base.rb:50:in `block in converge'
E, [2015-01-27T14:43:08.248146 #37582] ERROR -- default-ubuntu-1204: /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/ssh.rb:70:in `initialize'
E, [2015-01-27T14:43:08.248156 #37582] ERROR -- default-ubuntu-1204: /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/driver/ssh_base.rb:45:in `new'
E, [2015-01-27T14:43:08.248165 #37582] ERROR -- default-ubuntu-1204: /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/driver/ssh_base.rb:45:in `converge'
E, [2015-01-27T14:43:08.248174 #37582] ERROR -- default-ubuntu-1204: /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/kitchen-vagrant-0.15.0/lib/kitchen/driver/vagrant.rb:75:in `converge'
E, [2015-01-27T14:43:08.248182 #37582] ERROR -- default-ubuntu-1204: /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:352:in `public_send'
E, [2015-01-27T14:43:08.248192 #37582] ERROR -- default-ubuntu-1204: /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:352:in `block in perform_action'
E, [2015-01-27T14:43:08.248201 #37582] ERROR -- default-ubuntu-1204: /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:416:in `call'
E, [2015-01-27T14:43:08.248210 #37582] ERROR -- default-ubuntu-1204: /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:416:in `synchronize_or_call'
E, [2015-01-27T14:43:08.248219 #37582] ERROR -- default-ubuntu-1204: /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:381:in `block in action'
E, [2015-01-27T14:43:08.248228 #37582] ERROR -- default-ubuntu-1204: /opt/chefdk/embedded/lib/ruby/2.1.0/benchmark.rb:279:in `measure'
E, [2015-01-27T14:43:08.248237 #37582] ERROR -- default-ubuntu-1204: /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:380:in `action'
E, [2015-01-27T14:43:08.248246 #37582] ERROR -- default-ubuntu-1204: /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:352:in `perform_action'
E, [2015-01-27T14:43:08.248255 #37582] ERROR -- default-ubuntu-1204: /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:312:in `converge_action'
E, [2015-01-27T14:43:08.248264 #37582] ERROR -- default-ubuntu-1204: /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:292:in `block in transition_to'
E, [2015-01-27T14:43:08.248272 #37582] ERROR -- default-ubuntu-1204: /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:291:in `each'
E, [2015-01-27T14:43:08.248281 #37582] ERROR -- default-ubuntu-1204: /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:291:in `transition_to'
E, [2015-01-27T14:43:08.248301 #37582] ERROR -- default-ubuntu-1204: /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:130:in `converge'
E, [2015-01-27T14:43:08.248311 #37582] ERROR -- default-ubuntu-1204: /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/command.rb:176:in `public_send'
E, [2015-01-27T14:43:08.248320 #37582] ERROR -- default-ubuntu-1204: /opt/chefdk/embedded/apps/test-kitchen/lib/kitchen/command.rb:176:in `block (2 levels) in run_action'
E, [2015-01-27T14:43:08.248338 #37582] ERROR -- default-ubuntu-1204: ----------------------
-----> Starting Kitchen (v1.3.1)
-----> Creating <default-ubuntu-1204>...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'opscode-ubuntu-12.04'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: default-ubuntu-1204_default_1422394881640_11989
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 => 2222 (adapter 1)
==> 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: Mounting shared folders...
default: /tmp/synced => /private/tmp/synced/default-ubuntu-1204
==> default: Machine not provisioning because `--no-provision` is specified.
Vagrant instance <default-ubuntu-1204> created.
Finished creating <default-ubuntu-1204> (0m32.14s).
-----> Converging <default-ubuntu-1204>...
Preparing files for transfer
Preparing dna.json
Resolving cookbook dependencies with Berkshelf 3.2.3...
Removing non-cookbook files before transfer
Preparing validation.pem
Preparing client.rb
-----> Installing Chef Omnibus (12.0.1)
downloading https://www.chef.io/chef/install.sh
to file /tmp/install.sh
trying wget...
Downloading Chef 12.0.1 for ubuntu...
downloading https://www.chef.io/chef/metadata?v=12.0.1&prerelease=false&nightlies=false&p=ubuntu&pv=12.04&m=x86_64
to file /tmp/install.sh.1260/metadata.txt
trying wget...
url https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chef_12.0.1-1_amd64.deb
md5 77b9bf022a5dbe5f951e4517f0a3636e
sha256 167f7e771168be20afe3a4dbd1627cf48354f5fccffb53d07b9e8bd691954bd8
downloaded metadata file looks valid...
downloading https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chef_12.0.1-1_amd64.deb
to file /tmp/install.sh.1260/chef_12.0.1-1_amd64.deb
trying wget...
Comparing checksum with sha256sum...
Installing Chef 12.0.1
installing with dpkg...
Selecting previously unselected package chef.
(Reading database ... 56035 files and directories currently installed.)
Unpacking chef (from .../chef_12.0.1-1_amd64.deb) ...
Setting up chef (12.0.1-1) ...
Thank you for installing Chef!
Transferring files to <default-ubuntu-1204>
Starting Chef Client, version 12.0.1
Creating a new client identity for default-ubuntu-1204 using the validator key.
[2015-01-27T21:42:50+00:00] WARN: Child with name 'dna.json' found in multiple directories: /tmp/kitchen/dna.json and /tmp/kitchen/dna.json
[2015-01-27T21:42:51+00:00] WARN: Child with name 'dna.json' found in multiple directories: /tmp/kitchen/dna.json and /tmp/kitchen/dna.json
resolving cookbooks for run list: ["jasper_reports::default"]
[2015-01-27T21:42:51+00:00] WARN: Child with name 'dna.json' found in multiple directories: /tmp/kitchen/dna.json and /tmp/kitchen/dna.json
Synchronizing Cookbooks:
>>>>>> Converge failed on instance <default-ubuntu-1204>.
>>>>>> Please see .kitchen/logs/default-ubuntu-1204.log for more details
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: SSH exited (137) for command: [sh -c '
sudo -E /opt/chef/bin/chef-client --local-mode --config /tmp/kitchen/client.rb --log_level auto --force-formatter --no-color --chef-zero-port 8889 --json-attributes /tmp/kitchen/dna.json
']
>>>>>> ----------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment