【问题标题】:Could not load the 'vagrant' driver from the load path Test Kitchen, downloading new versions doesn't work无法从加载路径 Test Kitchen 加载“vagrant”驱动程序,无法下载新版本
【发布时间】:2020-03-16 06:35:13
【问题描述】:

当我尝试在终端上运行 kitchen test 时,我受到了欢迎

>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ClientError
>>>>>> Message: Could not load the 'vagrant' driver from the load path. Did you mean: dummy, exec, proxy ? Please ensure that your driver is installed as a gem or included in your Gemfile if using Bundler.
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

我发现了一个 git 问题,说厨房流浪汉要回滚到 0.16.0,所以我做了,但这并没有改变任何东西。我安装了最新版本的 kitchen-vagrant gem,得到了这个:

>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ShellOut::ShellCommandFailed
>>>>>> Message: Expected process to exit with [0], but received '1'
---- Begin output of vagrant --version ----
STDOUT: 
STDERR: Thanks for wanting to use Vagrant! Unfortunately, this is not the way
to install Vagrant anymore. We now make installers for the various operating
systems Vagrant supports.

Vagrant is no longer distributed as a RubyGem. Please download the latest
version for your operating system from the URL below. If you still wish
to use the RubyGem version, you can manually install version 1.0.7. Note that
the RubyGem version hasn't been updated in over a year and will no longer
receive any updates.

Prior to installing Vagrant using the installer, make sure you uninstall
all your Vagrant gems, since they sometimes conflict.

http://www.vagrantup.com

If you want to learn more about why we don't distribute using RubyGems
anymore, please read this: http://mitchellh.com/abandoning-rubygems
---- End output of vagrant --version ----
Ran vagrant --version returned 1
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

然后我去了 vagrants 网站,下载了安装程序,安装了它,删除了所有的 gem,然后再次运行它,我又遇到了第一个错误。

【问题讨论】:

  • 你在用捆绑器经营厨房吗?

标签: vagrant yaml chef-infra knife test-kitchen


【解决方案1】:

当我在~/chef-repo/cookbooks/mycookbook 目录中运行“kitchen create”时,我遇到了同样的错误。

我通过在我的 macOS 终端窗口中运行以下命令解决了这个问题。

$ gem install kitchen-vagrant

(如果需要,将sudo 添加到命令中。)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-07-24
    • 2013-05-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-11
    • 2020-10-27
    • 2013-03-03
    相关资源
    最近更新 更多