Red Hat Bugzilla – Bug 1097227
VM migration in RHEV environment failed due to libvirt error "Failed to inquire lock: No such process"
Last modified: 2014-05-27 12:27:18 EDT
This bug has been copied from bug #1088034 and has been proposed to be backported to 6.5 z-stream (EUS).
I can reproduce this bug with the libvirt-0.10.2-29.el6_5.7.x86_64 with the pure libvirt env steps 1. start a guest with default configuration, that means with sanlock disabled. 2. enable sanlock by edit qemu.conf: lock_manager = "sanlock" and edit qemu-sanlock.conf: auto_disk_leases = 0 require_lease_for_disks = 0 3. restart libvirtd. 4. do migrate for the guest: # virsh migrate rhel651 qemu+ssh://$target_ip/system --verbose error: Failed to inquire lock: No such process verify this bug with libvirt-0.10.2-29.el6_5.8 1.Retest the step4 with libvirt-0.10.2-29.el6_5.8, the guest can be migrated successfully # virsh migrate rhel651 qemu+ssh://$target_ip/system --verbose Migration: [100 %] 2.Migrate the guest back to the source, will fail to migrate, this was the expect result since we didn't configure the proper sanlock in the source # virsh migrate --live rhel651 qemu+ssh://$source_ip/system --verbose root@source_ip's password: error: Child quit during startup handshake: Input/output error 3.Configure the proper sanlock in the source, then re-migrate the guest back to the target, the guest can be migrated successfully # getsebool -a | grep sanlock sanlock_use_fusefs --> off sanlock_use_nfs --> on sanlock_use_samba --> off virt_use_sanlock --> on #cat /etc/libvirt/qemu.conf lock_manager = "sanlock" # tail -5 /etc/libvirt/qemu-sanlock.conf user = "sanlock" group = "sanlock" host_id = 1 auto_disk_leases = 1 disk_lease_dir = "/var/lib/libvirt/sanlock" #service wdmd start #service sanlock start #service libvirtd restart # virsh migrate --live rhel651 qemu+ssh://$source_ip/system --verbose root@$source_ip's password: Migration: [100 %] Base the upper steps mark this bug verified
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2014-0560.html