Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

kitchen-vagrant missing when installing chef-dk from dmg #15

Closed
mansona opened this issue Apr 21, 2014 · 17 comments
Closed

kitchen-vagrant missing when installing chef-dk from dmg #15

mansona opened this issue Apr 21, 2014 · 17 comments
Labels
Aspect: Documentation How do we use this project?
Milestone

Comments

@mansona
Copy link

mansona commented Apr 21, 2014

Hi folks,

I hope this is the right place to post this: I've installed the dev kit from the dmg found here: http://www.getchef.com/downloads/chef-dk/mac/ version 0.0.1-1 and it was complaining with this error message:

-----> Starting Kitchen (v1.2.1)
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ClientError
>>>>>> Message: Could not load the 'vagrant' driver from the load path. 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

I got some advice from the #chef irc channel and they said that I should install the gem using chef gem install kitchen-vagrant and it worked

I would submit a PR to add it as dependency but i have no idea how to do that, I'm not a ruby guy.

@sethvargo
Copy link

I'm not sure we want to get in the business of managing all the Kitchen plugins, but kitchen-vagrant definitely sounds like it should be included, since it's the "minimum viable pathway".

@danielsdeleo
Copy link
Contributor

chef gem is now documented in the README, and kitchen-vagrant is included with ChefDK by default as of this commit: chef/omnibus-software@98b0838 We've built a new package with this fix and will be announcing it and updating the install page soon.

@danielsdeleo danielsdeleo added this to the 0.1.0 milestone Apr 29, 2014
@yohei1126
Copy link

This issue still happens on Chef-DK.
I tested this with Chef-DK 0.4.0, Mac OS X 10.10.3.
Here is the process I tested.

  1. install Chef-DK 0.4.0 on MacOSX 10.10.3
  2. execute the command: eval "$(chef shell-init zsh)"'
  3. kitchen init
    Then I got this message:
------Exception-------
Class: Kitchen::ClientError
Message: Could not load the 'vagrant' driver from the load path. 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

But If I do "kitchen init" without eval "$(chef shell-init zsh)"' . It works fine.

@luismsousa
Copy link

I'm having this error but in Windows running the chef-mongodb public git project

$ kitchen list
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ClientError
>>>>>> Message: Could not load the 'vagrant' driver from the load path. 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

I have Vagrant installed and working:

$ vagrant -v
Vagrant 1.7.2

any tips?

@jaym
Copy link
Contributor

jaym commented Apr 30, 2015

can you paste the contents of .kitchen/logs/kitchen.log

@luismsousa
Copy link

E, [2015-04-30T14:51:54.891640 #5904] ERROR -- Kitchen: ------Exception-------
E, [2015-04-30T14:51:54.891640 #5904] ERROR -- Kitchen: Class: Kitchen::ClientError
E, [2015-04-30T14:51:54.891640 #5904] ERROR -- Kitchen: Message: Could not load the 'vagrant' driver from the load path. Please ensure that your driver is installed as a gem or included in your Gemfile if using Bundler.
E, [2015-04-30T14:51:54.891640 #5904] ERROR -- Kitchen: ---Nested Exception---
E, [2015-04-30T14:51:54.891640 #5904] ERROR -- Kitchen: Class: NoMethodError
E, [2015-04-30T14:51:54.891640 #5904] ERROR -- Kitchen: Message: undefined method `kitchen_driver_api_version' for Kitchen::Driver::Vagrant:Class
E, [2015-04-30T14:51:54.891640 #5904] ERROR -- Kitchen: ------Backtrace-------
E, [2015-04-30T14:51:54.891640 #5904] ERROR -- Kitchen: c:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/driver.rb:50:in `rescue in for_plugin'
E, [2015-04-30T14:51:54.891640 #5904] ERROR -- Kitchen: c:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/driver.rb:40:in `for_plugin'
E, [2015-04-30T14:51:54.891640 #5904] ERROR -- Kitchen: c:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/config.rb:226:in `new_driver'
E, [2015-04-30T14:51:54.891640 #5904] ERROR -- Kitchen: c:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/config.rb:240:in `new_instance'
E, [2015-04-30T14:51:54.891640 #5904] ERROR -- Kitchen: c:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/config.rb:129:in `block in build_instances'
E, [2015-04-30T14:51:54.891640 #5904] ERROR -- Kitchen: c:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/config.rb:128:in `map'
E, [2015-04-30T14:51:54.891640 #5904] ERROR -- Kitchen: c:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/config.rb:128:in `with_index'
E, [2015-04-30T14:51:54.891640 #5904] ERROR -- Kitchen: c:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/config.rb:128:in `build_instances'
E, [2015-04-30T14:51:54.891640 #5904] ERROR -- Kitchen: c:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/config.rb:104:in `instances'
E, [2015-04-30T14:51:54.891640 #5904] ERROR -- Kitchen: c:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/command.rb:115:in `filtered_instances'
E, [2015-04-30T14:51:54.891640 #5904] ERROR -- Kitchen: c:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/command.rb:145:in `parse_subcommand'
E, [2015-04-30T14:51:54.891640 #5904] ERROR -- Kitchen: c:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/command/list.rb:32:in `call'
E, [2015-04-30T14:51:54.891640 #5904] ERROR -- Kitchen: c:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/cli.rb:56:in `perform'
E, [2015-04-30T14:51:54.891640 #5904] ERROR -- Kitchen: c:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/cli.rb:97:in `list'
E, [2015-04-30T14:51:54.891640 #5904] ERROR -- Kitchen: c:/opscode/chefdk/embedded/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
E, [2015-04-30T14:51:54.891640 #5904] ERROR -- Kitchen: c:/opscode/chefdk/embedded/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
E, [2015-04-30T14:51:54.901641 #5904] ERROR -- Kitchen: c:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/cli.rb:304:in `invoke_task'
E, [2015-04-30T14:51:54.901641 #5904] ERROR -- Kitchen: c:/opscode/chefdk/embedded/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
E, [2015-04-30T14:51:54.901641 #5904] ERROR -- Kitchen: c:/opscode/chefdk/embedded/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
E, [2015-04-30T14:51:54.901641 #5904] ERROR -- Kitchen: c:/opscode/chefdk/embedded/apps/test-kitchen/bin/kitchen:13:in `block in <top (required)>'
E, [2015-04-30T14:51:54.901641 #5904] ERROR -- Kitchen: c:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/errors.rb:154:in `with_friendly_errors'
E, [2015-04-30T14:51:54.901641 #5904] ERROR -- Kitchen: c:/opscode/chefdk/embedded/apps/test-kitchen/bin/kitchen:13:in `<top (required)>'
E, [2015-04-30T14:51:54.901641 #5904] ERROR -- Kitchen: c:/opscode/chefdk/bin/kitchen:20:in `load'
E, [2015-04-30T14:51:54.901641 #5904] ERROR -- Kitchen: c:/opscode/chefdk/bin/kitchen:20:in `<main>'
E, [2015-04-30T14:51:54.901641 #5904] ERROR -- Kitchen: ----------------------

@jaym
Copy link
Contributor

jaym commented Apr 30, 2015

what does chef gem list kitchen-vagrant

@luismsousa
Copy link

$ chef gem list kitchen-vagrant

*** LOCAL GEMS ***

kitchen-vagrant (0.17.0, 0.15.0)

@jaym
Copy link
Contributor

jaym commented Apr 30, 2015

Do chef gem uninstall kitchen-vagrant -v 0.17.0
@fnichol i think kitchen-vagrant 0.17.0 might be incompatible with test-kitchen < 1.4

@luismsousa
Copy link

That solved it! Thank you so much!

@dmitris
Copy link

dmitris commented Jul 2, 2015

Thanks - fixed it for me as well - had to do chef gem uninstall kitchen-vagrant -v 0.18.0 (using Test Kitchen version 1.2.1 from Chef Development Kit Version: 0.4.0)

@gracco
Copy link

gracco commented Sep 7, 2015

Thanks man, works for me too. Solved! I had to execute a chef gem uninstall kitchen-vagrant -v 0.17.0 (using Test Kitchen version 1.2.1 from Chef Development Kit Version: 0.4)

@chaim1221
Copy link

I am still getting this error on Ubuntu 15.04 from the chef-dk. Tried uninstalling kitchen-vagrant@0.19.0 and installing v0.15.0 without success. This is annoying.

@chaim1221
Copy link

@0.16.0 worked.

@passioncoder
Copy link

on osx, 0.19.0 fails too. 0.16.0 works fine, thx @chaim1221!

@michael-peck
Copy link

On Ubuntu 15.04 from the chefdk this always happens no matter what version of kitchen-vagrant I install.

@ocervell
Copy link

Got this error with all version of kitchen-vagrant on osx.
$ chef -v
Chef Development Kit Version: 0.6.2
chef-client version: 12.3.0
berks version: 3.2.4
kitchen version: 1.5.0

Here is kitchen.log:
kitchen.txt

(EDIT: Updating chefdk to 0.10 worked. Problem is we are using 0.6 at the company ...)

@chef-boneyard chef-boneyard locked and limited conversation to collaborators Jan 26, 2016
@tas50 tas50 added Aspect: Documentation How do we use this project? and removed Type: Documentation labels Jan 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Aspect: Documentation How do we use this project?
Development

No branches or pull requests