[chef] Re: Re: RE: Re: Problem with knife-windows with chef-client 0.10.2


Chronological Thread 
  • From: Dave Sykes < >
  • To: " " < >
  • Subject: [chef] Re: Re: RE: Re: Problem with knife-windows with chef-client 0.10.2
  • Date: Wed, 6 Jul 2011 22:04:42 +0100
  • Accept-language: en-US
  • Acceptlanguage: en-US

Hi Seth,

Fantastic, thank you, I'll check this out in the morning and let you know if 
that fixes it.
Thanks for your help

Regards

Dave

Sent from my iPad

On 6 Jul 2011, at 18:24, "Seth Chisamore" 
< >
 wrote:

> Dave,
> I've been able to recreate the issue. It appears a newer version of savon, 
> a dependency of the upstream WinRM gem, is causing the issue.
> 
> I've opened a ticket in the KNIFE_WINDOWS project [0] and the upstream 
> WinRM gem [1]. Current quick fix is to just downgrade the savon gem to 
> version 0.9.2:
> 
> gem uninstall savon
> gem install savon -v 0.9.2
> 
> Sorry for the inconvenience.
> 
> Seth
> 
> --
> Opscode, Inc.
> Seth Chisamore, Senior Technical Evangelist
> IRC, Skype, Twitter, Github: schisamo
> 
> 
> [0] http://tickets.opscode.com/browse/KNIFE_WINDOWS-7
> [1] https://github.com/zenchild/WinRM/issues/11
> 
> On Wednesday, July 6, 2011 at 10:13 AM, Dave Sykes wrote:
> 
>> Hi Seth,
>
>> Thanks for your very prompt reply.
>
>> Yes, this is the same under both Ubuntu (11.04) and Windows 7 (x64). The 
>> target machine (10.0.1.123) is a newly deployed windows 2008 R2 machine 
>> that I set up just for this task, so hopefully shouldn't have anything 
>> strange on it.
>
>> Here is the output from Ubuntu
>
>:~/chef-repo$
>>  knife bootstrap windows winrm 10.0.1.123 -r 'role[testserver]' -x 
>> Administrator -P <secret password replaced>' -VV
>> DEBUG: Using configuration from /home/chef/chef-repo/.chef/knife.rb
>> Bootstrapping Chef on 10.0.1.123
>> DEBUG: Looking for bootstrap template in 
>> /home/chef/.rvm/gems/ruby-1.9.2-p180/gems/knife-windows-0.5.3/lib/chef/knife/mixin/windows/bootstrap
>> DEBUG: Looking for bootstrap template in 
>> /home/chef/chef-repo/.chef/bootstrap
>> DEBUG: Looking for bootstrap template in /home/chef/.chef/bootstrap
>> DEBUG: Looking for bootstrap template in 
>> /home/chef/.rvm/gems/ruby-1.9.2-p180/gems/knife-windows-0.5.3/lib/chef/knife/bootstrap
>> DEBUG: Found bootstrap template in 
>> /home/chef/.rvm/gems/ruby-1.9.2-p180/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
>> /home/chef/.rvm/gems/ruby-1.9.2-p180/gems/savon-0.9.5/lib/savon/soap/xml.rb:64:in
>>  `env_namespace': undefined method `env_namespace' for Savon:Module 
>> (NoMethodError)
>> from 
>> /home/chef/.rvm/gems/ruby-1.9.2-p180/gems/savon-0.9.5/lib/savon/soap/xml.rb:73:in
>>  `namespaces'
>> from 
>> /home/chef/.rvm/gems/ruby-1.9.2-p180/gems/winrm-1.0.1/lib/winrm/winrm_service.rb:72:in
>>  `open_shell'
>> from 
>> /home/chef/.rvm/gems/ruby-1.9.2-p180/gems/em-winrm-0.0.5/lib/em-winrm/shell.rb:29:in
>>  `initialize'
>> from 
>> /home/chef/.rvm/gems/ruby-1.9.2-p180/gems/em-winrm-0.0.5/lib/em-winrm/server.rb:48:in
>>  `new'
>> from 
>> /home/chef/.rvm/gems/ruby-1.9.2-p180/gems/em-winrm-0.0.5/lib/em-winrm/server.rb:48:in
>>  `block (2 levels) in run_command'
>> from 
>> /home/chef/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-1.0.0.beta.3/lib/eventmachine.rb:1009:in
>>  `call'
>> from 
>> /home/chef/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-1.0.0.beta.3/lib/eventmachine.rb:1009:in
>>  `block in spawn_threadpool'
>
>> Regards,
>
>> Dave Sykes
>> Head of Engineering
>> +44 (0)1252 740721
>
>> -----Original Message-----
>> From: Seth Chisamore 
>> [mailto:
>> Sent: 06 July 2011 14:36
>> To: 
>
>>  
>> (mailto: )
>> Subject: [chef] Re: Problem with knife-windows with chef-client 0.10.2
>
>> I haven't heard any reports of knife-windows not working correctly under 
>> Chef 0.10.2. I'll actually be doing some windows related stuff later today 
>> so I'll try to recreate your bug under Chef 0.10.2.
>
>> Just to verify, you see the same exception (`env_namespace': undefined 
>> method `env_namespace' for Savon:Module) when bootstrapping from an Ubuntu 
>> and Windows machine? Can you also do a 'gem list' on the workstation in 
>> question please? The exception appears to be coming from an upstream gem.
>
>> Seth
>
>> --
>> Opscode, Inc.
>> Seth Chisamore, Senior Technical Evangelist
>> IRC, Skype, Twitter, Github: schisamo
>
>
>> On Wednesday, July 6, 2011 at 6:43 AM, Dave Sykes wrote:
>
>>> 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
>>> Head of Engineering
>>> +44 (0)1252 740721
>>> 
>>> 
>>> 
>>> 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
>
>
>
>> 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
> 
> 

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.

§