Bug 967493
Summary: | Lockfailure action Ignore will lead to sanlock rem_lockspace stuck | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Luwen Su <lsu> |
Component: | libvirt | Assignee: | Jiri Denemark <jdenemar> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | ajia, cwei, dyuan, fsimonce, jdenemar, mzhan, rbalakri, shyu, teigland |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.2.7-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 905280 | Environment: | |
Last Closed: | 2015-03-05 07:20:38 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: | |||
Bug Depends On: | 905280 | ||
Bug Blocks: |
Description
Luwen Su
2013-05-27 09:46:56 UTC
I believe that the libvirt "autoleases" capability should be removed. If not removed, I believe it should be disabled by Red Hat. There is no case in which Red Hat wants to use or support this capability. This is fixed upstream by v1.2.2-340-ge3dd35e: commit e3dd35e881614e6f08a35e1e714336268764d5ba Author: Jiri Denemark <jdenemar> Date: Mon Mar 24 14:22:36 2014 +0100 sanlock: Forbid VIR_DOMAIN_LOCK_FAILURE_IGNORE https://bugzilla.redhat.com/show_bug.cgi?id=905280 https://bugzilla.redhat.com/show_bug.cgi?id=967493 Sanlock expects that the configured kill script either kills the PID on lock failure or removes all locks the PID owns. If none of the two options happen, sanlock will reboot the host. Although IGNORE action is supposed to ignore the request to kill the PID or remove all leases, it's certainly not designed to cause the host to be rebooted. That said, IGNORE action is incompatible with sanlock and should be forbidden by libvirt. Signed-off-by: Jiri Denemark <jdenemar> Verify this bug with libvirt-1.2.8-9.el7.x86_64 Step: 1. Define guest with below options .. <on_lockfailure>ignore</on_lockfailure> .. 2. Try to start guest # virsh start r7 error: Failed to start domain r7 error: internal error: Process exited prior to exec: libvirt: Lock Driver error : unsupported configuration: Failure action ignore is not supported by sanlock on_lockfailure options "ignore" is not supported anymore, so the result is expected. 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/RHSA-2015-0323.html |