fog / fog-libvirt

libvirt provider for fog
MIT License
16 stars 44 forks source link

Failure during ansible provisioning #63

Closed sirtuxalot closed 3 years ago

sirtuxalot commented 5 years ago

I have posted this on the gentoo forums (the OS in use) and the vagrant issue tracker with no responses, so I thought I would come straight to the source of the issue.

As I mentioned, I am using the gentoo OS along with vagrant 2.2.2 using KVM/qemu/libvirt for virtualization. The vagrant box gets spun up well enough, but I seem to have a small issue, and a large issue. The small issue just seems to affect CentOS boxes (6 and 7) which is if the ssh daemon is started with systemd I can not ssh directly to the box but if I start the service manually (/usr/sbin/sshd) everything works fine, but the "vagrant ssh" does work. The bigger issue that doesn't seem to be OS specific is that when vagrant runs the provisioning process (only tested with ansible), it blows up with the following error.

I realize that this may be and OS (i.e. kernel config likely) or even qemu/libvirt/KVM level fix (config or missing dependency through missing USE flag), but if I can understand why the error is occurring maybe I could get this working.

/home/sirtuxalot/.vagrant.d/gems/2.4.5/gems/fog-libvirt-0.5.0/lib/fog/libvirt/requests/compute/list_domains.rb:9:in lookup_domain_by_uuid': Call to virDomainLookupByUUID failed: internal error: client socket is closed (Libvirt::RetrieveError) from /home/sirtuxalot/.vagrant.d/gems/2.4.5/gems/fog-libvirt-0.5.0/lib/fog/libvirt/requests/compute/list_domains.rb:9:inlist_domains' from /home/sirtuxalot/.vagrant.d/gems/2.4.5/gems/fog-libvirt-0.5.0/lib/fog/libvirt/models/compute/servers.rb:15:in get' from /home/sirtuxalot/.vagrant.d/gems/2.4.5/gems/vagrant-libvirt-0.0.45/lib/vagrant-libvirt/driver.rb:65:inget_domain' from /home/sirtuxalot/.vagrant.d/gems/2.4.5/gems/vagrant-libvirt-0.0.45/lib/vagrant-libvirt/driver.rb:79:in created?' from /home/sirtuxalot/.vagrant.d/gems/2.4.5/gems/vagrant-libvirt-0.0.45/lib/vagrant-libvirt/provider.rb:101:instate' from /home/sirtuxalot/.vagrant.d/gems/2.4.5/gems/vagrant-libvirt-0.0.45/lib/vagrant-libvirt/action/wait_till_up.rb:105:in terminate' from /home/sirtuxalot/.vagrant.d/gems/2.4.5/gems/vagrant-libvirt-0.0.45/lib/vagrant-libvirt/action/wait_till_up.rb:101:inrecover' from /usr/lib64/ruby/gems/2.4.0/gems/vagrant-2.2.2/lib/vagrant/action/warden.rb:67:in block in recover' from /usr/lib64/ruby/gems/2.4.0/gems/vagrant-2.2.2/lib/vagrant/action/warden.rb:64:ineach' from /usr/lib64/ruby/gems/2.4.0/gems/vagrant-2.2.2/lib/vagrant/action/warden.rb:64:in recover' from /usr/lib64/ruby/gems/2.4.0/gems/vagrant-2.2.2/lib/vagrant/action/builtin/call.rb:61:inrecover' from /usr/lib64/ruby/gems/2.4.0/gems/vagrant-2.2.2/lib/vagrant/action/warden.rb:67:in block in recover' from /usr/lib64/ruby/gems/2.4.0/gems/vagrant-2.2.2/lib/vagrant/action/warden.rb:64:ineach' from /usr/lib64/ruby/gems/2.4.0/gems/vagrant-2.2.2/lib/vagrant/action/warden.rb:64:in recover' from /usr/lib64/ruby/gems/2.4.0/gems/vagrant-2.2.2/lib/vagrant/action/warden.rb:53:inrescue in call' from /usr/lib64/ruby/gems/2.4.0/gems/vagrant-2.2.2/lib/vagrant/action/warden.rb:28:in call' from /usr/lib64/ruby/gems/2.4.0/gems/vagrant-2.2.2/lib/vagrant/action/builder.rb:116:incall' from /usr/lib64/ruby/gems/2.4.0/gems/vagrant-2.2.2/lib/vagrant/action/runner.rb:66:in block in run' from /usr/lib64/ruby/gems/2.4.0/gems/vagrant-2.2.2/lib/vagrant/util/busy.rb:19:inbusy' from /usr/lib64/ruby/gems/2.4.0/gems/vagrant-2.2.2/lib/vagrant/action/runner.rb:66:in run' from /usr/lib64/ruby/gems/2.4.0/gems/vagrant-2.2.2/lib/vagrant/machine.rb:239:inaction_raw' from /usr/lib64/ruby/gems/2.4.0/gems/vagrant-2.2.2/lib/vagrant/machine.rb:208:in block in action' from /usr/lib64/ruby/gems/2.4.0/gems/vagrant-2.2.2/lib/vagrant/environment.rb:614:inlock' from /usr/lib64/ruby/gems/2.4.0/gems/vagrant-2.2.2/lib/vagrant/machine.rb:194:in call' from /usr/lib64/ruby/gems/2.4.0/gems/vagrant-2.2.2/lib/vagrant/machine.rb:194:inaction' from /usr/lib64/ruby/gems/2.4.0/gems/vagrant-2.2.2/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'

Thank you. If you need any more info, please let me know.

github-actions[bot] commented 3 years ago

This issue has been marked inactive and will be closed if no further activity occurs.