|
|
e4b78c |
From d664c254608c9342785f92d3da2ff6ba2466df3b Mon Sep 17 00:00:00 2001
|
|
|
e4b78c |
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
|
|
|
e4b78c |
Date: Tue, 4 Oct 2022 13:43:13 +0200
|
|
|
e4b78c |
Subject: [PATCH] fence_virt: add note that reboot-action doesnt power on nodes
|
|
|
e4b78c |
that are powered off
|
|
|
e4b78c |
|
|
|
e4b78c |
---
|
|
|
e4b78c |
agents/virt/client/options.c | 7 ++++---
|
|
|
e4b78c |
tests/data/metadata/fence_virt.xml | 4 +++-
|
|
|
e4b78c |
2 files changed, 7 insertions(+), 4 deletions(-)
|
|
|
e4b78c |
|
|
|
e4b78c |
diff --git a/agents/virt/client/options.c b/agents/virt/client/options.c
|
|
|
e4b78c |
index ff624481b..ddd6bc4e0 100644
|
|
|
e4b78c |
--- a/agents/virt/client/options.c
|
|
|
e4b78c |
+++ b/agents/virt/client/options.c
|
|
|
e4b78c |
@@ -734,9 +734,9 @@ args_usage(char *progname, const char *optstr, int print_stdin)
|
|
|
e4b78c |
|
|
|
e4b78c |
if (!print_stdin) {
|
|
|
e4b78c |
if (progname) {
|
|
|
e4b78c |
- printf("usage: %s [args]\n", progname);
|
|
|
e4b78c |
+ printf("usage: %s [args]\n\nNOTE: reboot-action does not power on nodes that are powered off.\n\n", progname);
|
|
|
e4b78c |
} else {
|
|
|
e4b78c |
- printf("usage: fence_virt [args]\n");
|
|
|
e4b78c |
+ printf("usage: fence_virt [args]\n\nNOTE: reboot-action does not power on nodes that are powered off.\n\n");
|
|
|
e4b78c |
}
|
|
|
e4b78c |
}
|
|
|
e4b78c |
|
|
|
e4b78c |
@@ -766,7 +766,8 @@ args_metadata(char *progname, const char *optstr)
|
|
|
e4b78c |
printf("\n");
|
|
|
e4b78c |
printf("<resource-agent name=\"%s\" shortdesc=\"Fence agent for virtual machines\">\n", basename(progname));
|
|
|
e4b78c |
printf("<longdesc>%s is an I/O Fencing agent which can be used with "
|
|
|
e4b78c |
- "virtual machines.</longdesc>\n", basename(progname));
|
|
|
e4b78c |
+ "virtual machines.\n\nNOTE: reboot-action does not power on nodes that are powered off."
|
|
|
e4b78c |
+ "</longdesc>\n", basename(progname));
|
|
|
e4b78c |
printf("<vendor-url>https://libvirt.org</vendor-url>\n");
|
|
|
e4b78c |
printf("<parameters>\n");
|
|
|
e4b78c |
|
|
|
e4b78c |
diff --git a/tests/data/metadata/fence_virt.xml b/tests/data/metadata/fence_virt.xml
|
|
|
e4b78c |
index eb1959a11..612d4d3cb 100644
|
|
|
e4b78c |
--- a/tests/data/metadata/fence_virt.xml
|
|
|
e4b78c |
+++ b/tests/data/metadata/fence_virt.xml
|
|
|
e4b78c |
@@ -1,6 +1,8 @@
|
|
|
e4b78c |
|
|
|
e4b78c |
<resource-agent name="fence_virt" shortdesc="Fence agent for virtual machines">
|
|
|
e4b78c |
-<longdesc>fence_virt is an I/O Fencing agent which can be used with virtual machines.</longdesc>
|
|
|
e4b78c |
+<longdesc>fence_virt is an I/O Fencing agent which can be used with virtual machines.
|
|
|
e4b78c |
+
|
|
|
e4b78c |
+NOTE: reboot-action does not power on nodes that are powered off.</longdesc>
|
|
|
e4b78c |
<vendor-url>https://libvirt.org</vendor-url>
|
|
|
e4b78c |
<parameters>
|
|
|
e4b78c |
<parameter name="debug" unique="0" required="0">
|