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

Add deprecation error for "system =" #653

Closed
hipertracker opened this issue Jan 19, 2012 · 3 comments
Closed

Add deprecation error for "system =" #653

hipertracker opened this issue Jan 19, 2012 · 3 comments

Comments

@hipertracker
Copy link


$ uname -a

Linux Ubuntu-1110-oneiric-64-minimal 3.0.0-12-server #20-Ubuntu SMP Fri Oct 7 16:36:30 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

$ gem list vagrant 

vagrant (0.9.1)

$ vagrant init puppet-squeeze-64

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.

JRuby:


$ vagrant up
NoMethodError: undefined method `system=' for #
        (root) at /home/zbiru/.vagrant.d/boxes/puppet-squeeze-64/include/_Vagrantfile:7
          call at org/jruby/RubyProc.java:270
          call at org/jruby/RubyProc.java:220
          load at /home/zbiru/.rbenv/versions/jruby-1.6.5.1/lib/ruby/gems/1.8/gems/vagrant-0.9.1/lib/vagrant/config/loader.rb:83
          each at org/jruby/RubyArray.java:1612
          load at /home/zbiru/.rbenv/versions/jruby-1.6.5.1/lib/ruby/gems/1.8/gems/vagrant-0.9.1/lib/vagrant/config/loader.rb:79
          each at org/jruby/RubyArray.java:1612
          load at /home/zbiru/.rbenv/versions/jruby-1.6.5.1/lib/ruby/gems/1.8/gems/vagrant-0.9.1/lib/vagrant/config/loader.rb:76
  load_config! at /home/zbiru/.rbenv/versions/jruby-1.6.5.1/lib/ruby/gems/1.8/gems/vagrant-0.9.1/lib/vagrant/environment.rb:379
          call at org/jruby/RubyProc.java:270
          call at org/jruby/RubyProc.java:220
  load_config! at /home/zbiru/.rbenv/versions/jruby-1.6.5.1/lib/ruby/gems/1.8/gems/vagrant-0.9.1/lib/vagrant/environment.rb:409
       collect at org/jruby/RubyArray.java:2318
  load_config! at /home/zbiru/.rbenv/versions/jruby-1.6.5.1/lib/ruby/gems/1.8/gems/vagrant-0.9.1/lib/vagrant/environment.rb:400
         load! at /home/zbiru/.rbenv/versions/jruby-1.6.5.1/lib/ruby/gems/1.8/gems/vagrant-0.9.1/lib/vagrant/environment.rb:319
        (root) at /home/zbiru/.rbenv/versions/jruby-1.6.5.1/lib/ruby/gems/1.8/gems/vagrant-0.9.1/bin/vagrant:40
          load at org/jruby/RubyKernel.java:1063
        (root) at /home/zbiru/.rbenv/versions/jruby-1.6.5.1/bin/vagrant:19

Ruby 1.9.3-p0


$ vagrant up
        /home/zbiru/.vagrant.d/boxes/puppet-squeeze-64/include/_Vagrantfile:7:in `block in ': undefined method `system=' for # (NoMethodError)
                from /home/zbiru/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/vagrant-0.9.0/lib/vagrant/config/loader.rb:83:in `call'
                from /home/zbiru/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/vagrant-0.9.0/lib/vagrant/config/loader.rb:83:in `block (2 levels) in load'
                from /home/zbiru/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/vagrant-0.9.0/lib/vagrant/config/loader.rb:79:in `each'
                from /home/zbiru/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/vagrant-0.9.0/lib/vagrant/config/loader.rb:79:in `block in load'
                from /home/zbiru/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/vagrant-0.9.0/lib/vagrant/config/loader.rb:76:in `each'
                from /home/zbiru/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/vagrant-0.9.0/lib/vagrant/config/loader.rb:76:in `load'
                from /home/zbiru/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/vagrant-0.9.0/lib/vagrant/environment.rb:379:in `block in load_config!'
                from /home/zbiru/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/vagrant-0.9.0/lib/vagrant/environment.rb:409:in `[]'
                from /home/zbiru/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/vagrant-0.9.0/lib/vagrant/environment.rb:409:in `block in load_config!'
                from /home/zbiru/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/vagrant-0.9.0/lib/vagrant/environment.rb:400:in `map'
                from /home/zbiru/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/vagrant-0.9.0/lib/vagrant/environment.rb:400:in `load_config!'
                from /home/zbiru/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/vagrant-0.9.0/lib/vagrant/environment.rb:319:in `load!'
                from /home/zbiru/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/vagrant-0.9.0/bin/vagrant:40:in `'
                from /home/zbiru/.rbenv/versions/1.9.3-p0/bin/vagrant:19:in `load'
                from /home/zbiru/.rbenv/versions/1.9.3-p0/bin/vagrant:19:in `'

Ruby 1.8.7-p350


$ vagrant up
/home/zbiru/.vagrant.d/boxes/puppet-squeeze-64/include/_Vagrantfile:7: undefined method `system=' for # (NoMethodError)
    from /home/zbiru/.rbenv/versions/1.8.7-p357/lib/ruby/gems/1.8/gems/vagrant-0.9.1/lib/vagrant/config/loader.rb:83:in `call'
    from /home/zbiru/.rbenv/versions/1.8.7-p357/lib/ruby/gems/1.8/gems/vagrant-0.9.1/lib/vagrant/config/loader.rb:83:in `load'
    from /home/zbiru/.rbenv/versions/1.8.7-p357/lib/ruby/gems/1.8/gems/vagrant-0.9.1/lib/vagrant/config/loader.rb:79:in `each'
    from /home/zbiru/.rbenv/versions/1.8.7-p357/lib/ruby/gems/1.8/gems/vagrant-0.9.1/lib/vagrant/config/loader.rb:79:in `load'
    from /home/zbiru/.rbenv/versions/1.8.7-p357/lib/ruby/gems/1.8/gems/vagrant-0.9.1/lib/vagrant/config/loader.rb:76:in `each'
    from /home/zbiru/.rbenv/versions/1.8.7-p357/lib/ruby/gems/1.8/gems/vagrant-0.9.1/lib/vagrant/config/loader.rb:76:in `load'
    from /home/zbiru/.rbenv/versions/1.8.7-p357/lib/ruby/gems/1.8/gems/vagrant-0.9.1/lib/vagrant/environment.rb:379:in `load_config!'
    from /home/zbiru/.rbenv/versions/1.8.7-p357/lib/ruby/gems/1.8/gems/vagrant-0.9.1/lib/vagrant/environment.rb:409:in `[]'
    from /home/zbiru/.rbenv/versions/1.8.7-p357/lib/ruby/gems/1.8/gems/vagrant-0.9.1/lib/vagrant/environment.rb:409:in `load_config!'
    from /home/zbiru/.rbenv/versions/1.8.7-p357/lib/ruby/gems/1.8/gems/vagrant-0.9.1/lib/vagrant/environment.rb:400:in `map'
    from /home/zbiru/.rbenv/versions/1.8.7-p357/lib/ruby/gems/1.8/gems/vagrant-0.9.1/lib/vagrant/environment.rb:400:in `load_config!'
    from /home/zbiru/.rbenv/versions/1.8.7-p357/lib/ruby/gems/1.8/gems/vagrant-0.9.1/lib/vagrant/environment.rb:319:in `load!'
    from /home/zbiru/.rbenv/versions/1.8.7-p357/lib/ruby/gems/1.8/gems/vagrant-0.9.1/bin/vagrant:40
    from /home/zbiru/.rbenv/versions/1.8.7-p357/bin/vagrant:19:in `load'
    from /home/zbiru/.rbenv/versions/1.8.7-p357/bin/vagrant:19
@mitchellh
Copy link
Contributor

This is a bug with the puppet-squeeze-64 box. Vagrant works great on Linux.

The issue is that the config.vm.system = option was changed to config.vm.guest = option.

I thought I had included a nice error message about this but apparently not. Ill mark this as a bug and add the deprecation error.

@mitchellh
Copy link
Contributor

Added the deprecation notice.

@foxx
Copy link

foxx commented Aug 30, 2012

Thank you for pointing this bug out, you probably just saved me several days of hard work :)

@ghost ghost locked and limited conversation to collaborators Apr 16, 2020
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

3 participants