vagrant-libvirt: Call to virStorageVolGetInfo failed: cannot stat file
Hi folks,
From time to time, when I reboot something it seems a vagrant box dies. Not really big issue since I can simply destroy the vagrant box, and then restart it. Except, I keep getting this all the time:
root@devvps1:/home/dschimmel/Projects/puppet# vagrant destroy
Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed.
Vagrant uses the `VBoxManage` binary that ships with VirtualBox, and requires
this to be available on the PATH. If VirtualBox is installed, please find the
`VBoxManage` binary and add it to the PATH environmental variable.
root@devvps1:/home/dschimmel/Projects/puppet# vagrant up --provider=libvirt
Bringing machine 'puppet0' up with 'libvirt' provider...
An error occurred while executing multiple actions in parallel.
Any errors that occurred are shown below.
An unexpected error ocurred when executing the action on the
'puppet0' machine. Please report this as a bug:
Call to virStorageVolGetInfo failed: cannot stat file '/var/lib/libvirt/images/puppet_puppet0.img': No such file or directory
/root/.vagrant.d/gems/gems/fog-1.15.0/lib/fog/libvirt/requests/compute/list_volumes.rb:33:in `info'
/root/.vagrant.d/gems/gems/fog-1.15.0/lib/fog/libvirt/requests/compute/list_volumes.rb:33:in `volume_to_attributes'
/root/.vagrant.d/gems/gems/fog-1.15.0/lib/fog/libvirt/requests/compute/list_volumes.rb:10:in `block (2 levels) in list_volumes'
/root/.vagrant.d/gems/gems/fog-1.15.0/lib/fog/libvirt/requests/compute/list_volumes.rb:9:in `each'
/root/.vagrant.d/gems/gems/fog-1.15.0/lib/fog/libvirt/requests/compute/list_volumes.rb:9:in `block in list_volumes'
/root/.vagrant.d/gems/gems/fog-1.15.0/lib/fog/libvirt/requests/compute/list_volumes.rb:45:in `block in raw_volumes'
/root/.vagrant.d/gems/gems/fog-1.15.0/lib/fog/libvirt/requests/compute/list_volumes.rb:43:in `each'
/root/.vagrant.d/gems/gems/fog-1.15.0/lib/fog/libvirt/requests/compute/list_volumes.rb:43:in `raw_volumes'
/root/.vagrant.d/gems/gems/fog-1.15.0/lib/fog/libvirt/requests/compute/list_volumes.rb:8:in `list_volumes'
/root/.vagrant.d/gems/gems/fog-1.15.0/lib/fog/libvirt/models/compute/volumes.rb:13:in `all'
/root/.vagrant.d/gems/gems/vagrant-libvirt-0.0.13/lib/vagrant-libvirt/action/handle_box_image.rb:39:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/builtin/handle_box_url.rb:24:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/warden.rb:34:in `call'
/root/.vagrant.d/gems/gems/vagrant-libvirt-0.0.13/lib/vagrant-libvirt/action/handle_storage_pool.rb:21:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/warden.rb:34:in `call'
/root/.vagrant.d/gems/gems/vagrant-libvirt-0.0.13/lib/vagrant-libvirt/action/set_name_of_domain.rb:26:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/runner.rb:61:in `block in run'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/util/busy.rb:19:in `busy'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/runner.rb:61:in `run'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/builtin/call.rb:51:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/warden.rb:34:in `call'
/root/.vagrant.d/gems/gems/vagrant-libvirt-0.0.13/lib/vagrant-libvirt/action/connect_libvirt.rb:88:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/warden.rb:34:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/builder.rb:116:in `call'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/runner.rb:61:in `block in run'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/util/busy.rb:19:in `busy'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/action/runner.rb:61:in `run'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/machine.rb:147:in `action'
/opt/vagrant/embedded/gems/gems/vagrant-1.3.5/lib/vagrant/batch_action.rb:63:in `block (2 levels) in run'
root@devvps1:/home/dschimmel/Projects/puppet# virsh list --all
Id Name State
----------------------------------------------------
How should I fix? I’m posting it here because the error says to ‘please report this as a bug’.
Thanks.
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 20 (11 by maintainers)
“but a workaround is to restart libvirtd…”
You, sir, are awesome! This tip will save me many, many reinstalls 😉
I have this problem too… Not sure what causes it, but a workaround is to restart libvirtd… Something buggy is causing it most likely… Maybe a file is getting removed manually with rm instead of deleting the stored object with libvirt?