Skip to content

Instantly share code, notes, and snippets.

@atomic-penguin
Created April 29, 2013 18:34
Show Gist options
  • Select an option

  • Save atomic-penguin/5483679 to your computer and use it in GitHub Desktop.

Select an option

Save atomic-penguin/5483679 to your computer and use it in GitHub Desktop.
test-kitchen, bails on metadata without Berksfile
wolfe21@wolfe21-ig88:~/git/opscode/ntp$ kitchen test
-----> Starting Kitchen
-----> Cleaning up any prior instances of <default-ubuntu-1204>
-----> Destroying <default-ubuntu-1204>
Finished destroying <default-ubuntu-1204> (0m0.00s).
-----> Testing <default-ubuntu-1204>
-----> Creating <default-ubuntu-1204>
[kitchen::driver::vagrant command] BEGIN (vagrant up --no-provision)
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'canonical-ubuntu-12.04'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] The cookbook path '/home/wolfe21/git/opscode/ntp/.kitchen/kitchen-vagrant/default-ubuntu-1204/cookbooks' doesn't exist. Ignoring...
[Berkshelf] Skipping Berkshelf with --no-provision
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Running any VM customizations...
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
[default] Setting hostname...
[default] Configuring and enabling network interfaces...
[default] Mounting shared folders...
[default] -- /vagrant
[kitchen::driver::vagrant command] END (0m53.79s)
[kitchen::driver::vagrant command] BEGIN (vagrant ssh-config)
[kitchen::driver::vagrant command] END (0m1.32s)
Vagrant instance <default-ubuntu-1204> created.
Finished creating <default-ubuntu-1204> (0m55.87s).
-----> Converging <default-ubuntu-1204>
-----> Installing Chef Omnibus (true)
--2013-04-29 18:19:43-- https://www.opscode.com/chef/install.sh
Resolving www.opscode.com (www.opscode.com)... 184.106.28.82
Connecting to www.opscode.com (www.opscode.com)|184.106.28.82|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6510 (6.4K) [application/x-sh]
Saving to: `STDOUT'
100%[======================================>] 6,510 --.-K/s in 0s
2013-04-29 18:19:43 (821 MB/s) - written to stdout [6510/6510]
Downloading Chef for ubuntu...
Installing Chef
Selecting previously unselected package chef.
(Reading database ... 61042 files and directories currently installed.)
Unpacking chef (from .../tmp.Hs26yxZ9/chef__amd64.deb) ...
Setting up chef (11.4.4-1.ubuntu.11.04) ...
Thank you for installing Chef!
[kitchen::driver::vagrant command] BEGIN (vagrant provision)
[default] The cookbook path '/home/wolfe21/git/opscode/ntp/.kitchen/kitchen-vagrant/default-ubuntu-1204/cookbooks' doesn't exist. Ignoring...
[default] Running provisioner: chef_solo...
Generating chef JSON and uploading...
Running chef-solo...
stdin: is not a tty
[2013-04-29T18:20:01+00:00] INFO: *** Chef 11.4.4 ***
[2013-04-29T18:20:02+00:00] INFO: Setting the run_list to ["recipe[ntp]"] from JSON
[2013-04-29T18:20:02+00:00] INFO: Run List is [recipe[ntp]]
[2013-04-29T18:20:02+00:00] INFO: Run List expands to [ntp]
[2013-04-29T18:20:02+00:00] INFO: Starting Chef Run for default-ubuntu-1204.vagrantup.com
[2013-04-29T18:20:02+00:00] INFO: Running start handlers
[2013-04-29T18:20:02+00:00] INFO: Start handlers complete.
[2013-04-29T18:20:02+00:00] ERROR: Running exception handlers
[2013-04-29T18:20:02+00:00] ERROR: Exception handlers complete
[2013-04-29T18:20:02+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[2013-04-29T18:20:02+00:00] FATAL: Chef::Exceptions::CookbookNotFound: Cookbook ntp not found. If you're loading ntp from another cookbook, make sure you configure the dependency in your metadata
[kitchen::driver::vagrant command] END (0m5.18s)
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: Failed to complete #converge action: [Expected process to exit with [0], but received '1'
---- Begin output of vagrant provision ----
STDOUT: [default] The cookbook path '/home/wolfe21/git/opscode/ntp/.kitchen/kitchen-vagrant/default-ubuntu-1204/cookbooks' doesn't exist. Ignoring...
[default] Running provisioner: chef_solo...
Generating chef JSON and uploading...
Running chef-solo...
stdin: is not a tty
[2013-04-29T18:20:01+00:00] INFO: *** Chef 11.4.4 ***
[2013-04-29T18:20:02+00:00] INFO: Setting the run_list to ["recipe[ntp]"] from JSON
[2013-04-29T18:20:02+00:00] INFO: Run List is [recipe[ntp]]
[2013-04-29T18:20:02+00:00] INFO: Run List expands to [ntp]
[2013-04-29T18:20:02+00:00] INFO: Starting Chef Run for default-ubuntu-1204.vagrantup.com
[2013-04-29T18:20:02+00:00] INFO: Running start handlers
[2013-04-29T18:20:02+00:00] INFO: Start handlers complete.
[2013-04-29T18:20:02+00:00] ERROR: Running exception handlers
[2013-04-29T18:20:02+00:00] ERROR: Exception handlers complete
[2013-04-29T18:20:02+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[2013-04-29T18:20:02+00:00] FATAL: Chef::Exceptions::CookbookNotFound: Cookbook ntp not found. If you're loading ntp from another cookbook, make sure you configure the dependency in your metadata
STDERR: Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
---- End output of vagrant provision ----
Ran vagrant provision returned 1]
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
wolfe21@wolfe21-ig88:~/git/opscode/ntp$ cat ~/.kitchen/logs/kitchen.log
E, [2013-04-25T19:40:13.155524 #9855] ERROR -- Kitchen: ------Exception-------
E, [2013-04-25T19:40:13.155594 #9855] ERROR -- Kitchen: Class: Kitchen::UserError
E, [2013-04-25T19:40:13.155627 #9855] ERROR -- Kitchen: Message: Kitchen YAML file /home/wolfe21/.kitchen.yml does not exist.
E, [2013-04-25T19:40:13.155646 #9855] ERROR -- Kitchen: ------Backtrace-------
E, [2013-04-25T19:40:13.155665 #9855] ERROR -- Kitchen: /var/lib/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.5/lib/kitchen/loader/yaml.rb:58:in `read'
E, [2013-04-25T19:40:13.155702 #9855] ERROR -- Kitchen: /var/lib/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.5/lib/kitchen/config.rb:190:in `data'
E, [2013-04-25T19:40:13.155721 #9855] ERROR -- Kitchen: /var/lib/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.5/lib/kitchen/config.rb:70:in `suites'
E, [2013-04-25T19:40:13.155739 #9855] ERROR -- Kitchen: /var/lib/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.5/lib/kitchen/config.rb:117:in `build_instances'
E, [2013-04-25T19:40:13.155757 #9855] ERROR -- Kitchen: /var/lib/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.5/lib/kitchen/config.rb:76:in `instances'
E, [2013-04-25T19:40:13.155775 #9855] ERROR -- Kitchen: /var/lib/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.5/lib/kitchen/cli.rb:288:in `get_filtered_instances'
E, [2013-04-25T19:40:13.155793 #9855] ERROR -- Kitchen: /var/lib/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.5/lib/kitchen/cli.rb:267:in `parse_subcommand'
E, [2013-04-25T19:40:13.155811 #9855] ERROR -- Kitchen: /var/lib/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.5/lib/kitchen/cli.rb:54:in `list'
E, [2013-04-25T19:40:13.155830 #9855] ERROR -- Kitchen: /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
E, [2013-04-25T19:40:13.155848 #9855] ERROR -- Kitchen: /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
E, [2013-04-25T19:40:13.155866 #9855] ERROR -- Kitchen: /var/lib/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.5/lib/kitchen/cli.rb:232:in `invoke_task'
E, [2013-04-25T19:40:13.155884 #9855] ERROR -- Kitchen: /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
E, [2013-04-25T19:40:13.155901 #9855] ERROR -- Kitchen: /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
E, [2013-04-25T19:40:13.155919 #9855] ERROR -- Kitchen: /var/lib/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.5/bin/kitchen:13:in `block in <top (required)>'
E, [2013-04-25T19:40:13.155937 #9855] ERROR -- Kitchen: /var/lib/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.5/lib/kitchen/errors.rb:78:in `with_friendly_errors'
E, [2013-04-25T19:40:13.155955 #9855] ERROR -- Kitchen: /var/lib/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.5/bin/kitchen:13:in `<top (required)>'
E, [2013-04-25T19:40:13.155986 #9855] ERROR -- Kitchen: /usr/local/bin/kitchen:19:in `load'
E, [2013-04-25T19:40:13.156004 #9855] ERROR -- Kitchen: /usr/local/bin/kitchen:19:in `<main>'
E, [2013-04-25T19:40:13.156022 #9855] ERROR -- Kitchen: ----------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment