Hi Guys, I’ve just started in attempting to get chef working with Windows, and I’m not sure if this is the right place to post this kind of issue, if wrong, could you please redirect me to the correct forum. I had some success with an experiment using chef-client 0.10.0 and bootstrapping chef to a new node using knife-windows from an Ubuntu machine at home. I then went and replicated the setup at work, in both Ubuntu and Windows, but chef had now been upgraded to 0.10.2, and I am getting the following output when I try and bootstrap another machine. C:\chef-repo>knife bootstrap windows winrm 10.0.1.123 -r 'role[testserver]' -x Administrator -P <secret password replaced>' -VV DEBUG: Using configuration from C:/chef-repo/.chef/knife.rb Bootstrapping Chef on 10.0.1.123 DEBUG: Looking for bootstrap template in C:/Ruby/Ruby192/lib/ruby/gems/1.9.1/gems/knife-windows-0.5.3/lib/chef/knife/mixin/windows/bootstrap DEBUG: Looking for bootstrap template in C:/chef-repo/.chef/bootstrap DEBUG: Looking for bootstrap template in C:/Users/dave.sykes/.chef/bootstrap DEBUG: Looking for bootstrap template in C:/Ruby/Ruby192/lib/ruby/gems/1.9.1/gems/knife-windows-0.5.3/lib/chef/knife/bootstrap DEBUG: Found bootstrap template in C:/Ruby/Ruby192/lib/ruby/gems/1.9.1/gems/knife-windows-0.5.3/lib/chef/knife/bootstrap DEBUG: Adding 10.0.1.123 DEBUG: :session => :init DEBUG: :relay_to_servers => cmd.exe /C echo "Rendering bootstrap.bat chunk 1" && >> %TEMP%\bootstrap.bat (
) && >> %TEMP%\bootstrap.bat (
Author:: Seth Chisamore ^(^<
>^)) && >> %TEMP%\bootstrap.bat (
Copyright:: Copyright ^(c^) 2011 Opscode, Inc.) && >> %TEMP%\bootstrap.bat (
License:: Apache License, Version 2.0) && >> %TEMP%\bootstrap.bat (
) && >> %TEMP%\bootstrap.bat (
Licensed under the Apache License, Version 2.0 ^(the "License"^);) && >> %TEMP%\bootstrap.bat (
you may not use this file except in compliance with the License.) && >> %TEMP%\bootstrap.bat (
You may obtain a copy of the License at) && >> %TEMP%\bootstrap.bat (
) && >> %TEMP%\bootstrap.bat (
http://www.apache.org/licenses/LICENSE-2.0) && >> %TEMP%\bootstrap.bat (
) && >> %TEMP%\bootstrap.bat (
Unless required by applicable law or agreed to in writing, software) && >> %TEMP%\bootstrap.bat (
distributed under the License is distributed on an "AS IS" BASIS,) && >> %TEMP%\bootstrap.bat (
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.) && >> %TEMP%\bootstrap.bat (
See the License for the specific language governing permissions and) && >> %TEMP%\bootstrap.bat (
limitations under the License.) && >> %TEMP%\bootstrap.bat (
) && >> %TEMP%\bootstrap.bat (echo.) && >> %TEMP%\bootstrap.bat (echo.) && >> %TEMP%\bootstrap.bat (echo.mkdir C:\chef) && >> %TEMP%\bootstrap.bat (echo.) && >> %TEMP%\bootstrap.bat (echo.^> C:\chef\wget.vbs ^() && >> %TEMP%\bootstrap.bat (echo.echo.url = "WScript.Arguments.Named^^^("url"^^^))" && >> %TEMP%\bootstrap.bat (echo.echo.path = WScript.Arguments.Named^^^("path"^^^)) && >> %TEMP%\bootstrap.bat (echo.echo.Set objXMLHTTP = CreateObject^^^("MSXML2.ServerXMLHTTP.6.0"^^^)) && >> %TEMP%\bootstrap.bat (echo.echo.Set wshShell = CreateObject^^^( "WScript.Shell" ^^^)) && >> %TEMP%\bootstrap.bat (echo.echo.Set objUserVariables = wshShell.Environment^^^("USER"^^^)) && >> %TEMP%\bootstrap.bat (echo.echo.) DEBUG: :relayed => 10.0.1.123 DEBUG: 10.0.1.123 => :run_command C:/Ruby/Ruby192/lib/ruby/gems/1.9.1/gems/savon-0.9.5/lib/savon/soap/xml.rb:64:in `env_namespace': undefined method `env_namespace' for Savon:Module (NoMethodErr or) from C:/Ruby/Ruby192/lib/ruby/gems/1.9.1/gems/savon-0.9.5/lib/savon/soap /xml.rb:73:in `namespaces' from C:/Ruby/Ruby192/lib/ruby/gems/1.9.1/gems/winrm-1.0.1/lib/winrm/winr m_service.rb:72:in `open_shell' from C:/Ruby/Ruby192/lib/ruby/gems/1.9.1/gems/em-winrm-0.0.5/lib/em-winr m/shell.rb:29:in `initialize' from C:/Ruby/Ruby192/lib/ruby/gems/1.9.1/gems/em-winrm-0.0.5/lib/em-winr m/server.rb:48:in `new' from C:/Ruby/Ruby192/lib/ruby/gems/1.9.1/gems/em-winrm-0.0.5/lib/em-winr m/server.rb:48:in `block (2 levels) in run_command' from C:/Ruby/Ruby192/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.0.beta.3- x86-mingw32/lib/eventmachine.rb:1009:in `call' from C:/Ruby/Ruby192/lib/ruby/gems/1.9.1/gems/eventmachine-1.0.0.beta.3- x86-mingw32/lib/eventmachine.rb:1009:in `block in spawn_threadpool' Anyone got any ideas, is it something that I have done wrong, or is knife-windows not yet compatible with 0.10.2 Regards, Dave Sykes The information contained in this e-mail is confidential. If you are not an intended recipient of this e-mail please notify the sender immediately and delete all copies from your system. You must not read, copy, distribute or take any further action in relation to or reliance on this e-mail. Elateral will not, to the extent permitted by the law, accept responsibility or liability for the timeliness, accuracy or completeness of this e-mail or any attachments to it (unless specifically stated) nor for the presence of any virus, worm or similar malicious or disabling code in it or in the attachments. Please be aware that e-mail is not a secure form of communication. Elateral Limited, Registered in England No. 3036315. Elateral House, Crosby Way, Farnham, Surrey GU9 7XX. VAT No. GB 742 577710 |
Archive powered by MHonArc 2.6.16.