Compare commits

..

No commits in common. "factory" and "factory" have entirely different histories.

11 changed files with 134 additions and 721 deletions

View File

@ -8,10 +8,10 @@
To update to a new release, change "revision" to the desired
git commit hash and bump "version" if necessary
<param name="version">3.0.0</param>
<param name="version">2.1.7</param>
-->
<param name="versionformat">3.0.0+%cd.%h</param>
<param name="revision">3d0ffefd9e</param>
<param name="versionformat">2.1.7+%cd.%h</param>
<param name="revision">239cba384f</param>
<param name="changesgenerate">enable</param>
</service>

View File

@ -5,4 +5,4 @@
</service>
<service name="tar_scm">
<param name="url">https://github.com/ClusterLabs/pacemaker.git</param>
<param name="changesrevision">3d0ffefd9e1f92ec333e66006c2f0f6da1168566</param></service></servicedata>
<param name="changesrevision">d7c233090057d4f660fa458a2ff97896b15ea951</param></service></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
Index: pacemaker-3.0.0+20250114.9931db7727/daemons/fenced/fenced_commands.c
Index: pacemaker-2.1.7+20240208.bc5596299/daemons/fenced/fenced_commands.c
===================================================================
--- pacemaker-3.0.0+20250114.9931db7727.orig/daemons/fenced/fenced_commands.c
+++ pacemaker-3.0.0+20250114.9931db7727/daemons/fenced/fenced_commands.c
@@ -1085,6 +1085,7 @@ build_device_from_xml(xmlNode *dev)
--- pacemaker-2.1.7+20240208.bc5596299.orig/daemons/fenced/fenced_commands.c
+++ pacemaker-2.1.7+20240208.bc5596299/daemons/fenced/fenced_commands.c
@@ -1151,6 +1151,7 @@ build_device_from_xml(xmlNode *dev)
(const char *) device->on_target_actions->str);
}
@ -16,10 +16,10 @@ Index: pacemaker-3.0.0+20250114.9931db7727/daemons/fenced/fenced_commands.c
device->work = mainloop_add_trigger(G_PRIORITY_HIGH, stonith_device_dispatch, device);
/* TODO: Hook up priority */
Index: pacemaker-3.0.0+20250114.9931db7727/lib/fencing/st_actions.c
Index: pacemaker-2.1.7+20240208.bc5596299/lib/fencing/st_actions.c
===================================================================
--- pacemaker-3.0.0+20250114.9931db7727.orig/lib/fencing/st_actions.c
+++ pacemaker-3.0.0+20250114.9931db7727/lib/fencing/st_actions.c
--- pacemaker-2.1.7+20240208.bc5596299.orig/lib/fencing/st_actions.c
+++ pacemaker-2.1.7+20240208.bc5596299/lib/fencing/st_actions.c
@@ -31,6 +31,7 @@ struct stonith_action_s {
char *agent;
char *action;
@ -28,7 +28,7 @@ Index: pacemaker-3.0.0+20250114.9931db7727/lib/fencing/st_actions.c
int timeout;
bool async;
void *userdata;
@@ -225,6 +226,7 @@ stonith__destroy_action(stonith_action_t
@@ -224,6 +225,7 @@ stonith__destroy_action(stonith_action_t
services_action_free(action->svc_action);
}
pcmk__reset_result(&(action->result));
@ -36,7 +36,7 @@ Index: pacemaker-3.0.0+20250114.9931db7727/lib/fencing/st_actions.c
free(action);
}
}
@@ -283,6 +285,8 @@ stonith__action_create(const char *agent
@@ -284,6 +286,8 @@ stonith__action_create(const char *agent
if (device_args) {
char buffer[512];
const char *value = NULL;
@ -45,7 +45,7 @@ Index: pacemaker-3.0.0+20250114.9931db7727/lib/fencing/st_actions.c
snprintf(buffer, sizeof(buffer), "pcmk_%s_retries", action_name);
value = g_hash_table_lookup(device_args, buffer);
@@ -290,6 +294,11 @@ stonith__action_create(const char *agent
@@ -291,6 +295,11 @@ stonith__action_create(const char *agent
if (value) {
action->max_retries = atoi(value);
}
@ -57,9 +57,9 @@ Index: pacemaker-3.0.0+20250114.9931db7727/lib/fencing/st_actions.c
}
return action;
@@ -648,6 +657,10 @@ internal_stonith_action_execute(stonith_
return -E2BIG;
}
@@ -628,6 +637,10 @@ internal_stonith_action_execute(stonith_
SVC_ACTION_NON_BLOCKED,
"SVC_ACTION_NON_BLOCKED");
+ if (action->dev_id) {
+ svc_action->rsc = strdup(action->dev_id);
@ -68,11 +68,11 @@ Index: pacemaker-3.0.0+20250114.9931db7727/lib/fencing/st_actions.c
/* keep retries from executing out of control and free previous results */
if (is_retry) {
pcmk__reset_result(&(action->result));
Index: pacemaker-3.0.0+20250114.9931db7727/lib/services/services_linux.c
Index: pacemaker-2.1.7+20240208.bc5596299/lib/services/services_linux.c
===================================================================
--- pacemaker-3.0.0+20250114.9931db7727.orig/lib/services/services_linux.c
+++ pacemaker-3.0.0+20250114.9931db7727/lib/services/services_linux.c
@@ -25,6 +25,9 @@
--- pacemaker-2.1.7+20240208.bc5596299.orig/lib/services/services_linux.c
+++ pacemaker-2.1.7+20240208.bc5596299/lib/services/services_linux.c
@@ -29,6 +29,9 @@
#include "crm/services.h"
#include "crm/services_internal.h"
@ -82,7 +82,7 @@ Index: pacemaker-3.0.0+20250114.9931db7727/lib/services/services_linux.c
#include "services_private.h"
static void close_pipe(int fildes[]);
@@ -446,6 +449,15 @@ static void
@@ -406,6 +409,15 @@ static void
add_action_env_vars(const svc_action_t *op)
{
void (*env_setter)(gpointer, gpointer, gpointer) = NULL;

View File

@ -4,24 +4,24 @@ Date: Thu Mar 14 09:41:53 2013 +0800
Log: Change some messages to notice level (bnc#806256)
Index: pacemaker-2.1.9+20241118.394d77ec98/daemons/controld/controld_membership.c
Index: pacemaker-2.1.7+20240118.9ae4bea49/daemons/controld/controld_membership.c
===================================================================
--- pacemaker-2.1.9+20241118.394d77ec98.orig/daemons/controld/controld_membership.c
+++ pacemaker-2.1.9+20241118.394d77ec98/daemons/controld/controld_membership.c
@@ -431,7 +431,7 @@ crm_update_quorum(gboolean quorum, gbool
--- pacemaker-2.1.7+20240118.9ae4bea49.orig/daemons/controld/controld_membership.c
+++ pacemaker-2.1.7+20240118.9ae4bea49/daemons/controld/controld_membership.c
@@ -432,7 +432,7 @@ crm_update_quorum(gboolean quorum, gbool
crm_xml_add_int(update, PCMK_XA_HAVE_QUORUM, quorum);
crm_xml_add(update, PCMK_XA_DC_UUID, controld_globals.our_uuid);
- crm_debug("Updating quorum status to %s", pcmk__btoa(quorum));
+ crm_notice("Updating quorum status to %s", pcmk__btoa(quorum));
controld_update_cib(PCMK_XE_CIB, update, cib_none,
controld_update_cib(PCMK_XE_CIB, update, cib_scope_local,
cib_quorum_update_complete);
pcmk__xml_free(update);
Index: pacemaker-2.1.9+20241118.394d77ec98/daemons/controld/controld_transition.c
free_xml(update);
Index: pacemaker-2.1.7+20240118.9ae4bea49/daemons/controld/controld_transition.c
===================================================================
--- pacemaker-2.1.9+20241118.394d77ec98.orig/daemons/controld/controld_transition.c
+++ pacemaker-2.1.9+20241118.394d77ec98/daemons/controld/controld_transition.c
@@ -168,7 +168,7 @@ do_te_invoke(long long action,
--- pacemaker-2.1.7+20240118.9ae4bea49.orig/daemons/controld/controld_transition.c
+++ pacemaker-2.1.7+20240118.9ae4bea49/daemons/controld/controld_transition.c
@@ -167,7 +167,7 @@ do_te_invoke(long long action,
CRM_CHECK(controld_globals.transition_graph != NULL,
controld_globals.transition_graph = create_blank_graph();
return);
@ -30,16 +30,16 @@ Index: pacemaker-2.1.9+20241118.394d77ec98/daemons/controld/controld_transition.
controld_globals.transition_graph->id, ref, graph_input);
te_reset_job_counts();
Index: pacemaker-2.1.9+20241118.394d77ec98/daemons/fenced/fenced_remote.c
Index: pacemaker-2.1.7+20240118.9ae4bea49/daemons/fenced/fenced_remote.c
===================================================================
--- pacemaker-2.1.9+20241118.394d77ec98.orig/daemons/fenced/fenced_remote.c
+++ pacemaker-2.1.9+20241118.394d77ec98/daemons/fenced/fenced_remote.c
@@ -699,7 +699,7 @@ remote_op_timeout_one(gpointer userdata)
--- pacemaker-2.1.7+20240118.9ae4bea49.orig/daemons/fenced/fenced_remote.c
+++ pacemaker-2.1.7+20240118.9ae4bea49/daemons/fenced/fenced_remote.c
@@ -695,7 +695,7 @@ remote_op_timeout_one(gpointer userdata)
static void
finalize_timed_out_op(remote_fencing_op_t *op, const char *reason)
{
- crm_debug("Action '%s' targeting %s for client %s timed out "
+ crm_notice("Action '%s' targeting %s for client %s timed out "
QB_XS " id=%.8s",
CRM_XS " id=%.8s",
op->action, op->target, op->client_name, op->id);

View File

@ -4,11 +4,11 @@ Date: Thu Apr 18 16:00:02 2013 +0800
Log: fencing: Drop the severity of the messages on registering a stonith device
Index: pacemaker-2.1.9+20241118.394d77ec98/daemons/fenced/fenced_commands.c
Index: pacemaker-2.1.6+20231030.66cc0f083/daemons/fenced/fenced_commands.c
===================================================================
--- pacemaker-2.1.9+20241118.394d77ec98.orig/daemons/fenced/fenced_commands.c
+++ pacemaker-2.1.9+20241118.394d77ec98/daemons/fenced/fenced_commands.c
@@ -1410,7 +1410,7 @@ stonith_device_register(xmlNode *dev, gb
--- pacemaker-2.1.6+20231030.66cc0f083.orig/daemons/fenced/fenced_commands.c
+++ pacemaker-2.1.6+20231030.66cc0f083/daemons/fenced/fenced_commands.c
@@ -1465,7 +1465,7 @@ stonith_device_register(xmlNode *dev, gb
g_hash_table_replace(device_list, device->id, device);
ndevices = g_hash_table_size(device_list);
@ -17,16 +17,16 @@ Index: pacemaker-2.1.9+20241118.394d77ec98/daemons/fenced/fenced_commands.c
device->id, ndevices, pcmk__plural_s(ndevices));
}
Index: pacemaker-2.1.9+20241118.394d77ec98/daemons/fenced/fenced_cib.c
Index: pacemaker-2.1.6+20231030.66cc0f083/daemons/fenced/fenced_cib.c
===================================================================
--- pacemaker-2.1.9+20241118.394d77ec98.orig/daemons/fenced/fenced_cib.c
+++ pacemaker-2.1.9+20241118.394d77ec98/daemons/fenced/fenced_cib.c
@@ -496,7 +496,7 @@ update_cib_cache_cb(const char *event, x
--- pacemaker-2.1.6+20231030.66cc0f083.orig/daemons/fenced/fenced_cib.c
+++ pacemaker-2.1.6+20231030.66cc0f083/daemons/fenced/fenced_cib.c
@@ -618,7 +618,7 @@ update_cib_cache_cb(const char *event, x
break;
case -pcmk_err_diff_resync:
case -pcmk_err_diff_failed:
- crm_notice("[%s] Patch aborted: %s (%d)", event, pcmk_strerror(rc), rc);
+ crm_info("[%s] Patch aborted: %s (%d)", event, pcmk_strerror(rc), rc);
pcmk__xml_free(local_cib);
free_xml(local_cib);
local_cib = NULL;
break;

View File

@ -1,20 +1,20 @@
Index: pacemaker-3.0.0+20250128.0de22e5f75/python/pacemaker/_cts/audits.py
Index: pacemaker-2.1.6+20231030.66cc0f083/python/pacemaker/_cts/audits.py
===================================================================
--- pacemaker-3.0.0+20250128.0de22e5f75.orig/python/pacemaker/_cts/audits.py
+++ pacemaker-3.0.0+20250128.0de22e5f75/python/pacemaker/_cts/audits.py
@@ -82,13 +82,9 @@ class LogAudit(ClusterAudit):
--- pacemaker-2.1.6+20231030.66cc0f083.orig/python/pacemaker/_cts/audits.py
+++ pacemaker-2.1.6+20231030.66cc0f083/python/pacemaker/_cts/audits.py
@@ -80,13 +80,9 @@ class LogAudit(ClusterAudit):
for node in nodes:
if self._cm.env["have_systemd"]:
- (rc, _) = self._cm.rsh(node, "systemctl stop systemd-journald.socket")
+ (rc, _) = self._cm.rsh(node, "systemctl restart systemd-journald.socket")
if rc != 0:
- self._cm.log(f"ERROR: Cannot stop 'systemd-journald' on {node}")
- self._cm.log("ERROR: Cannot stop 'systemd-journald' on %s" % node)
-
- (rc, _) = self._cm.rsh(node, "systemctl start systemd-journald.service")
- if rc != 0:
- self._cm.log(f"ERROR: Cannot start 'systemd-journald' on {node}")
+ self._cm.log(f"ERROR: Cannot restart 'systemd-journald' on {node}")
- self._cm.log("ERROR: Cannot start 'systemd-journald' on %s" % node)
+ self._cm.log("ERROR: Cannot restart 'systemd-journald' on %s" % node)
if "syslogd" in self._cm.env:
(rc, _) = self._cm.rsh(node, f"service {self._cm.env['syslogd']} restart")
(rc, _) = self._cm.rsh(node, "service %s restart" % self._cm.env["syslogd"])
if rc != 0:

BIN
pacemaker-2.1.7+20240711.239cba384.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:990e57675d841cbc955bef49c72733c6fc2d7d54666298676bbf108832db75c3
size 5359832

View File

@ -0,0 +1,19 @@
commit f813880dd1b6d1614393128a7f5f745437bea121
Author: Gao,Yan <ygao@suse.com>
Date: Wed Mar 27 22:03:56 2013 +0800
Build: lrmd: Change the default directory for nagios plugins
Index: pacemaker-2.1.4+20220720.3b57f9b58/configure.ac
===================================================================
--- pacemaker-2.1.4+20220720.3b57f9b58.orig/configure.ac
+++ pacemaker-2.1.4+20220720.3b57f9b58/configure.ac
@@ -1523,7 +1523,7 @@ AC_DEFINE_UNQUOTED([SUPPORT_NAGIOS], [$w
AM_CONDITIONAL([BUILD_NAGIOS], [test $with_nagios -eq $REQUIRED])
AS_IF([test x"$NAGIOS_PLUGIN_DIR" = x""],
- [NAGIOS_PLUGIN_DIR="${libexecdir}/nagios/plugins"])
+ [NAGIOS_PLUGIN_DIR="${prefix}/lib/nagios/plugins"])
AC_DEFINE_UNQUOTED(NAGIOS_PLUGIN_DIR, "$NAGIOS_PLUGIN_DIR", Directory for nagios plugins)
AC_SUBST(NAGIOS_PLUGIN_DIR)

View File

@ -1,625 +1,3 @@
-------------------------------------------------------------------
Fri Feb 21 09:34:47 UTC 2025 - Yan Gao <ygao@suse.com>
- Update to version 3.0.0+20250218.3d0ffefd9e:
- build: Fix default pacemaker-remoted path
-------------------------------------------------------------------
Fri Feb 21 09:12:35 UTC 2025 - Yan Gao <ygao@suse.com>
- Update to version 3.0.0+20250210.af3642fbf6:
- libcrmcluster: prevent external callers from triggering assertion when connecting to cluster (gh#ClusterLabs/pacemaker#3821)
-------------------------------------------------------------------
Fri Feb 21 09:03:55 UTC 2025 - Yan Gao <ygao@suse.com>
- Update to version 3.0.0+20250207.d06c888ba7:
- libpacemaker: Reset scheduler object in pcmk_simulate()
- libpe_status: Make cluster_status() idempotent
- tools: Fix overflow in crm_simulate --repeat
- libpacemaker: Handle scandir() error in pcmk__profile_dir()
- libpacemaker: Fix mem leak in pcmk__profile_dir()
- tools: Avoid crash in crm_simulate --profile
-------------------------------------------------------------------
Wed Feb 19 17:01:34 UTC 2025 - Yan Gao <ygao@suse.com>
- Update to version 3.0.0+20250205.88e9ec1325:
- libcrmservices: Unref the dbus connection... (gh#ClusterLabs/pacemaker#3816)
- libcrmservices: Don't leak msg if systemd_proxy is NULL. (gh#ClusterLabs/pacemaker#3816)
-------------------------------------------------------------------
Wed Feb 19 13:58:59 UTC 2025 - Yan Gao <ygao@suse.com>
- Update to version 3.0.0+20250203.f950b1d05d:
- python: Add python value for new CRM_EX_NO_DC exit code. (gh#ClusterLabs/pacemaker#3815)
- libcrmcommon: Fix memory leak in text_end_list()/curses_end_list() (gh#ClusterLabs/pacemaker#3814)
- crmadmin: return error if DC is not elected #2902 #3606 (gh#ClusterLabs/pacemaker#3716)
-------------------------------------------------------------------
Tue Feb 18 15:11:05 UTC 2025 - Yan Gao <ygao@suse.com>
- Update to version 3.0.0+20250128.0de22e5f75:
- libraries: Update version numbers in so names
- Rebase:
* bug-995365_pacemaker-cts-restart-systemd-journald.patch
-------------------------------------------------------------------
Mon Feb 17 20:29:03 UTC 2025 - Yan Gao <ygao@suse.com>
- Update to version 3.0.0+20250114.7dc494a96f:
- controller: best practices for send_stonith_update() (gh#ClusterLabs/pacemaker#3796)
- controller: drop unused argument
- libcrmcluster: better detect remote nodes in peer cache
- pacemaker-attrd: drop unused struct member
- pacemaker-attrd: track node XML IDs independent of attribute values
- pacemaker-attrd: use variable for whether to write
- pacemaker-attrd: rename flag to match recent change
- pacemaker-attrd: track node CIB ID rather than cluster ID
- libcrmcluster: track local node XML ID in cluster object
- libcrmcluster: use pcmk__cluster_get_xml_id() when possible
- libcrmcluster: rename pcmk__cluster_node_uuid()
- libcrmcluster: allow searching by XML ID in pcmk__search_node_caches()
- pacemaker-attrd: bail earlier if value won't be written
- pacemaker-attrd: use API to get peer XML ID
- pacemaker-attrd: don't use "uuid" to mean "XML ID"
- pacemaker-attrd: always add remoteness to attribute value XML (gh#ClusterLabs/pacemaker#3796)
-------------------------------------------------------------------
Mon Feb 17 19:50:01 UTC 2025 - Yan Gao <ygao@suse.com>
- Update to version 3.0.0+20250114.9931db7727:
- Makefile: drop asciidoc references
- crm_diff: Replace variable name
- controller: address format-overflow warnings (gh#ClusterLabs/pacemaker#3794)
- libcrmcommon: Catch correct errors for remote connection sockets (gh#ClusterLabs/pacemaker#3793)
- Drop deprecated '--sync-call' option from cibadmin
- Drop deprecated '-l/--local' option from cibadmin in multiple places
- various: Correct some printf specifiers (gh#ClusterLabs/pacemaker#3793)
- schedulerd: Resetting error and warning flags. (gh#ClusterLabs/pacemaker#3791)
- raise minimum GnuTLS dependency to 3.4.6
- sysconfig: document when logs may show sensitive info
- pacemaker-attrd: reduce log spam at shutdown
- executor: avoid misleading log when cancelling a recurring monitor
- scheduler: improve restart-needed log
- scheduler: don't show node capacity for bundle nodes
- scheduler: clarify no-quorum effects
- libcrmcommon: improve flag set/clear messages
- libcrmcommon: improve message for unsupported XPath match
- libstonithd: improve action re-attempt message
- libcib: Don't send CRM_OP_REGISTER from cib_remote client
- tools: mention potential issues with crm_resource --restart
- tools: indicate crm_resource --interval can take units
- tools: clarify that crm_mon updates are automatic when interactive
- controller: round timeout when checking remaining remote command time (gh#ClusterLabs/pacemaker#3781)
- agents: Replace the egrep command with the EGREP definition in ping RA
- libcrmcluster: fix format typos
- doc: drop Inkscape dependency
- tools: validate stonith_admin --timeout value
- libpacemaker: set fail-count to INFINITY for fatal failures
- libpacemaker: add PCMK__XA_FAILED_START_OFFSET and PCMK__XA_FAILED_STOP_OFFSET
- tools: Deprecate cibadmin --sync-call
- OCF: controld.in: Remove gfs_controld command as it's already obsoleted
- xml: Warn about post-transform behavior changes for ACLs with xpath
- sysconfig: Document using certificates for remote nodes.
- sysconfig: Explain permissions needed on TLS-related files.
- libcrmcluster: restore CPG header size compatibility
- libcrmcluster: improve messages in pcmk__cpg_message_data()
- liblrmd: Enable TLS support for Pacemaker Remote clients.
- daemons: Enable TLS support for Pacemaker Remote nodes.
- libcrmcommon: Set *tls = NULL in a few more locations.
- libcib: Enable TLS certs for remote CIB operations.
- libs: Log if a TLS certificate is close to expiration.
- libcrmcommon: If the server supports certs, require them...
- daemons: Set up X509 auth in based if enabled.
- sysconfig: Add env settings needed for X509 authentication.
- libcrmcluster: don't assert for CPG decompression error
- libcrmcluster: avoid redundant log for invalid CPG messages
- libcrmcluster: initialize from in pcmk__cpg_message_data()
- scheduler: avoid memory leak in bundles
- xml: Preserve ACL reference behavior for replaced constraints
- xml: Ensure ACL permissions are valid after XSL transformations
- xml: Warn if schema transformation drops remove-after-stop property
- xml: Warn if schema transformation drops moon phase
- xml: Info if schema transformation drops empty groups or clones
- xml: Warn if schema transformation drops colocation/order lifetimes
- xml: Warn if schema transformation drops can_fail or...
- xml: Warn if schema transformation drops restart-type meta-attr
- xml: Warn if schema transformation drops rkt bundles
- xml: Warn if schema transformation drops nagios/upstart resources
- log: Allow CIB upgrade messages to start with W, I, D
- various: clean up library memory at child exit
- pacemaker-remoted: improve exit codes for schema failures
- controller: avoid memory leak when updating join phase
- scheduler: avoid memory leak when freeing node copies
- libcrmcommon: drop unhelpful trace message
- systemd: If the state is Pending at the time of probe, execute follow up monitor. (gh#ClusterLabs/pacemaker#3746)
- systemd: Fix when monitor of systemd resource continues to be pending. (gh#ClusterLabs/pacemaker#3746)
- Rebase:
* bug-728579_pacemaker-stonith-dev-id.patch
-------------------------------------------------------------------
Mon Feb 03 10:44:36 UTC 2025 - Yan Gao <ygao@suse.com>
- Update to version 3.0.0+20250128.fa492f5181:
- libraries: Update version numbers in so names
-------------------------------------------------------------------
Thu Jan 09 12:12:10 UTC 2025 - Yan Gao <ygao@suse.com>
- Update to version 3.0.0+20250108.d8340737c4 (Pacemaker-3.0.0):
- Build: raise minimum GnuTLS dependency to 3.4.6
-------------------------------------------------------------------
Wed Dec 25 09:59:10 UTC 2024 - Yan Gao <ygao@suse.com>
- Update to version 2.1.9+20241223.2587987be9 (Pacemaker-3.0.0-rc3):
- agents: Replace the egrep command with the EGREP definition in ping RA
- libcrmcluster: fix format typos
- doc: drop Inkscape dependency
- tools: validate stonith_admin --timeout value
- libpacemaker: set fail-count to INFINITY for fatal failures (gh#ClusterLabs/pacemaker#3771)
- libpacemaker: add PCMK__XA_FAILED_START_OFFSET and PCMK__XA_FAILED_STOP_OFFSET (gh#ClusterLabs/pacemaker#3771)
- OCF: controld.in: Remove gfs_controld command as it's already obsoleted (gh#ClusterLabs/pacemaker#3767)
-------------------------------------------------------------------
Thu Dec 12 10:21:23 UTC 2024 - Yan Gao <ygao@suse.com>
- Update to version 2.1.9+20241211.4ae3a303e5 (Pacemaker-3.0.0-rc2):
- sysconfig: Document using certificates for remote nodes.
- sysconfig: Explain permissions needed on TLS-related files.
- liblrmd: Enable TLS support for Pacemaker Remote clients.
- daemons: Enable TLS support for Pacemaker Remote nodes.
- libcrmcommon: Set *tls = NULL in a few more locations.
- xml: Warn about post-transform behavior changes for ACLs with xpath
- libcrmcluster: restore CPG header size compatibility
- libcrmcluster: improve messages in pcmk__cpg_message_data()
- libcrmcluster: don't assert for CPG decompression error
- libcrmcluster: avoid redundant log for invalid CPG messages
- libcrmcluster: initialize from in pcmk__cpg_message_data()
- scheduler: avoid memory leak in bundles
- libcib: Enable TLS certs for remote CIB operations.
- libs: Log if a TLS certificate is close to expiration.
- libcrmcommon: If the server supports certs, require them...
- daemons: Set up X509 auth in based if enabled.
- sysconfig: Add env settings needed for X509 authentication.
- xml: Preserve ACL reference behavior for replaced constraints
- xml: Ensure ACL permissions are valid after XSL transformations
- xml: Warn if schema transformation drops remove-after-stop property
- xml: Warn if schema transformation drops moon phase
- xml: Info if schema transformation drops empty groups or clones
- xml: Warn if schema transformation drops colocation/order lifetimes
- xml: Warn if schema transformation drops can_fail or...
- xml: Warn if schema transformation drops restart-type meta-attr
- xml: Warn if schema transformation drops rkt bundles
- xml: Warn if schema transformation drops nagios/upstart resources
- log: Allow CIB upgrade messages to start with W, I, D
- various: clean up library memory at child exit
- pacemaker-remoted: improve exit codes for schema failures
- controller: avoid memory leak when updating join phase
- scheduler: avoid memory leak when freeing node copies
-------------------------------------------------------------------
Fri Dec 06 11:41:46 UTC 2024 - Yan Gao <ygao@suse.com>
- Update to version 2.1.9+20241118.394d77ec98 (Pacemaker-3.0.0-rc1):
- NLS: update translations before 3.0.0-rc1
- libstonithd: drop unknown agent message
- controller: downgrade "Not registering" message
- tools: improve crm_mon "Retrying" message
- libcrmcluster: improve XML ID logs in pcmk__get_node()
- scheduler,libcrmservice,tools: compare resource IDs case-sensitively
- python: Always use generated corosync config in regression tests
- tools: crm_resource --restart works with master resources
- tools: crm_resource --set-parameter works with master resources
- tools: crm_resource --delete-parameter --element works with master
- libcrmcommon: allow NULL unpack_data in pcmk__cmp_nvpair_blocks()
- libcrmcommon: ignore NULL first ID in pcmk__cmp_nvpair_blocks()
- libcrmcommon: bump feature set to 3.20.0
- rpm: drop no-longer-needed support tests from spec file
- liblrmd: Perform the API handshake asynchronously.
- libcrmcommon: always respect overwrite in pcmk__cmp_nvpair_blocks()
- executor: avoid use-after-free upon shutdown (gh#ClusterLabs/pacemaker#3718)
- Change
- tools: Drop crm_resource --set-property option
- tools: Drop crm_resource --get-property option
- tools: Drop deprecated crm_resource --xml-file option
- daemons: execd should read remote client messages async.
- CIB: deprecate record-pending operation option
- tools: restore crmadmin default timeout to 30 seconds
- libcrmcommon: any negative interval is an error
- agents: always allow attribute agent to show metadata
- agents: use RESOURCENAME in attribute agent metadata
- agents: use configured run directory in attribute agent
- controld: leave xml-src attribute empty when no DC selected #2902
- schemas: Disallow fencing-level index greater than 9
- various: Drop support for phase of the moon in rule date_spec
- schemas: nvpair value should not be optional
- tools: Define behavior of attrd_updater -Q without -N
- tools: crm_resource returns error on failed schema upgrade
- libpe_status: Drop support for role_after_failure op meta-attr
- libpacemaker: Drop support for can_fail op meta-attribute
- various: Drop support for restart-type resource meta-attribute
- schemas: Disallow phase of the moon in rule date_spec
- libcib: Perform server-side remote CIB reads asynchronously.
- pacemakerd: combine subdaemon start-up logs
- libcrmcommon: avoid potential overflow when adding seconds
- libcib: Perform client-side remote CIB reads asynchronously.
- schemas: Disallow role_after_failure resource meta-attribute
- schemas: Disallow can_fail operation meta-attribute
- schemas: Disallow restart-type resource meta-attribute
- libcrmcommon: Don't assert on failure to write errors.
- CIB: ignore node expressions for meta-attributes
- libpacemaker: don't pass node attributes with fence actions
- libcrmcommon: Ignore crmd-transition-delay property
- libcrmcommon: Ignore crmd-finalization-timeout property
- libcrmcommon: Ignore crmd-integration-timeout property
- various: Ignore stonith-action=poweroff property
- various: Ignore remove-after-stop property
- all: use consistent capitalization in execution status strings
- tools: crm_shadow --reset now requires --force
- scheduler: ignore unknown actions for resource state
- libcrmcommon: bounds-check when adding to years
- controller: avoid overflow in recheck time
- libcrmservice: accept no more than around 10MiB stdout/stderr
- schemas: Disallow crmd-transition-delay property
- schemas: Disallow crmd-finalization-timeout property
- schemas: Disallow crmd-integration-timeout property
- schemas: Disallow stonith-action=poweroff property
- schemas: Disallow remove-after-stop cluster property
- libpe_status: Drop support for ping nodes
- schemas: Disallow ping nodes
- scheduler: Fixed memory leak when searching for unfencing devices.
- CIB: drop support for unset or unknown validate-with
- pacemaker-based,libcib: warn for invalid call options
- controller,liblrmd: warn for invalid remote proxy IPC flags
- fencer: warn for invalid call options
- fencer: warn if device support flags invalid
- libcrmservice: use proper types with write()
- libcrmcommon,libcib,scheduler: use unsigned int for CIB sequence number
- scheduler: avoid overflow in utilization values
- CIB: drop support for rkt bundles
- CIB: drop support for nagios-class resources
- CIB: drop support for Upstart
- libcrmcommon: handle corner cases better in crm_time_add_days()
- libcrmcommon: handle too-negative components of ISO8601 durations
- various: Drop support for masters attribute in bundles
- various: Drop support for master resources
- schemas: Disallow rkt bundles
- schemas: Disallow nagios-class resources
- schemas: Disallow upstart-class resources
- cts, xml: New upgrade-3.10-4.xsl XSLT stylesheet
- controller: avoid memory leak on scheduler API error
- libcib: treat empty variant variables same as unset
- pacemaker-based: reject remote users if PAM not available
- pacemaker-based: compare remote user names case-sensitively
- pacemaker-based: improve remote client connection messages
- lrmd: Report the result of add_tls_to_mainloop...
- cts-lab: Allow running multiple tests with the --choose argument.
- CIB: do not recover from XML syntax errors
- libcrmcommon: do not return partially parsed XML
- CIB: ignore colocation constraints with invalid scores
- CIB: ignore location constraints if score attribute is unset or invalid
- CIB: ignore location constraints with invalid scores
- scheduler: warn for invalid promotion scores
- scheduler: warn if node score is invalid
- scheduler: warn if nvpair block score is invalid
- various: Drop support for lifetime elements in constraints
- scheduler: warn for invalid fail counts
- CIB: treat negative migration-threshold as invalid and use default
- scheduler: warn if resource stickiness is invalid
- scheduler: warn if resource priority is invalid
- scheduler: ignore and warn for invalid node health attributes
- scheduler: warn for invalid health cluster option values
- controller: improve stonith-max-attempts logs
- pacemaker-attrd: use pcmk_parse_score() in attrd_expand_value()
- schemas: Disallow masters attribute in bundle containers
- schemas: Disallow master resources
- all: improve messages when parsing long integers
- pacemaker-based: log cluster-ipc-limit errors
- libcrmcommon: improve IPC buffer size messages
- libcrmcommon: Drop xmlRegisterNodeDefault()
- libcrmcommon: NULL-check pcmk__xml_tree_foreach() argument
- libpe_rules: Drop support for multiple top-level location rules
- schemas: Disallow lifetime elements in constraints
- cts, xml: New upgrade-3.10-3.xsl XSLT stylesheet
- libcrmcommon: tweak parse_date() validations
- pacemakerd: fix Corosync support check
- libcrmcommon: handle out-of-range better when parsing integers
- CIB: globally-unique defaults to true if clone-node-max > 1
- fencing: default pcmk_host_argument to "none" if "port" not advertised
- CIB: deprecate concurrent-fencing cluster property
- configure: deprecate --with-concurrent-fencing-default and default it to true
- scheduler: best practices for get_rsc_attributes()
- schemas: Disallow multiple top-level location rules
- scheduler: ignore instance attributes in rsc_defaults
- CTS: Fix cts-lab --list.
- xml: Drop duplicate nvpairs within a given nvset
- cts, xml: New upgrade-3.10-2.xsl XSLT stylesheet
- libpe_rules: Drop support for name with id-ref attribute
- tools: improve crm_verify error messages
- alerts: don't send deprecated alert environment variables
- fencer: rename -c/--stand-alone-w-cpg option
- fencer: drop support for non-clustered mode in fencer
- libcrmcommon: add pcmk_cib_node_shutdown()
- libcrmcommon: bounds-check seconds in pcmk_parse_interval_spec()
- libcrmcommon: return int from get_ordinal_days()
- libcrmcommon: use uint32_t in parse_date()
- libcib: improve error handling in cib_file_new()
- tools: update terminology in no-quorum-policy status output
- CIB: allow no-quorum-policy "fence" and deprecate "suicide"
- fencer: update terminology in trace message
- scheduler: create local node after unpacking everything
- libcrmcommon: log panic reason instead of caller name
- libcrmcommon: don't treat tracing differently for panics
- sysconfig: improve PCMK_panic_action description
- libcrmcommon: preserve api dispatch in connect_and_send_attrd_request()
- libcrmcommon: Detect newly created alerts section
- schemas: Disallow nvpairs without value attributes
- xml: Sort nvset elements by score within a given parent
- xml: Bump validate-with cib attribute in 3.10 XSL transformation
- cts, xml: New upgrade-3.10-1.xsl XSLT stylesheet
- schemas: Disallow nvpair name with id-ref attribute
- lrmd: Perform the TLS handshake asynchronously.
- lrmd: Report connection failures in tls_handshake_failed.
- tools: handle orphans when outputting node history in crm_mon
- libpe_status: Drop support for nodes with invalid type
- CIB: always compare validate-with schema names case-sensitively
- CIB: drop support for rsc-instance, with-rsc-instance, first-instance, and then-instance
- CIB: drop support for validate-with="pacemaker-next"
- CIB: drop support for pacemaker-0.6, pacemaker-0.7, pacemaker-1.1, and transitional-0.6 schemas
- libpe_status: Drop support for multiple top-level nvset rules
- libpe_status: Don't look for value in nvpair with id-ref
- libpe_status: Ignore nvpair with invalid id-ref
- xml: Allow previously disallowed primitive meta-attributes
- xml: Allow previously disallowed "required" op meta-attribute
- xml: Allow previously disallowed cluster properties
- xml: New upgrade-3.10-0.xsl XSLT stylesheet
- Pacemaker Remote: drop "short fuse" shutdown timer
- scheduler: ignore ticket constraints with invalid roles
- scheduler: ignore colocation constraints with invalid roles
- scheduler: ignore invalid location constraints
- libcrmcommon: compare empty strings correctly in attribute expressions
- sysconfig: interpret PCMK_panic_action more strictly
- rpm: Require python3-psutil for running tests.
- tools: fix crm_rule man page section division
- schemas: Add additional node types to the crmadmin schema.
- controller: drop controld_globals.our_nodename
- tools: return more specific error code for crm_shadow file errors
- scheduler: ignore groups with no members
- scheduler: ignore malformed resource history entries
- tools: drop --text-fancy command-line option
- scheduler: correct format arguments
- CIB: treat misconfigured rule as not passing
- CIB: treat misconfigured operation expression as not passing
- CIB: treat misconfigured resource expression as not passing
- CIB: treat misconfigured attribute expression as not passing
- CIB: treat misconfigured date expression as not passing
- CIB: treat misconfigured duration as not passing
- CIB: treat misconfigured date specification as not passing
- pacemaker-based: client name can be NULL
- various: ensure there are spaces around QB_XS
- controller,libpacemaker: transition graph IDs should be positive
- libcrmcluster: use correct specifier for guint count
- controller: free cluster object at exit
- libcrmcluster: assert on election_init() errors
- tools: crm_ticket should return CRM_EX_UNSAFE with --force warning.
- lrmd: Remove support for undocumented key loading behavior.
- libcrmcluster: don't hardcode controller in vote messages
- libcrmcluster: set appropriate message type in election messages
- libcrmcommon: use proper message type for node purge requests
- libcrmcommon: specify "scheduler" as scheduler IPC message protocol
- libcrmcommon: specify "pacemakerd" as pacemakerd IPC message protocol
- controller: use pcmk__new_message() to create direct acks
- controller: use pcmk__new_reply() to create reprobe reply
- libpacemaker: Don't apply colocation twice for promotion priority
- libpacemaker: Apply promotion priority to cloned group instance
- libpe_status: Use first action meta-attr within nvset if duplicates
- libcib: Don't overwrite property values for CIB config hash
- various: Don't set cluster-layer node ID as XML ID
- tools: crm_node -i must initialize nodeid before passing pointer
- libpacemaker: Log correct score in pcmk__apply_coloc_to_priority()
- scheduler: store default fencing action timeout as guint
- crm_verify: Improve checking of fencing level IDs
- tools: Drop crm_mon --web-cgi option
- tools: Drop crm_mon --disable-ncurses option
- tools: Drop crm_mon --simple-status option
- tools: Drop crm_mon --as-html option
- sysconfig: drop support for PCMK_dh_min_bits environment variable
- dependencies: require GnuTLS 3.1.7 or later
- tools: CIB clients retry signon upon an EAGAIN error (gh#ClusterLabs/pacemaker#3546)
- libcib: new function cib__signon_attempts() (gh#ClusterLabs/pacemaker#3546)
- libcrmcluster: Ensure priv is non-NULL in crm_cluster_connect() (gh#ClusterLabs/pacemaker#3548)
- libcrmcluster: use local hostname for node name if not configured in corosync (gh#ClusterLabs/pacemaker#3547)
- tools: Don't double-free XML in crm_verify after schema update
- libcrmcommon: Use glib for calculating MD5 checksums.
- cts-cli: update expected output for crm_verify to distinguish configuration warnings and errors (gh#ClusterLabs/pacemaker#3538)
- tools: crm_verify distinguishes configuration warnings and errors (gh#ClusterLabs/pacemaker#3538)
- libcrmcommon: don't try to add to full string in pcmk__time_format_hr()
- libcrmcommon: handle formatting errors in pcmk__time_format_hr()
- libraries: ensure private headers follow usual header conventions
- libraries: ensure includes are outside extern in public headers
- scheduler: consider group locations when member is explicit colocation dependent
- scheduler: consolidate pcmk__apply_location() trace messages
- libcib: don't bother with pcmk__config_err() for live CIB
- scheduler: drop incorrect error logs in pcmk__colocation_affects()
- liblrmd,libstonithd: use standard default timeout (20s) for meta-data actions
- tools: Don't skip formatting if running crm_simulate interactively.
- tools: crm_resource rejects invalid timeouts
- tools: crm_resource --option throws usage error if appropriate
- tools: crm_resource --delete does not accept clone instances
- tools: crm_resource --delete exits with CRM_EX_USAGE without -t opt
- tools: crm_resource --delete now succeeds if resource doesn't exist
- libpacemaker: Include on_node in injected lrm_rsc_op entries
- daemons: Clean up memory when attrd exits. (gh#ClusterLabs/pacemaker#3507)
- libcrmcommon: reject ISO 8601 duration without any values
- libcrmcommon: bounds-check ISO 8601 duration elements
- scheduler: improve promotion score message for inactive instances
- scheduler: use -INFINITY promotion score for inactive instances
- scheduler: avoid core-dump on trace message
- pacemakerd: Drop {PCMK,HA}_shutdown_delay environment variable
- libcrmcommon: Drop {PCMK,HA}_cib_timeout environment variable
- libcrmcommon: Drop PCMK_mcp and HA_mcp environment variables
- fencer, libstonithd: Drop support for "action" fencing param
- tools: cibadmin --md5-sum-versioned no longer prints feature set
- libcrmcluster: Default remote_state_from_cib() to false
- libstonithd: prevent to free 'op_reply' repeatedly in 'stonith_send_command'
- tools: Deprecate cibadmin --local
- tools: Drop cibadmin --host option
- tools: Drop cibadmin --no-bcast option
- doc: Drop support for v1 cluster nodes with v3 remote nodes
- libpacemaker: correctly retrieve any existing fail-count for increment (gh#ClusterLabs/pacemaker#3510)
- build: Drop pacemaker_remoted link creation
- python: Support systems where rsyslog is not installed.
- libpacemaker: Add spaces back to attrd_updater query output.
- agents: drop ocf:pacemaker:o2cb resource agent
- rpm: rename --with-stonithd option to --with-linuxha
- configure: drop --legacy-links option
- configure: drop --enable-compat-2.0 option
- dependencies: require pkg-config 0.28 or later
- dependencies: require libxml2 2.9.2 or later
- dependencies: require libqb 1.0.1 or later
- dependencies: require libdbus 1.5.12 or later
- libcrmcommon,libpe_status: correct typos
- libcib,liblrmd: improve TLS handshake error messages
- attrd: Ensure set ID is non-empty
- libcrmcommon: Check scan_ll() return value in crm_get_msec()
- libstonithd: free escaped metadata descriptions with g_free() (gh#ClusterLabs/pacemaker#3492)
- liblrmd: make TLS handshake error handling consistent
- libcrmcommon: interpret pcmk__remote_ready() return code correctly
- pacemakerd: improve subdaemon check messages
- pacemaker-based: improve local notification messages
- scheduler: parenthesize arguments in action macros
- libcrmcommon: support PCMK_panic_action="off" or "sync-off"
- tools: cibadmin incorrect example for score update
- libstonithd: avoid use-after-free when retrieving metadata of Linux-HA fence agents (gh#ClusterLabs/pacemaker#3476)
- NLS: drop removed file from POTFILES
- libcrmcommon: avoid possible buffer overflow in pcmk__time_format_hr()
- libcrmcommon: avoid possible buffer overflow in parse_date()
- tools: Fix spacing in crm_resource help output
- includes: Bump CRM_FEATURE_SET for iso8601 formatted output.
- schemas: Add an XML schema for iso8601 output.
- tools: Convert iso8601 to formatted output.
- Rebase:
* bug-806256_pacemaker-log-level-notice.patch
- Drop obsolete:
* pacemaker-nagios-plugin-dir.patch
-------------------------------------------------------------------
Thu Nov 07 15:40:34 UTC 2024 - Yan Gao <ygao@suse.com>
- Update to version 2.1.9+20241107.c3b66b02d0:
- CTS: Fix cts-lab --list. (gh#ClusterLabs/pacemaker#3723)
-------------------------------------------------------------------
Thu Nov 07 11:10:26 UTC 2024 - Yan Gao <ygao@suse.com>
- Update to version 2.1.9+20241105.e043e6816a:
- executor: avoid use-after-free upon shutdown (bsc#1232613, gh#ClusterLabs/pacemaker#3719)
-------------------------------------------------------------------
Mon Nov 04 11:52:55 UTC 2024 - Yan Gao <ygao@suse.com>
- Update to version 2.1.9+20241031.49aab99839 (Pacemaker-2.1.9):
- includes: Bump CRM_FEATURE_SET for iso8601 formatted output.
- schemas: Add an XML schema for iso8601 output.
- tools: Convert iso8601 to formatted output.
-------------------------------------------------------------------
Mon Nov 04 11:03:41 UTC 2024 - Yan Gao <ygao@suse.com>
- Update to version 2.1.8+20241021.40d69ff424 (Pacemaker-2.1.9-rc3):
- tools: restore crmadmin default timeout to 30 seconds (bsc#1217259, bsc#1228781, jsc#PED-8311, gh#ClusterLabs/pacemaker#3703)
- libcrmcommon: any negative interval is an error
- agents: always allow attribute agent to show metadata
- agents: use RESOURCENAME in attribute agent metadata
- agents: use configured run directory in attribute agent
- controld: leave xml-src attribute empty when no DC selected #2902 (bsc#1217259, bsc#1228781, jsc#PED-8311, gh#ClusterLabs/pacemaker#3702)
-------------------------------------------------------------------
Fri Oct 25 17:04:35 UTC 2024 - Yan Gao <ygao@suse.com>
- Update to version 2.1.8+20241015.33f3052b89 (Pacemaker-2.1.9-rc2):
- pacemakerd: combine subdaemon start-up logs
- libcrmcommon: avoid potential overflow when adding seconds
- libcib: Perform server-side remote CIB reads asynchronously.
- libcib: Perform client-side remote CIB reads asynchronously.
- tools: crm_resource returns error on failed schema upgrade
- libcrmcommon: Don't assert on failure to write errors. (gh#ClusterLabs/pacemaker#3684)
-------------------------------------------------------------------
Fri Oct 25 11:02:37 UTC 2024 - Yan Gao <ygao@suse.com>
- Update to version 2.1.8+20241003.95cef6b307 (Pacemaker-2.1.9-rc1):
- NLS: update translations for current code base
- scheduler: Fixed memory leak when searching for unfencing devices. (gh#ClusterLabs/pacemaker#3678)
- libcrmcommon: bounds-check when adding to years
- controller: avoid overflow in recheck time
- libcrmservice: accept no more than around 10MiB stdout/stderr
- pacemaker-based,libcib: warn for invalid call options
- controller,liblrmd: warn for invalid remote proxy IPC flags
- fencer: warn for invalid call options
- fencer: warn if device support flags invalid
- libcrmservice: use proper types with write()
- libcrmcommon,libcib,scheduler: use unsigned int for CIB sequence number
- scheduler: avoid overflow in utilization values
- libcrmcommon: handle corner cases better in crm_time_add_days()
- libcrmcommon: handle too-negative components of ISO8601 durations
- controller: avoid memory leak on scheduler API error
- libcib: treat empty variant variables same as unset (gh#ClusterLabs/pacemaker#3658)
- pacemaker-based: compare remote user names case-sensitively
- pacemaker-based: improve remote client connection messages
- scheduler: ignore and warn for invalid node health attributes
- scheduler: warn for invalid promotion scores
- scheduler: warn if node score is invalid
- scheduler: warn if nvpair block score is invalid
- scheduler: warn for invalid fail counts
- scheduler: warn if resource stickiness is invalid
- scheduler: warn if resource priority is invalid
- scheduler: warn for invalid health cluster option values
- controller: improve stonith-max-attempts logs
- all: improve messages when parsing long integers
- pacemaker-based: log cluster-ipc-limit errors
- libcrmcommon: improve IPC buffer size messages
-------------------------------------------------------------------
Fri Oct 25 10:28:12 UTC 2024 - Yan Gao <ygao@suse.com>
- Update to version 2.1.8+20240916.5936f92119:
- lrmd: Report the result of add_tls_to_mainloop...
- libcrmcommon: NULL-check pcmk__xml_tree_foreach() argument
- libcrmcommon: tweak parse_date() validations
- libcrmcommon: bounds-check seconds in pcmk_parse_interval_spec()
- libcrmcommon: return int from get_ordinal_days()
- libcrmcommon: use uint32_t in parse_date()
- libcib: improve error handling in cib_file_new()
- CIB: allow no-quorum-policy "fence" and deprecate "suicide"
- tools: handle orphans when outputting node history in crm_mon
-------------------------------------------------------------------
Fri Oct 04 16:20:24 UTC 2024 - Yan Gao <ygao@suse.com>
- Update to version 2.1.8+20240829.2c01183c93:
- libcrmcommon: Detect newly created alerts section (gh#ClusterLabs/pacemaker#3628)
- lrmd: Perform the TLS handshake asynchronously.
- schemas: Add additional node types to the crmadmin schema.
- tools: fix crm_rule man page section division (gh#ClusterLabs/pacemaker#3612)
- pacemaker-based: client name can be NULL (gh#ClusterLabs/pacemaker#3608)
- various: ensure there are spaces around CRM_XS
- controller,libpacemaker: transition graph IDs should be positive
-------------------------------------------------------------------
Tue Oct 01 11:36:55 UTC 2024 - Yan Gao <ygao@suse.com>
- Update to version 2.1.8+20240808.3980678f03 (Pacemaker-2.1.8):
- scheduler: correct format arguments (gh#ClusterLabs/pacemaker#3600)
- libpacemaker: Don't apply colocation twice for promotion priority
- libpacemaker: Apply promotion priority to cloned group instance
-------------------------------------------------------------------
Fri Jul 12 11:13:38 UTC 2024 - Yan Gao <ygao@suse.com>
@ -737,7 +115,7 @@ Mon Jun 03 14:15:26 UTC 2024 - Yan Gao <ygao@suse.com>
- libcib: Fix memory leak in cib_client_fetch_schemas()
- libpacemaker: Fix mem leak in pcmk__acl_evaled_render()
- libcrmcommon: avoid memory leaks when loading and freeing schemas
- libcib: avoid memory leak in async calls (bsc#1233544)
- libcib: avoid memory leak in async calls
- scheduler,tools: compare resource history IDs case-sensitively
- executor: avoid pacemaker-remoted crash
- libcrmcommon: Fix memory leak in pcmk__build_schema_xml_node()

View File

@ -1,7 +1,7 @@
#
# spec file for package pacemaker
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -35,12 +35,8 @@
# Define conditionals so that "rpmbuild --with <feature>" and
# "rpmbuild --without <feature>" can enable and disable specific features
## Add option for Linux-HA (stonith/external) fencing agent support
%if 0%{?suse_version} < 1600
%bcond_without linuxha
%else
%bcond_with linuxha
%endif
## Add option to enable support for stonith/external fencing agents
%bcond_without stonithd
## Add option to enable support for storing sensitive information outside CIB
%bcond_without cibsecrets
@ -70,6 +66,13 @@
## Add option to turn off hardening of libraries and daemon executables
%bcond_with hardening
## Add option to disable links for legacy daemon names
%if 0%{?suse_version} < 1600
%bcond_without legacy_links
%else
%bcond_with legacy_links
%endif
# Define globals for convenient use later
%if 0%{?suse_version} >= 1560 || 0%{?sle_version} >= 150600
@ -82,6 +85,11 @@
## Distro-specific configuration choices
### Use 2.0-style output when other distro packages don't support current output
%if 0%{?suse_version} < 1600
%global compat20 --enable-compat-2.0
%endif
### Default concurrent-fencing to true when distro prefers that
%if 0%{?suse_version} >= 1540 || 0%{?sle_version} >= 150400
%global concurrent_fencing --with-concurrent-fencing-default=true
@ -121,7 +129,7 @@
%define with_regression_tests 0
Name: pacemaker
Version: 3.0.0+20250218.3d0ffefd9e
Version: 2.1.7+20240711.239cba384
Release: 0
Summary: Scalable High-Availability cluster resource manager
# AGPL-3.0 licensed extra/clustermon.sh is not present in the binary
@ -133,13 +141,14 @@ Source1: crm_report.in
Source100: pacemaker.rpmlintrc
Patch1: bug-806256_pacemaker-log-level-notice.patch
Patch2: bug-728579_pacemaker-stonith-dev-id.patch
Patch3: bug-812269_pacemaker-fencing-device-register-messages.patch
Patch4: pacemaker-Wno-format-signedness.patch
Patch5: bug-943295_pacemaker-lrmd-log-notice.patch
Patch6: bug-977201_pacemaker-controld-self-fencing.patch
Patch7: bug-995365_pacemaker-cts-restart-systemd-journald.patch
Patch8: pacemaker-cts-StartCmd.patch
Patch9: bsc#1180966-0001-Log-pacemakerd-downgrade-the-warning-about-SBD_SYNC_.patch
Patch3: pacemaker-nagios-plugin-dir.patch
Patch4: bug-812269_pacemaker-fencing-device-register-messages.patch
Patch5: pacemaker-Wno-format-signedness.patch
Patch6: bug-943295_pacemaker-lrmd-log-notice.patch
Patch7: bug-977201_pacemaker-controld-self-fencing.patch
Patch8: bug-995365_pacemaker-cts-restart-systemd-journald.patch
Patch9: pacemaker-cts-StartCmd.patch
Patch10: bsc#1180966-0001-Log-pacemakerd-downgrade-the-warning-about-SBD_SYNC_.patch
# Required basic build tools
BuildRequires: autoconf
BuildRequires: automake
@ -153,9 +162,8 @@ BuildRequires: help2man
BuildRequires: libtool
BuildRequires: make
BuildRequires: pam-devel
BuildRequires: pkgconfig >= 0.28
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: python3-psutil
BuildRequires: python3-setuptools
# Required for agent_config.h which specifies the correct scratch directory
BuildRequires: resource-agents
@ -164,13 +172,13 @@ BuildRequires: pkgconfig(bzip2)
# Required for "make check"
BuildRequires: pkgconfig(cmocka) >= 1.1.0
BuildRequires: pkgconfig(corosync) >= 2.0.0
BuildRequires: pkgconfig(dbus-1) >= 1.5.12
BuildRequires: pkgconfig(dbus-1)
# Required for core functionality
BuildRequires: pkgconfig(glib-2.0) >= 2.42
BuildRequires: pkgconfig(gnutls) >= 3.4.6
BuildRequires: pkgconfig(gnutls)
# Pacemaker requires a minimum libqb functionality
BuildRequires: pkgconfig(libqb) >= 1.0.1
BuildRequires: pkgconfig(libxml-2.0) >= 2.9.2
BuildRequires: pkgconfig(libqb) >= 0.17.0
BuildRequires: pkgconfig(libxml-2.0) >= 2.6.0
BuildRequires: pkgconfig(libxslt)
BuildRequires: pkgconfig(ncurses)
# Pacemaker requires a minimum Python functionality
@ -184,9 +192,7 @@ Requires: %{name}-cluster-libs = %{version}-%{release}
Requires: %{name}-libs = %{version}-%{release}
Requires: corosync >= 2.0.0
Requires: python3
%if %{with linuxha}
Requires: python3-%{name} = %{version}-%{release}
%endif
Requires: resource-agents
Recommends: crmsh
Recommends: fence-agents
@ -205,7 +211,7 @@ BuildRequires: docbook-xsl-stylesheets
%else
BuildRequires: docbook-style-xsl
%endif
%if %{with linuxha}
%if %{with stonithd}
%if 0%{?suse_version}
BuildRequires: cluster-glue-devel
%else
@ -213,6 +219,8 @@ BuildRequires: cluster-glue-libs-devel
%endif
%endif
%if %{with doc}
BuildRequires: asciidoc
BuildRequires: inkscape
BuildRequires: python3-sphinx
%endif
%if %{with_regression_tests}
@ -320,12 +328,12 @@ Summary: Pacemaker development package
Group: Development/Libraries/C and C++
Requires: %{name}-libs = %{version}-%{release}
Requires: libtool-ltdl-devel
Requires: pkgconfig >= 0.28
Requires: pkgconfig
Requires: pkgconfig(bzip2)
Requires: pkgconfig(corosync) >= 2.0.0
Requires: pkgconfig(glib-2.0)
Requires: pkgconfig(libqb) >= 1.0.1
Requires: pkgconfig(libxml-2.0) >= 2.9.2
Requires: pkgconfig(libqb)
Requires: pkgconfig(libxml-2.0) >= 2.6.0
Requires: pkgconfig(libxslt)
Requires: pkgconfig(uuid)
%if %{enable_cluster_libs_pkg}
@ -390,7 +398,7 @@ manager
%build
export systemdsystemunitdir=%{_unitdir}
export systemdsystemunitdir=%{?_unitdir}%{!?_unitdir:no}
%if %{with hardening}
# prefer distro-provided hardening flags in case they are defined
@ -420,6 +428,7 @@ autoreconf -fvi
%endif
PYTHON=%{python_path} \
%{!?with_hardening: --disable-hardening} \
%{?with_legacy_links: --enable-legacy-links} \
%{?with_profiling: --with-profiling} \
%{?with_cibsecrets: --with-cibsecrets} \
%{?with_nls: --enable-nls} \
@ -429,6 +438,7 @@ autoreconf -fvi
%{?ocf_root: --with-ocfdir=%{ocf_root}} \
%{?concurrent_fencing} \
%{?resource_stickiness} \
%{?compat20} \
--disable-static \
--with-initdir=%{_initddir} \
--with-runstatedir=%{_rundir} \
@ -574,12 +584,14 @@ fi
%{_unitdir}/pacemaker.service
%{_sbindir}/rcpacemaker
%exclude %{_libexecdir}/pacemaker/cts-log-watcher
%exclude %{_libexecdir}/pacemaker/cts-support
%exclude %{_sbindir}/pacemaker-remoted
%exclude %{_sbindir}/pacemaker_remoted
%dir %{_libexecdir}/pacemaker
%{_libexecdir}/pacemaker/*
%if %{with linuxha}
%if %{with stonithd}
%{_sbindir}/fence_legacy
%endif
%{_sbindir}/fence_watchdog
@ -589,8 +601,9 @@ fi
%{_mandir}/man7/pacemaker-schedulerd.7%{ext_man}
%{_mandir}/man7/pacemaker-fenced.7%{ext_man}
%{_mandir}/man7/ocf_pacemaker_controld.7%{ext_man}
%{_mandir}/man7/ocf_pacemaker_o2cb.7%{ext_man}
%{_mandir}/man7/ocf_pacemaker_remote.7%{ext_man}
%if %{with linuxha}
%if %{with stonithd}
%{_mandir}/man8/fence_legacy.8%{ext_man}
%endif
%{_mandir}/man8/fence_watchdog.8%{ext_man}
@ -600,11 +613,12 @@ fi
#%license licenses/GPLv2
%license COPYING
%doc ChangeLog.md
%doc ChangeLog
%dir %attr (750, %{uname}, %{gname}) %{_var}/lib/pacemaker/cib
%dir %attr (750, %{uname}, %{gname}) %{_var}/lib/pacemaker/pengine
%{ocf_root}/resource.d/pacemaker/controld
%{ocf_root}/resource.d/pacemaker/o2cb
%{ocf_root}/resource.d/pacemaker/remote
%files cli
@ -640,11 +654,10 @@ fi
%{_datadir}/pacemaker/report.collector
%{_datadir}/pacemaker/report.common
# XXX "dirname" is not owned by any prerequisite
%dir %{_datadir}/snmp
%dir %{_datadir}/snmp/mibs
%{_datadir}/snmp/mibs/PCMK-MIB.txt
%exclude %{ocf_root}/resource.d/pacemaker/controld
%exclude %{ocf_root}/resource.d/pacemaker/o2cb
%exclude %{ocf_root}/resource.d/pacemaker/remote
%dir %{ocf_root}
@ -659,6 +672,7 @@ fi
%exclude %{_mandir}/man7/pacemaker-schedulerd.*
%exclude %{_mandir}/man7/pacemaker-fenced.*
%exclude %{_mandir}/man7/ocf_pacemaker_controld.*
%exclude %{_mandir}/man7/ocf_pacemaker_o2cb.*
%exclude %{_mandir}/man7/ocf_pacemaker_remote.*
%{_mandir}/man8/crm*.8%{ext_man}
%{_mandir}/man8/attrd_updater.*
@ -671,7 +685,7 @@ fi
#%license licenses/GPLv2
%license COPYING
%doc ChangeLog.md
%doc ChangeLog
%dir %attr (750, %{uname}, %{gname}) %{_var}/lib/pacemaker
%dir %attr (750, %{uname}, %{gname}) %{_var}/lib/pacemaker/blackbox
@ -690,7 +704,7 @@ fi
%{_libdir}/libstonithd.so.*
#%license licenses/LGPLv2.1
%license COPYING
%doc ChangeLog.md
%doc ChangeLog
%if !%{enable_cluster_libs_pkg}
%{_libdir}/libcrmcluster.so.*
%endif
@ -700,7 +714,7 @@ fi
%{_libdir}/libcrmcluster.so.*
#%license licenses/LGPLv2.1
%license COPYING
%doc ChangeLog.md
%doc ChangeLog
%endif
%files -n python3-%{name}
@ -709,17 +723,18 @@ fi
%exclude %{python3_sitelib}/pacemaker/_cts/
#%license licenses/LGPLv2.1
%license COPYING
%doc ChangeLog.md
%doc ChangeLog
%files remote
%{_unitdir}/pacemaker_remote.service
%{_sbindir}/rcpacemaker_remote
%{_sbindir}/pacemaker-remoted
%{_sbindir}/pacemaker_remoted
%{_mandir}/man8/pacemaker-remoted.8%{ext_man}
#%license licenses/GPLv2
%license COPYING
%doc ChangeLog.md
%doc ChangeLog
%if %{with doc}
%files doc
@ -731,11 +746,12 @@ fi
%{python3_sitelib}/pacemaker/_cts/
%{_datadir}/pacemaker/tests
%{_libexecdir}/pacemaker/cts-log-watcher
%{_libexecdir}/pacemaker/cts-support
#%license licenses/GPLv2
%license COPYING
%doc ChangeLog.md
%doc ChangeLog
%files devel
%{_includedir}/pacemaker
@ -751,7 +767,7 @@ fi
%{_libdir}/pkgconfig/*pacemaker*.pc
#%license licenses/LGPLv2.1
%license COPYING
%doc ChangeLog.md
%doc ChangeLog
%files schemas
#%license licenses/GPLv2