spuder

chef knife crashes

May 5th, 2015
511
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.87 KB | None | 0 0
  1. PS C:\Users\sowen\.chef> knife ssl fetch
  2. WARNING: Certificates from chef.example.com will be fetched and placed in your trusted_cert
  3. directory (C:/Users/sowen/.chef\trusted_certs).
  4.  
  5. Knife has no means to verify these are the correct certificates. You should
  6. verify the authenticity of these certificates after downloading.
  7.  
  8. Adding certificate for chef.example.com in C:/Users/sowen/.chef\trusted_certs/chef.example.com.crt
  9.  
  10. PS C:\Users\sowen\.chef> chef gem install knife-windows
  11. PS C:\Users\sowen\.chef>
  12. PS C:\Users\sowen\.chef>
  13. PS C:\Users\sowen\.chef> $IPAddresses = "10.254.130.129"
  14. PS C:\Users\sowen\.chef> $GUESTNAME = "spencerbootstrapper2"
  15. PS C:\Users\sowen\.chef> Get-VM -ComputerName hypervisor01 -VMName "spencerbootstrapper2"
  16. Get-VM : A parameter is invalid. Hyper-V was unable to find a virtual machine with name spencerbootstrapper2.
  17. At line:1 char:1
  18. + Get-VM -ComputerName hypervisor01 -VMName "spencerbootstrapper2"
  19. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  20. + CategoryInfo : InvalidArgument: (spencerbootstrapper2:String) [Get-VM], VirtualizationInvalidArgumentEx
  21. ception
  22. + FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.GetVMCommand
  23.  
  24. PS C:\Users\sowen\.chef> Get-VM -ComputerName hypervisor01 -VMName "spencerbootstrap2"
  25.  
  26. Name State CPUUsage(%) MemoryAssigned(M) Uptime Status
  27. ---- ----- ----------- ----------------- ------ ------
  28. spencerbootstrap2 Running 0 4096 1.01:37:16 Operating normally
  29.  
  30.  
  31. PS C:\Users\sowen\.chef> $GUESTNAME = "spencerbootstrap2"
  32. PS C:\Users\sowen\.chef> $USER = "foobar"
  33. PS C:\Users\sowen\.chef> $PASSWORD = "xxxxxxxx"
  34. PS C:\Users\sowen\.chef> knife bootstrap windows winrm $IPAddresses -N $GUESTNAME -x $USER -P $PASSWORD -VV
  35. INFO: Using configuration from C:/Users/sowen/.chef/knife.rb
  36.  
  37. Waiting for remote response before bootstrap.DEBUG: Adding 10.254.130.129
  38. DEBUG: :session => :init
  39. DEBUG: :relay_to_servers => echo . & echo Response received.
  40. DEBUG: :relayed => 10.254.130.129
  41. DEBUG: 10.254.130.129 => :run_command
  42. DEBUG: 10.254.130.129[E2E788D7-267C-4C87-BFB7-782A9C089040] => :shell_open
  43. DEBUG: 10.254.130.129[E2E788D7-267C-4C87-BFB7-782A9C089040] => :run_command[echo . & echo Response received.]
  44. DEBUG: :relay_output_from_backend => ["10.254.130.129", ". \r\n"]
  45. 10.254.130.129 .
  46. DEBUG: :relay_output_from_backend => ["10.254.130.129", "Response received.\r\n"]
  47. 10.254.130.129 Response received.
  48. DEBUG: 10.254.130.129[E2E788D7-267C-4C87-BFB7-782A9C089040] => :command_cleanup[echo . & echo Response received.]
  49. DEBUG: 10.254.130.129[E2E788D7-267C-4C87-BFB7-782A9C089040] => :shell_close
  50. DEBUG: :command_complete => 10.254.130.129 with return code 0
  51. DEBUG: command complete on 10.254.130.129
  52. DEBUG: command complete on All Servers
  53. DEBUG: Exit code found: 0
  54. DEBUG: :unbind => :connection
  55. DEBUG: 10.254.130.129 => :unbind
  56. DEBUG: :unbind_backend => 10.254.130.129
  57. DEBUG: :session => :close
  58. Remote node responded after 0.33 minutes.
  59. Bootstrapping Chef on 10.254.130.129
  60. DEBUG: Looking for bootstrap template in C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/knife-windows-0.8.4/lib/ch
  61. f/knife/bootstrap
  62. DEBUG: Found bootstrap template in C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/knife-windows-0.8.4/lib/chef/kni
  63. e/bootstrap
  64. ERROR: knife encountered an unexpected error
  65. This may be a bug in the 'bootstrap windows winrm' knife command or plugin
  66. Please collect the output of this command with the `-VV` option before filing a bug report.
  67. Exception: NoMethodError: undefined method `gsub' for false:FalseClass
  68. PS C:\Users\sowen\.chef> chef gem install knife-windows
  69. WARNING: You don't have c:\users\sowen\.chefdk\gem\ruby\2.1.0\bin in your PATH,
  70. gem executables will not run.
  71. Successfully installed knife-windows-0.8.4
  72. Parsing documentation for knife-windows-0.8.4
  73. Installing ri documentation for knife-windows-0.8.4
  74. Done installing documentation for knife-windows after 1 seconds
  75. 1 gem installed
  76. PS C:\Users\sowen\.chef> knife bootstrap windows winrm $IPAddresses -N $GUESTNAME -x $USER -P $PASSWORD -VV
  77. INFO: Using configuration from C:/Users/sowen/.chef/knife.rb
  78.  
  79. Waiting for remote response before bootstrap.DEBUG: Adding 10.254.130.129
  80. DEBUG: :session => :init
  81. DEBUG: :relay_to_servers => echo . & echo Response received.
  82. DEBUG: :relayed => 10.254.130.129
  83. DEBUG: 10.254.130.129 => :run_command
  84. DEBUG: 10.254.130.129[91EF3538-CC17-4E28-A05A-1977599C164C] => :shell_open
  85. DEBUG: 10.254.130.129[91EF3538-CC17-4E28-A05A-1977599C164C] => :run_command[echo . & echo Response received.]
  86. DEBUG: :relay_output_from_backend => ["10.254.130.129", ". \r\n"]
  87. 10.254.130.129 .
  88. DEBUG: :relay_output_from_backend => ["10.254.130.129", "Response received.\r\n"]
  89. 10.254.130.129 Response received.
  90. DEBUG: 10.254.130.129[91EF3538-CC17-4E28-A05A-1977599C164C] => :command_cleanup[echo . & echo Response received.]
  91. DEBUG: 10.254.130.129[91EF3538-CC17-4E28-A05A-1977599C164C] => :shell_close
  92. DEBUG: :command_complete => 10.254.130.129 with return code 0
  93. DEBUG: command complete on 10.254.130.129
  94. DEBUG: command complete on All Servers
  95. DEBUG: Exit code found: 0
  96. DEBUG: :unbind => :connection
  97. DEBUG: 10.254.130.129 => :unbind
  98. DEBUG: :unbind_backend => 10.254.130.129
  99. DEBUG: :session => :close
  100. Remote node responded after 0.33 minutes.
  101. Bootstrapping Chef on 10.254.130.129
  102. DEBUG: Looking for bootstrap template in C:/Users/sowen/.chefdk/gem/ruby/2.1.0/gems/knife-windows-0.8.4/lib/chef/knife/
  103. ootstrap
  104. DEBUG: Found bootstrap template in C:/Users/sowen/.chefdk/gem/ruby/2.1.0/gems/knife-windows-0.8.4/lib/chef/knife/bootst
  105. ap
  106. ERROR: knife encountered an unexpected error
  107. This may be a bug in the 'bootstrap windows winrm' knife command or plugin
  108. Please collect the output of this command with the `-VV` option before filing a bug report.
  109. Exception: NoMethodError: undefined method `gsub' for false:FalseClass
  110. PS C:\Users\sowen\.chef>
  111. PS C:\Users\sowen\.chef>
  112. PS C:\Users\sowen\.chef>
  113. PS C:\Users\sowen\.chef>
  114. PS C:\Users\sowen\.chef>
  115. PS C:\Users\sowen\.chef> knife bootstrap windows winrm $IPAddresses -N $GUESTNAME -x $USER -P $PASSWORD -VV
  116. INFO: Using configuration from C:/Users/sowen/.chef/knife.rb
  117.  
  118. Waiting for remote response before bootstrap.DEBUG: Adding 10.254.130.129
  119. DEBUG: :session => :init
  120. DEBUG: :relay_to_servers => echo . & echo Response received.
  121. DEBUG: :relayed => 10.254.130.129
  122. DEBUG: 10.254.130.129 => :run_command
  123. DEBUG: 10.254.130.129[5D37F446-E4E9-4D92-802E-3CE8B09AB508] => :shell_open
  124. DEBUG: 10.254.130.129[5D37F446-E4E9-4D92-802E-3CE8B09AB508] => :run_command[echo . & echo Response received.]
  125. DEBUG: :relay_output_from_backend => ["10.254.130.129", ". \r\n"]
  126. 10.254.130.129 .
  127. DEBUG: :relay_output_from_backend => ["10.254.130.129", "Response received.\r\n"]
  128. 10.254.130.129 Response received.
  129. DEBUG: 10.254.130.129[5D37F446-E4E9-4D92-802E-3CE8B09AB508] => :command_cleanup[echo . & echo Response received.]
  130. DEBUG: 10.254.130.129[5D37F446-E4E9-4D92-802E-3CE8B09AB508] => :shell_close
  131. DEBUG: :command_complete => 10.254.130.129 with return code 0
  132. DEBUG: command complete on 10.254.130.129
  133. DEBUG: command complete on All Servers
  134. DEBUG: Exit code found: 0
  135. DEBUG: :unbind => :connection
  136. DEBUG: 10.254.130.129 => :unbind
  137. DEBUG: :unbind_backend => 10.254.130.129
  138. DEBUG: :session => :close
  139. Remote node responded after 12.17 minutes.
  140. Bootstrapping Chef on 10.254.130.129
  141. DEBUG: Looking for bootstrap template in C:/Users/sowen/.chefdk/gem/ruby/2.1.0/gems/knife-windows-0.8.4/lib/chef/knife/
  142. ootstrap
  143. DEBUG: Found bootstrap template in C:/Users/sowen/.chefdk/gem/ruby/2.1.0/gems/knife-windows-0.8.4/lib/chef/knife/bootst
  144. ap
  145. ERROR: knife encountered an unexpected error
  146. This may be a bug in the 'bootstrap windows winrm' knife command or plugin
  147. Please collect the output of this command with the `-VV` option before filing a bug report.
  148. Exception: NoMethodError: undefined method `gsub' for false:FalseClass
Advertisement
Add Comment
Please, Sign In to add comment