Last active
December 15, 2015 13:39
-
-
Save sbates/5269129 to your computer and use it in GitHub Desktop.
bleeding edges can work - there's an error at the end but it's from the chef converge as I haven't actually configured anything yet.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| saschas-MacBook-Air:chef-ci sascha$ cat Gemfile | |
| source 'https://rubygems.org' | |
| gem 'berkshelf', '1.4.0.rc1' | |
| gem 'test-kitchen', '1.0.0.alpha.2', :group => :integration | |
| gem 'kitchen-vagrant', '0.7.4', :group => :integration | |
| gem 'vagrant', '1.1.5.dev' | |
| saschas-MacBook-Air:chef-ci sascha$ time kitchen test | |
| -----> Starting Kitchen | |
| -----> Cleaning up any prior instances of <default-centos-63> | |
| -----> Destroying <default-centos-63> | |
| [vagrant command] BEGIN (vagrant destroy -f) | |
| You appear to be running Vagrant outside of the official installers. | |
| Note that the installers are what ensure that Vagrant has all required | |
| dependencies, and Vagrant assumes that these dependencies exist. By | |
| running outside of the installer environment, Vagrant may not function | |
| properly. To remove this warning, install Vagrant using one of the | |
| official packages from vagrantup.com. | |
| [default] Forcing shutdown of VM... | |
| [default] Destroying VM and associated drives... | |
| [Berkshelf] Cleaning Vagrant's berkshelf | |
| [vagrant command] END (0m4.00s) | |
| Vagrant instance <default-centos-63> destroyed. | |
| Finished destroying <default-centos-63> (0m4.36s). | |
| -----> Testing <default-centos-63> | |
| -----> Creating <default-centos-63> | |
| [vagrant command] BEGIN (vagrant up --no-provision) | |
| You appear to be running Vagrant outside of the official installers. | |
| Note that the installers are what ensure that Vagrant has all required | |
| dependencies, and Vagrant assumes that these dependencies exist. By | |
| running outside of the installer environment, Vagrant may not function | |
| properly. To remove this warning, install Vagrant using one of the | |
| official packages from vagrantup.com. | |
| Bringing machine 'default' up with 'virtualbox' provider... | |
| [default] Importing base box 'centos63'... | |
| [default] Matching MAC address for NAT networking... | |
| [default] Setting the name of the VM... | |
| [default] Clearing any previously set forwarded ports... | |
| [Berkshelf] Updating Vagrant's berkshelf: '/Users/sascha/.berkshelf/vagrant/berkshelf-20130329-34699-witeib' | |
| [Berkshelf] Using chef-ci (0.1.0) at path: '/Users/sascha/RubymineProjects/Jenkins/chef-ci' | |
| [Berkshelf] Using yum (2.1.0) | |
| [Berkshelf] Installing jenkins (0.8.0) from git: 'git://github.com/opscode-cookbooks/jenkins.git' with branch: '67361f2220d1d64e3a51cf73f4cb285f4e70028c' | |
| [Berkshelf] Using java (1.5.4) | |
| [Berkshelf] Using runit (1.1.0) | |
| [Berkshelf] Using build-essential (1.3.4) | |
| [Berkshelf] Using apache2 (1.5.0) | |
| [Berkshelf] Using nginx (1.0.2) | |
| [Berkshelf] Using bluepill (2.2.0) | |
| [Berkshelf] Using rsyslog (1.5.0) | |
| [Berkshelf] Using ohai (1.1.6) | |
| [Berkshelf] Using iptables (0.12.0) | |
| [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 | |
| [default] -- /tmp/vagrant-chef-1/chef-solo-1/cookbooks | |
| [vagrant command] END (0m52.68s) | |
| [vagrant command] BEGIN (vagrant ssh-config) | |
| [vagrant command] END (0m1.95s) | |
| Vagrant instance <default-centos-63> created. | |
| Finished creating <default-centos-63> (0m59.42s). | |
| -----> Converging <default-centos-63> | |
| [vagrant command] BEGIN (vagrant provision) | |
| You appear to be running Vagrant outside of the official installers. | |
| Note that the installers are what ensure that Vagrant has all required | |
| dependencies, and Vagrant assumes that these dependencies exist. By | |
| running outside of the installer environment, Vagrant may not function | |
| properly. To remove this warning, install Vagrant using one of the | |
| official packages from vagrantup.com. | |
| [Berkshelf] Updating Vagrant's berkshelf: '/Users/sascha/.berkshelf/vagrant/berkshelf-20130329-34699-witeib' | |
| [Berkshelf] Using chef-ci (0.1.0) at path: '/Users/sascha/RubymineProjects/Jenkins/chef-ci' | |
| [Berkshelf] Using yum (2.1.0) | |
| [Berkshelf] Installing jenkins (0.8.0) from git: 'git://github.com/opscode-cookbooks/jenkins.git' with branch: '67361f2220d1d64e3a51cf73f4cb285f4e70028c' | |
| [Berkshelf] Using java (1.5.4) | |
| [Berkshelf] Using runit (1.1.0) | |
| [Berkshelf] Using build-essential (1.3.4) | |
| [Berkshelf] Using apache2 (1.5.0) | |
| [Berkshelf] Using nginx (1.0.2) | |
| [Berkshelf] Using bluepill (2.2.0) | |
| [Berkshelf] Using rsyslog (1.5.0) | |
| [Berkshelf] Using ohai (1.1.6) | |
| [Berkshelf] Using iptables (0.12.0) | |
| [default] Running provisioner: VagrantPlugins::Chef::Provisioner::ChefSolo... | |
| Generating chef JSON and uploading... | |
| Running chef-solo... | |
| [2013-03-29T06:30:24+00:00] INFO: *** Chef 11.4.0 *** | |
| [2013-03-29T06:30:25+00:00] INFO: Setting the run_list to ["recipe[yum::epel]", "recipe[chef-ci]"] from JSON | |
| [2013-03-29T06:30:25+00:00] INFO: Run List is [recipe[yum::epel], recipe[chef-ci]] | |
| [2013-03-29T06:30:25+00:00] INFO: Run List expands to [yum::epel, chef-ci] | |
| [2013-03-29T06:30:25+00:00] INFO: Starting Chef Run for default-centos-63.vagrantup.com | |
| [2013-03-29T06:30:25+00:00] INFO: Running start handlers | |
| [2013-03-29T06:30:25+00:00] INFO: Start handlers complete. | |
| ================================================================================ | |
| Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/chef-ci/recipes/default.rb | |
| ================================================================================ | |
| NoMethodError | |
| ------------- | |
| undefined method `[]' for nil:NilClass | |
| Cookbook Trace: | |
| --------------- | |
| /tmp/vagrant-chef-1/chef-solo-1/cookbooks/java/recipes/default.rb:21:in `from_file' | |
| /tmp/vagrant-chef-1/chef-solo-1/cookbooks/jenkins/recipes/server.rb:26:in `from_file' | |
| /tmp/vagrant-chef-1/chef-solo-1/cookbooks/chef-ci/recipes/default.rb:9:in `from_file' | |
| Relevant File Content: | |
| ---------------------- | |
| /tmp/vagrant-chef-1/chef-solo-1/cookbooks/java/recipes/default.rb: | |
| 14: # Unless required by applicable law or agreed to in writing, software | |
| 15: # distributed under the License is distributed on an "AS IS" BASIS, | |
| 16: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 17: # See the License for the specific language governing permissions and | |
| 18: # limitations under the License. | |
| 19: # | |
| 20: | |
| 21>> include_recipe "java::#{node['java']['install_flavor']}" | |
| 22: | |
| 23: # Purge the deprecated Sun Java packages if remove_deprecated_packages is true | |
| 24: %w[sun-java6-jdk sun-java6-bin sun-java6-jre].each do |pkg| | |
| 25: package pkg do | |
| 26: action :purge | |
| 27: only_if { node['java']['remove_deprecated_packages'] } | |
| 28: end | |
| 29: end | |
| 30: | |
| [2013-03-29T06:30:25+00:00] ERROR: Running exception handlers | |
| [2013-03-29T06:30:25+00:00] ERROR: Exception handlers complete | |
| [2013-03-29T06:30:25+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out | |
| [2013-03-29T06:30:25+00:00] FATAL: NoMethodError: undefined method `[]' for nil:NilClass | |
| [vagrant command] END (0m14.26s) | |
| /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.2/lib/kitchen/instance.rb:266:in `rescue in action': Failed to complete #converge action: [Expected process to exit with [0], but received '1' (Kitchen::ActionFailed) | |
| ---- Begin output of vagrant provision ---- | |
| STDOUT: You appear to be running Vagrant outside of the official installers. | |
| Note that the installers are what ensure that Vagrant has all required | |
| dependencies, and Vagrant assumes that these dependencies exist. By | |
| running outside of the installer environment, Vagrant may not function | |
| properly. To remove this warning, install Vagrant using one of the | |
| official packages from vagrantup.com. | |
| [Berkshelf] Updating Vagrant's berkshelf: '/Users/sascha/.berkshelf/vagrant/berkshelf-20130329-34699-witeib' | |
| [Berkshelf] Using chef-ci (0.1.0) at path: '/Users/sascha/RubymineProjects/Jenkins/chef-ci' | |
| [Berkshelf] Using yum (2.1.0) | |
| [Berkshelf] Installing jenkins (0.8.0) from git: 'git://github.com/opscode-cookbooks/jenkins.git' with branch: '67361f2220d1d64e3a51cf73f4cb285f4e70028c' | |
| [Berkshelf] Using java (1.5.4) | |
| [Berkshelf] Using runit (1.1.0) | |
| [Berkshelf] Using build-essential (1.3.4) | |
| [Berkshelf] Using apache2 (1.5.0) | |
| [Berkshelf] Using nginx (1.0.2) | |
| [Berkshelf] Using bluepill (2.2.0) | |
| [Berkshelf] Using rsyslog (1.5.0) | |
| [Berkshelf] Using ohai (1.1.6) | |
| [Berkshelf] Using iptables (0.12.0) | |
| [default] Running provisioner: VagrantPlugins::Chef::Provisioner::ChefSolo... | |
| Generating chef JSON and uploading... | |
| Running chef-solo... | |
| [2013-03-29T06:30:24+00:00] INFO: *** Chef 11.4.0 *** | |
| [2013-03-29T06:30:25+00:00] INFO: Setting the run_list to ["recipe[yum::epel]", "recipe[chef-ci]"] from JSON | |
| [2013-03-29T06:30:25+00:00] INFO: Run List is [recipe[yum::epel], recipe[chef-ci]] | |
| [2013-03-29T06:30:25+00:00] INFO: Run List expands to [yum::epel, chef-ci] | |
| [2013-03-29T06:30:25+00:00] INFO: Starting Chef Run for default-centos-63.vagrantup.com | |
| [2013-03-29T06:30:25+00:00] INFO: Running start handlers | |
| [2013-03-29T06:30:25+00:00] INFO: Start handlers complete. | |
| ================================================================================ | |
| Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/chef-ci/recipes/default.rb | |
| ================================================================================ | |
| NoMethodError | |
| ------------- | |
| undefined method `[]' for nil:NilClass | |
| Cookbook Trace: | |
| --------------- | |
| /tmp/vagrant-chef-1/chef-solo-1/cookbooks/java/recipes/default.rb:21:in `from_file' | |
| /tmp/vagrant-chef-1/chef-solo-1/cookbooks/jenkins/recipes/server.rb:26:in `from_file' | |
| /tmp/vagrant-chef-1/chef-solo-1/cookbooks/chef-ci/recipes/default.rb:9:in `from_file' | |
| Relevant File Content: | |
| ---------------------- | |
| /tmp/vagrant-chef-1/chef-solo-1/cookbooks/java/recipes/default.rb: | |
| 14: # Unless required by applicable law or agreed to in writing, software | |
| 15: # distributed under the License is distributed on an "AS IS" BASIS, | |
| 16: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 17: # See the License for the specific language governing permissions and | |
| 18: # limitations under the License. | |
| 19: # | |
| 20: | |
| 21>> include_recipe "java::#{node['java']['install_flavor']}" | |
| 22: | |
| 23: # Purge the deprecated Sun Java packages if remove_deprecated_packages is true | |
| 24: %w[sun-java6-jdk sun-java6-bin sun-java6-jre].each do |pkg| | |
| 25: package pkg do | |
| 4 source 'https://rubygems.org' | |
| 26: action :purge | |
| 27: only_if { node['java']['remove_deprecated_packages'] } | |
| 28: end | |
| 29: end | |
| 30: | |
| [2013-03-29T06:30:25+00:00] ERROR: Running exception handlers | |
| [2013-03-29T06:30:25+00:00] ERROR: Exception handlers complete | |
| [2013-03-29T06:30:25+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out | |
| [2013-03-29T06:30:25+00:00] FATAL: NoMethodError: undefined method `[]' for nil:NilClass | |
| 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] | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.2/lib/kitchen/instance.rb:269:in `action' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.2/lib/kitchen/instance.rb:249:in `perform_action' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.2/lib/kitchen/instance.rb:232:in `converge_action' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.2/lib/kitchen/instance.rb:222:in `block in transition_to' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.2/lib/kitchen/instance.rb:221:in `each' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.2/lib/kitchen/instance.rb:221:in `transition_to' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.2/lib/kitchen/instance.rb:143:in `verify' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.2/lib/kitchen/instance.rb:172:in `block in test' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/benchmark.rb:280:in `measure' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.2/lib/kitchen/instance.rb:168:in `test' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.2/lib/kitchen/cli.rb:255:in `public_send' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.2/lib/kitchen/cli.rb:255:in `block in run_serial' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.2/lib/kitchen/cli.rb:255:in `map' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.2/lib/kitchen/cli.rb:255:in `run_serial' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.2/lib/kitchen/cli.rb:110:in `block in test' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/benchmark.rb:280:in `measure' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.2/lib/kitchen/cli.rb:102:in `test' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/thor-0.18.0/lib/thor/command.rb:27:in `run' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/thor-0.18.0/lib/thor/invocation.rb:120:in `invoke_command' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.2/lib/kitchen/cli.rb:229:in `invoke_task' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/thor-0.18.0/lib/thor.rb:363:in `dispatch' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/thor-0.18.0/lib/thor/base.rb:427:in `start' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/test-kitchen-1.0.0.alpha.2/bin/kitchen:12:in `<top (required)>' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/bin/kitchen:23:in `load' | |
| from /Users/sascha/.rbenv/versions/1.9.3-p374/bin/kitchen:23:in `<main>' | |
| real 1m23.017s | |
| user 0m22.291s | |
| sys 0m4.836s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment