From 76f5bcabe611d90cca202fe365340a753f8cd0c3 Mon Sep 17 00:00:00 2001 From: Jiri Denemark Date: Thu, 6 Sep 2012 22:17:01 +0200 Subject: [PATCH] conf: Add on_lockfailure event configuration Using this new element, one can configure an action that should be performed when resource locks are lost. --- docs/formatdomain.html.in | 22 ++++++++++++++++++++++ docs/schemas/domaincommon.rng | 22 ++++++++++++++++++++++ src/conf/domain_conf.c | 19 +++++++++++++++++++ src/conf/domain_conf.h | 14 ++++++++++++++ src/libvirt_private.syms | 2 ++ 5 files changed, 79 insertions(+) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index f6f24b1c28..71b2f76a52 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -919,6 +919,7 @@ <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> + <on_lockfailure>poweroff</on_lockfailure> ...

@@ -974,6 +975,27 @@ domain will be restarted with the same configuration +

+ The on_lockfailure element (since + 0.10.3) may be used to configure what action should be + taken when a lock manager loses resource locks. The following + actions are recognized by libvirt, although not all of them need + to be supported by individual lock managers. When no action is + specified, each lock manager will take its default action. +

+
+
poweroff
+
The domain will be forcefully powered off.
+
restart
+
The domain will be powered off and started up again to + reacquire its locks.
+
pause
+
The domain will be paused so that it can be manually resumed + when lock issues are solved.
+
ignore
+
Keep the domain running as if nothing happened.
+
+

Power Management

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index ab8d4a11f7..2df2efa701 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -2246,6 +2246,11 @@ + + + + + + + + poweroff + restart + pause + ignore + +