diff --git a/bz2132010-fence_virt-add-note-reboot-action.patch b/bz2132010-fence_virt-add-note-reboot-action.patch new file mode 100644 index 0000000..cb5ec00 --- /dev/null +++ b/bz2132010-fence_virt-add-note-reboot-action.patch @@ -0,0 +1,36 @@ +diff --color -uNr a/client/options.c b/client/options.c +--- a/client/options.c 2022-10-05 15:57:12.661717853 +0200 ++++ b/client/options.c 2022-10-05 15:56:44.854549898 +0200 +@@ -729,9 +729,9 @@ + + if (!print_stdin) { + if (progname) { +- printf("usage: %s [args]\n", progname); ++ printf("usage: %s [args]\n\nNOTE: reboot-action does not power on nodes that are powered off.\n\n", progname); + } else { +- printf("usage: fence_virt [args]\n"); ++ printf("usage: fence_virt [args]\n\nNOTE: reboot-action does not power on nodes that are powered off.\n\n"); + } + } + +@@ -761,7 +761,8 @@ + printf("\n"); + printf("\n", basename(progname)); + printf("%s is an I/O Fencing agent which can be used with " +- "virtual machines.\n", basename(progname)); ++ "virtual machines.\n\nNOTE: reboot-action does not power on nodes that are powered off." ++ "\n", basename(progname)); + printf("\n"); + + for (x = 0; x < strlen(optstr); x++) { +diff --color -uNr a/man/fence_virt.8 b/man/fence_virt.8 +--- a/man/fence_virt.8 2019-11-14 16:29:26.000000000 +0100 ++++ b/man/fence_virt.8 2022-10-05 16:01:44.001358622 +0200 +@@ -15,6 +15,7 @@ + For compatibility, fence_xvm may talk to fence_xvmd from linux-cluster + release 2 or later. + ++NOTE: reboot-action does not power on nodes that are powered off. + .P + fence_virt and fence_xvm accept options on the command line as well + as from stdin. The fencing daemon sends parameters through stdin diff --git a/fence-virt.spec b/fence-virt.spec index 23387a0..937aa3b 100644 --- a/fence-virt.spec +++ b/fence-virt.spec @@ -13,12 +13,13 @@ Name: fence-virt Summary: A pluggable fencing framework for virtual machines Version: 1.0.0 -Release: 2%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist} +Release: 3%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist} License: GPLv2+ Group: System Environment/Base URL: https://github.com/ClusterLabs/fence-virt Source0: %{name}-%{version}%{?rcver:%{rcver}}%{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}%{?dirty:-%{dirty}}.tar.bz2 Patch0: bz1927171-fence_xvm-fix-typo.patch +Patch1: bz2132010-fence_virt-add-note-reboot-action.patch %if 0%{?rhel} ExclusiveArch: i686 x86_64 @@ -47,7 +48,9 @@ Requires(postun): systemd-units Conflicts: fence-agents < 3.0.5-2 %prep -%autosetup -p1 +%setup -q -n %{name}-%{version}%{?rcver:%{rcver}}%{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}%{?dirty:-%{dirty}} +%patch0 -p1 +%patch1 -p1 %build ./autogen.sh @@ -176,6 +179,11 @@ are located on corosync cluster nodes. %{_libdir}/%{name}/cpg.so %changelog +* Wed Oct 5 2022 Oyvind Albrigtsen - 1.0.0-3 +- fence_virt: add note that reboot-action doesnt power on nodes that + are powered off + Resolves: rhbz#2132010 + * Fri Oct 15 2021 Oyvind Albrigtsen - 1.0.0-2 - fence_xvm: fix typo Resolves: rhbz#1927171