Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 589114 - app-emulation/vagrant-1.8.4: RuntimeError, when using a gems env that use vagrant
Summary: app-emulation/vagrant-1.8.4: RuntimeError, when using a gems env that use vag...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-18 20:24 UTC by guimalufb
Modified: 2020-07-11 06:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description guimalufb 2016-07-18 20:24:02 UTC
I'm trying to run acceptance tests on puppet module using vagrant. I've emerged vagrant, and setup the development environment. But when I call the rspec script that build and run tests I got an error.

I think that when calling vagrant inside puppet-rspec-beaker environment, vagrant environment is "overlapping" the actual environment which causes some gems to not be found.

I can run vagrant outside this environment with no error. Only when using beaker I got that error.


Reproducible: Always

Steps to Reproduce:
1. git clone https://github.com/openstack/puppet-keystone.git
2. bundle install 
3. bundle exec rspec spec/acceptance
Actual Results:  
➜  puppet-keystone (master) bundle exec rspec spec/acceptance 
/home/guimaluf/.gem/ruby/2.1.0/gems/beaker-rspec-5.6.0/lib/beaker-rspec/helpers/serverspec.rb:43: warning: already initialized constant Module::VALID_OPTIONS_KEYS
/home/guimaluf/.gem/ruby/2.1.0/gems/specinfra-2.59.6/lib/specinfra/configuration.rb:4: warning: previous definition of VALID_OPTIONS_KEYS was here
Beaker::Hypervisor, found some vagrant boxes to create
/home/guimaluf/.gem/ruby/2.1.0/gems/beaker-2.47.1/lib/beaker/hypervisor/vagrant.rb:214:in `block (2 levels) in vagrant_cmd': Failed to exec 'vagrant destroy --force'. Error was /home/guimaluf/.gem/ruby/2.1.0/gems/bundler-1.12.5/lib/bundler/source/git.rb:192:in `rescue in load_spec_files': https://git.openstack.org/openstack/puppet-openstack_spec_helper (at master@aa4b9f2) is not yet checked out. Run `bundle install` first. (Bundler::GitError) (RuntimeError)
        from /home/guimaluf/.gem/ruby/2.1.0/gems/bundler-1.12.5/lib/bundler/source/git.rb:189:in `load_spec_files'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/bundler-1.12.5/lib/bundler/source/path.rb:95:in `local_specs'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/bundler-1.12.5/lib/bundler/source/git.rb:160:in `specs'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/bundler-1.12.5/lib/bundler/lazy_specification.rb:56:in `__materialize__'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/bundler-1.12.5/lib/bundler/spec_set.rb:91:in `block in materialize'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/bundler-1.12.5/lib/bundler/spec_set.rb:88:in `map!'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/bundler-1.12.5/lib/bundler/spec_set.rb:88:in `materialize'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/bundler-1.12.5/lib/bundler/definition.rb:140:in `specs'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/bundler-1.12.5/lib/bundler/definition.rb:185:in `specs_for'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/bundler-1.12.5/lib/bundler/definition.rb:174:in `requested_specs'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/bundler-1.12.5/lib/bundler/environment.rb:19:in `requested_specs'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:14:in `setup'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/bundler-1.12.5/lib/bundler.rb:95:in `setup'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/bundler-1.12.5/lib/bundler/setup.rb:19:in `<top (required)>'
        from /usr/lib64/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:133:in `require'
        from /usr/lib64/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require'
        from /usr/lib64/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:40:in `require'
        from /usr/lib64/ruby/2.1.0/open3.rb:199:in `popen_run'
        from /usr/lib64/ruby/2.1.0/open3.rb:93:in `popen3'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/beaker-2.47.1/lib/beaker/hypervisor/vagrant.rb:209:in `block in vagrant_cmd'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/beaker-2.47.1/lib/beaker/hypervisor/vagrant.rb:207:in `chdir'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/beaker-2.47.1/lib/beaker/hypervisor/vagrant.rb:207:in `vagrant_cmd'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/beaker-2.47.1/lib/beaker/hypervisor/vagrant.rb:165:in `provision'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/beaker-2.47.1/lib/beaker/hypervisor.rb:75:in `create'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/beaker-2.47.1/lib/beaker/network_manager.rb:69:in `block in provision'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/beaker-2.47.1/lib/beaker/network_manager.rb:68:in `each_key'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/beaker-2.47.1/lib/beaker/network_manager.rb:68:in `provision'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/beaker-rspec-5.6.0/lib/beaker-rspec/beaker_shim.rb:35:in `provision'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/beaker-rspec-5.6.0/lib/beaker-rspec/spec_helper.rb:46:in `block in <top (required)>'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/rspec-core-3.5.1/lib/rspec/core.rb:97:in `configure'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/beaker-rspec-5.6.0/lib/beaker-rspec/spec_helper.rb:5:in `<top (required)>'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/beaker-rspec-5.6.0/lib/beaker-rspec.rb:5:in `require'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/beaker-rspec-5.6.0/lib/beaker-rspec.rb:5:in `<module:BeakerRSpec>'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/beaker-rspec-5.6.0/lib/beaker-rspec.rb:1:in `<top (required)>'
        from /home/guimaluf/.gem/ruby/2.1.0/bundler/gems/puppet-openstack_spec_helper-aa4b9f2c5fe5/lib/puppet-openstack_spec_helper/beaker_spec_helper.rb:2:in `require'
        from /home/guimaluf/.gem/ruby/2.1.0/bundler/gems/puppet-openstack_spec_helper-aa4b9f2c5fe5/lib/puppet-openstack_spec_helper/beaker_spec_helper.rb:2:in `<top (required)>'
        from /home/guimaluf/workspace/openstack/puppet-keystone/spec/spec_helper_acceptance.rb:1:in `require'
        from /home/guimaluf/workspace/openstack/puppet-keystone/spec/spec_helper_acceptance.rb:1:in `<top (required)>'
        from /home/guimaluf/workspace/openstack/puppet-keystone/spec/acceptance/default_domain_spec.rb:1:in `require'
        from /home/guimaluf/workspace/openstack/puppet-keystone/spec/acceptance/default_domain_spec.rb:1:in `<top (required)>'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/rspec-core-3.5.1/lib/rspec/core/configuration.rb:1435:in `load'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/rspec-core-3.5.1/lib/rspec/core/configuration.rb:1435:in `block in load_spec_files'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/rspec-core-3.5.1/lib/rspec/core/configuration.rb:1433:in `each'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/rspec-core-3.5.1/lib/rspec/core/configuration.rb:1433:in `load_spec_files'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/rspec-core-3.5.1/lib/rspec/core/runner.rb:100:in `setup'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/rspec-core-3.5.1/lib/rspec/core/runner.rb:86:in `run'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/rspec-core-3.5.1/lib/rspec/core/runner.rb:71:in `run'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/rspec-core-3.5.1/lib/rspec/core/runner.rb:45:in `invoke'
        from /home/guimaluf/.gem/ruby/2.1.0/gems/rspec-core-3.5.1/exe/rspec:4:in `<top (required)>'
        from /home/guimaluf/.gem/ruby/2.1.0/bin/rspec:22:in `load'
        from /home/guimaluf/.gem/ruby/2.1.0/bin/rspec:22:in `<main>'

Expected Results:  
It should start an puppetlabs/ubuntu-14.04-64-nocm box and run acceptance tests

I've rbenv installed pointing to system ruby, which is ruby21

$ gem env
gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 2.6.6
  - RUBY VERSION: 2.1.10 (2016-04-01 patchlevel 492) [x86_64-linux]
  - INSTALLATION DIRECTORY: /home/guimaluf/.gem/ruby/2.1.0
  - USER INSTALLATION DIRECTORY: /home/guimaluf/.gem/ruby/2.1.0
  - RUBY EXECUTABLE: /usr/bin/ruby21
  - EXECUTABLE DIRECTORY: /home/guimaluf/.gem/ruby/2.1.0/bin
  - SPEC CACHE DIRECTORY: /home/guimaluf/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /etc
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /home/guimaluf/.gem/ruby/2.1.0
     - /usr/local/lib64/ruby/gems/2.1.0
     - /usr/lib64/ruby/gems/2.1.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
     - "gem" => "--no-rdoc --no-ri"
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /home/guimaluf/.rbenv/libexec
     - /home/guimaluf/.rbenv/plugins/ruby-build/bin
     - /home/guimaluf/.rbenv/shims
     - /home/guimaluf/.rbenv/bin
     - /usr/local/bin
     - /usr/bin
     - /bin
     - /opt/bin
     - /usr/x86_64-pc-linux-gnu/gcc-bin/5.4.0
     - /usr/games/bin
