Accepting request 942221 from network:ha-clustering:Factory

- fencer: get current time correctly
  * 0001-Fix-fencer-get-current-time-correctly.patch

- Update to version 2.1.2+20211124.ada5c3b36 (Pacemaker-2.1.2):
- fencer: add missing space to topology message
- controller: handle remote connection start timeouts correctly

- Update to version 2.1.1+20211116.8db4569e4 (Pacemaker-2.1.2-rc2):
- fencing: mark state as done if remapped "on" times out
- Fix OCF_RA_INSTALL_DIR Autoconf variable name in pkg-config files
- daemons: Free memory at the end of fail_pending_op.

- Update to version 2.1.1+20211104.62c36e2b1 (Pacemaker-2.1.2-rc1):
- Use user_include_exclude_cb in crm_mon more. (clbz#5485)
- Only set default sections in crm_mon once. (clbz#5485)
- fencer: improve messages for dynamic target queries (rh#1470834)
- fencer: consolidate messages for asynchronous results (rh#1470834)
- fencer: log a message when out of memory for dynamic target search (rh#1470834)
- libcrmservice: distinguish local and global configuration errors (rh#1470834)
- libcrmservice: improve messages for pre-execution failures in child (rh#1470834)

- Update to version 2.1.1+20211028.70f82d2c0:
- attrd: check election status upon loss of a voter to prevent unexpected pending (bsc#1191676)

- Update to version 2.1.1+20211028.7ee8b5bdd:
- tools: select technical or human-friendly output of failed actions (rh#1470834)
- controller,executor: tweak action result messages (rh#1470834)
- install init scripts only if not using systemd
- executor: log execution status and exit reason with results (rh#1470834)
- executor: improve result message (rh#1470834) (forwarded request 942220 from yan_gao)

OBS-URL: https://build.opensuse.org/request/show/942221
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pacemaker?expand=0&rev=140
This commit is contained in:
Dominique Leuenberger 2021-12-24 19:22:59 +00:00 committed by Git OBS Bridge
commit bdc86f6bb7
10 changed files with 289 additions and 65 deletions

View File

@ -0,0 +1,43 @@
From 0339e89f3238b31df78b864dae8684b82c370741 Mon Sep 17 00:00:00 2001
From: Ken Gaillot <kgaillot@redhat.com>
Date: Mon, 13 Dec 2021 15:22:40 -0600
Subject: [PATCH] Fix: fencer: get current time correctly
f52bc8e1ce (2.1.2) introduced a regression by using clock_gettime() with
CLOCK_MONOTONIC to get the current time. Use qb_util_timespec_from_epoch_get()
instead (which as of this writing uses clock_gettime() with CLOCK_REALTIME if
available, and falls back to gettimeofday() if not).
---
daemons/fenced/fenced_commands.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/daemons/fenced/fenced_commands.c b/daemons/fenced/fenced_commands.c
index f34cb4f13..7685cb8c3 100644
--- a/daemons/fenced/fenced_commands.c
+++ b/daemons/fenced/fenced_commands.c
@@ -2746,19 +2746,14 @@ bool fencing_peer_active(crm_node_t *peer)
return FALSE;
}
-void set_fencing_completed(remote_fencing_op_t * op)
+void
+set_fencing_completed(remote_fencing_op_t *op)
{
-#ifdef CLOCK_MONOTONIC
struct timespec tv;
- clock_gettime(CLOCK_MONOTONIC, &tv);
-
+ qb_util_timespec_from_epoch_get(&tv);
op->completed = tv.tv_sec;
op->completed_nsec = tv.tv_nsec;
-#else
- op->completed = time(NULL);
- op->completed_nsec = 0L;
-#endif
}
/*!
--
2.31.1

View File

@ -8,10 +8,10 @@
To update to a new release, change "revision" to the desired To update to a new release, change "revision" to the desired
git commit hash and bump "version" if necessary git commit hash and bump "version" if necessary
<param name="version">2.1.0</param> <param name="version">2.1.2</param>
--> -->
<param name="versionformat">2.1.0+%cd.%h</param> <param name="versionformat">2.1.2+%cd.%h</param>
<param name="revision">Pacemaker-2.1.1-rc3</param> <param name="revision">Pacemaker-2.1.2</param>
<param name="changesgenerate">enable</param> <param name="changesgenerate">enable</param>
</service> </service>

View File

@ -1,6 +1,6 @@
<servicedata> <servicedata>
<service name="tar_scm"> <service name="tar_scm">
<param name="url">git://github.com/ClusterLabs/pacemaker.git</param> <param name="url">git://github.com/ClusterLabs/pacemaker.git</param>
<param name="changesrevision">c6a4f6e6cdcedf08e0bfd81248b86812c2a571b2</param> <param name="changesrevision">ada5c3b36e2adf1703d54d39f40a4b8628eca175</param>
</service> </service>
</servicedata> </servicedata>

View File

@ -4,11 +4,11 @@ Date: Thu Sep 6 15:14:58 2012 +0800
Medium: stonith: Expose IDs of stonith resources to stonith agents through "$CRM_meta_st_device_id" environment variable Medium: stonith: Expose IDs of stonith resources to stonith agents through "$CRM_meta_st_device_id" environment variable
Index: pacemaker-2.0.5+20210104.8ae19fdf9/daemons/fenced/fenced_commands.c Index: pacemaker-2.1.1+20211028.7ee8b5bdd/daemons/fenced/fenced_commands.c
=================================================================== ===================================================================
--- pacemaker-2.0.5+20210104.8ae19fdf9.orig/daemons/fenced/fenced_commands.c --- pacemaker-2.1.1+20211028.7ee8b5bdd.orig/daemons/fenced/fenced_commands.c
+++ pacemaker-2.0.5+20210104.8ae19fdf9/daemons/fenced/fenced_commands.c +++ pacemaker-2.1.1+20211028.7ee8b5bdd/daemons/fenced/fenced_commands.c
@@ -937,6 +937,7 @@ build_device_from_xml(xmlNode * msg) @@ -1068,6 +1068,7 @@ build_device_from_xml(xmlNode * msg)
"on target", device->id, device->on_target_actions); "on target", device->id, device->on_target_actions);
} }
@ -16,11 +16,11 @@ Index: pacemaker-2.0.5+20210104.8ae19fdf9/daemons/fenced/fenced_commands.c
device->work = mainloop_add_trigger(G_PRIORITY_HIGH, stonith_device_dispatch, device); device->work = mainloop_add_trigger(G_PRIORITY_HIGH, stonith_device_dispatch, device);
/* TODO: Hook up priority */ /* TODO: Hook up priority */
Index: pacemaker-2.0.5+20210104.8ae19fdf9/lib/fencing/st_client.c Index: pacemaker-2.1.1+20211028.7ee8b5bdd/lib/fencing/st_client.c
=================================================================== ===================================================================
--- pacemaker-2.0.5+20210104.8ae19fdf9.orig/lib/fencing/st_client.c --- pacemaker-2.1.1+20211028.7ee8b5bdd.orig/lib/fencing/st_client.c
+++ pacemaker-2.0.5+20210104.8ae19fdf9/lib/fencing/st_client.c +++ pacemaker-2.1.1+20211028.7ee8b5bdd/lib/fencing/st_client.c
@@ -40,6 +40,7 @@ struct stonith_action_s { @@ -42,6 +42,7 @@ struct stonith_action_s {
char *action; char *action;
char *victim; char *victim;
GHashTable *args; GHashTable *args;
@ -28,7 +28,7 @@ Index: pacemaker-2.0.5+20210104.8ae19fdf9/lib/fencing/st_client.c
int timeout; int timeout;
int async; int async;
void *userdata; void *userdata;
@@ -586,6 +587,7 @@ stonith__destroy_action(stonith_action_t @@ -647,6 +648,7 @@ stonith__destroy_action(stonith_action_t
} }
free(action->output); free(action->output);
free(action->error); free(action->error);
@ -36,7 +36,7 @@ Index: pacemaker-2.0.5+20210104.8ae19fdf9/lib/fencing/st_client.c
free(action); free(action);
} }
} }
@@ -657,6 +659,8 @@ stonith_action_create(const char *agent, @@ -718,6 +720,8 @@ stonith_action_create(const char *agent,
if (device_args) { if (device_args) {
char buffer[512]; char buffer[512];
const char *value = NULL; const char *value = NULL;
@ -45,7 +45,7 @@ Index: pacemaker-2.0.5+20210104.8ae19fdf9/lib/fencing/st_client.c
snprintf(buffer, sizeof(buffer), "pcmk_%s_retries", _action); snprintf(buffer, sizeof(buffer), "pcmk_%s_retries", _action);
value = g_hash_table_lookup(device_args, buffer); value = g_hash_table_lookup(device_args, buffer);
@@ -664,6 +668,11 @@ stonith_action_create(const char *agent, @@ -725,6 +729,11 @@ stonith_action_create(const char *agent,
if (value) { if (value) {
action->max_retries = atoi(value); action->max_retries = atoi(value);
} }
@ -57,7 +57,7 @@ Index: pacemaker-2.0.5+20210104.8ae19fdf9/lib/fencing/st_client.c
} }
return action; return action;
@@ -806,6 +815,10 @@ internal_stonith_action_execute(stonith_ @@ -875,6 +884,10 @@ internal_stonith_action_execute(stonith_
SVC_ACTION_NON_BLOCKED, SVC_ACTION_NON_BLOCKED,
"SVC_ACTION_NON_BLOCKED"); "SVC_ACTION_NON_BLOCKED");
@ -68,13 +68,13 @@ Index: pacemaker-2.0.5+20210104.8ae19fdf9/lib/fencing/st_client.c
/* keep retries from executing out of control and free previous results */ /* keep retries from executing out of control and free previous results */
if (is_retry) { if (is_retry) {
free(action->output); free(action->output);
Index: pacemaker-2.0.5+20210104.8ae19fdf9/lib/services/services_linux.c Index: pacemaker-2.1.1+20211028.7ee8b5bdd/lib/services/services_linux.c
=================================================================== ===================================================================
--- pacemaker-2.0.5+20210104.8ae19fdf9.orig/lib/services/services_linux.c --- pacemaker-2.1.1+20211028.7ee8b5bdd.orig/lib/services/services_linux.c
+++ pacemaker-2.0.5+20210104.8ae19fdf9/lib/services/services_linux.c +++ pacemaker-2.1.1+20211028.7ee8b5bdd/lib/services/services_linux.c
@@ -28,6 +28,9 @@ @@ -29,6 +29,9 @@
#include "crm/common/mainloop.h"
#include "crm/services.h" #include "crm/services.h"
#include "crm/services_internal.h"
+#include "crm/stonith-ng.h" +#include "crm/stonith-ng.h"
+#include "crm/fencing/internal.h" +#include "crm/fencing/internal.h"
@ -82,7 +82,7 @@ Index: pacemaker-2.0.5+20210104.8ae19fdf9/lib/services/services_linux.c
#include "services_private.h" #include "services_private.h"
static void close_pipe(int fildes[]); static void close_pipe(int fildes[]);
@@ -405,6 +408,15 @@ static void @@ -406,6 +409,15 @@ static void
add_action_env_vars(const svc_action_t *op) add_action_env_vars(const svc_action_t *op)
{ {
void (*env_setter)(gpointer, gpointer, gpointer) = NULL; void (*env_setter)(gpointer, gpointer, gpointer) = NULL;

View File

@ -1,17 +1,17 @@
Index: pacemaker-2.0.4+20200819.114974685/daemons/execd/execd_commands.c Index: pacemaker-2.1.1+20211028.7ee8b5bdd/daemons/execd/execd_commands.c
=================================================================== ===================================================================
--- pacemaker-2.0.4+20200819.114974685.orig/daemons/execd/execd_commands.c --- pacemaker-2.1.1+20211028.7ee8b5bdd.orig/daemons/execd/execd_commands.c
+++ pacemaker-2.0.4+20200819.114974685/daemons/execd/execd_commands.c +++ pacemaker-2.1.1+20211028.7ee8b5bdd/daemons/execd/execd_commands.c
@@ -198,7 +198,7 @@ static void @@ -208,7 +208,7 @@ action_matches(lrmd_cmd_t *cmd, const ch
log_finished(lrmd_cmd_t * cmd, int exec_time, int queue_time) static void
log_finished(lrmd_cmd_t *cmd, int exec_time_ms, int queue_time_ms)
{ {
char pid_str[32] = { 0, };
- int log_level = LOG_INFO; - int log_level = LOG_INFO;
+ int log_level = LOG_NOTICE; + int log_level = LOG_NOTICE;
GString *str = g_string_sized_new(100); // reasonable starting size
if (cmd->last_pid) { if (pcmk__str_eq(cmd->action, "monitor", pcmk__str_casei)) {
snprintf(pid_str, 32, "%d", cmd->last_pid); @@ -248,7 +248,7 @@ log_finished(lrmd_cmd_t *cmd, int exec_t
@@ -223,7 +223,7 @@ log_finished(lrmd_cmd_t * cmd, int exec_
static void static void
log_execute(lrmd_cmd_t * cmd) log_execute(lrmd_cmd_t * cmd)
{ {

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:27f2b1b4bd150c1cf17b7d87f9c2bd6ca9f46bbc8c63dc3cfc9d27a4c1e20543
size 3473932

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6e240106c50fa32b0b32834afd01cc5ebd44e6c0135ea963f27fbb7a101d714a
size 3494436

View File

@ -1,3 +1,180 @@
-------------------------------------------------------------------
Wed Dec 22 13:36:05 UTC 2021 - Yan Gao <ygao@suse.com>
- fencer: get current time correctly
* 0001-Fix-fencer-get-current-time-correctly.patch
-------------------------------------------------------------------
Wed Dec 22 13:25:51 UTC 2021 - Yan Gao <ygao@suse.com>
- Update to version 2.1.2+20211124.ada5c3b36 (Pacemaker-2.1.2):
- fencer: add missing space to topology message
- controller: handle remote connection start timeouts correctly
-------------------------------------------------------------------
Wed Dec 22 11:24:15 UTC 2021 - Yan Gao <ygao@suse.com>
- Update to version 2.1.1+20211116.8db4569e4 (Pacemaker-2.1.2-rc2):
- fencing: mark state as done if remapped "on" times out
- Fix OCF_RA_INSTALL_DIR Autoconf variable name in pkg-config files
- daemons: Free memory at the end of fail_pending_op.
-------------------------------------------------------------------
Wed Dec 22 11:17:24 UTC 2021 - Yan Gao <ygao@suse.com>
- Update to version 2.1.1+20211104.62c36e2b1 (Pacemaker-2.1.2-rc1):
- Use user_include_exclude_cb in crm_mon more. (clbz#5485)
- Only set default sections in crm_mon once. (clbz#5485)
- fencer: improve messages for dynamic target queries (rh#1470834)
- fencer: consolidate messages for asynchronous results (rh#1470834)
- fencer: log a message when out of memory for dynamic target search (rh#1470834)
- libcrmservice: distinguish local and global configuration errors (rh#1470834)
- libcrmservice: improve messages for pre-execution failures in child (rh#1470834)
-------------------------------------------------------------------
Wed Dec 22 10:35:46 UTC 2021 - Yan Gao <ygao@suse.com>
- Update to version 2.1.1+20211028.70f82d2c0:
- attrd: check election status upon loss of a voter to prevent unexpected pending (bsc#1191676)
-------------------------------------------------------------------
Wed Dec 22 10:23:59 UTC 2021 - Yan Gao <ygao@suse.com>
- Update to version 2.1.1+20211028.7ee8b5bdd:
- tools: select technical or human-friendly output of failed actions (rh#1470834)
- controller,executor: tweak action result messages (rh#1470834)
- install init scripts only if not using systemd
- executor: log execution status and exit reason with results (rh#1470834)
- executor: improve result message (rh#1470834)
- controller: log exit reason with action results (rh#1470834)
- controller: make executor result messages more consistent (rh#1470834)
- daemon metadata: Output OCF-1.1-style metadata for enum options
- libcrmservice: avoid memory leak when checking systemd unit existence
- fencer: avoid memory leak on async execution failure (rh#1470834)
- fencer: report correct code for CIB secret failure (rh#1470834)
- libcrmservice: improve exit codes for child execution failures (rh#1470834)
- cib,pacemakerd,libcrmcommon,libcrmservice: improve child completion logs (rh#1470834)
- executor: map nagios warnings to OCF "degraded" result code (rh#1470834)
- schemas: update crm_resource API schema for --force-* changes (rh#1470834)
- tools: show exit reason for crm_resource --force-* (rh#1470834)
- daemons: Be more careful about restarting subdaemons. (clbz#5225)
- daemons: Re-register UID/GID with corosync on restart.
- tools: handle crm_resource --force-* failures consistently (rh#1470834)
- tools: improve check for supported standards in crm_resource --force-* (rh#1470834)
- tools: map LSB status to OCF correctly with crm_resource --force-check (rh#1470834)
- tools: show detailed message with crm_resource --force-* failure (rh#1470834)
- daemons: Correct which subdaemons need the cluster.
- daemons: Keep track of which daemons need corosync.
- libcrmservice: improve handling of too many nagios parameters (rh#1470834)
- executor,libstonithd,libcrmservice: better error handling for generic actions (rh#1470834)
- libcrmservice: set exit reason for some memory errors when creating action (rh#1470834)
- executor,libcrmservice: set exit reason for invalid arguments (rh#1470834)
- executor: use exit reason from service library when available (rh#1470834)
- libcrmservice: set exit reason for internal errors (rh#1470834)
- tools: avoid double free with crm_resource --force-*
- tools: avoid error message when no stdout
- fencing: improve error handling when executing fence actions (rh#1470834)
- libcrmservice: check for memory errors when creating an action (rh#1470834)
- executor,libcrmservice: don't overwrite execution status from execute_action() (rh#1470834)
- executor,controller,libcrmservice: use PCMK_OCF_UNKNOWN_ERROR for timeouts (rh#1470834)
- libcrmservice: don't assert for mainloop error (rh#1470834)
- libcrmservice: ensure rc/status are set for meta-data failures (rh#1470834)
- libcrmservice: ensure synchronous file action always sets rc and status (rh#1470834)
- libcrmservice: use NAGIOS_STATE_UNKNOWN for internal nagios errors (rh#1470834)
- libcrmservice: use standard-appropriate exit code for signal management failures (rh#1470834)
- libcrmservice: properly detect systemd unit existence (rh#1470834)
- Rebase:
* bug-728579_pacemaker-stonith-dev-id.patch
* bug-943295_pacemaker-lrmd-log-notice.patch
-------------------------------------------------------------------
Mon Dec 20 14:35:20 UTC 2021 - Yan Gao <ygao@suse.com>
- Update to version 2.1.1+20210924.be206af22:
- fenced: Change query timeout calculation.
- resources: update HealthIOWait agent for OCF 1.1
- resources: add integer parameter validation to HealthIOWait
- resources: fix HealthIOWait validate action
-------------------------------------------------------------------
Mon Dec 20 12:44:34 UTC 2021 - Yan Gao <ygao@suse.com>
- Update to version 2.1.1+20210923.ce81ff72e:
- tools: Properly display supported output formats in crm_mon.
- libcrmservice: avoid possible use-of-NULL
- libcrmservice: update systemd agent meta-data for OCF 1.1
- libcrmservice: set default execution status for systemd actions to error (rh#1470834)
- libcrmservice: ensure status is set when masking systemd errors (rh#1470834)
- libcrmservice: ensure rc/status are set when parsing systemd results (rh#1470834)
- libcrmservice: ensure execution status is set after parsing status result (rh#1470834)
- libcrmservice: ensure rc/status are set after invoking systemd unit paths (rh#1470834)
- libcrmservice: ensure rc/status are set after systemd LoadUnit calls (rh#1470834)
- libcrmservice: ensure rc/status are set when loading systemd unit (rh#1470834)
- libcrmservice: set rc and status appropriately for systemd timeouts (rh#1470834)
- libcrmservice: handle corner cases when creating action (rh#1470834)
- libcrmservice: always set rc/status when executing files (rh#1470834)
- libcrmservice: always set rc/status when executing systemd actions (rh#1470834)
- libstonithd: check libcrmservice status rather than exit code for timeouts (rh#1470834)
- fencer: avoid assertions in delegate_from_xml()
- scheduler: quote execution status in failed action output (rh#1470834)
- liblrmd: don't mask errors from sending IPC (rh#1470834)
- executor: set exit reason for stonith resource action failures (rh#1470834)
- controller: set exit reason for executor communication timeout (rh#1470834)
- controller: use OCF timeout exit code for executor communication timeout (rh#1470834)
- controller: set exit reason when using synthesize_lrmd_failure() (rh#1470834)
- controller: set exit reason when using fake_op_status() (rh#1470834)
- controller,libpacemaker: set exit reason for internal errors (rh#1470834)
-------------------------------------------------------------------
Mon Dec 20 10:05:39 UTC 2021 - Yan Gao <ygao@suse.com>
- Update to version 2.1.1+20210910.89c5b06a3:
- controller: use "not connected" status for remote execution failure (rh#1470834)
- controller: send error reply if can't initiate action via executor (rh#1470834)
- controller: improve messages for failed resource agent actions (rh#1470834)
- tools: better error message if crm_resource can't create action (rh#1470834)
- controller: set exit reason when remote connection start fails (rh#1470834)
- tools: better error messages for crm_resource executor failures (rh#1470834)
- fenced: add support for mapping pcmk_delay_base pr node
- scheduler: use existing epoch-to-string function in failed action display (rh#1470834)
- scheduler: add exit reason to failed action string only if present (rh#1470834)
- scheduler: add timing details to failed action strings only when available (rh#1470834)
- scheduler: ensure failed action display handles NULL values (rh#1470834)
- fence_watchdog: fix malformed xml in metadata
- fenced: support escaped characters as values in pcmk_host_map
- fenced: Added nanosecond field to operation completion data.
- controller: use sensible message for poke of disconnected executor (rh#1470834)
- controller: improve messages for remote executor connection failure (rh#1470834)
- controller: improve message for failed local executor connection (rh#1470834)
- scheduler: reword "multiply active" message (rh#1470834)
- libcrmcluster: reword initial quorum message (rh#1470834)
- libcrmcluster: downgrade message for CPG messages sent (rh#1470834)
- scheduler: improve migration threshold message (rh#1470834)
- fencer: downgrade reboot remapping to notice
- controller: handle malformed CIB diffs better
- scheduler: avoid memory leak for invalid ordering constraints
- scheduler: improve bad id-ref handling
- scheduler: downgrade inverse ordering failure to warning
- fence_watchdog: fix version output needed for help2man
- rpm: package fence_watchdog in base-package
- watchdog-fencing: Silence warning without node restriction
- tools: If there are no nodes, don't add an extra blank line.
- watchdog-fencing: allow restriction to certain nodes
-------------------------------------------------------------------
Wed Dec 8 14:47:53 UTC 2021 - Yan Gao <ygao@suse.com>
- pacemaker.rpmlintrc: filter out shlib-policy-name-error (bsc#1191776)
-------------------------------------------------------------------
Wed Dec 08 14:14:53 UTC 2021 - Yan Gao <ygao@suse.com>
- Update to version 2.1.1+20210909.77db57872 (Pacemaker-2.1.1):
- liblrmd: avoid segfault on TLS connection errors
- tools: Fix a segfault when calling "crm_simulate -U".
- tools: make exit-code stdout/stderr consistent with --version
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Sep 10 14:17:49 UTC 2021 - Yan Gao <ygao@suse.com> Fri Sep 10 14:17:49 UTC 2021 - Yan Gao <ygao@suse.com>
@ -592,7 +769,7 @@ Thu Jan 28 14:22:47 UTC 2021 - Yan Gao <ygao@suse.com>
- fencer: use singular or plural correctly in messages - fencer: use singular or plural correctly in messages
- pacemakerd: improve error message when -S can't connect - pacemakerd: improve error message when -S can't connect
- libcrmcommon: improve messages when adding a log file - libcrmcommon: improve messages when adding a log file
- libcrmcommon: drop unformatted log message about log permissions - libcrmcommon: drop unformatted log message about log permissions (bsc#1190821)
- libcrmcommon: drop unnecessary parent check when adding log file - libcrmcommon: drop unnecessary parent check when adding log file
- daemons: improve client name used in log messages - daemons: improve client name used in log messages
- ipc_client: Use libqb to get auth data for ipcc connections - ipc_client: Use libqb to get auth data for ipcc connections

View File

@ -2,3 +2,4 @@ addFilter("script-without-shebang /usr/share/pacemaker/.*\.rng")
addFilter("script-without-shebang /usr/share/pacemaker/.*\.dtd") addFilter("script-without-shebang /usr/share/pacemaker/.*\.dtd")
addFilter("script-without-shebang /usr/share/pacemaker/.*\.xsl") addFilter("script-without-shebang /usr/share/pacemaker/.*\.xsl")
addFilter("non-executable-script /usr/share/pacemaker/cts/") addFilter("non-executable-script /usr/share/pacemaker/cts/")
addFilter("shlib-policy-name-error")

View File

@ -84,9 +84,8 @@
# Python-related definitions # Python-related definitions
## Path to Python interpreter (leave commented to auto-detect, ## Prefer Python 3 definitions explicitly, in case 2 is also available
## or uncomment and edit to use a specific version) %global python_path %{__python3}
%global python_path /usr/bin/python%{python3_version}
# Keep sane profiling data if requested # Keep sane profiling data if requested
%if %{with profiling} %if %{with profiling}
@ -107,7 +106,7 @@
%define with_regression_tests 0 %define with_regression_tests 0
Name: pacemaker Name: pacemaker
Version: 2.1.0+20210816.c6a4f6e6c Version: 2.1.2+20211124.ada5c3b36
Release: 0 Release: 0
Summary: Scalable High-Availability cluster resource manager Summary: Scalable High-Availability cluster resource manager
# AGPL-3.0 licensed extra/clustermon.sh is not present in the binary # AGPL-3.0 licensed extra/clustermon.sh is not present in the binary
@ -129,6 +128,7 @@ Patch7: bug-977201_pacemaker-controld-self-fencing.patch
Patch8: bug-995365_pacemaker-cts-restart-systemd-journald.patch Patch8: bug-995365_pacemaker-cts-restart-systemd-journald.patch
Patch9: pacemaker-cts-StartCmd.patch Patch9: pacemaker-cts-StartCmd.patch
Patch10: bsc#1180966-0001-Log-pacemakerd-downgrade-the-warning-about-SBD_SYNC_.patch Patch10: bsc#1180966-0001-Log-pacemakerd-downgrade-the-warning-about-SBD_SYNC_.patch
Patch11: 0001-Fix-fencer-get-current-time-correctly.patch
# Required for core functionality # Required for core functionality
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
@ -146,6 +146,8 @@ BuildRequires: pkgconfig
BuildRequires: resource-agents BuildRequires: resource-agents
BuildRequires: sed BuildRequires: sed
BuildRequires: pkgconfig(bzip2) BuildRequires: pkgconfig(bzip2)
# Required for "make check"
BuildRequires: pkgconfig(cmocka)
BuildRequires: pkgconfig(corosync) >= 2.0.0 BuildRequires: pkgconfig(corosync) >= 2.0.0
BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(glib-2.0) >= 2.42 BuildRequires: pkgconfig(glib-2.0) >= 2.42
@ -159,6 +161,7 @@ BuildRequires: pkgconfig(libxslt)
BuildRequires: pkgconfig(python3) BuildRequires: pkgconfig(python3)
BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(uuid) BuildRequires: pkgconfig(uuid)
BuildRequires: python-rpm-macros
Requires: %{name}-cli = %{version}-%{release} Requires: %{name}-cli = %{version}-%{release}
Requires: corosync >= 2.0.0 Requires: corosync >= 2.0.0
Requires: libpacemaker3 = %{version}-%{release} Requires: libpacemaker3 = %{version}-%{release}
@ -348,6 +351,7 @@ manager.
%patch8 -p1 %patch8 -p1
%patch9 -p1 %patch9 -p1
%patch10 -p1 %patch10 -p1
%patch11 -p1
%build %build
@ -415,10 +419,6 @@ find %{buildroot} -type f -name "*.la" -delete -print
rm -f %{buildroot}/%{_sbindir}/notifyServicelogEvent rm -f %{buildroot}/%{_sbindir}/notifyServicelogEvent
rm -f %{buildroot}/%{_sbindir}/ipmiservicelogd rm -f %{buildroot}/%{_sbindir}/ipmiservicelogd
# Don't ship init scripts for systemd based platforms
rm -f %{buildroot}/%{_initddir}/pacemaker
rm -f %{buildroot}/%{_initddir}/pacemaker_remote
%if %{with coverage} %if %{with coverage}
GCOV_BASE=%{buildroot}/%{_var}/lib/pacemaker/gcov GCOV_BASE=%{buildroot}/%{_var}/lib/pacemaker/gcov
mkdir -p $GCOV_BASE mkdir -p $GCOV_BASE
@ -538,6 +538,7 @@ fi
%{_libexecdir}/pacemaker/* %{_libexecdir}/pacemaker/*
%{_sbindir}/fence_legacy %{_sbindir}/fence_legacy
%{_sbindir}/fence_watchdog
%{_mandir}/man7/pacemaker-controld.7%{ext_man} %{_mandir}/man7/pacemaker-controld.7%{ext_man}
%{_mandir}/man7/pacemaker-schedulerd.7%{ext_man} %{_mandir}/man7/pacemaker-schedulerd.7%{ext_man}
@ -546,6 +547,7 @@ fi
%{_mandir}/man7/ocf_pacemaker_o2cb.7%{ext_man} %{_mandir}/man7/ocf_pacemaker_o2cb.7%{ext_man}
%{_mandir}/man7/ocf_pacemaker_remote.7%{ext_man} %{_mandir}/man7/ocf_pacemaker_remote.7%{ext_man}
%{_mandir}/man8/fence_legacy.8%{ext_man} %{_mandir}/man8/fence_legacy.8%{ext_man}
%{_mandir}/man8/fence_watchdog.8%{ext_man}
%{_mandir}/man8/pacemakerd.8%{ext_man} %{_mandir}/man8/pacemakerd.8%{ext_man}
%doc %{_datadir}/pacemaker/alerts %doc %{_datadir}/pacemaker/alerts
@ -614,6 +616,7 @@ fi
%exclude %{_mandir}/man7/ocf_pacemaker_remote.* %exclude %{_mandir}/man7/ocf_pacemaker_remote.*
%{_mandir}/man8/* %{_mandir}/man8/*
%exclude %{_mandir}/man8/fence_legacy.* %exclude %{_mandir}/man8/fence_legacy.*
%exclude %{_mandir}/man8/fence_watchdog.*
%exclude %{_mandir}/man8/pacemakerd.* %exclude %{_mandir}/man8/pacemakerd.*
%exclude %{_mandir}/man8/pacemaker-remoted.* %exclude %{_mandir}/man8/pacemaker-remoted.*