]> git.ipfire.org Git - thirdparty/libvirt.git/commit
sanlock: Forbid VIR_DOMAIN_LOCK_FAILURE_RESTART
authorJiri Denemark <jdenemar@redhat.com>
Mon, 24 Mar 2014 13:23:09 +0000 (14:23 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 25 Mar 2014 08:08:39 +0000 (09:08 +0100)
commit2cc27c34befd1922878be724f540b5578c3d492c
tree8c214df5379257bde8554967e7f6aa2eba651e5e
parente3dd35e881614e6f08a35e1e714336268764d5ba
sanlock: Forbid VIR_DOMAIN_LOCK_FAILURE_RESTART

https://bugzilla.redhat.com/show_bug.cgi?id=905282
https://bugzilla.redhat.com/show_bug.cgi?id=967494

When lock failure is detected by sanlock, our sanlock_helper kill script
will try to restart (shutdown followed by start) the affected domain
when RESTART action is configured for it. While shutting down kills QEMU
and removes all its leases (which is what sanlock wants to happen),
trying to start it again just hangs because libvirt tries reacquire the
locks in the failed lock space. Hence, this action cannot be supported
by sanlock driver.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/locking/lock_driver_sanlock.c
src/locking/sanlock_helper.c