【发布时间】:2018-12-03 11:16:14
【问题描述】:
我正在尝试在代理服务器(已使用 charles 代理配置)后面使用 Vagrant (1.8.1) 和 Virtualbox (5.0) 运行 kitchen-converge/test。
我要么在运行厨房测试时挂断,要么在运行厨房融合时连接被拒绝。
我已经发布了我的配置和日志文件,包括错误。我正在使用 berkshelf、test-kitchen 和 proxyconf,因为有代理服务器。
任何人都可以就可能缺少什么以及导致此错误发生以及如何解决它提出建议。
配置和日志文件:
kitchen.yml
driver:
name: vagrant
customize:
natdnshostresolver1: "on"
network:
- ["forwarded_port", { guest: 81, host: 8082 }]
- ["forwarded_port", { guest: 80, host: 8087 }]
provisioner:
chef_omnibus_url: http://www.chef.io/chef/install.sh
name: chef_zero
platforms:
- name: centos-6.7
suites:
- name: default
run_list:
- recipe[chef-boxtest::default]
attributes:
流浪文件
if Vagrant.has_plugin?("vagrant-proxyconf")
config.proxy.http = "http://proxy.abc.com:8099"
config.proxy.https = "https://proxy.abc.com:8099"
config.proxy.no_proxy = "localhost,127.0.0.1"
end
厨房测试
[SSH] Established
Vagrant instance <default-centos-67> created.
Finished creating <default-centos-67> (3m39.40s).
-----> Converging <default-centos-67>...
Preparing files for transfer
Preparing dna.json
Resolving cookbook dependencies with Berkshelf 4.3.1...
Removing non-cookbook files before transfer
Preparing validation.pem
Preparing client.rb
-----> Installing Chef Omnibus (install only if missing)
Downloading http://www.chef.io/chef/install.sh to file /tmp/install.sh
Trying wget...
厨房融合
[SSH] connection failed, retrying in 1 seconds (#<Errno::ECONNREFUSED: Connection refused - connect(2) for 127.0.0.1:2222>)
[SSH] connection failed, retrying in 1 seconds (#<Errno::ECONNREFUSED: Connection refused - connect(2) for 127.0.0.1:2222>)
$$$$$$ [SSH] connection failed, terminating (#<Errno::ECONNREFUSED: Connection refused - connect(2) for 127.0.0.1:2200>)
>>>>>> Converge failed on instance <default-ubuntu-1204>.
【问题讨论】:
标签: vagrant chef-infra test-kitchen