Blame SOURCES/bz2132008-fence_virt-add-note-reboot-action.patch

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