kazu634/chef — pull request #48 by kazu634 (2014-03-12 12:18:04+00:00)
Title: [sensu-custom] Gemインストールの順番を変更する

```
00:00:00.056 Started by GitHub push by kazu634
00:00:01.060 ビルドします。 ワークスペース: /var/lib/jenkins/jobs/Chef_PullRequest/workspace
00:00:01.086 Wiping out workspace first.
00:00:14.961 Cloning the remote Git repository
00:00:14.961 Cloning repository git@github.com:kazu634/chef.git
00:00:14.966 Fetching upstream changes from git@github.com:kazu634/chef.git
00:00:19.489 Fetching upstream changes from git@github.com:kazu634/chef.git
00:00:21.996 Seen branch in repository origin/id/20
00:00:21.997 Seen branch in repository origin/id/21
00:00:21.998 Seen branch in repository origin/id/37
00:00:21.998 Seen branch in repository origin/id/38
00:00:21.999 Seen branch in repository origin/id/39
00:00:22.000 Seen branch in repository origin/id/47
00:00:22.001 Seen branch in repository origin/id/6
00:00:22.001 Seen branch in repository origin/master
00:00:22.002 Seen 8 remote branches
00:00:22.016 Checking out Revision 63a74efd296b239c2441e2ae3a643ddb55fe500e (origin/id/47)
00:00:22.293 First time build. Skipping changelog.
00:00:22.343 Empty changeset, running build.
00:00:22.552 $ bash -c "[ -d \$HOME/.rbenv ]"
00:00:22.781 $ bash -c "[ -d \$HOME/.rbenv/plugins/ruby-build ]"
00:00:24.346 $ bash -c "cd /var/lib/jenkins/jobs/Chef_PullRequest/workspace && env RBENV_ROOT\=\$HOME/.rbenv RBENV_VERSION\=1.9.3-p374 \$HOME/.rbenv/bin/rbenv local 2>/dev/null || true"
00:00:24.748 $ bash -c "mkdir \$HOME/.rbenv.lock"
00:00:24.992 $ bash -c "env RBENV_ROOT\=\$HOME/.rbenv RBENV_VERSION\=1.9.3-p374 \$HOME/.rbenv/bin/rbenv versions --bare"
00:00:25.298 $ bash -c "env RBENV_ROOT\=\$HOME/.rbenv RBENV_VERSION\=1.9.3-p374 \$HOME/.rbenv/bin/rbenv rehash"
00:00:25.793 $ bash -c "env RBENV_ROOT\=\$HOME/.rbenv RBENV_VERSION\=1.9.3-p374 \$HOME/.rbenv/bin/rbenv exec gem list"
00:00:26.833 $ bash -c "env RBENV_ROOT\=\$HOME/.rbenv RBENV_VERSION\=1.9.3-p374 \$HOME/.rbenv/bin/rbenv rehash"
00:00:27.196 $ bash -c "rmdir \$HOME/.rbenv.lock"
00:00:27.491 [workspace] $ /bin/sh -xe /tmp/hudson5757166849260129587.sh
00:00:27.699 + rake init
00:00:28.064 test -e vendor || bundle install --path vendor/bundle
00:00:37.633 Fetching gem metadata from https://rubygems.org/.......
00:00:43.751 Fetching gem metadata from https://rubygems.org/..
00:00:43.820 Fetching git://github.com/joker1007/github-commit-status-updater.git
00:00:43.879 Cloning into bare repository '/var/lib/jenkins/jobs/Chef_PullRequest/workspace/vendor/bundle/ruby/1.9.1/cache/bundler/git/github-commit-status-updater-6d2dd33a56b70a32c5871e2b646e2f32c64d6180'...
00:00:44.996 Cloning into '/var/lib/jenkins/jobs/Chef_PullRequest/workspace/vendor/bundle/ruby/1.9.1/bundler/gems/github-commit-status-updater-f7f347cae54f'...
00:00:45.072 done.
00:00:47.229 Installing rake (10.1.1)
00:00:49.249 Installing i18n (0.6.9)
00:00:50.040 Installing multi_json (1.9.0)
00:00:51.304 Installing activesupport (3.2.17)
00:00:52.736 Installing addressable (2.3.5)
00:00:53.223 Installing builder (3.2.2)
00:00:53.969 Installing gyoku (1.1.1)
00:01:21.386 Installing nokogiri (1.5.11)
00:01:22.019 Installing akami (1.2.1)
00:01:22.456 Installing buff-ruby_engine (0.1.0)
00:01:22.818 Installing buff-shell_out (0.1.1)
00:01:23.377 Installing hashie (2.0.5)
00:01:24.030 Installing chozo (0.6.1)
00:01:24.653 Installing multipart-post (1.2.0)
00:01:25.276 Installing faraday (0.8.9)
00:01:25.764 Installing minitar (0.5.4)
00:01:26.842 Installing rbzip2 (0.2.0)
00:01:27.268 Installing retryable (1.3.5)
00:01:27.618 Installing buff-extensions (0.5.0)
00:01:28.172 Installing varia_model (0.3.2)
00:01:28.526 Installing buff-config (0.4.0)
00:01:28.930 Installing buff-ignore (1.1.1)
00:01:31.986 Installing hitimes (1.2.1)
00:01:32.683 Installing timers (2.0.0)
00:01:33.351 Installing celluloid (0.14.1)
00:01:40.831 Installing nio4r (1.0.0)
00:01:41.917 Installing celluloid-io (0.14.1)
00:01:43.472 Installing erubis (2.7.0)
00:01:47.442 Installing json (1.7.7)
00:01:47.800 Installing mixlib-log (1.6.0)
00:01:48.433 Installing mixlib-authentication (1.3.0)
00:01:49.300 Installing net-http-persistent (2.9.4)
00:01:50.422 Installing net-ssh (2.8.0)
00:01:51.153 Installing solve (0.8.2)
00:02:47.781 Installing ffi (1.9.3)
00:02:48.945 Installing gssapi (1.0.3)
00:02:50.339 Installing httpclient (2.3.4.1)
00:02:50.745 Installing little-plugger (1.1.3)
00:02:52.023 Installing logging (1.8.2)
00:02:52.753 Installing rubyntlm (0.1.1)
00:02:54.545 Installing rack (1.5.2)
00:02:55.798 Installing httpi (0.9.7)
00:02:56.425 Installing nori (1.1.5)
00:02:57.624 Installing wasabi (1.0.0)
00:02:58.538 Installing savon (0.9.5)
00:02:58.953 Installing uuidtools (2.1.4)
00:02:59.593 Installing winrm (1.1.3)
00:03:00.966 Installing ridley (1.5.3)
00:03:01.736 Installing thor (0.18.1)
00:03:02.943 Installing berkshelf (2.0.14)
00:03:04.415 Installing highline (1.6.21)
00:03:05.284 Installing mixlib-cli (1.4.0)
00:03:06.109 Installing mixlib-config (1.1.2)
00:03:06.757 Installing mixlib-shellout (1.3.0)
00:03:07.459 Installing net-ssh-gateway (1.2.0)
00:03:08.417 Installing net-ssh-multi (1.1)
00:03:09.389 Installing ipaddress (0.8.0)
00:03:10.280 Installing systemu (2.5.2)
00:03:18.428 Installing yajl-ruby (1.1.0)
00:03:21.047 Installing ohai (6.20.0)
00:03:22.803 Installing mime-types (2.1)
00:03:23.959 Installing rest-client (1.6.7)
00:03:29.445 Installing chef (11.6.2)
00:03:30.615 Installing ci_reporter (1.9.1)
00:03:31.590 Installing diff-lcs (1.2.5)
00:04:06.303 Installing eventmachine (1.0.3)
00:04:07.150 Installing em-winrm (0.5.5)
00:04:08.721 Installing excon (0.25.3)
00:04:09.120 Installing formatador (0.2.4)
00:04:10.089 Installing net-scp (1.1.2)
00:04:10.575 Installing ruby-hmac (0.4.0)
00:04:20.800 Installing fog (1.15.0)
00:05:37.323 Installing gherkin (2.11.8)
00:05:38.488 Installing polyglot (0.3.4)
00:05:39.670 Installing treetop (1.4.15)
00:05:42.187 Installing foodcritic (3.0.3)
00:05:43.389 Installing sawyer (0.5.3)
00:05:44.503 Installing octokit (2.7.2)
00:05:44.590 Using github-commit-status-updater (1.0.3) from git://github.com/joker1007/github-commit-status-updater.git (at master)
00:05:45.116 Installing knife-windows (0.5.15)
00:05:45.634 Installing knife-ec2 (0.6.6)
00:05:46.456 Installing knife-solo (0.3.0)
00:05:46.942 Installing knife-solo_data_bag (1.0.1)
00:05:49.086 Installing rspec-core (2.14.8)
00:05:50.541 Installing rspec-expectations (2.14.5)
00:05:51.893 Installing rspec-mocks (2.14.6)
00:05:52.400 Installing rspec (2.14.1)
00:05:53.342 Installing specinfra (0.7.1)
00:05:54.521 Installing serverspec (0.15.4)
00:05:54.522 Using bundler (1.3.5)
00:05:54.553 Your bundle is complete!
00:05:54.554 It was installed into ./vendor/bundle
00:05:54.554 Post-install message from knife-solo:
00:05:54.555 Thanks for installing knife-solo!
00:05:54.555
00:05:54.555 If you run into any issues please let us know at:
00:05:54.556 https://github.com/matschaffer/knife-solo/issues
00:05:54.556
00:05:54.556 If you are upgrading knife-solo please uninstall any old versions by
00:05:54.557 running `gem clean knife-solo` to avoid any errors.
00:05:54.557
00:05:54.564 See http://bit.ly/CHEF-3255 for more information on the knife bug
00:05:54.564 that causes this.
00:05:54.626 test -e cookbooks || bundle exec berks --path cookbooks
00:06:03.043 Using apt (2.1.0)
00:06:03.044 Using build-essential (1.4.0)
00:06:03.045 Using iptables (0.12.0)
00:06:03.047 Using motd-tail (1.2.0)
00:06:03.048 Using varnish (0.9.10)
00:06:03.049 Using sensu (0.7.1)
00:06:03.050 Using yum (3.0.4)
00:06:03.052 Using windows (1.12.4)
00:06:03.053 Using chef_handler (1.1.4)
00:06:03.054 Using powershell (1.1.2)
00:06:03.055 Using rabbitmq (2.3.2)
00:06:03.057 Using erlang (1.4.2)
00:06:03.058 Using yum-epel (0.2.0)
00:06:03.059 Using yum-erlang_solutions (0.1.4)
00:06:03.061 Using redisio (1.7.0)
00:06:03.062 Using ulimit (0.3.2)
00:06:03.438 + rake test
00:06:14.291 + wget -O .chef_databag_secret https://raw.github.com/kazu634/dotfiles/master/.chef_databag_secret
00:06:14.409 --2014-03-12 21:06:10-- https://raw.github.com/kazu634/dotfiles/master/.chef_databag_secret
00:06:14.565 Resolving raw.github.com (raw.github.com)... 103.245.222.133
00:06:14.577 Connecting to raw.github.com (raw.github.com)|103.245.222.133|:443... connected.
00:06:14.876 HTTP request sent, awaiting response... 200 OK
00:06:14.884 Length: 695 [text/plain]
00:06:14.884 Saving to: `.chef_databag_secret'
00:06:14.885
00:06:14.885 0K 100% 18.0M=0s
00:06:14.885
00:06:14.886 2014-03-12 21:06:11 (18.0 MB/s) - `.chef_databag_secret' saved [695/695]
00:06:14.886
00:06:14.895 [workspace] $ /bin/sh -xe /tmp/hudson4917742633442555482.sh
00:06:15.177 + bundle exec github-commit-status-updater pending -r kazu634/chef -s 63a74efd296b239c2441e2ae3a643ddb55fe500e -u kazu634 -p apmh15
00:06:20.036 Changed status as pending
00:06:20.073 + rake foodcritic
00:06:20.407 rm -rf ./tmp/foodcritic
00:06:20.432 mkdir -p ./tmp/foodcritic
00:06:20.434 cp -r site-cookbooks ./tmp/foodcritic
00:06:20.465 bundle exec foodcritic --epic-fail "~FC048" ./tmp/foodcritic/site-cookbooks
00:06:20.466
00:06:20.466
00:06:20.467 Check the recipes:
00:07:08.231 FC048: Prefer Mixlib::ShellOut: ./tmp/foodcritic/site-cookbooks/jenkins/recipes/env.rb:19
00:07:08.231 FC048: Prefer Mixlib::ShellOut: ./tmp/foodcritic/site-cookbooks/nginx/attributes/default.rb:1
00:07:08.232 FC048: Prefer Mixlib::ShellOut: ./tmp/foodcritic/site-cookbooks/ruby/providers/setup.rb:110
00:07:08.232 FC048: Prefer Mixlib::ShellOut: ./tmp/foodcritic/site-cookbooks/ruby/providers/setup.rb:120
00:07:08.232 FC048: Prefer Mixlib::ShellOut: ./tmp/foodcritic/site-cookbooks/ruby/providers/setup.rb:134
00:07:08.233 FC048: Prefer Mixlib::ShellOut: ./tmp/foodcritic/site-cookbooks/sensu-custom/recipes/client_settings.rb:10
00:07:08.233 FC048: Prefer Mixlib::ShellOut: ./tmp/foodcritic/site-cookbooks/varnish-custom/templates/default/default.vcl.erb:1
00:07:08.242 jsonlint -v nodes/*.json
00:07:08.242 Check the node json data format:
00:07:08.459 nodes/sandbox.json: ok
00:07:08.465 jsonlint -v roles/*.json
00:07:08.564 roles/aws.json: ok
00:07:08.565 roles/base.json: ok
00:07:08.571 find data_bags -type f -name '*.json' | xargs -t jsonlint
00:07:08.645 jsonlint data_bags/users/vyatta.json data_bags/users/ipad.json data_bags/ssh_keys/keys.json data_bags/kazu634/ssh_keys.json data_bags/kazu634/AWS.json data_bags/sensu/twitter.json data_bags/sensu/ssl.json
00:07:08.862 [workspace] $ /bin/sh -xe /tmp/hudson3846588247379641140.sh
00:07:09.115 + ssh esxi vim-cmd vmsvc/power.on 16
00:07:09.843 Welcome to Vyatta
00:07:10.772 Powering on VM:
00:07:19.206 + sleep 45
00:08:04.210 + bundle exec knife solo cook kazu634@sandbox
00:08:09.552 Running Chef on sandbox...
00:08:09.553 Checking Chef version...
00:08:15.443 Uploading the kitchen...
00:08:24.076 Generating solo config...
00:08:24.788 Running Chef...
00:08:27.502 Starting Chef Client, version 11.10.2
00:08:28.544 Compiling Cookbooks...
00:08:29.412 [2014-03-12T21:08:25+09:00] WARN: Cloning resource attributes for rabbitmq_user[sensu] from prior resource (CHEF-3694)
00:08:29.413 [2014-03-12T21:08:25+09:00] WARN: Previous rabbitmq_user[sensu]: /home/kazu634/chef-solo/cookbooks-1/sensu/recipes/rabbitmq.rb:68:in `from_file'
00:08:29.413 [2014-03-12T21:08:25+09:00] WARN: Current rabbitmq_user[sensu]: /home/kazu634/chef-solo/cookbooks-1/sensu/recipes/rabbitmq.rb:73:in `from_file'
00:08:29.463 [2014-03-12T21:08:25+09:00] WARN: Cloning resource attributes for package[build-essential] from prior resource (CHEF-3694)
00:08:29.464 [2014-03-12T21:08:25+09:00] WARN: Previous package[build-essential]: /home/kazu634/chef-solo/cookbooks-1/build-essential/recipes/debian.rb:40:in `block in from_file'
00:08:29.464 [2014-03-12T21:08:25+09:00] WARN: Current package[build-essential]: /home/kazu634/chef-solo/cookbooks-1/redisio/recipes/default.rb:23:in `block in from_file'
00:08:29.664 [2014-03-12T21:08:25+09:00] WARN: Cloning resource attributes for template[/etc/varnish/default.vcl] from prior resource (CHEF-3694)
00:08:29.664 [2014-03-12T21:08:25+09:00] WARN: Previous template[/etc/varnish/default.vcl]: /home/kazu634/chef-solo/cookbooks-1/varnish/recipes/default.rb:23:in `from_file'
00:08:29.665 [2014-03-12T21:08:25+09:00] WARN: Current template[/etc/varnish/default.vcl]: /home/kazu634/chef-solo/cookbooks-2/varnish-custom/recipes/default.rb:14:in `from_file'
00:08:29.665 [2014-03-12T21:08:25+09:00] WARN: Cloning resource attributes for service[varnish] from prior resource (CHEF-3694)
00:08:29.665 [2014-03-12T21:08:25+09:00] WARN: Previous service[varnish]: /home/kazu634/chef-solo/cookbooks-1/varnish/recipes/default.rb:42:in `from_file'
00:08:29.674 [2014-03-12T21:08:25+09:00] WARN: Current service[varnish]: /home/kazu634/chef-solo/cookbooks-2/varnish-custom/recipes/default.rb:24:in `from_file'
00:08:29.899 Converging 170 resources
00:08:29.908 Recipe: build-essential::debian
00:09:01.421 * package[autoconf] action install
00:09:01.422 - install version 2.68-1ubuntu2 of package autoconf
00:09:01.422
00:09:14.360 * package[binutils-doc] action install
00:09:14.364 - install version 2.22-6ubuntu1.1 of package binutils-doc
00:09:14.364
00:09:28.151 * package[bison] action install
00:09:28.151 - install version 1:2.5.dfsg-2.1 of package bison
00:09:28.151
00:09:28.234 * package[build-essential] action install (up to date)
00:09:44.044 * package[flex] action install
00:09:44.045 - install version 2.5.35-10ubuntu3 of package flex
00:09:44.045
00:09:44.045 Recipe: sensu-custom::prerequisites
00:09:50.238 * gem_package[sensu-plugin] action install
00:09:50.238 ================================================================================
00:09:50.239 Error executing action `install` on resource 'gem_package[sensu-plugin]'
00:09:50.239 ================================================================================
00:09:50.239
00:09:50.260
00:09:50.260 Errno::ENOENT
00:09:50.261 -------------
00:09:50.261 No such file or directory - /opt/sensu/embedded/bin/gem env gempath
00:09:50.261
00:09:50.262
00:09:50.262 Resource Declaration:
00:09:50.262 ---------------------
00:09:50.263 # In /home/kazu634/chef-solo/cookbooks-2/sensu-custom/recipes/prerequisites.rb
00:09:50.263
00:09:50.263 13: gem_package p do
00:09:50.263 14: action :install
00:09:50.268 15: retries 3
00:09:50.268 16: gem_binary("/opt/sensu/embedded/bin/gem")
00:09:50.268 17: end
00:09:50.269 18: end
00:09:50.269
00:09:50.269
00:09:50.270
00:09:50.270 Compiled Resource:
00:09:50.275 ------------------
00:09:50.276 # Declared in /home/kazu634/chef-solo/cookbooks-2/sensu-custom/recipes/prerequisites.rb:13:in `block in from_file'
00:09:50.276
00:09:50.276 gem_package("sensu-plugin") do
00:09:50.277 provider Chef::Provider::Package::Rubygems
00:09:50.277 action [:install]
00:09:50.277 retries 0
00:09:50.277 retry_delay 2
00:09:50.278 package_name "sensu-plugin"
00:09:50.278 cookbook_name :"sensu-custom"
00:09:50.278 recipe_name "prerequisites"
00:09:50.279 gem_binary "/opt/sensu/embedded/bin/gem"
00:09:50.279 end
00:09:50.279
00:09:50.280
00:09:50.305
00:09:50.306
00:09:50.306 Running handlers:
00:09:50.306 [2014-03-12T21:09:46+09:00] ERROR: Running exception handlers
00:09:50.307 Running handlers complete
00:09:50.307
00:09:50.307 [2014-03-12T21:09:46+09:00] ERROR: Exception handlers complete
00:09:50.308 [2014-03-12T21:09:46+09:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
00:09:50.308 Chef Client failed. 4 resources updated in 83.140409708 seconds
00:09:50.308 [2014-03-12T21:09:46+09:00] ERROR: gem_package[sensu-plugin] (sensu-custom::prerequisites line 13) had an error: Errno::ENOENT: No such file or directory - /opt/sensu/embedded/bin/gem env gempath
00:09:50.360 [2014-03-12T21:09:46+09:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
00:09:50.412 ERROR: RuntimeError: chef-solo failed. See output above.
00:09:50.511 Build step 'シェルの実行' marked build as failure
00:09:50.568 Performing Post build task...
00:09:50.593 Match found for : : True
00:09:50.594 Logical operation result is TRUE
00:09:50.594 Running script : ssh esxi vim-cmd vmsvc/power.shutdown 16 && sleep 5
00:09:50.597 [workspace] $ /bin/sh -xe /tmp/hudson4388997270702627060.sh
00:09:50.849 + ssh esxi vim-cmd vmsvc/power.shutdown 16
00:09:51.300 Welcome to Vyatta
00:09:52.384 + sleep 5
00:09:57.392 POST BUILD TASK : SUCCESS
00:09:57.393 END OF POST BUILD TASK : 0
00:09:57.457 GitHubStatusUpdate #64 の新規ビルドを実行します
00:09:57.459 Finished: FAILURE
```