Comment 1 Tomáš Mózes 2016-07-22 09:19:50 UTC
Please provide the steps to reproduce (with beaker).
Comment 2 guimalufb 2016-07-23 12:18:10 UTC
(In reply to Tomáš Mózes from comment #1)
> Please provide the steps to reproduce (with beaker).

I've latest ruby, 2.1.10 from gentoo repository and I do use rbenv to use system ruby. Then

1. git clone https://github.com/openstack/puppet-keystone.git
2. bundle install 
3. bundle exec rspec spec/acceptance
Comment 3 Tomáš Mózes 2016-07-23 13:06:23 UTC
Sorry I'm no ruby expert, I thought that beaker environment was created manually. I've just checked the sources and found vagrant and beaker there. I'll try it out.
Comment 4 Tomáš Mózes 2016-08-03 12:50:16 UTC
For some reason, after the steps:

$ bundle install
$ bundle exec rspec spec/acceptance

I get:
/home/mozes/.gem/ruby/2.2.0/gems/beaker-rspec-5.6.0/lib/beaker-rspec/helpers/serverspec.rb:43: warning: already initialized constant Module::VALID_OPTIONS_KEYS
/home/mozes/.gem/ruby/2.2.0/gems/specinfra-2.60.2/lib/specinfra/configuration.rb:4: warning: previous definition of VALID_OPTIONS_KEYS was here
Beaker::Hypervisor, found some vagrant boxes to create
/home/mozes/.gem/ruby/2.2.0/gems/beaker-2.48.1/lib/beaker/hypervisor/vagrant.rb:214:in `block (2 levels) in vagrant_cmd': Failed to exec 'vagrant destroy --force'. Error was /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/source/git.rb:192:in `rescue in load_spec_files': https://git.openstack.org/openstack/puppet-openstack_spec_helper (at master@42c8003) is not yet checked out. Run `bundle install` first. (Bundler::GitError) (RuntimeError)
        from /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/source/git.rb:189:in `load_spec_files'
        from /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/source/path.rb:95:in `local_specs'
        from /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/source/git.rb:160:in `specs'
        from /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/lazy_specification.rb:56:in `__materialize__'
        from /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/spec_set.rb:91:in `block in materialize'
        from /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/spec_set.rb:88:in `map!'
        from /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/spec_set.rb:88:in `materialize'
        from /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/definition.rb:140:in `specs'
        from /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/definition.rb:185:in `specs_for'
        from /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/definition.rb:174:in `requested_specs'
        from /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/environment.rb:19:in `requested_specs'
        from /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:14:in `setup'
        from /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler.rb:95:in `setup'
        from /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/setup.rb:19:in `<top (required)>'
        from /usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:133:in `require'
        from /usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require'
        from /usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:40:in `require'
        from /usr/lib64/ruby/2.2.0/open3.rb:199:in `popen_run'
        from /usr/lib64/ruby/2.2.0/open3.rb:93:in `popen3'
        from /home/mozes/.gem/ruby/2.2.0/gems/beaker-2.48.1/lib/beaker/hypervisor/vagrant.rb:209:in `block in vagrant_cmd'
        from /home/mozes/.gem/ruby/2.2.0/gems/beaker-2.48.1/lib/beaker/hypervisor/vagrant.rb:207:in `chdir'
        from /home/mozes/.gem/ruby/2.2.0/gems/beaker-2.48.1/lib/beaker/hypervisor/vagrant.rb:207:in `vagrant_cmd'
        from /home/mozes/.gem/ruby/2.2.0/gems/beaker-2.48.1/lib/beaker/hypervisor/vagrant.rb:165:in `provision'
        from /home/mozes/.gem/ruby/2.2.0/gems/beaker-2.48.1/lib/beaker/hypervisor.rb:75:in `create'
        from /home/mozes/.gem/ruby/2.2.0/gems/beaker-2.48.1/lib/beaker/network_manager.rb:69:in `block in provision'
        from /home/mozes/.gem/ruby/2.2.0/gems/beaker-2.48.1/lib/beaker/network_manager.rb:68:in `each_key'
        from /home/mozes/.gem/ruby/2.2.0/gems/beaker-2.48.1/lib/beaker/network_manager.rb:68:in `provision'
        from /home/mozes/.gem/ruby/2.2.0/gems/beaker-rspec-5.6.0/lib/beaker-rspec/beaker_shim.rb:35:in `provision'
        from /home/mozes/.gem/ruby/2.2.0/gems/beaker-rspec-5.6.0/lib/beaker-rspec/spec_helper.rb:46:in `block in <top (required)>'
        from /home/mozes/.gem/ruby/2.2.0/gems/rspec-core-3.5.2/lib/rspec/core.rb:97:in `configure'
        from /home/mozes/.gem/ruby/2.2.0/gems/beaker-rspec-5.6.0/lib/beaker-rspec/spec_helper.rb:5:in `<top (required)>'
        from /home/mozes/.gem/ruby/2.2.0/gems/beaker-rspec-5.6.0/lib/beaker-rspec.rb:5:in `require'
        from /home/mozes/.gem/ruby/2.2.0/gems/beaker-rspec-5.6.0/lib/beaker-rspec.rb:5:in `<module:BeakerRSpec>'
        from /home/mozes/.gem/ruby/2.2.0/gems/beaker-rspec-5.6.0/lib/beaker-rspec.rb:1:in `<top (required)>'
        from /home/mozes/.gem/ruby/2.2.0/bundler/gems/puppet-openstack_spec_helper-42c8003c1d85/lib/puppet-openstack_spec_helper/beaker_spec_helper.rb:2:in `require'
        from /home/mozes/.gem/ruby/2.2.0/bundler/gems/puppet-openstack_spec_helper-42c8003c1d85/lib/puppet-openstack_spec_helper/beaker_spec_helper.rb:2:in `<top (required)>'
        from /home/mozes/tmp/puppet-keystone/spec/spec_helper_acceptance.rb:1:in `require'
        from /home/mozes/tmp/puppet-keystone/spec/spec_helper_acceptance.rb:1:in `<top (required)>'
        from /home/mozes/tmp/puppet-keystone/spec/acceptance/default_domain_spec.rb:1:in `require'
        from /home/mozes/tmp/puppet-keystone/spec/acceptance/default_domain_spec.rb:1:in `<top (required)>'
        from /home/mozes/.gem/ruby/2.2.0/gems/rspec-core-3.5.2/lib/rspec/core/configuration.rb:1435:in `load'
        from /home/mozes/.gem/ruby/2.2.0/gems/rspec-core-3.5.2/lib/rspec/core/configuration.rb:1435:in `block in load_spec_files'
        from /home/mozes/.gem/ruby/2.2.0/gems/rspec-core-3.5.2/lib/rspec/core/configuration.rb:1433:in `each'
        from /home/mozes/.gem/ruby/2.2.0/gems/rspec-core-3.5.2/lib/rspec/core/configuration.rb:1433:in `load_spec_files'
        from /home/mozes/.gem/ruby/2.2.0/gems/rspec-core-3.5.2/lib/rspec/core/runner.rb:100:in `setup'
        from /home/mozes/.gem/ruby/2.2.0/gems/rspec-core-3.5.2/lib/rspec/core/runner.rb:86:in `run'
        from /home/mozes/.gem/ruby/2.2.0/gems/rspec-core-3.5.2/lib/rspec/core/runner.rb:71:in `run'
        from /home/mozes/.gem/ruby/2.2.0/gems/rspec-core-3.5.2/lib/rspec/core/runner.rb:45:in `invoke'
        from /home/mozes/.gem/ruby/2.2.0/gems/rspec-core-3.5.2/exe/rspec:4:in `<top (required)>'
        from /home/mozes/.gem/ruby/2.2.0/bin/rspec:22:in `load'
        from /home/mozes/.gem/ruby/2.2.0/bin/rspec:22:in `<main>'
Comment 5 guimalufb 2016-08-04 12:38:12 UTC
(In reply to Tomáš Mózes from comment #4)
> For some reason, after the steps:
> 
> $ bundle install
> $ bundle exec rspec spec/acceptance
> 
> I get:
> /home/mozes/.gem/ruby/2.2.0/gems/beaker-rspec-5.6.0/lib/beaker-rspec/helpers/
> serverspec.rb:43: warning: already initialized constant
> Module::VALID_OPTIONS_KEYS
> /home/mozes/.gem/ruby/2.2.0/gems/specinfra-2.60.2/lib/specinfra/
> configuration.rb:4: warning: previous definition of VALID_OPTIONS_KEYS was
> here
> Beaker::Hypervisor, found some vagrant boxes to create
> /home/mozes/.gem/ruby/2.2.0/gems/beaker-2.48.1/lib/beaker/hypervisor/vagrant.
> rb:214:in `block (2 levels) in vagrant_cmd': Failed to exec 'vagrant destroy
> --force'. Error was
> /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/source/git.rb:192:
> in `rescue in load_spec_files':
> https://git.openstack.org/openstack/puppet-openstack_spec_helper (at
> master@42c8003) is not yet checked out. Run `bundle install` first.
> (Bundler::GitError) (RuntimeError)
>         from
> /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/source/git.rb:189:
> in `load_spec_files'
>         from
> /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/source/path.rb:95:
> in `local_specs'
>         from
> /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/source/git.rb:160:
> in `specs'
>         from
> /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/
> lazy_specification.rb:56:in `__materialize__'
>         from
> /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/spec_set.rb:91:in
> `block in materialize'
>         from
> /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/spec_set.rb:88:in
> `map!'
>         from
> /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/spec_set.rb:88:in
> `materialize'
>         from
> /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/definition.rb:140:
> in `specs'
>         from
> /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/definition.rb:185:
> in `specs_for'
>         from
> /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/definition.rb:174:
> in `requested_specs'
>         from
> /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/environment.rb:19:
> in `requested_specs'
>         from
> /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:14:in
> `setup'
>         from
> /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler.rb:95:in `setup'
>         from
> /usr/lib64/ruby/gems/2.2.0/gems/bundler-1.12.5/lib/bundler/setup.rb:19:in
> `<top (required)>'
>         from
> /usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:133:in
> `require'
>         from
> /usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:133:in
> `rescue in require'
>         from
> /usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:40:in
> `require'
>         from /usr/lib64/ruby/2.2.0/open3.rb:199:in `popen_run'
>         from /usr/lib64/ruby/2.2.0/open3.rb:93:in `popen3'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/beaker-2.48.1/lib/beaker/hypervisor/vagrant.
> rb:209:in `block in vagrant_cmd'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/beaker-2.48.1/lib/beaker/hypervisor/vagrant.
> rb:207:in `chdir'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/beaker-2.48.1/lib/beaker/hypervisor/vagrant.
> rb:207:in `vagrant_cmd'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/beaker-2.48.1/lib/beaker/hypervisor/vagrant.
> rb:165:in `provision'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/beaker-2.48.1/lib/beaker/hypervisor.rb:75:
> in `create'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/beaker-2.48.1/lib/beaker/network_manager.rb:
> 69:in `block in provision'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/beaker-2.48.1/lib/beaker/network_manager.rb:
> 68:in `each_key'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/beaker-2.48.1/lib/beaker/network_manager.rb:
> 68:in `provision'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/beaker-rspec-5.6.0/lib/beaker-rspec/
> beaker_shim.rb:35:in `provision'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/beaker-rspec-5.6.0/lib/beaker-rspec/
> spec_helper.rb:46:in `block in <top (required)>'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/rspec-core-3.5.2/lib/rspec/core.rb:97:in
> `configure'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/beaker-rspec-5.6.0/lib/beaker-rspec/
> spec_helper.rb:5:in `<top (required)>'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/beaker-rspec-5.6.0/lib/beaker-rspec.rb:5:in
> `require'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/beaker-rspec-5.6.0/lib/beaker-rspec.rb:5:in
> `<module:BeakerRSpec>'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/beaker-rspec-5.6.0/lib/beaker-rspec.rb:1:in
> `<top (required)>'
>         from
> /home/mozes/.gem/ruby/2.2.0/bundler/gems/puppet-openstack_spec_helper-
> 42c8003c1d85/lib/puppet-openstack_spec_helper/beaker_spec_helper.rb:2:in
> `require'
>         from
> /home/mozes/.gem/ruby/2.2.0/bundler/gems/puppet-openstack_spec_helper-
> 42c8003c1d85/lib/puppet-openstack_spec_helper/beaker_spec_helper.rb:2:in
> `<top (required)>'
>         from
> /home/mozes/tmp/puppet-keystone/spec/spec_helper_acceptance.rb:1:in `require'
>         from
> /home/mozes/tmp/puppet-keystone/spec/spec_helper_acceptance.rb:1:in `<top
> (required)>'
>         from
> /home/mozes/tmp/puppet-keystone/spec/acceptance/default_domain_spec.rb:1:in
> `require'
>         from
> /home/mozes/tmp/puppet-keystone/spec/acceptance/default_domain_spec.rb:1:in
> `<top (required)>'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/rspec-core-3.5.2/lib/rspec/core/
> configuration.rb:1435:in `load'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/rspec-core-3.5.2/lib/rspec/core/
> configuration.rb:1435:in `block in load_spec_files'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/rspec-core-3.5.2/lib/rspec/core/
> configuration.rb:1433:in `each'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/rspec-core-3.5.2/lib/rspec/core/
> configuration.rb:1433:in `load_spec_files'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/rspec-core-3.5.2/lib/rspec/core/runner.rb:
> 100:in `setup'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/rspec-core-3.5.2/lib/rspec/core/runner.rb:
> 86:in `run'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/rspec-core-3.5.2/lib/rspec/core/runner.rb:
> 71:in `run'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/rspec-core-3.5.2/lib/rspec/core/runner.rb:
> 45:in `invoke'
>         from
> /home/mozes/.gem/ruby/2.2.0/gems/rspec-core-3.5.2/exe/rspec:4:in `<top
> (required)>'
>         from /home/mozes/.gem/ruby/2.2.0/bin/rspec:22:in `load'
>         from /home/mozes/.gem/ruby/2.2.0/bin/rspec:22:in `<main>'

You're getting the same error as I get. The difference is that I'm using ruby 2.1.

This error you got is what is confusing me. I think is something related to vagrant gems and external gems from what is using vagrant.

Thanks for looking at this.
Comment 6 Tomáš Mózes 2016-08-06 05:03:01 UTC
The main error seems to be this:

git.rb:192:in `rescue in load_spec_files': https://git.openstack.org/openstack/puppet-openstack_spec_helper (at master@42c8003) is not yet checked out. Run `bundle install` first.

Seems like the puppet-openstack_spec_helper git repo isn't checked out.
Comment 7 Tomáš Mózes 2016-08-12 16:10:48 UTC
I got it working after copying the gem from ~/.gem to ~/.vagrant.d/gems/bundler/gems/puppet-openstack_spec_helper-42c8003c1d85. I'll try to check why is it using this strange path.
Comment 8 Georgy Yakovlev gentoo-dev 2018-12-01 04:17:38 UTC
taking this one.
apparently this one is still valid and our vagrant launcher script that mangles gem related variables (GEM_HOME GEM_PATH) is to blame.