1
0
Files
resource-agents/nfsnotify.patch
Peter Varkoly 930f91891f - Remove unsupported RAs from resource-agents package
Adapt drop-deprecated-agents.patch (jsc#PED-8737) 
- Normalize log format from RAs with one of Pacemaker  (bsc#1217456)
  Remove 0006-Revert-ocf_log-use-same-log-format-as-pacemaker.patch
- Remove 0007-Request-to-add-gcp-vpc-move-route.patch adapt BuildRequires instead of:
  Add python module requirements: pyroute2 requests urllib3
- Adapt configure if python flavor is python311:
  add patch: use-python-311.patch
- Update to version 4.15.1+git0.a6ccb93a:
  * build: update ChangeLog for 4.15.1
  * IPaddr2: dont fail with "IPv4 does not support lvs_ipv6_addrlabel" error, as the parameter is not used in IPv4 scenarioes
  * build: update ChangeLog for 4.15.0
  * spec: use /usr/sbin paths for Fedora 41+
  * build: dont build powervs-subnet if dependencies are missing
  * build: update ChangeLog for 4.15.0-rc1

- Update to version 4.14.0+git46.eb83df84:
  * send_arp.libnet: use calloc() to avoid truncating pidfilename if it is more than 64 chars long
  * configure: fix enable_ansi check
  * powervs-subnet resource agent: improvements on virtual server status collection, and subnet - port handling.
  * ocf-shellfuncs: dont use deprecated validate-with="none" in CIB
  * conntrackd/galera/rabbitmq-cluster: avoid deprecated tool options
  * IPaddr2: change default for lvs_ipv6_addrlabel to true to avoid last added IP becoming src IP
  * IPaddr2: only set metric value for IPv6 when detected
  * galera/mariadb/mysql/redis: remove Unpromoted monitor-action, as it's covered by the regular monitor-action
  * apache/http-mon.sh: prefer curl due to new wget2 issues, including not being able to resolve hostnames from /etc/hosts
  * apache/http-mon.sh: dont use -L for wget2 as it's not implemented yet
  * Filesystem: return success during stop-action when leading or trailing whitespace is present in device or directory parameters
  * pgsql: pgsql_status: silence ERROR: command failed: runuser ...
  * ocf-shellfuncs: ocf_run(): add debug level error logging

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/resource-agents?expand=0&rev=48
2024-07-31 08:56:29 +00:00

96 lines
3.3 KiB
Diff

--- heartbeat/nfsnotify.in.orig 2021-12-06 11:36:48.000000000 +0100
+++ heartbeat/nfsnotify.in 2022-01-19 15:14:17.424694351 +0100
@@ -34,9 +34,11 @@
OCF_RESKEY_source_host_default=""
OCF_RESKEY_notify_args_default=""
+OCF_RESKEY_statd_path_default="/var/lib/nfs/statd"
: ${OCF_RESKEY_source_host=${OCF_RESKEY_source_host_default}}
: ${OCF_RESKEY_notify_args=${OCF_RESKEY_notify_args_default}}
+: ${OCF_RESKEY_statd_path=${OCF_RESKEY_statd_path_default}}
#######################################################################
@@ -50,7 +52,6 @@
NFSNOTIFY_TMP_DIR="${HA_RSCTMP}/nfsnotify_${OCF_RESOURCE_INSTANCE}/"
HA_STATD_PIDFILE="$NFSNOTIFY_TMP_DIR/rpc.statd_${OCF_RESOURCE_INSTANCE}.pid"
HA_STATD_PIDFILE_PREV="$NFSNOTIFY_TMP_DIR/rpc.statd_${OCF_RESOURCE_INSTANCE}.pid.prev"
-STATD_PATH="/var/lib/nfs/statd"
SM_NOTIFY_BINARY="${sbindir}/sm-notify"
IS_RENOTIFY=0
@@ -78,6 +79,15 @@
<content type="string" default="${OCF_RESKEY_source_host_default}" />
</parameter>
+<parameter name="statd_path" unique="0" required="0">
+<longdesc lang="en">
+Path to the directory in which the statd state lives. This needs
+to be on shared storage.
+</longdesc>
+<shortdesc lang="en">statd state directory path</shortdesc>
+<content type="string" default="${OCF_RESKEY_statd_path_default}" />
+</parameter>
+
<parameter name="notify_args" unique="0" required="0">
<longdesc lang="en">
Additional arguments to send to the sm-notify command. By default
@@ -91,6 +101,15 @@
<content type="string" default="${OCF_RESKEY_notify_args_default}" />
</parameter>
+<parameter name="statd_path" unique="0" required="0">
+<longdesc lang="en">
+Path to the directory in which the statd state lives. This needs
+to be on shared storage.
+</longdesc>
+<shortdesc lang="en">statd state directory path</shortdesc>
+<content type="string" default="${OCF_RESKEY_statd_path_default}" />
+</parameter>
+
</parameters>
<actions>
@@ -246,12 +265,12 @@
is_renotify=1
fi
- statd_backup="$STATD_PATH/nfsnotify.bu"
- copy_statd "$STATD_PATH" "$statd_backup"
+ statd_backup="$OCF_RESKEY_statd_path/nfsnotify.bu"
+ copy_statd "$OCF_RESKEY_statd_path" "$statd_backup"
if [ -z "$OCF_RESKEY_source_host" ]; then
if [ "$is_renotify" -eq 0 ]; then
- cur_statd="$STATD_PATH"
+ cur_statd="$OCF_RESKEY_statd_path"
else
cur_statd="$statd_backup"
fi
@@ -271,13 +290,13 @@
# have the first sm-notify use the actual statd directory so the
# notify list can be managed properly.
if [ "$is_renotify" -eq 0 ]; then
- cur_statd="$STATD_PATH"
+ cur_statd="$OCF_RESKEY_statd_path"
# everything after the first notify we are considering a renotification
# which means we don't use the real statd directory.
is_renotify=1
else
# use our copied statd directory for the remaining ip addresses
- cur_statd="$STATD_PATH/nfsnotify_${OCF_RESOURCE_INSTANCE}_${ip}"
+ cur_statd="$OCF_RESKEY_statd_path/nfsnotify_${OCF_RESOURCE_INSTANCE}_${ip}"
copy_statd "$statd_backup" "$cur_statd"
fi
@@ -312,7 +331,7 @@
which restorecon > /dev/null 2>&1 && selinuxenabled
SELINUX_ENABLED=$?
if [ $SELINUX_ENABLED -eq 0 ]; then
- export SELINUX_LABEL="$(ls -dZ $STATD_PATH | grep -o '\S\+:\S\+:\S\+')"
+ export SELINUX_LABEL="$(ls -dZ $OCF_RESKEY_statd_path | grep -o '\S\+:\S\+:\S\+')"
fi
case $__OCF_ACTION in