Skip to content

Instantly share code, notes, and snippets.

@bastelfreak
Created March 23, 2017 00:16
Show Gist options
  • Save bastelfreak/947477bff061607dc797119189a008ac to your computer and use it in GitHub Desktop.
Save bastelfreak/947477bff061607dc797119189a008ac to your computer and use it in GitHub Desktop.
bastelfreak@bastelfreak-ws ~/puppet-git/nginx $ bundle exec rake beaker:ubuntu-server-1604-x64
/usr/bin/ruby -I/home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/rspec-core-3.5.4/lib:/home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/rspec-support-3.5.0/lib /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/rspec-core-3.5.4/exe/rspec spec/acceptance --color
/home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/beaker-rspec-6.0.0/lib/beaker-rspec/helpers/serverspec.rb:43: warning: already initialized constant Module::VALID_OPTIONS_KEYS
/home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/specinfra-2.67.2/lib/specinfra/configuration.rb:4: warning: previous definition of VALID_OPTIONS_KEYS was here
Beaker::Hypervisor, found some vagrant boxes to create
/home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/beaker-3.12.0/lib/beaker/hypervisor/vagrant.rb:233:in `block (2 levels) in vagrant_cmd': Failed to exec 'vagrant up'. Error was Vagrant failed to initialize at a very early stage: (RuntimeError)
The plugins failed to initialize correctly. This may be due to manual
modifications made within the Vagrant home directory. Vagrant can
attempt to automatically correct this issue by running:
vagrant plugin repair
If Vagrant was recently updated, this error may be due to incompatible
versions of dependencies. To fix this problem please remove and re-install
all plugins. Vagrant can attempt to do this automatically by running:
vagrant plugin expunge --reinstall
Error message given during initialization: Unable to resolve dependency: user requested 'vagrant-libvirt (> 0)'
from /usr/lib/ruby/2.4.0/open3.rb:205:in `popen_run'
from /usr/lib/ruby/2.4.0/open3.rb:95:in `popen3'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/beaker-3.12.0/lib/beaker/hypervisor/vagrant.rb:228:in `block in vagrant_cmd'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/beaker-3.12.0/lib/beaker/hypervisor/vagrant.rb:226:in `chdir'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/beaker-3.12.0/lib/beaker/hypervisor/vagrant.rb:226:in `vagrant_cmd'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/beaker-3.12.0/lib/beaker/hypervisor/vagrant.rb:182:in `provision'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/beaker-3.12.0/lib/beaker/hypervisor.rb:77:in `create'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/beaker-3.12.0/lib/beaker/network_manager.rb:69:in `block in provision'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/beaker-3.12.0/lib/beaker/network_manager.rb:68:in `each_key'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/beaker-3.12.0/lib/beaker/network_manager.rb:68:in `provision'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/beaker-rspec-6.0.0/lib/beaker-rspec/beaker_shim.rb:35:in `provision'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/beaker-rspec-6.0.0/lib/beaker-rspec/spec_helper.rb:46:in `block in <top (required)>'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core.rb:98:in `configure'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/beaker-rspec-6.0.0/lib/beaker-rspec/spec_helper.rb:5:in `<top (required)>'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/beaker-rspec-6.0.0/lib/beaker-rspec.rb:5:in `require'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/beaker-rspec-6.0.0/lib/beaker-rspec.rb:5:in `<module:BeakerRSpec>'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/beaker-rspec-6.0.0/lib/beaker-rspec.rb:1:in `<top (required)>'
from /home/bastelfreak/puppet-git/nginx/spec/spec_helper_acceptance.rb:1:in `require'
from /home/bastelfreak/puppet-git/nginx/spec/spec_helper_acceptance.rb:1:in `<top (required)>'
from /home/bastelfreak/puppet-git/nginx/spec/acceptance/class_spec.rb:1:in `require'
from /home/bastelfreak/puppet-git/nginx/spec/acceptance/class_spec.rb:1:in `<top (required)>'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1435:in `load'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1435:in `block in load_spec_files'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1433:in `each'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1433:in `load_spec_files'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:100:in `setup'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:86:in `run'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:71:in `run'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:45:in `invoke'
from /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/rspec-core-3.5.4/exe/rspec:4:in `<main>'
/usr/bin/ruby -I/home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/rspec-core-3.5.4/lib:/home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/rspec-support-3.5.0/lib /home/bastelfreak/puppet-git/nginx/.vendor/ruby/2.4.0/gems/rspec-core-3.5.4/exe/rspec spec/acceptance --color failed
bastelfreak@bastelfreak-ws ~/puppet-git/nginx $ vagrant plugin repair
Repairing currently installed plugins. This may take a few minutes...
Fetching: formatador-0.2.5.gem (100%)
Fetching: excon-0.55.0.gem (100%)
Fetching: fog-core-1.43.0.gem (100%)
Fetching: ruby-libvirt-0.7.0.gem (100%)
Building native extensions. This could take a while...
Failed to automatically repair installed Vagrant plugins. To fix this
problem remove all user installed plugins and reinstall. Vagrant can
do this for you automatically by running the following command:
vagrant plugin expunge --reinstall
Failure message received during repair:
ERROR: Failed to build gem native extension.
/opt/vagrant/embedded/bin/ruby -r ./siteconf20170323-4589-7j331l.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/opt/vagrant/embedded/bin/$(RUBY_BASE_NAME)
--with-libvirt-include
--without-libvirt-include
--with-libvirt-lib
--without-libvirt-lib
--with-libvirt-config
--without-libvirt-config
--with-pkg-config
--without-pkg-config
extconf.rb:73:in `<main>': libvirt library not found in default locations (RuntimeError)
extconf failed, exit code 1
Gem files will remain installed in /home/bastelfreak/.vagrant.d/gems/2.2.5/gems/ruby-libvirt-0.7.0 for inspection.
Results logged to /home/bastelfreak/.vagrant.d/gems/2.2.5/extensions/x86_64-linux/2.2.0/ruby-libvirt-0.7.0/gem_make.out
bastelfreak@bastelfreak-ws ~/puppet-git/nginx $ pacman -Ss libvirt
community/libvirt 3.1.0-1 [installed]
API for controlling virtualization engines (openvz,kvm,qemu,virtualbox,xen,etc)
community/libvirt-glib 1.0.0-1 [installed]
GLib bindings for libvirt
community/libvirt-python 3.1.0-1 [installed]
libvirt python binding
community/libvirt-python3 3.1.0-1
libvirt python binding
aur/perl-sys-virt 1.2.14-3
Represent and manage a libvirt hypervisor connection
bastelfreak@bastelfreak-ws ~/puppet-git/nginx $ vagrant plugin expunge --reinstall
This command permanently deletes all currently installed user plugins. It
should only be used when a repair command is unable to properly fix the
system.
Continue? [N]: y
All user installed plugins have been removed from this Vagrant environment!
Vagrant will now attempt to reinstall user plugins that were removed.
Installing the 'vagrant-libvirt' plugin. This can take a few minutes...
Fetching: formatador-0.2.5.gem (100%)
Fetching: excon-0.55.0.gem (100%)
Fetching: fog-core-1.43.0.gem (100%)
Fetching: ruby-libvirt-0.7.0.gem (100%)
Building native extensions. This could take a while...
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:
ERROR: Failed to build gem native extension.
/opt/vagrant/embedded/bin/ruby -r ./siteconf20170323-5408-vhuvv7.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/opt/vagrant/embedded/bin/$(RUBY_BASE_NAME)
--with-libvirt-include
--without-libvirt-include
--with-libvirt-lib
--without-libvirt-lib
--with-libvirt-config
--without-libvirt-config
--with-pkg-config
--without-pkg-config
extconf.rb:73:in `<main>': libvirt library not found in default locations (RuntimeError)
extconf failed, exit code 1
Gem files will remain installed in /home/bastelfreak/.vagrant.d/gems/2.2.5/gems/ruby-libvirt-0.7.0 for inspection.
Results logged to /home/bastelfreak/.vagrant.d/gems/2.2.5/extensions/x86_64-linux/2.2.0/ruby-libvirt-0.7.0/gem_make.out
bastelfreak@bastelfreak-ws ~/puppet-git/nginx $
@igalic
Copy link

igalic commented Mar 23, 2017

oh joy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment