Advertisement
Guest User

Untitled

a guest
Sep 29th, 2014
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.14 KB | None | 0 0
  1. ~/singlestack [ bundle exec chef-client -z vagrant_linux.rb aio-nova.rb master * ] 2:32 PM
  2. [2014-09-29T14:32:49-04:00] INFO: Starting chef-zero on port 8889 with repository at repository at /Users/apenney/singlestack
  3. One version per cookbook
  4.  
  5. [2014-09-29T14:32:49-04:00] INFO: Forking chef instance to converge...
  6. [2014-09-29T14:32:49-04:00] WARN:
  7. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  8. SSL validation of HTTPS requests is disabled. HTTPS connections are still
  9. encrypted, but chef is not able to detect forged replies or man in the middle
  10. attacks.
  11.  
  12. To fix this issue add an entry like this to your configuration file:
  13.  
  14. ```
  15. # Verify all HTTPS connections (recommended)
  16. ssl_verify_mode :verify_peer
  17.  
  18. # OR, Verify only connections to chef-server
  19. verify_api_cert true
  20. ```
  21.  
  22. To check your SSL configuration, or troubleshoot errors, you can use the
  23. `knife ssl check` command like so:
  24.  
  25. ```
  26. knife ssl check -c /Users/apenney/singlestack/.chef/knife.rb
  27. ```
  28.  
  29. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  30.  
  31. Starting Chef Client, version 11.12.8
  32. [2014-09-29T14:32:49-04:00] INFO: *** Chef 11.12.8 ***
  33. [2014-09-29T14:32:49-04:00] INFO: Chef-client pid: 81324
  34. [2014-09-29T14:32:51-04:00] INFO: Run List is []
  35. [2014-09-29T14:32:51-04:00] INFO: Run List expands to []
  36. [2014-09-29T14:32:51-04:00] INFO: Starting Chef Run for nodienode
  37. [2014-09-29T14:32:51-04:00] INFO: Running start handlers
  38. [2014-09-29T14:32:51-04:00] INFO: Start handlers complete.
  39. [2014-09-29T14:32:51-04:00] INFO: HTTP Request Returned 404 Not Found : Object not found: /reports/nodes/nodienode/runs
  40. resolving cookbooks for run list: []
  41. [2014-09-29T14:32:51-04:00] INFO: Loading cookbooks []
  42. Synchronizing Cookbooks:
  43. Compiling Cookbooks...
  44. [2014-09-29T14:32:51-04:00] WARN: Node nodienode has an empty run list.
  45. Converging 4 resources
  46. Recipe: @recipe_files::/Users/apenney/singlestack/vagrant_linux.rb
  47. * vagrant_box[centos65] action create[2014-09-29T14:32:51-04:00] INFO: Processing vagrant_box[centos65] action create (@recipe_files::/Users/apenney/singlestack/vagrant_linux.rb line 4)
  48. (up to date)
  49. * vagrant_box[precise64] action create[2014-09-29T14:32:52-04:00] INFO: Processing vagrant_box[precise64] action create (@recipe_files::/Users/apenney/singlestack/vagrant_linux.rb line 8)
  50. (up to date)
  51. * vagrant_box[trusty64] action create[2014-09-29T14:32:53-04:00] INFO: Processing vagrant_box[trusty64] action create (@recipe_files::/Users/apenney/singlestack/vagrant_linux.rb line 12)
  52. (up to date)
  53. Recipe: @recipe_files::/Users/apenney/singlestack/aio-nova.rb
  54. * machine[mario] action converge[2014-09-29T14:32:54-04:00] INFO: Processing machine[mario] action converge (@recipe_files::/Users/apenney/singlestack/aio-nova.rb line 20)
  55. [2014-09-29T14:32:54-04:00] INFO: Processing vagrant_cluster[/Users/apenney/.chef/vms] action create (basic_chef_client::block line 210)
  56. [2014-09-29T14:32:54-04:00] INFO: Processing directory[/Users/apenney/.chef/vms] action create (basic_chef_client::block line 15)
  57. [2014-09-29T14:32:54-04:00] INFO: Processing file[/Users/apenney/.chef/vms/Vagrantfile] action create (basic_chef_client::block line 16)
  58. [2014-09-29T14:32:54-04:00] INFO: Processing file[/Users/apenney/.chef/vms/mario.vm] action create (basic_chef_client::block line 230)
  59. [2014-09-29T14:32:54-04:00] INFO: Processing chef_node[mario] action create (basic_chef_client::block line 64)
  60.  
  61. ================================================================================
  62. Error executing action `converge` on resource 'machine[mario]'
  63. ================================================================================
  64.  
  65.  
  66. RuntimeError
  67. ------------
  68. vagrant up mario failed!
  69. STDOUT:
  70. STDERR:A Vagrant environment or target machine is required to run this
  71. command. Run `vagrant init` to create a new Vagrant environment. Or,
  72. get an ID of a target machine from `vagrant global-status` to run
  73. this command on. A final option is to change to a directory with a
  74. Vagrantfile and to try again.
  75.  
  76.  
  77.  
  78. Resource Declaration:
  79. ---------------------
  80. # In /Users/apenney/singlestack/aio-nova.rb
  81.  
  82. 20: machine 'mario' do
  83. 21: machine_options :vagrant_config => mario_config
  84. 22: role 'allinone-compute'
  85. 23: role 'os-image-upload'
  86. 24: chef_environment 'vagrant-aio-nova'
  87. 25: file '/etc/chef/openstack_data_bag_secret','~/singlestack/.chef/encrypted_data_bag_secret'
  88. 26: converge true
  89. 27: end
  90.  
  91.  
  92.  
  93. Compiled Resource:
  94. ------------------
  95. # Declared in /Users/apenney/singlestack/aio-nova.rb:20:in `from_file'
  96.  
  97. machine("mario") do
  98. action :converge
  99. retries 0
  100. retry_delay 2
  101. guard_interpreter :default
  102. chef_environment "vagrant-aio-nova"
  103. chef_server {:chef_server_url=>"http://127.0.0.1:8889", :options=>{:client_name=>"nodienode", :signing_key_filename=>"/Users/apenney/singlestack/.chef/nodienode.pem"}}
  104. driver "vagrant"
  105. machine_options {:vagrant_config=>" config.vm.box = \"centos65\"\n config.vm.network \"forwarded_port\", guest: 443, host: 9443\n config.vm.network \"forwarded_port\", guest: 4002, host: 4002\n config.vm.network \"forwarded_port\", guest: 5000, host: 5000\n config.vm.network \"forwarded_port\", guest: 8773, host: 8773\n config.vm.network \"forwarded_port\", guest: 8774, host: 8774\n config.vm.network \"forwarded_port\", guest: 35357, host: 35357\n config.vm.provider \"virtualbox\" do |v|\n v.memory = 4096\n v.cpus = 2\n v.customize [\"modifyvm\", :id, \"--nicpromisc2\", \"allow-all\"]\n v.customize [\"modifyvm\", :id, \"--natdnshostresolver1\", \"on\"]\n end\n config.vm.network \"private_network\", ip: \"192.168.200.60\"\n"}
  106. cookbook_name "@recipe_files"
  107. recipe_name "/Users/apenney/singlestack/aio-nova.rb"
  108. run_list_modifiers [#<Chef::RunList::RunListItem:0x007fed23584248 @version=nil, @type=:role, @name="allinone-compute">, #<Chef::RunList::RunListItem:0x007fed23584068 @version=nil, @type=:role, @name="os-image-upload">]
  109. files {"/etc/chef/openstack_data_bag_secret"=>"~/singlestack/.chef/encrypted_data_bag_secret"}
  110. converge true
  111. end
  112.  
  113.  
  114.  
  115. [2014-09-29T14:32:55-04:00] INFO: Running queued delayed notifications before re-raising exception
  116.  
  117. Running handlers:
  118. [2014-09-29T14:32:55-04:00] ERROR: Running exception handlers
  119. Running handlers complete
  120.  
  121. [2014-09-29T14:32:55-04:00] ERROR: Exception handlers complete
  122. [2014-09-29T14:32:55-04:00] FATAL: Stacktrace dumped to /Users/apenney/.chef/local-mode-cache/cache/chef-stacktrace.out
  123. Chef Client failed. 0 resources updated in 6.121714 seconds
  124. [2014-09-29T14:32:55-04:00] ERROR: machine[mario] (@recipe_files::/Users/apenney/singlestack/aio-nova.rb line 20) had an error: RuntimeError: vagrant up mario failed!
  125. STDOUT:
  126. STDERR:A Vagrant environment or target machine is required to run this
  127. command. Run `vagrant init` to create a new Vagrant environment. Or,
  128. get an ID of a target machine from `vagrant global-status` to run
  129. this command on. A final option is to change to a directory with a
  130. Vagrantfile and to try again.
  131.  
  132. [2014-09-29T14:32:55-04:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
  133. ~/singlestack [
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement