chef test-kitchen Could not load the 'vagrant' driver from the load path 问题解决

今天使用chef 的kitchen,运行kitchen list 发现了如下错误:

>>>>>> ------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

解决过程:
首先进行github 搜索,发现类似的问题,但是已经很早了2015年的issue
尝试过使用此方法进行解决但是没有作用
google 搜索到另外一个解决方案:stackoverflow
发现使用此方法可以chef exec kitchen list

说明

此问题还会有一个原因是vagrant 没有安装引起的

参考资料

https://github.com/test-kitchen/kitchen-vagrant/issues/164
https://stackoverflow.com/questions/39677365/could-not-load-the-vagrant-driver-from-the-load-path-kitchen-cannot-find-kitc

原文地址:https://www.cnblogs.com/rongfengliang/p/11134453.html