Red Hat Bugzilla – Bug 1277921
Removed storage makes service non-responsive
Last modified: 2016-04-25 07:13:59 EDT
Description of problem:
If certain disks are removed when machine is offline (removable disks, hard disk bays) libvirtd will accept connections (virsh/virt-manager) however will not process them further causing said tools remain stuck indefinitely in "connecting" state. In some cases service works properly however opening VM with missing disk and selecting disk in virt-manager causes virt-manager to freeze. It never times out, no message about missing disk is produced. However if VM is started it will correctly report missing disk.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Connect removable disk
2. Add connected disk to some VM
3. Shutdown and remove disk
4. Boot and start libvirtd service
5. Try to interact with service via virt-manager or virsh
virt-manager is "connecting" indefinitely. virsh list command never returns, prints nothing. libvirtd log shows no activity upon attempted connections.
Connecting to service should work. Starting VMs with missing disks should report an error. Inspecting missing disks that are added to VM should not freeze virt-manager.
Restoring contents of /etc/libvirt/storage to package defaults allows to properly connect to libvirtd. Removing disk elements from VM via virsh edit allows to get rid of missing disks that otherwise can not be removed via GUI.
What distro is this?
Can you still reproduce with a newer libvirt?
I think you'll need to get a gdb backtrace of libvirtd for us to know where it's hanging
Can not reproduce it any more so i guess it was fixed. Distro was archlinux by the way.