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

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