diff --git a/Fix-the-validation-function-of-input.patch b/Fix-the-validation-function-of-input.patch new file mode 100644 index 0000000000000000000000000000000000000000..63f65273c1af4227b3890de2d65915f10713879c --- /dev/null +++ b/Fix-the-validation-function-of-input.patch @@ -0,0 +1,25 @@ +From 97f65bfa392b5663e023f5bee46697e778423b55 Mon Sep 17 00:00:00 2001 +From: rpm-build +Date: Mon, 28 Aug 2023 17:02:22 +0800 +Subject: [PATCH] fix the validation function of input + +--- + agents/ocf/HealthCPU.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/agents/ocf/HealthCPU.in b/agents/ocf/HealthCPU.in +index a852a7a..4bd6e36 100755 +--- a/agents/ocf/HealthCPU.in ++++ b/agents/ocf/HealthCPU.in +@@ -207,7 +207,7 @@ meta-data) meta_data + ;; + start) healthcpu_start;; + stop) healthcpu_stop;; +-monitor) healthcpu_monitor;; ++monitor) healthcpu_validate && healthcpu_monitor;; + reload-agent) healthcpu_reload_agent;; + validate-all) healthcpu_validate;; + usage|help) healthcpu_usage +-- +2.33.1.windows.1 + diff --git a/pacemaker.spec b/pacemaker.spec index ceb58ebab4557e57cabb29bd66258d01dfa7bb81..40438be614423796c932636767b98f3226778786 100644 --- a/pacemaker.spec +++ b/pacemaker.spec @@ -17,7 +17,7 @@ ## can be incremented to build packages reliably considered "newer" ## than previously built packages with the same pcmkversion) %global pcmkversion 2.1.6 -%global specversion 6 +%global specversion 7 ## Upstream commit (full commit ID, abbreviated commit ID, or tag) to build %global commit 6fdc9deea294bbad629b003c6ae036aaed8e3ee0 @@ -156,6 +156,7 @@ Patch1: 0001-Add-the-parameter-of-dampening-and-fix-attrd_updater.patch Patch2: 0001-Add-the-parameter-of-dampening-and-fix-attrd_updater-HealthIOWait.patch Patch3: Fix-libcrmcommon-wait-for-reply-from-appropriate-con.patch Patch4: Refactor-fencer-sleep-1s-between-reconnects.patch +Patch5: Fix-the-validation-function-of-input.patch # upstream commits Requires: resource-agents @@ -775,6 +776,9 @@ exit 0 %license %{nagios_name}-%{nagios_hash}/COPYING %changelog +* Thu Aug 31 2023 liupei -2.1.6-7 +- Fix the validation function of input for HealthCPU + * Thu Aug 31 2023 bizhiyuan - 2.1.6-6 - Refactor: fencer: sleep 1s between reconnects