【问题标题】:knife bootstrap windows winrm timeout issue刀引导windows winrm超时问题
【发布时间】:2014-07-10 01:50:03
【问题描述】:

我试图通过刀架空间服务器创建构建 Windows 机器,但是,我遇到了超时问题,它只是有点不够长,无法等待它从远程节点得到响应。

这是增加超时的方法吗?

非常感谢。

下面是我得到时差的结果,1.刀架空间服务器创建; 2.刀引导

   Waiting server
   Public DNS Name: 119.9.13.107.xip.io
   Public IP Address: 119.9.13.107
   Private IP Address: 10.176.4.151
   Password: E5yQwJTuo94e
   Metadata: []

   Waiting for winrm
   Waiting for remote response before bootstrap.ERROR: No response received from remote node after 1.01 minutes, giving up.
   ERROR: RuntimeError: Command execution failed.

顺便说一句,winrm 安装在 windows 模板映像上。

  ± % knife bootstrap -VVV windows winrm "119.9.13.107" -r "recipe[windows_nps],recipe[windows_dhcp],recipe[passthrough_monitor]" -x "autotest\\qa" -P "GibesG9eSEG"
   WARNING: Could not load IOV methods. Check your GSSAPI C library for an update
   WARNING: Could not load AEAD methods. Check your GSSAPI C library for an update

   Waiting for remote response before bootstrap.DEBUG: Adding 119.9.13.107
   DEBUG: :session => :init
   DEBUG: :relay_to_servers => echo . & echo Response received.
   DEBUG: :relayed => 119.9.13.107
   DEBUG: 119.9.13.107 => :run_command
   DEBUG: 119.9.13.107[C2E316A7-E69E-4099-A3B3-3F35B384CBD1] => :shell_open
   DEBUG: 119.9.13.107[C2E316A7-E69E-4099-A3B3-3F35B384CBD1] => :run_command[echo . & echo        Response received.]
   DEBUG: :relay_output_from_backend => ["119.9.13.107", ". \r\n"]
   119.9.13.107 .
   DEBUG: :relay_output_from_backend => ["119.9.13.107", "Response received.\r\n"]
   119.9.13.107 Response received.
   DEBUG: 119.9.13.107[C2E316A7-E69E-4099-A3B3-3F35B384CBD1] => :command_cleanup[echo . & echo Response received.]
   DEBUG: 119.9.13.107[C2E316A7-E69E-4099-A3B3-3F35B384CBD1] => :shell_close
   DEBUG: :command_complete => 119.9.13.107 with return code 0
   DEBUG: command complete on 119.9.13.107
   DEBUG: command complete on All Servers
   DEBUG: :unbind => :connection
   DEBUG: 119.9.13.107 => :unbind
   DEBUG: :unbind_backend => 119.9.13.107
   DEBUG: :session => :close
   Remote node responded after 1.08 minutes.
   Bootstrapping Chef on 119.9.13.107

【问题讨论】:

  • winrm 设置 winrm/config @{MaxTimeoutms="1800000"}
  • 我已经做到了。你认为它需要更长一点吗?说2500000?
  • 看着这些“1.01分钟后没有收到来自远程节点的响应,放弃。”和“远程节点在 1.08 分钟后响应。”我不认为与winrm有任何关系。

标签: chef-infra rackspace knife winrm


【解决方案1】:

Knife-rackspace 在任何有趣的工作之前执行 TCP 检查。我的猜测是,即使 WinRM 正在工作,您也会挂断 TCP 检查:

https://github.com/opscode/knife-rackspace/blob/master/lib/chef/knife/rackspace_server_create.rb#L315

我最近提交了一个补丁来添加一个禁用 TCP 检查 SSH 的选项,但您可能想在 Windows 上尝试类似的操作,特别是如果您是从有很多访问限制的网络执行此操作时:

https://github.com/opscode/knife-rackspace/blob/master/lib/chef/knife/rackspace_server_create.rb#L170

希望这会有所帮助!

【讨论】:

  • 并且还找到了一个有用的地方。versions/2.1.1/lib/ruby/gems/2.1.0/gems/knife-windows-0.6.0/lib/chef/knife /bootstrap_windows_base.rb
猜你喜欢
  • 2013-06-02
  • 2016-12-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-03-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多