Skip to content

Instantly share code, notes, and snippets.

@umireon
Created January 1, 2015 06:45
Show Gist options
  • Save umireon/e37ba64f2d475f9cb079 to your computer and use it in GitHub Desktop.
Save umireon/e37ba64f2d475f9cb079 to your computer and use it in GitHub Desktop.
---
driver:
name: vagrant
provisioner:
name: chef_zero
platforms:
- name: centos-6.6
suites:
- name: default
run_list:
- recipe[berkshelf-api-server]
attributes:
source 'https://supermarket.chef.io'
cookbook 'berkshelf-api-server'
DEPENDENCIES
berkshelf-api-server
GRAPH
apt (2.6.1)
berkshelf-api-server (2.1.0)
build-essential (>= 2.0.2)
github (~> 0.3)
libarchive (~> 0.4)
nginx (>= 1.7.0)
runit (>= 0.0.0)
bluepill (2.3.1)
rsyslog (>= 0.0.0)
build-essential (2.1.3)
github (0.3.0)
libarchive (>= 0.0.0)
libarchive (0.4.1)
apt (~> 2.5)
build-essential (~> 2.0)
nginx (2.7.4)
apt (~> 2.2)
bluepill (~> 2.3)
build-essential (~> 2.0)
ohai (~> 2.0)
runit (~> 1.2)
yum-epel (~> 0.3)
ohai (2.0.1)
rsyslog (1.13.0)
runit (1.5.12)
build-essential (>= 0.0.0)
yum (~> 3.0)
yum-epel (>= 0.0.0)
yum (3.5.2)
yum-epel (0.5.3)
yum (~> 3.0)
$ ls /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/
activesupport-3.2.21 i18n-0.6.11 net-ssh-multi-1.2.0 rspec-expectations-3.1.2
appbundler-0.4.0 ipaddress-0.8.0 ohai-8.0.1 rspec-mocks-2.14.6
builder-3.2.2 libyajl2-1.2.0 plist-3.1.0 rspec-mocks-3.1.3
bundler-1.7.2 method_source-0.8.2 pry-0.10.1 rspec-support-3.1.2
chef-12.0.3 mime-types-1.25.1 rack-1.5.2 rspec_junit_formatter-0.1.6
chef-zero-3.2.1 mixlib-authentication-1.3.0 rake-10.1.0 ruby-shadow-2.4.1
coderay-1.1.0 mixlib-cli-1.5.0 rake-10.1.1 simplecov-0.9.1
diff-lcs-1.2.5 mixlib-config-2.1.0 rake-10.4.2 simplecov-html-0.8.0
docile-1.1.5 mixlib-log-1.6.0 rdoc-4.1.0 slop-3.6.0
erubis-2.7.0 mixlib-shellout-2.0.0 rspec-2.14.1 systemu-2.6.4
ffi-1.9.6 multi_json-1.10.1 rspec-3.1.0 test-unit-2.1.4.0
ffi-yajl-1.3.1 net-dhcp-1.3.2 rspec-core-2.14.8 uuidtools-2.1.5
hashie-2.1.2 net-ssh-2.9.1 rspec-core-3.1.7 wmi-lite-1.0.0
highline-1.6.21 net-ssh-gateway-1.2.0 rspec-expectations-2.14.5
$ kitchen converge
-----> Starting Kitchen (v1.2.1)
-----> Converging <default-centos-66>...
Preparing files for transfer
Resolving cookbook dependencies with Berkshelf 3.2.0...
Removing non-cookbook files before transfer
Transfering files to <default-centos-66>
[2015-01-01T06:43:27+00:00] INFO: Started chef-zero at http://localhost:8889 with repository at /tmp/kitchen, /tmp/kitchen
One version per cookbook
[2015-01-01T06:43:27+00:00] INFO: Forking chef instance to converge...
Starting Chef Client, version 12.0.3
[2015-01-01T06:43:27+00:00] INFO: *** Chef 12.0.3 ***
[2015-01-01T06:43:27+00:00] INFO: Chef-client pid: 2666
[2015-01-01T06:43:31+00:00] WARN: Child with name 'dna.json' found in multiple directories: /tmp/kitchen/dna.json and /tmp/kitchen/dna.json
[2015-01-01T06:43:31+00:00] INFO: Setting the run_list to ["recipe[berkshelf-api-server]"] from CLI options
[2015-01-01T06:43:31+00:00] INFO: Run List is [recipe[berkshelf-api-server]]
[2015-01-01T06:43:31+00:00] INFO: Run List expands to [berkshelf-api-server]
[2015-01-01T06:43:31+00:00] INFO: Starting Chef Run for default-centos-66
[2015-01-01T06:43:31+00:00] INFO: Running start handlers
[2015-01-01T06:43:31+00:00] INFO: Start handlers complete.
[2015-01-01T06:43:31+00:00] INFO: HTTP Request Returned 404 Not Found : Object not found: /reports/nodes/default-centos-66/runs
resolving cookbooks for run list: ["berkshelf-api-server"]
Running handlers:
[2015-01-01T06:43:31+00:00] ERROR: Running exception handlers
Running handlers complete
[2015-01-01T06:43:31+00:00] ERROR: Exception handlers complete
[2015-01-01T06:43:31+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 3.866940327 seconds
[2015-01-01T06:43:31+00:00] ERROR: undefined method `values' for "":String
[2015-01-01T06:43:33+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
>>>>>> Converge failed on instance <default-centos-66>.
>>>>>> Please see .kitchen/logs/default-centos-66.log for more details
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: SSH exited (1) for command: [sudo -E chef-client -z --config /tmp/kitchen/client.rb --log_level info --json-attributes /tmp/kitchen/dna.json]
>>>>>> ----------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment