berkshelf / vagrant-berkshelf

A Vagrant plugin to add Berkshelf integration to the Chef provisioners
Other
378 stars 100 forks source link

Error provisioning with 1.3.7 on Ubuntu 14.04 #192

Closed mikedep333 closed 10 years ago

mikedep333 commented 10 years ago

If I uninstall the vagrant-berkshelf plugin, this simple test succeeds.

I am running Ubuntu 14.04 64-bit.

mike@dropship-hv:~/ddh/duckpan-vagrant :( [66] $ vagrant plugin install vagrant-berkshelf
Installing the 'vagrant-berkshelf' plugin. This can take a few minutes...
Installed the plugin 'vagrant-berkshelf (1.3.7)'!
mike@dropship-hv:~/ddh/duckpan-vagrant :) [67] $ cd ..
mike@dropship-hv:~/ddh :) [68] $ cd 
duckpan-vagrant/          vagrant_1.6.0_x86_64.rpm  vagrant-test/             
mike@dropship-hv:~/ddh :) [68] $ sudo rm -r vagrant-test/
mike@dropship-hv:~/ddh :) [69] $ mkdir vagrant-test
mike@dropship-hv:~/ddh :) [70] $ cd vagrant-test/
mike@dropship-hv:~/ddh/vagrant-test :) [71] $ vagrant init hashicorp/precise32
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
mike@dropship-hv:~/ddh/vagrant-test :) [72] $ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
/home/DEPAULO/mike/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/env.rb:18:in `initialize': undefined method `scope' for #<Vagrant::UI::Colored:0x00000004cfbe90> (NoMethodError)
    from /home/DEPAULO/mike/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/action.rb:54:in `new'
    from /home/DEPAULO/mike/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/action.rb:54:in `block in setup'
    from /home/DEPAULO/mike/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/action.rb:53:in `tap'
    from /home/DEPAULO/mike/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/action.rb:53:in `setup'
    from /home/DEPAULO/mike/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/plugin.rb:15:in `provision'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.0/lib/vagrant/action/runner.rb:42:in `call'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.0/lib/vagrant/action/runner.rb:42:in `block (2 levels) in run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.0/lib/vagrant/action/runner.rb:41:in `tap'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.0/lib/vagrant/action/runner.rb:41:in `block in run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.0/lib/vagrant/action/runner.rb:40:in `map'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.0/lib/vagrant/action/runner.rb:40:in `run'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.0/lib/vagrant/machine.rb:190:in `action_raw'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.0/lib/vagrant/machine.rb:167:in `block in action'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.0/lib/vagrant/environment.rb:423:in `lock'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.0/lib/vagrant/machine.rb:155:in `action'
    from /opt/vagrant/embedded/gems/gems/vagrant-1.6.0/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'
    from /opt/vagrant/embedded/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
    from /opt/vagrant/embedded/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
mike@dropship-hv:~/ddh/vagrant-test :( [73] $ 
reset commented 10 years ago

@mikedep333 you'll need to install the latest version of Vagrant-Berkshelf, you're using an older one. vagrant plugin install --plugin-version 2.0.1.

Due to a bug in bundler/vagrant, you need to explicitly specify the version of the plugin you wish to use.