Details
-
Type:
Bug
-
Status:
Fix Provided
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: windows-0.5.8
-
Fix Version/s: None
-
Component/s: knife-windows
-
Environment:
Target Node: Windows Server 2008 R2 STD. Knife Management Station: chef-0.10.8, knife-0.10.8, knife-windows-0.5.8
Description
- Able to reproduce by setting PATH=%PATH%:%SYSTEMROOT%\My Stuff (x64)\VMWare before the SSH bootstrap
- Able to fix by setting PATH=%PATH%;%SYSTEMROOT%\"My Stuff (x64)"\VMWare after the first failure, deleting C:\chef and C:\opscode, and rerunning the bootstrap
- Error Output
The error looked like the following
"Rendering 'C:\Users\Opscode\AppData\Local\Temp\bootstrap-42826-1331164944.bat'
chunk 5" ad 412 bytes\VMWare was unexpected at this time.
C:\Users\Opscode>mkdir C:\chef
C:\Users\Users\Opscode>(
echo.url = WScript.Arguments.Named("url")
echo.path = WScript.Arguments.Named("path")
echo.Set objXMLHTTP = CreateObject("MSXML2.ServerXMLHTTP")
echo.Set wshShell = CreateObject( "WScript.Shell" )
echo.Set objUserVariables = wshShell.Environment("USER")
echo.
echo.'http proxy is optional
echo.'attempt to read from HTTP_PROXY env var first
echo.On Error Resume Next
echo.
echo.If NOT (objUserVariables("HTTP_PROXY") = "") Then
echo.objXMLHTTP.setProxy 2, objUserVariables("HTTP_PROXY")
echo.
echo.'fall back to named arg
echo.ElseIf NOT (WScript.Arguments.Named("proxy") = "") Then
echo.objXMLHTTP.setProxy 2, WScript.Arguments.Named("proxy")
echo.End If
echo.ef/install.msi /path:C:\ /qb /i C:\Users\Opscode\AppData\Local\Temp\chef-client-
C:\Users\Opscode>
sean@Seans-MacBook-Pro ~/src/ocs/sean-horn-opscode [master>] $
- So, the problem appears to be happening between the call to render_template from create_bootstrap_bat_command and the call to run_command(bootstrap_command).run from bootstrap
All of these methods are in https://github.com/opscode/knife-windows/lib/chef/knife/bootstrap_windows_base.rb.
render_template appears to complete successfully because the BAT file is produced on the bootstrapping node
https://github.com/opscode/knife-windows/pull/15