gehuwork

chef-solo log

Oct 22nd, 2015
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.00 KB | None | 0 0
  1. sh-4.1# chef-solo -c soloconf.rb -j runlist.json
  2. [2015-10-22T14:09:11+00:00] INFO: *** Chef 10.34.6 ***
  3. [2015-10-22T14:09:11+00:00] INFO: Setting the run_list to "role[cumulocity-dev-singlenode]" from JSON
  4. [2015-10-22T14:09:11+00:00] INFO: Run List is [role[cumulocity-dev-singlenode]]
  5. [2015-10-22T14:09:11+00:00] INFO: Run List expands to [swap::swapfile, ulimit, el-sysctl, yum::config, sudo, pam::login,yum::repositories, tools, openssh, cumulocity-postgres, bigcouch, cumulocity-core, cumulocity-external-lb]
  6. [2015-10-22T14:09:11+00:00] INFO: Starting Chef Run for 0bf0062061ee
  7. [2015-10-22T14:09:11+00:00] INFO: Running start handlers
  8. [2015-10-22T14:09:11+00:00] INFO: Start handlers complete.
  9. [2015-10-22T14:09:11+00:00] INFO: Processing chef_gem[treetop] action install (dynamically defined)/var/chef-solo/cookbooks/chef-solo-search/libraries/search.rb:57: warning: already initialized constant PARSER_LOADED
  10. [2015-10-22T14:09:11+00:00] WARN: Missing gem 'right_aws'curl: (7) couldn't connect to host
  11. [2015-10-22T14:11:19+00:00] WARN: Cloning resource attributes for service[bigcouch] from prior resource (CHEF-3694)
  12. [2015-10-22T14:11:19+00:00] WARN: Previous service[bigcouch]: /var/chef-solo/cookbooks/bigcouch/recipes/default.rb:21:in `from_file'
  13. [2015-10-22T14:11:19+00:00] WARN: Current service[bigcouch]: /var/chef-solo/cookbooks/bigcouch/recipes/default.rb:57:in `from_file'
  14. [2015-10-22T14:11:19+00:00] WARN: Cloning resource attributes for service[postfix] from prior resource (CHEF-3694)
  15. [2015-10-22T14:11:19+00:00] WARN: Previous service[postfix]: /var/chef-solo/cookbooks/cumulocity-karaf/recipes/notification.rb:10:in `from_file'
  16. [2015-10-22T14:11:19+00:00] WARN: Current service[postfix]: /var/chef-solo/cookbooks/cumulocity-karaf/recipes/default.rb:136:in `from_file'
  17. [2015-10-22T14:11:19+00:00] INFO: Processing bash[create_swap_file] action run (swap::swapfile line 10)Setting up swapspace version 1, size = 1048572 KiBno label, UUID=a064bf8d-6704-4043-a1f8-bf9c01b1a0e1
  18. [2015-10-22T14:11:21+00:00] INFO: bash[create_swap_file] ran successfully
  19. [2015-10-22T14:11:21+00:00] INFO: Processing template[/etc/security/limits.d/limits.conf] action create (ulimit::default line 10)
  20. [2015-10-22T14:11:21+00:00] INFO: Processing execute[/sbin/sysctl -p] action nothing (el-sysctl::default line 20)
  21. [2015-10-22T14:11:21+00:00] INFO: Processing template[/etc/sysctl.conf] action create (el-sysctl::default line 24)
  22. [2015-10-22T14:11:21+00:00] INFO: Processing template[/etc/yum.conf] action create (yum::config line 26)
  23. [2015-10-22T14:11:21+00:00] WARN: Setting attributes without specifying a precedence is deprecated and will beremoved in Chef 11.0. To set attributes at normal precedence, change code like:`node["key"] = "value"` # Not thisto:`node.set["key"] = "value"` # ThisCalled from: /usr/lib/ruby/gems/1.8/gems/chef-10.34.6/bin/../lib/chef/node/attribute.rb:449:in `method_missing' (erubis):14:in `evaluate' /usr/lib/ruby/gems/1.8/gems/erubis-2.7.0/lib/erubis/evaluator.rb:74:in `instance_eval'
  24. [2015-10-22T14:11:21+00:00] WARN: Setting attributes without specifying a precedence is deprecated and will beremoved in Chef 11.0. To set attributes at normal precedence, change code like:`node["key"] = "value"` # Not thisto:`node.set["key"] = "value"` # ThisCalled from: /usr/lib/ruby/gems/1.8/gems/chef-10.34.6/bin/../lib/chef/node/attribute.rb:449:in `method_missing' (erubis):17:in `evaluate' /usr/lib/ruby/gems/1.8/gems/erubis-2.7.0/lib/erubis/evaluator.rb:74:in `instance_eval'
  25. [2015-10-22T14:11:21+00:00] INFO: Processing package[sudo] action install (sudo::default line 20)
  26. [2015-10-22T14:11:23+00:00] INFO: Processing template[/etc/sudoers] action create (sudo::default line 22)
  27. [2015-10-22T14:11:23+00:00] INFO: Processing bash[enable_limits] action run (pam::login line 10)session required pam_limits.so
  28. [2015-10-22T14:11:23+00:00] INFO: bash[enable_limits] ran successfully
  29. [2015-10-22T14:11:23+00:00] INFO: Processing yum_repository[pgdg91] action add (yum::repositories line 7)
  30. [2015-10-22T14:11:23+00:00] INFO: Adding pgdg91 repository to /etc/yum.repos.d/pgdg91.repo
  31. [2015-10-22T14:11:23+00:00] INFO: Processing template[/etc/yum.repos.d/pgdg91.repo] action create (/var/chef-solo/cookbooks/yum/providers/repository.rb line 38)
  32. [2015-10-22T14:11:23+00:00] INFO: Processing template[/etc/yum.repos.d/pgdg91.repo] action nothing (/var/chef-solo/cookbooks/yum/providers/repository.rb line 38)
  33. [2015-10-22T14:11:23+00:00] INFO: Processing yum_repository[cumulocity] action add (yum::repositories line 7)
  34. [2015-10-22T14:11:23+00:00] INFO: Adding cumulocity repository to /etc/yum.repos.d/cumulocity.repo
  35. [2015-10-22T14:11:23+00:00] INFO: Processing template[/etc/yum.repos.d/cumulocity.repo] action create (/var/chef-solo/cookbooks/yum/providers/repository.rb line 38)
  36. [2015-10-22T14:11:23+00:00] INFO: Processing template[/etc/yum.repos.d/cumulocity.repo] action nothing (/var/chef-solo/cookbooks/yum/providers/repository.rb line 38)
  37. [2015-10-22T14:11:23+00:00] INFO: Processing cookbook_file[/etc/pki/tls/certs/gd_bundle.crt] action create (yum::repositories line 16)
  38. [2015-10-22T14:11:23+00:00] INFO: Processing yum_repository[cloudant] action add (yum::repositories line 7)
  39. [2015-10-22T14:11:23+00:00] INFO: Adding cloudant repository to /etc/yum.repos.d/cloudant.repo
  40. [2015-10-22T14:11:23+00:00] INFO: Processing template[/etc/yum.repos.d/cloudant.repo] action create (/var/chef-solo/cookbooks/yum/providers/repository.rb line 38)
  41. [2015-10-22T14:11:23+00:00] INFO: Processing template[/etc/yum.repos.d/cloudant.repo] action nothing (/var/chef-solo/cookbooks/yum/providers/repository.rb line38)
  42. [2015-10-22T14:11:23+00:00] INFO: Processing package[htop] action install (tools::default line 10)
  43. [2015-10-22T14:11:23+00:00] INFO: Processing package[mc] action install (tools::default line 10)
  44. [2015-10-22T14:11:23+00:00] INFO: Processing package[openssh] action install (openssh::default line 11)
  45. [2015-10-22T14:11:23+00:00] INFO: Processing package[openssh-clients] action install (openssh::default line 11)
  46. [2015-10-22T14:11:23+00:00] INFO: Processing file[/etc/ssh/banner] action create (openssh::default line 14)
  47. [2015-10-22T14:11:23+00:00] INFO: Processing template[/etc/ssh/sshd_config] action create (openssh::default line 21)
  48. [2015-10-22T14:11:23+00:00] INFO: Processing service[ssh] action enable (openssh::default line 29)
  49.  
  50. ================================================================================
  51. Error executing action `enable` on resource 'service[ssh]'
  52. ================================================================================
  53.  
  54. Chef::Exceptions::Service
  55. -------------------------
  56. service[ssh]: unable to locate the init.d script!
  57.  
  58. Resource Declaration:
  59. ---------------------
  60. # In /var/chef-solo/cookbooks/openssh/recipes/default.rb
  61. 29: service "ssh" do
  62. 30: service_name node['openssh']['service']
  63. 31: supports :restart => true, :reload => true
  64. 32: action [:enable, :start]
  65. 33: end
  66. 34:
  67.  
  68. Compiled Resource:
  69. ------------------
  70. # Declared in /var/chef-solo/cookbooks/openssh/recipes/default.rb:29:in `from_file'
  71.  
  72. service("ssh")
  73. do pattern "ssh"
  74. supports {:status=>true, :restart=>true, :reload=>true}
  75. recipe_name "default"
  76. retry_delay 2
  77. action [:enable, :start]
  78. cookbook_name :openssh
  79. startup_type :automatic
  80. retries 0
  81. service_name "sshd"
  82. end
  83.  
  84. [2015-10-22T14:11:23+00:00] ERROR: Running exception handlers
  85. [2015-10-22T14:11:23+00:00] ERROR: Exception handlers complete
  86. [2015-10-22T14:11:23+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
  87. [2015-10-22T14:11:23+00:00] FATAL: Chef::Exceptions::Service: service[ssh] (openssh::default line 29) had an error: Chef::Exceptions::Service: service[ssh]: unable to locate the init.d script!sh-4.1#
  88. [2015-10-22T14:00:26+00:00] FATAL: Chef::Exceptions::Service: service[ssh] (opend an error: Chef::Exceptions::Service: service[ssh]: unable to locate the init.d script!sh: syntax error near unexpected token `('sh-4.1# ssh::default line 29) had an error: Chef::Exceptions::Service: service[ssh]: unash: syntax error near unexpected token `)'
Advertisement
Add Comment
Please, Sign In to add comment