Blame SOURCES/bz2063877-all-agents-use-promotable-terms.patch

d5211c
From 3e469239e8c853725b28a9c6b509152aacc2c5cc Mon Sep 17 00:00:00 2001
d5211c
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
d5211c
Date: Mon, 13 Jun 2022 11:24:05 +0200
d5211c
Subject: [PATCH 1/2] all agents: update to promotable terms
d5211c
d5211c
---
d5211c
 heartbeat/SAPInstance        | 22 +++++++++++-----------
d5211c
 heartbeat/conntrackd.in      |  6 +++---
d5211c
 heartbeat/db2                | 12 ++++++------
d5211c
 heartbeat/dnsupdate.in       |  2 +-
d5211c
 heartbeat/galera.in          | 26 +++++++++++++-------------
d5211c
 heartbeat/iface-bridge       |  6 +++---
d5211c
 heartbeat/mariadb.in         | 30 +++++++++++++++---------------
d5211c
 heartbeat/mpathpersist.in    | 24 ++++++++++++------------
d5211c
 heartbeat/mysql              |  4 ++--
d5211c
 heartbeat/mysql-proxy        |  2 +-
d5211c
 heartbeat/pgsql              |  2 +-
d5211c
 heartbeat/redis.in           |  4 ++--
d5211c
 heartbeat/sg_persist.in      |  4 ++--
d5211c
 14 files changed, 74 insertions(+), 74 deletions(-)
d5211c
d5211c
diff --git a/heartbeat/SAPInstance b/heartbeat/SAPInstance
d5211c
index 016f59aff..e3fe788ae 100755
d5211c
--- a/heartbeat/SAPInstance
d5211c
+++ b/heartbeat/SAPInstance
d5211c
@@ -25,8 +25,8 @@
d5211c
 #   OCF_RESKEY_AUTOMATIC_RECOVER    (optional, automatic startup recovery using cleanipc, default is false)
d5211c
 #   OCF_RESKEY_MONITOR_SERVICES     (optional, default is to monitor critical services only)
d5211c
 #   OCF_RESKEY_SHUTDOWN_METHOD      (optional, defaults to NORMAL, KILL: terminate the SAP instance with OS commands - faster, at your own risk)
d5211c
-#   OCF_RESKEY_ERS_InstanceName     (optional, InstanceName of the ERS instance in a Master/Slave configuration)
d5211c
-#   OCF_RESKEY_ERS_START_PROFILE    (optional, START_PROFILE of the ERS instance in a Master/Slave configuration)
d5211c
+#   OCF_RESKEY_ERS_InstanceName     (optional, InstanceName of the ERS instance in a Promotable configuration)
d5211c
+#   OCF_RESKEY_ERS_START_PROFILE    (optional, START_PROFILE of the ERS instance in a Promotable configuration)
d5211c
 #   OCF_RESKEY_PRE_START_USEREXIT	(optional, lists a script which can be executed before the resource is started)
d5211c
 #   OCF_RESKEY_POST_START_USEREXIT	(optional, lists a script which can be executed after the resource is started)
d5211c
 #   OCF_RESKEY_PRE_STOP_USEREXIT	(optional, lists a script which can be executed before the resource is stopped)
d5211c
@@ -92,11 +92,11 @@ sapinstance_usage() {
d5211c
 
d5211c
 	$0 manages a SAP Instance as an HA resource.
d5211c
 
d5211c
-	The 'start' operation starts the instance or the ERS instance in a Master/Slave configuration
d5211c
+	The 'start' operation starts the instance or the ERS instance in a Promotable configuration
d5211c
 	The 'stop' operation stops the instance
d5211c
 	The 'status' operation reports whether the instance is running
d5211c
 	The 'monitor' operation reports whether the instance seems to be working
d5211c
-	The 'promote' operation starts the primary instance in a Master/Slave configuration
d5211c
+	The 'promote' operation starts the primary instance in a Promotable configuration
d5211c
 	The 'demote' operation stops the primary instance and starts the ERS instance
d5211c
 	The 'reload' operation allows changed parameters (non-unique only) without restarting the service
d5211c
 	The 'notify' operation always returns SUCCESS
d5211c
@@ -201,11 +201,11 @@ You may specify multiple services separated by a | (pipe) sign in this parameter
d5211c
   <content type="string" default="${OCF_RESKEY_SHUTDOWN_METHOD_default}"/>
d5211c
  </parameter>
d5211c
  <parameter name="ERS_InstanceName" unique="1" required="0">
d5211c
-  <longdesc lang="en">Only used in a Master/Slave resource configuration:
d5211c
+  <longdesc lang="en">Only used in a Promotable resource configuration:
d5211c
 The full qualified SAP enqueue replication instance name. e.g. P01_ERS02_sapp01ers. Usually this is the name of the SAP instance profile.
d5211c
-The enqueue replication instance must be installed, before you want to configure a master-slave cluster resource.
d5211c
+The enqueue replication instance must be installed, before you want to configure a promotable cluster resource.
d5211c
 
d5211c
-The master-slave configuration in the cluster must use this properties:
d5211c
+The promotable configuration in the cluster must use this properties:
d5211c
 clone_max = 2
d5211c
 clone_node_max = 1
d5211c
 master_node_max = 1
d5211c
@@ -215,7 +215,7 @@ master_max = 1
d5211c
   <content type="string" default="${OCF_RESKEY_ERS_InstanceName_default}"/>
d5211c
  </parameter>
d5211c
  <parameter name="ERS_START_PROFILE" unique="1" required="0">
d5211c
-  <longdesc lang="en">Only used in a Master/Slave resource configuration:
d5211c
+  <longdesc lang="en">Only used in a Promotable resource configuration:
d5211c
 The parameter ERS_InstanceName must also be set in this configuration.
d5211c
 The name of the SAP START profile. Specify this parameter, if you have changed the name of the SAP START profile after the default SAP installation. As SAP release 7.10 does not have a START profile anymore, you need to specify the Instance Profile than.
d5211c
   </longdesc>
d5211c
@@ -243,7 +243,7 @@ The name of the SAP START profile. Specify this parameter, if you have changed t
d5211c
   <content type="string" default="${OCF_RESKEY_POST_STOP_USEREXIT_default}" />
d5211c
  </parameter>
d5211c
  <parameter name="IS_ERS" unique="0" required="0">
d5211c
-  <longdesc lang="en">Only used for ASCS/ERS SAP Netweaver installations without implementing a master/slave resource to
d5211c
+  <longdesc lang="en">Only used for ASCS/ERS SAP Netweaver installations without implementing a promotable resource to
d5211c
     allow the ASCS to 'find' the ERS running on another cluster node after a resource failure. This parameter should be set
d5211c
     to true 'only' for the ERS instance for implementations following the SAP NetWeaver 7.40 HA certification (NW-HA-CLU-740). This includes also
d5211c
     systems for NetWeaver less than 7.40, if you like to implement the NW-HA-CLU-740 scenario.
d5211c
@@ -266,8 +266,8 @@ The name of the SAP START profile. Specify this parameter, if you have changed t
d5211c
 <action name="stop" timeout="240s" />
d5211c
 <action name="status" timeout="60s" />
d5211c
 <action name="monitor" depth="0" timeout="60s" interval="120s" />
d5211c
-<action name="monitor" depth="0" timeout="60s" interval="121s" role="Slave" />
d5211c
-<action name="monitor" depth="0" timeout="60s" interval="119s" role="Master" />
d5211c
+<action name="monitor" depth="0" timeout="60s" interval="121s" role="Unpromoted" />
d5211c
+<action name="monitor" depth="0" timeout="60s" interval="119s" role="Promoted" />
d5211c
 <action name="promote" timeout="320s" />
d5211c
 <action name="demote" timeout="320s" />
d5211c
 <action name="reload" timeout="320s" />
d5211c
diff --git a/heartbeat/conntrackd.in b/heartbeat/conntrackd.in
d5211c
index f115250d6..1c2ee955b 100644
d5211c
--- a/heartbeat/conntrackd.in
d5211c
+++ b/heartbeat/conntrackd.in
d5211c
@@ -50,7 +50,7 @@ meta_data() {
d5211c
 <version>1.0</version>
d5211c
 
d5211c
 <longdesc lang="en">
d5211c
-Master/Slave OCF Resource Agent for conntrackd
d5211c
+Promotable OCF Resource Agent for conntrackd
d5211c
 </longdesc>
d5211c
 
d5211c
 <shortdesc lang="en">This resource agent manages conntrackd</shortdesc>
d5211c
@@ -81,8 +81,8 @@ For example "/packages/conntrackd-0.9.14/etc/conntrackd/conntrackd.conf"
d5211c
 <action name="demote"	timeout="30s" />
d5211c
 <action name="notify"	timeout="30s" />
d5211c
 <action name="stop"    timeout="30s" />
d5211c
-<action name="monitor" timeout="20s" interval="20s" role="Slave" />
d5211c
-<action name="monitor" timeout="20s" interval="10s" role="Master" />
d5211c
+<action name="monitor" timeout="20s" interval="20s" role="Unpromoted" />
d5211c
+<action name="monitor" timeout="20s" interval="10s" role="Promoted" />
d5211c
 <action name="meta-data"  timeout="5s" />
d5211c
 <action name="validate-all"  timeout="30s" />
d5211c
 </actions>
d5211c
diff --git a/heartbeat/db2 b/heartbeat/db2
d5211c
index 4a4b2f477..620b89583 100755
d5211c
--- a/heartbeat/db2
d5211c
+++ b/heartbeat/db2
d5211c
@@ -3,7 +3,7 @@
d5211c
 # db2
d5211c
 #
d5211c
 # Resource agent that manages a DB2 LUW database in Standard role 
d5211c
-# or HADR configuration in master/slave configuration.
d5211c
+# or HADR configuration in promotable configuration.
d5211c
 # Multi partition is supported as well.
d5211c
 #
d5211c
 # Copyright (c) 2011 Holger Teutsch <holger.teutsch@web.de>
d5211c
@@ -61,7 +61,7 @@ cat <
d5211c
 <resource-agent name="db2" version="1.0">
d5211c
 <version>1.0</version>
d5211c
 <longdesc lang="en">
d5211c
-Resource Agent that manages an IBM DB2 LUW databases in Standard role as primitive or in HADR roles in master/slave configuration. Multiple partitions are supported.
d5211c
+Resource Agent that manages an IBM DB2 LUW databases in Standard role as primitive or in HADR roles in promotable configuration. Multiple partitions are supported.
d5211c
 
d5211c
 Standard mode:
d5211c
 
d5211c
@@ -71,8 +71,8 @@ Configure each partition as a separate primitive resource.
d5211c
 HADR mode:
d5211c
 
d5211c
 A single database in HADR configuration is made highly available by automating takeover operations.
d5211c
-Configure a master / slave resource with notifications enabled and an
d5211c
-additional monitoring operation with role "Master".
d5211c
+Configure a promotable resource with notifications enabled and an
d5211c
+additional monitoring operation with role "Promoted".
d5211c
 
d5211c
 In case of HADR be very deliberate in specifying intervals/timeouts. The detection of a failure including promote must complete within HADR_PEER_WINDOW.
d5211c
 
d5211c
@@ -84,7 +84,7 @@ In addition to honoring requirements for crash recovery etc. for your specific d
d5211c
 
d5211c
 For further information and examples consult http://www.linux-ha.org/wiki/db2_(resource_agent)
d5211c
 </longdesc>
d5211c
-<shortdesc lang="en">Resource Agent that manages an IBM DB2 LUW databases in Standard role as primitive or in HADR roles as master/slave configuration. Multiple partitions are supported.</shortdesc>
d5211c
+<shortdesc lang="en">Resource Agent that manages an IBM DB2 LUW databases in Standard role as primitive or in HADR roles as promotable configuration. Multiple partitions are supported.</shortdesc>
d5211c
 
d5211c
 <parameters>
d5211c
 <parameter name="instance" unique="1" required="1">
d5211c
@@ -125,7 +125,7 @@ The number of the partition (DBPARTITIONNUM) to be managed.
d5211c
 <action name="demote" timeout="120s"/>
d5211c
 <action name="notify" timeout="10s"/>
d5211c
 <action name="monitor" depth="0" timeout="60s" interval="20s"/>
d5211c
-<action name="monitor" depth="0" timeout="60s" role="Master" interval="22s"/>
d5211c
+<action name="monitor" depth="0" timeout="60s" role="Promoted" interval="22s"/>
d5211c
 <action name="validate-all" timeout="5s"/>
d5211c
 <action name="meta-data" timeout="5s"/>
d5211c
 </actions>
d5211c
diff --git a/heartbeat/dnsupdate.in b/heartbeat/dnsupdate.in
d5211c
index 35b7c99bb..b54822cd8 100755
d5211c
--- a/heartbeat/dnsupdate.in
d5211c
+++ b/heartbeat/dnsupdate.in
d5211c
@@ -119,7 +119,7 @@ the exact syntax.
d5211c
 <parameter name="server" unique="0" required="0">
d5211c
 <longdesc lang="en">
d5211c
 Which DNS server to send these updates for. When no
d5211c
-server is provided, this defaults to the master server
d5211c
+server is provided, this defaults to the promoted server
d5211c
 for the correct zone.
d5211c
 </longdesc>
d5211c
 <shortdesc lang="en">DNS server to contact</shortdesc>
d5211c
diff --git a/heartbeat/galera.in b/heartbeat/galera.in
d5211c
index c363eb254..546b1a853 100755
d5211c
--- a/heartbeat/galera.in
d5211c
+++ b/heartbeat/galera.in
d5211c
@@ -26,31 +26,31 @@
d5211c
 ##
d5211c
 # README.
d5211c
 # 
d5211c
-# This agent only supports being configured as a multistate Master
d5211c
+# This agent only supports being configured as a multistate Promoted
d5211c
 # resource.
d5211c
 #
d5211c
-# Slave vs Master role:
d5211c
+# Unpromoted vs Promoted role:
d5211c
 #
d5211c
-# During the 'Slave' role, galera instances are in read-only mode and
d5211c
+# During the 'Unpromoted' role, galera instances are in read-only mode and
d5211c
 # will not attempt to connect to the cluster. This role exists only as
d5211c
 # a means to determine which galera instance is the most up-to-date. The
d5211c
 # most up-to-date node will be used to bootstrap a galera cluster that
d5211c
 # has no current members.
d5211c
 #
d5211c
-# The galera instances will only begin to be promoted to the Master role
d5211c
+# The galera instances will only begin to be promoted to the Promoted role
d5211c
 # once all the nodes in the 'wsrep_cluster_address' connection address
d5211c
 # have entered read-only mode. At that point the node containing the
d5211c
-# database that is most current will be promoted to Master. Once the first
d5211c
-# Master instance bootstraps the galera cluster, the other nodes will be
d5211c
-# promoted to Master as well.
d5211c
+# database that is most current will be promoted to Promoted. Once the first
d5211c
+# Promoted instance bootstraps the galera cluster, the other nodes will be
d5211c
+# promoted to Promoted as well.
d5211c
 #
d5211c
 # Example: Create a galera cluster using nodes rhel7-node1 rhel7-node2 rhel7-node3
d5211c
 #
d5211c
 # pcs resource create db galera enable_creation=true \
d5211c
-# wsrep_cluster_address="gcomm://rhel7-auto1,rhel7-auto2,rhel7-auto3" meta master-max=3 --master
d5211c
+# wsrep_cluster_address="gcomm://rhel7-auto1,rhel7-auto2,rhel7-auto3" meta promoted-max=3 --promoted
d5211c
 #
d5211c
 # By setting the 'enable_creation' option, the database will be automatically 
d5211c
-# generated at startup. The meta attribute 'master-max=3' means that all 3
d5211c
+# generated at startup. The meta attribute 'promoted-max=3' means that all 3
d5211c
 # nodes listed in the wsrep_cluster_address list will be allowed to connect
d5211c
 # to the galera cluster and perform replication.
d5211c
 #
d5211c
@@ -114,8 +114,8 @@ The 'start' operation starts the database.
d5211c
 The 'stop' operation stops the database.
d5211c
 The 'status' operation reports whether the database is running
d5211c
 The 'monitor' operation reports whether the database seems to be working
d5211c
-The 'promote' operation makes this mysql server run as master
d5211c
-The 'demote' operation makes this mysql server run as slave
d5211c
+The 'promote' operation makes this mysql server run as promoted
d5211c
+The 'demote' operation makes this mysql server run as unpromoted
d5211c
 The 'validate-all' operation reports whether the parameters are valid
d5211c
 
d5211c
 UEND
d5211c
@@ -298,8 +298,8 @@ Use it with caution! (and fencing)
d5211c
 <action name="stop" timeout="120s" />
d5211c
 <action name="status" timeout="60s" />
d5211c
 <action name="monitor" depth="0" timeout="30s" interval="20s" />
d5211c
-<action name="monitor" role="Master" depth="0" timeout="30s" interval="10s" />
d5211c
-<action name="monitor" role="Slave" depth="0" timeout="30s" interval="30s" />
d5211c
+<action name="monitor" role="Promoted" depth="0" timeout="30s" interval="10s" />
d5211c
+<action name="monitor" role="Unpromoted" depth="0" timeout="30s" interval="30s" />
d5211c
 <action name="promote" timeout="300s" />
d5211c
 <action name="demote" timeout="120s" />
d5211c
 <action name="validate-all" timeout="5s" />
d5211c
diff --git a/heartbeat/iface-bridge b/heartbeat/iface-bridge
d5211c
index 75d5371dd..a4e50adb9 100755
d5211c
--- a/heartbeat/iface-bridge
d5211c
+++ b/heartbeat/iface-bridge
d5211c
@@ -211,7 +211,7 @@ bridge_meta_data() {
d5211c
       <longdesc lang="en">
d5211c
         Set the port cost. This is a dimensionless metric.
d5211c
         A list of port/cost can be specified using the following
d5211c
-        format: slave cost slave cost.
d5211c
+        format: unpromoted cost unpromoted cost.
d5211c
         Example: eth0 100 eth1 1000
d5211c
       </longdesc>
d5211c
       <shortdesc lang="en">
d5211c
@@ -228,7 +228,7 @@ bridge_meta_data() {
d5211c
         This metric is used in the designated port and root port
d5211c
         selection algorithms.
d5211c
         A list of port/priority can be specified using the following
d5211c
-        format: slave cost slave cost.
d5211c
+        format: unpromoted cost unpromoted cost.
d5211c
         Example: eth0 10 eth1 60
d5211c
       </longdesc>
d5211c
       <shortdesc lang="en">
d5211c
@@ -262,7 +262,7 @@ bridge_meta_data() {
d5211c
         Enable or disable a port from the multicast router.
d5211c
         Kernel enables all port by default.
d5211c
         A list of port can be specified using the following
d5211c
-        format: slave 0|1 slave 0|1.
d5211c
+        format: unpromoted 0|1 unpromoted 0|1.
d5211c
         Example: eth0 1 eth1 0
d5211c
       </longdesc>
d5211c
       <shortdesc lang="en">
d5211c
diff --git a/heartbeat/mariadb.in b/heartbeat/mariadb.in
d5211c
index 39ad191bb..5a39ccb66 100644
d5211c
--- a/heartbeat/mariadb.in
d5211c
+++ b/heartbeat/mariadb.in
d5211c
@@ -3,7 +3,7 @@
d5211c
 #
d5211c
 # MariaDB
d5211c
 #
d5211c
-# Description:  Manages a MariaDB Master/Slave database as Linux-HA resource
d5211c
+# Description:  Manages a MariaDB Promotable database as Linux-HA resource
d5211c
 #
d5211c
 # Authors:  Alan Robertson:               DB2 Script
d5211c
 #           Jakub Janczak:                rewrite as MySQL
d5211c
@@ -61,8 +61,8 @@ The 'start' operation starts the database.
d5211c
 The 'stop' operation stops the database.
d5211c
 The 'status' operation reports whether the database is running
d5211c
 The 'monitor' operation reports whether the database seems to be working
d5211c
-The 'promote' operation makes this mysql server run as master
d5211c
-The 'demote' operation makes this mysql server run as slave
d5211c
+The 'promote' operation makes this mysql server run as promoted
d5211c
+The 'demote' operation makes this mysql server run as unpromoted
d5211c
 The 'validate-all' operation reports whether the parameters are valid
d5211c
 
d5211c
 UEND
d5211c
@@ -78,20 +78,20 @@ meta_data() {
d5211c
 <longdesc lang="en">
d5211c
 Resource script for MariaDB.
d5211c
 
d5211c
-Manages a complete master/slave replication setup with GTID, for simpler
d5211c
+Manages a complete promotable replication setup with GTID, for simpler
d5211c
 uses look at the mysql resource agent which supports older replication
d5211c
 forms which mysql and mariadb have in common.
d5211c
 
d5211c
 The resource must be setup to use notifications. Set 'notify=true' in the metadata
d5211c
-attributes when defining a MariaDB master/slave instance.
d5211c
+attributes when defining a MariaDB promotable instance.
d5211c
 
d5211c
-The default behavior is to use uname -n values in the change master to command.
d5211c
+The default behavior is to use uname -n values in the change promoted to command.
d5211c
 Other IPs can be specified manually by adding a node attribute
d5211c
 \${INSTANCE_ATTR_NAME}_mysql_master_IP giving the IP to use for replication.
d5211c
 For example, if the mariadb primitive you are using is p_mariadb, the
d5211c
 attribute to set will be p_mariadb_mysql_master_IP.
d5211c
 </longdesc>
d5211c
-<shortdesc lang="en">Manages a MariaDB master/slave instance</shortdesc>
d5211c
+<shortdesc lang="en">Manages a MariaDB promotable instance</shortdesc>
d5211c
 <parameters>
d5211c
 
d5211c
 <parameter name="binary" unique="0" required="0">
d5211c
@@ -154,7 +154,7 @@ The logfile to be used for mysqld.
d5211c
 <longdesc lang="en">
d5211c
 All node names of nodes that will execute mariadb.
d5211c
 Please separate each node name with a space.
d5211c
-This is required for the master selection to function.
d5211c
+This is required for the promoted selection to function.
d5211c
 </longdesc>
d5211c
 <shortdesc lang="en">node list</shortdesc>
d5211c
 <content type="string" default="${OCF_RESKEY_node_list_default}" />
d5211c
@@ -220,11 +220,11 @@ Additional parameters which are passed to the mysqld on startup.
d5211c
 <parameter name="replication_user" unique="0" required="0">
d5211c
 <longdesc lang="en">
d5211c
 MariaDB replication user. This user is used for starting and stopping
d5211c
-MariaDB replication, for setting and resetting the master host, and for
d5211c
+MariaDB replication, for setting and resetting the promoted host, and for
d5211c
 setting and unsetting read-only mode. Because of that, this user must
d5211c
 have SUPER, REPLICATION SLAVE, REPLICATION CLIENT, PROCESS and RELOAD
d5211c
 privileges on all nodes within the cluster. Mandatory if you define a
d5211c
-master-slave resource.
d5211c
+promotable resource.
d5211c
 </longdesc>
d5211c
 <shortdesc lang="en">MariaDB replication user</shortdesc>
d5211c
 <content type="string" default="${OCF_RESKEY_replication_user_default}" />
d5211c
@@ -232,8 +232,8 @@ master-slave resource.
d5211c
 
d5211c
 <parameter name="replication_passwd" unique="0" required="0">
d5211c
 <longdesc lang="en">
d5211c
-MariaDB replication password. Used for replication client and slave.
d5211c
-Mandatory if you define a master-slave resource.
d5211c
+MariaDB replication password. Used for replication client and unpromoted.
d5211c
+Mandatory if you define a promotable resource.
d5211c
 </longdesc>
d5211c
 <shortdesc lang="en">MariaDB replication user password</shortdesc>
d5211c
 <content type="string" default="${OCF_RESKEY_replication_passwd_default}" />
d5211c
@@ -241,7 +241,7 @@ Mandatory if you define a master-slave resource.
d5211c
 
d5211c
 <parameter name="replication_port" unique="0" required="0">
d5211c
 <longdesc lang="en">
d5211c
-The port on which the Master MariaDB instance is listening.
d5211c
+The port on which the Promoted MariaDB instance is listening.
d5211c
 </longdesc>
d5211c
 <shortdesc lang="en">MariaDB replication port</shortdesc>
d5211c
 <content type="string" default="${OCF_RESKEY_replication_port_default}" />
d5211c
@@ -254,8 +254,8 @@ The port on which the Master MariaDB instance is listening.
d5211c
 <action name="stop" timeout="120s" />
d5211c
 <action name="status" timeout="60s" />
d5211c
 <action name="monitor" depth="0" timeout="30s" interval="20s" />
d5211c
-<action name="monitor" role="Master" depth="0" timeout="30s" interval="10s" />
d5211c
-<action name="monitor" role="Slave" depth="0" timeout="30s" interval="30s" />
d5211c
+<action name="monitor" role="Promoted" depth="0" timeout="30s" interval="10s" />
d5211c
+<action name="monitor" role="Unpromoted" depth="0" timeout="30s" interval="30s" />
d5211c
 <action name="promote" timeout="120s" />
d5211c
 <action name="demote" timeout="120s" />
d5211c
 <action name="notify" timeout="90s" />
d5211c
diff --git a/heartbeat/mpathpersist.in b/heartbeat/mpathpersist.in
d5211c
index fcf1b3a4b..e47fef4bd 100644
d5211c
--- a/heartbeat/mpathpersist.in
d5211c
+++ b/heartbeat/mpathpersist.in
d5211c
@@ -80,9 +80,9 @@ meta_data() {
d5211c
 <longdesc lang="en">
d5211c
 This resource agent manages SCSI persistent reservations on multipath devices.
d5211c
 "mpathpersist" from multipath-tools is used, please see its documentation.
d5211c
-Should be used as multistate (Master/Slave) resource
d5211c
-Slave registers its node id ("crm_node -i") as reservation key ( --param-sark ) on each device in the params "devs" list.
d5211c
-Master reserves all devices from params "devs" list with reservation "--prout-type" value from "reservation_type" parameter.
d5211c
+Should be used as multistate (Promotable) resource
d5211c
+Unpromoted registers its node id ("crm_node -i") as reservation key ( --param-sark ) on each device in the params "devs" list.
d5211c
+Promoted reserves all devices from params "devs" list with reservation "--prout-type" value from "reservation_type" parameter.
d5211c
 Please see man sg_persist(8) and mpathpersist(8) for reservation_type details.
d5211c
 </longdesc>
d5211c
 <shortdesc lang="en">Manages SCSI persistent reservations on multipath devices</shortdesc>
d5211c
@@ -132,7 +132,7 @@ reservation type
d5211c
 master_score_base value
d5211c
 "master_score_base" value is used in "master_score" calculation:
d5211c
 master_score = master_score_base + master_score_dev_factor * working_devs
d5211c
-if set to bigger value in mpathpersist resource configuration on some node, this node will be "preferred" for master role. 
d5211c
+if set to bigger value in mpathpersist resource configuration on some node, this node will be "preferred" for promoted role. 
d5211c
 </longdesc>
d5211c
 <shortdesc lang="en">base master_score value</shortdesc>
d5211c
 <content type="string" default="${OCF_RESKEY_master_score_base_default}" />
d5211c
@@ -140,9 +140,9 @@ if set to bigger value in mpathpersist resource configuration on some node, this
d5211c
 
d5211c
 <parameter name="master_score_dev_factor" unique="0" required="0">
d5211c
 <longdesc lang="en">
d5211c
-Working device factor in master_score calculation
d5211c
+Working device factor in promoted calculation
d5211c
 each "working" device provides additional value to "master_score", 
d5211c
-so the node that sees more devices will be preferred for the "Master"-role
d5211c
+so the node that sees more devices will be preferred for the "Promoted"-role
d5211c
 Setting it to 0 will disable this behavior. 
d5211c
 </longdesc>
d5211c
 <shortdesc lang="en">working device factor in master_score calculation</shortdesc>
d5211c
@@ -151,10 +151,10 @@ Setting it to 0 will disable this behavior.
d5211c
 
d5211c
 <parameter name="master_score_delay" unique="0" required="0">
d5211c
 <longdesc lang="en">
d5211c
-master/slave decreases/increases its master_score after delay of "master_score_delay" seconds
d5211c
-so if some device gets inaccessible, the slave decreases its master_score first and the resource will no be watched
d5211c
-and after this device reappears again the master increases its master_score first
d5211c
-this can work only if the master_score_delay is bigger then monitor interval on both master and slave
d5211c
+promoted/unpromoted decreases/increases its master_score after delay of "master_score_delay" seconds
d5211c
+so if some device gets inaccessible, the unpromoted decreases its promoted first and the resource will no be watched
d5211c
+and after this device reappears again the promoted increases its master_score first
d5211c
+this can work only if the master_score_delay is bigger then monitor interval on both promoted and unpromoted
d5211c
 Setting it to 0 will disable this behavior.
d5211c
 </longdesc>
d5211c
 <shortdesc lang="en">master_score decrease/increase delay time</shortdesc>
d5211c
@@ -168,8 +168,8 @@ Setting it to 0 will disable this behavior.
d5211c
 <action name="demote"   timeout="30s" />
d5211c
 <action name="notify"   timeout="30s" />
d5211c
 <action name="stop"    timeout="30s" />
d5211c
-<action name="monitor" depth="0"  timeout="20s" interval="29s" role="Slave" />
d5211c
-<action name="monitor" depth="0"  timeout="20s" interval="60s" role="Master" />
d5211c
+<action name="monitor" depth="0"  timeout="20s" interval="29s" role="Unpromoted" />
d5211c
+<action name="monitor" depth="0"  timeout="20s" interval="60s" role="Promoted" />
d5211c
 <action name="meta-data"  timeout="5s" />
d5211c
 <action name="validate-all"  timeout="30s" />
d5211c
 </actions>
d5211c
diff --git a/heartbeat/mysql b/heartbeat/mysql
d5211c
index 720de8c1a..aec44fe5e 100755
d5211c
--- a/heartbeat/mysql
d5211c
+++ b/heartbeat/mysql
d5211c
@@ -321,8 +321,8 @@ whether a node is usable for clients to read from.</shortdesc>
d5211c
 <action name="stop" timeout="120s" />
d5211c
 <action name="status" timeout="60s" />
d5211c
 <action name="monitor" depth="0" timeout="30s" interval="20s" />
d5211c
-<action name="monitor" role="Master" depth="0" timeout="30s" interval="10s" />
d5211c
-<action name="monitor" role="Slave" depth="0" timeout="30s" interval="30s" />
d5211c
+<action name="monitor" role="Promoted" depth="0" timeout="30s" interval="10s" />
d5211c
+<action name="monitor" role="Unpromoted" depth="0" timeout="30s" interval="30s" />
d5211c
 <action name="promote" timeout="120s" />
d5211c
 <action name="demote" timeout="120s" />
d5211c
 <action name="notify" timeout="90s" />
d5211c
diff --git a/heartbeat/mysql-proxy b/heartbeat/mysql-proxy
d5211c
index e34396d9a..fdf2fa230 100755
d5211c
--- a/heartbeat/mysql-proxy
d5211c
+++ b/heartbeat/mysql-proxy
d5211c
@@ -162,7 +162,7 @@ Address:port of the remote back-end servers (default: 127.0.0.1:3306).
d5211c
 
d5211c
 <parameter name="proxy_read_only_backend_addresses" unique="0" required="0">
d5211c
 <longdesc lang="en">
d5211c
-Address:port of the remote (read only) slave-server (default: ).
d5211c
+Address:port of the remote (read only) unpromoted-server (default: ).
d5211c
 </longdesc>
d5211c
 <shortdesc lang="en">MySql Proxy read only back-end servers</shortdesc>
d5211c
 <content type="string" default="${OCF_RESKEY_proxy_read_only_backend_addresses_default}" />
d5211c
diff --git a/heartbeat/pgsql b/heartbeat/pgsql
d5211c
index e3a39038f..94aceb324 100755
d5211c
--- a/heartbeat/pgsql
d5211c
+++ b/heartbeat/pgsql
d5211c
@@ -458,7 +458,7 @@ wal receiver is not running in the master and the attribute shows status as
d5211c
 <action name="stop" timeout="120s" />
d5211c
 <action name="status" timeout="60s" />
d5211c
 <action name="monitor" depth="0" timeout="30s" interval="30s"/>
d5211c
-<action name="monitor" depth="0" timeout="30s" interval="29s" role="Master" />
d5211c
+<action name="monitor" depth="0" timeout="30s" interval="29s" role="Promoted" />
d5211c
 <action name="promote" timeout="120s" />
d5211c
 <action name="demote" timeout="120s" />
d5211c
 <action name="notify"   timeout="90s" />
d5211c
diff --git a/heartbeat/redis.in b/heartbeat/redis.in
d5211c
index 7f886c7ea..6429477e1 100755
d5211c
--- a/heartbeat/redis.in
d5211c
+++ b/heartbeat/redis.in
d5211c
@@ -220,8 +220,8 @@ is in use.
d5211c
 <action name="stop" timeout="120s" />
d5211c
 <action name="status" timeout="60s" />
d5211c
 <action name="monitor" depth="0" timeout="60s" interval="45s" />
d5211c
-<action name="monitor" role="Master" depth="0" timeout="60s" interval="20s" />
d5211c
-<action name="monitor" role="Slave" depth="0" timeout="60s" interval="60s" />
d5211c
+<action name="monitor" role="Promoted" depth="0" timeout="60s" interval="20s" />
d5211c
+<action name="monitor" role="Unpromoted" depth="0" timeout="60s" interval="60s" />
d5211c
 <action name="promote" timeout="120s" />
d5211c
 <action name="demote" timeout="120s" />
d5211c
 <action name="notify" timeout="90s" />
d5211c
diff --git a/heartbeat/sg_persist.in b/heartbeat/sg_persist.in
d5211c
index 678762f40..0497cc469 100644
d5211c
--- a/heartbeat/sg_persist.in
d5211c
+++ b/heartbeat/sg_persist.in
d5211c
@@ -168,8 +168,8 @@ Setting it to 0 will disable this behavior.
d5211c
 <action name="demote"   timeout="30s" />
d5211c
 <action name="notify"   timeout="30s" />
d5211c
 <action name="stop"    timeout="30s" />
d5211c
-<action name="monitor" depth="0"  timeout="20s" interval="29s" role="Slave" />
d5211c
-<action name="monitor" depth="0"  timeout="20s" interval="60s" role="Master" />
d5211c
+<action name="monitor" depth="0"  timeout="20s" interval="29s" role="Unpromoted" />
d5211c
+<action name="monitor" depth="0"  timeout="20s" interval="60s" role="Promoted" />
d5211c
 <action name="meta-data"  timeout="5s" />
d5211c
 <action name="validate-all"  timeout="30s" />
d5211c
 </actions>
d5211c
d5211c
From 14e5cb71e3749d311745f110f90cc1139f9cedaf Mon Sep 17 00:00:00 2001
d5211c
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
d5211c
Date: Thu, 16 Jun 2022 15:54:39 +0200
d5211c
Subject: [PATCH 2/2] metadata: update to promoted roles
d5211c
d5211c
---
d5211c
 heartbeat/metadata.rng | 4 ++--
d5211c
 1 file changed, 2 insertions(+), 2 deletions(-)
d5211c
d5211c
diff --git a/heartbeat/metadata.rng b/heartbeat/metadata.rng
d5211c
index 3dd735547..909efc284 100644
d5211c
--- a/heartbeat/metadata.rng
d5211c
+++ b/heartbeat/metadata.rng
d5211c
@@ -85,8 +85,8 @@
d5211c
 
d5211c
 <define name="role-values">
d5211c
 	<choice>
d5211c
-		<value>Master</value>
d5211c
-		<value>Slave</value>
d5211c
+		<value>Promoted</value>
d5211c
+		<value>Unpromoted</value>
d5211c
 	</choice>
d5211c
 </define>
d5211c