Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ ruby --version
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin16]

$ bundle list | grep kitchen
  * kitchen-ansible (0.45.9)
  * kitchen-vagrant (1.0.1)
  * test-kitchen (1.15.0)

$ 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

$ bundle exec kitchen diagnose --all
---
timestamp: 2017-02-13 14:15:21 UTC
kitchen_version: 1.15.0
plugins:
  error:
    exception: "#<Kitchen::ClientError: 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.>"
    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.
    backtrace:
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/driver.rb:48:in
      `rescue in for_plugin'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/driver.rb:38:in
      `for_plugin'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/config.rb:233:in
      `new_driver'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/config.rb:246:in
      `new_instance'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/config.rb:142:in
      `block in build_instances'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/config.rb:141:in
      `map'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/config.rb:141:in
      `with_index'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/config.rb:141:in
      `build_instances'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/config.rb:117:in
      `instances'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/command.rb:112:in
      `filtered_instances'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/command.rb:142:in
      `parse_subcommand'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/command/diagnose.rb:53:in
      `load_instances'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/command/diagnose.rb:32:in
      `block in call'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/command/diagnose.rb:73:in
      `record_failure'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/command/diagnose.rb:32:in
      `call'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/cli.rb:53:in
      `perform'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/cli.rb:143:in
      `diagnose'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/thor-0.19.4/lib/thor/command.rb:27:in
      `run'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in
      `invoke_command'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/cli.rb:334:in
      `invoke_task'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/thor-0.19.4/lib/thor.rb:369:in
      `dispatch'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/thor-0.19.4/lib/thor/base.rb:444:in
      `start'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/bin/kitchen:13:in
      `block in <top (required)>'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/errors.rb:171:in
      `with_friendly_errors'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/bin/kitchen:13:in
      `<top (required)>'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/bin/kitchen:22:in
      `load'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/bin/kitchen:22:in
      `<top (required)>'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/cli/exec.rb:74:in
      `load'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/cli/exec.rb:74:in
      `kernel_load'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/cli/exec.rb:27:in
      `run'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/cli.rb:335:in
      `exec'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in
      `run'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in
      `invoke_command'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/vendor/thor/lib/thor.rb:359:in
      `dispatch'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/cli.rb:20:in
      `dispatch'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/vendor/thor/lib/thor/base.rb:440:in
      `start'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/cli.rb:11:in
      `start'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/exe/bundle:32:in
      `block in <top (required)>'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/friendly_errors.rb:121:in
      `with_friendly_errors'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/exe/bundle:24:in
      `<top (required)>'"
    - "$HOME/.rbenv/versions/2.3.3/bin/bundle:22:in `load'"
    - "$HOME/.rbenv/versions/2.3.3/bin/bundle:22:in `<main>'"
loader:
  process_erb: true
  process_local: true
  process_global: true
  global_config: 
  project_config:
    filename: "path/to/repo/.kitchen.yml"
    raw_data:
      driver:
        name: vagrant
      provisioner:
        name: ansible_playbook
        roles_path: roles
        hosts: tokyo-2-webservers
        ansible_verbose: true
        ansible_version: latest
      platforms:
      - name: centos-7.2
      suites:
      - name: ansible
        verifier:
          patterns:
          - test/integration/ansible/serverspec/common_spec.rb
  local_config: 
  combined_config:
    filename: 
    raw_data:
      driver:
        name: vagrant
      provisioner:
        name: ansible_playbook
        roles_path: roles
        hosts: tokyo-2-webservers
        ansible_verbose: true
        ansible_version: latest
      platforms:
      - name: centos-7.2
      suites:
      - name: ansible
        verifier:
          patterns:
          - test/integration/ansible/serverspec/common_spec.rb
instances:
  error:
    exception: "#<Kitchen::ClientError: 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.>"
    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.
    backtrace:
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/driver.rb:48:in
      `rescue in for_plugin'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/driver.rb:38:in
      `for_plugin'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/config.rb:233:in
      `new_driver'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/config.rb:246:in
      `new_instance'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/config.rb:142:in
      `block in build_instances'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/config.rb:141:in
      `map'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/config.rb:141:in
      `with_index'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/config.rb:141:in
      `build_instances'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/config.rb:117:in
      `instances'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/command.rb:112:in
      `filtered_instances'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/command.rb:142:in
      `parse_subcommand'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/command/diagnose.rb:53:in
      `load_instances'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/command/diagnose.rb:32:in
      `block in call'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/command/diagnose.rb:73:in
      `record_failure'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/command/diagnose.rb:32:in
      `call'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/cli.rb:53:in
      `perform'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/cli.rb:143:in
      `diagnose'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/thor-0.19.4/lib/thor/command.rb:27:in
      `run'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in
      `invoke_command'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/cli.rb:334:in
      `invoke_task'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/thor-0.19.4/lib/thor.rb:369:in
      `dispatch'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/thor-0.19.4/lib/thor/base.rb:444:in
      `start'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/bin/kitchen:13:in
      `block in <top (required)>'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/lib/kitchen/errors.rb:171:in
      `with_friendly_errors'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/gems/test-kitchen-1.15.0/bin/kitchen:13:in
      `<top (required)>'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/bin/kitchen:22:in
      `load'"
    - "path/to/repo/vendor/bundle/ruby/2.3.0/bin/kitchen:22:in
      `<top (required)>'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/cli/exec.rb:74:in
      `load'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/cli/exec.rb:74:in
      `kernel_load'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/cli/exec.rb:27:in
      `run'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/cli.rb:335:in
      `exec'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in
      `run'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in
      `invoke_command'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/vendor/thor/lib/thor.rb:359:in
      `dispatch'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/cli.rb:20:in
      `dispatch'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/vendor/thor/lib/thor/base.rb:440:in
      `start'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/cli.rb:11:in
      `start'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/exe/bundle:32:in
      `block in <top (required)>'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/friendly_errors.rb:121:in
      `with_friendly_errors'"
    - "$HOME/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.14.3/exe/bundle:24:in
      `<top (required)>'"
    - "$HOME/.rbenv/versions/2.3.3/bin/bundle:22:in `load'"
    - "$HOME/.rbenv/versions/2.3.3/bin/bundle:22:in `<main>'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.