Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kitchen list failing #379

Closed
joestump opened this issue Mar 7, 2014 · 5 comments
Closed

kitchen list failing #379

joestump opened this issue Mar 7, 2014 · 5 comments

Comments

@joestump
Copy link

joestump commented Mar 7, 2014

Joes-MacBook-Air:sprint.ly jstump$ bundle exec kitchen list
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ShellOut::ShellCommandFailed
>>>>>> Message: Expected process to exit with [0], but received '1'
---- Begin output of vagrant --version ----
STDOUT: 
STDERR: /Users/jstump/Dropbox/jstump/dev/sprint.ly/Vagrantfile:3:in `<top (required)>': undefined method `require_plugin' for Vagrant:Module (NoMethodError)
    from /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/gems/vagrant-0.5.4/lib/vagrant/environment.rb:198:in `load'
    from /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/gems/vagrant-0.5.4/lib/vagrant/environment.rb:198:in `block in load_config!'
    from /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/gems/vagrant-0.5.4/lib/vagrant/environment.rb:196:in `each'
    from /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/gems/vagrant-0.5.4/lib/vagrant/environment.rb:196:in `load_config!'
    from /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/gems/vagrant-0.5.4/lib/vagrant/environment.rb:139:in `load!'
    from /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/gems/vagrant-0.5.4/lib/vagrant/environment.rb:35:in `load!'
    from /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/gems/vagrant-0.5.4/lib/vagrant/command.rb:12:in `execute'
    from /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/gems/vagrant-0.5.4/bin/vagrant:7:in `<top (required)>'
    from /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/bin/vagrant:23:in `load'
    from /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/bin/vagrant:23:in `<main>'
---- End output of vagrant --version ----
Ran vagrant --version returned 1
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details

My kitchen.yml file:


---
driver:
  name: vagrant

provisioner:
  name: chef_solo
  require_chef_omnibus: 11.10.0
  node_name: app
  environment_path: chef/environments
  role_path: chef/roles
  data_bag_path: chef/data_bags

platforms:
  - name: ubuntu-12.04

suites:
  - name: app
    run_list:
      - recipe[memcached]
      - recipe[mysql::client]
      - recipe[mysql::server]
      - role[vagrant_node]  
    attributes:
      SPRINTLY_ENV: DEVELOPMENT
      memcached:
        memory: 8
        listen: 127.0.0.1
      mysql:
        server_root_password: secret
        server_debian_password: secret
        server_repl_password: secret
        bind_address: 127.0.0.1

Looks like a Vagrant issue running in a bundle?

---- End output of vagrant --version ----
Ran vagrant --version returned 1
E, [2014-03-06T17:34:52.318053 #11133] ERROR -- Kitchen: ---Nested Exception---
E, [2014-03-06T17:34:52.318072 #11133] ERROR -- Kitchen: Class: Mixlib::ShellOut::ShellCommandFailed
E, [2014-03-06T17:34:52.318087 #11133] ERROR -- Kitchen: Message: Expected process to exit with [0], but received '1'
---- Begin output of vagrant --version ----
STDOUT:
STDERR: /Users/jstump/Dropbox/jstump/dev/sprint.ly/Vagrantfile:3:in `<top (required)>': undefined method `require_plugin' for Vagrant:Module (NoMethodError)
    from /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/gems/vagrant-0.5.4/lib/vagrant/environment.rb:198:in `load'
    from /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/gems/vagrant-0.5.4/lib/vagrant/environment.rb:198:in `block in load_config!'
    from /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/gems/vagrant-0.5.4/lib/vagrant/environment.rb:196:in `each'
    from /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/gems/vagrant-0.5.4/lib/vagrant/environment.rb:196:in `load_config!'
    from /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/gems/vagrant-0.5.4/lib/vagrant/environment.rb:139:in `load!'
    from /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/gems/vagrant-0.5.4/lib/vagrant/environment.rb:35:in `load!'
    from /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/gems/vagrant-0.5.4/lib/vagrant/command.rb:12:in `execute'
    from /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/gems/vagrant-0.5.4/bin/vagrant:7:in `<top (required)>'
    from /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/bin/vagrant:23:in `load'
    from /usr/local/Cellar/ruby/2.0.0-p353/lib/ruby/gems/2.0.0/bin/vagrant:23:in `<main>'
---- End output of vagrant --version ----
@joestump
Copy link
Author

joestump commented Mar 7, 2014

Sorry for the misfire. Looks like my upgrade to Mavericks fucked my Vagrant install. I wish someone could explain to me why OS X ships with Vagrant 0.5.4.

@joestump joestump closed this as completed Mar 7, 2014
@sethvargo
Copy link
Contributor

OSX ships with Vagrant?

@joestump
Copy link
Author

joestump commented Mar 7, 2014

Near as I can tell. This issue has bitten me twice now. I filed an issue with more details on the vagrant repo. Mitch might know more.

I just upgraded to Mavericks today and the issue popped back up.

@damm
Copy link

damm commented Mar 7, 2014

Dumb thought; vagrant used to be shipped as a gem. Possible you have it still installed as a gem as well as the new way?

@juliandunn
Copy link

Based on the paths in the output above @joestump it looks like you have an old Vagrant gem installed into your Homebrew's Ruby.

@test-kitchen test-kitchen locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants