Bug 1136788
Summary: | libvirtd segfault while starting a guest with <on_lockfailure> as ignore | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Xuesong Zhang <xuzhang> |
Component: | libvirt | Assignee: | Jiri Denemark <jdenemar> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.6 | CC: | bsanford, danken, dyuan, lsu, mprivozn, myakove, mzhan, pzhang, rbalakri, shyu, tpelka, yanyang |
Target Milestone: | rc | Keywords: | Upstream |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-0.10.2-47.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-07-22 05:47:01 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Xuesong Zhang
2014-09-03 10:06:46 UTC
This just makes libvirt to report a different (and unhelpful) error message when starting such domain. The crash is a bug in failure path after encountering unsupported "ignore" action. Fixed upstream by v1.2.8-7-g760cf5d: commit 760cf5d30e44803268a7103175056a3203d52527 Author: Jiri Denemark <jdenemar> Date: Wed Sep 3 13:18:59 2014 +0200 sanlock: Avoid freeing uninitialized value https://bugzilla.redhat.com/show_bug.cgi?id=1136788 Signed-off-by: Jiri Denemark <jdenemar> *** Bug 1148467 has been marked as a duplicate of this bug. *** Moving to POST: http://post-office.corp.redhat.com/archives/rhvirt-patches/2014-October/msg00221.html verify version: libvirt-0.10.2-47.el6.x86_64 qemu-kvm-rhev-0.12.1.2-2.449.el6.x86_64 kernel-2.6.32-504.el6.x86_64 steps: 1. configure the sanlock env. #tail -1 /etc/lib/libvirt/qemu.conf lock_manager = "sanlock" #tail -6 /etc/lib/libvirt/qemu-sanlock.conf auto_disk_leases = 1 disk_lease_dir = "/var/lib/libvirt/sanlock" host_id = 1 require_lease_for_disks = 1 user = "sanlock" group = "sanlock" #setsebool virt_use_sanlock on 2.Service start #service wdmd start #service sanlock start #service libvirtd restart 3. add on_lockfailure ignore element to domain XML # virsh dumpxml r6-rls | grep on_lockfailure ...... <on_lockfailure>ignore</on_lockfailure> ...... 4.try to start the guest . # virsh start r6-rls error: Failed to start domain r6-rls error: internal error unsupported configuration: Failure action ignore is not supported by sanlock 5. check libvirtd status , libvirtd still running # service libvirtd status libvirtd (pid 27623) is running... libvirt report a clear error message and still running . move to 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. https://rhn.redhat.com/errata/RHBA-2015-1252.html |