Blame SOURCES/change-cman-to-rhel6-in-messages.patch

15f218
From 0c8d98bb420b5ea366de361758c6c01851f94630 Mon Sep 17 00:00:00 2001
15f218
From: Ivan Devat <idevat@redhat.com>
15f218
Date: Mon, 23 May 2016 17:00:13 +0200
15f218
Subject: [PATCH] change cman to rhel6 in messages
15f218
15f218
---
15f218
 pcs/cluster.py          |  6 +++---
15f218
 pcs/lib/reports.py      |  8 ++++----
15f218
 pcs/pcs.8               | 10 +++++-----
15f218
 pcs/usage.py            | 20 ++++++++++----------
15f218
 pcsd/views/_dialogs.erb |  2 +-
15f218
 pcsd/views/manage.erb   | 16 ++++++++--------
15f218
 pcsd/views/nodes.erb    |  2 +-
15f218
 7 files changed, 32 insertions(+), 32 deletions(-)
15f218
15f218
diff --git a/pcs/cluster.py b/pcs/cluster.py
15f218
index e5ad1ec..4572643 100644
15f218
--- a/pcs/cluster.py
15f218
+++ b/pcs/cluster.py
15f218
@@ -1553,7 +1553,7 @@ def cluster_node(argv):
15f218
         else:
15f218
             utils.err("Unable to update any nodes")
15f218
         if utils.is_cman_with_udpu_transport():
15f218
-            print("Warning: Using udpu transport on a CMAN cluster, "
15f218
+            print("Warning: Using udpu transport on a RHEL 6 cluster, "
15f218
                 + "cluster restart is required to apply node addition")
15f218
         if wait:
15f218
             print()
15f218
@@ -1628,7 +1628,7 @@ def cluster_node(argv):
15f218
         output, retval = utils.reloadCorosync()
15f218
         output, retval = utils.run(["crm_node", "--force", "-R", node0])
15f218
         if utils.is_cman_with_udpu_transport():
15f218
-            print("Warning: Using udpu transport on a CMAN cluster, "
15f218
+            print("Warning: Using udpu transport on a RHEL 6 cluster, "
15f218
                 + "cluster restart is required to apply node removal")
15f218
 
15f218
 def cluster_localnode(argv):
15f218
@@ -1796,7 +1796,7 @@ def cluster_uidgid(argv, silent_list = False):
15f218
 
15f218
 def cluster_get_corosync_conf(argv):
15f218
     if utils.is_rhel6():
15f218
-        utils.err("corosync.conf is not supported on CMAN clusters")
15f218
+        utils.err("corosync.conf is not supported on RHEL 6 clusters")
15f218
 
15f218
     if len(argv) > 1:
15f218
         usage.cluster()
15f218
diff --git a/pcs/lib/reports.py b/pcs/lib/reports.py
15f218
index cff491c..89888c5 100644
15f218
--- a/pcs/lib/reports.py
15f218
+++ b/pcs/lib/reports.py
15f218
@@ -893,7 +893,7 @@ def cman_unsupported_command():
15f218
     """
15f218
     return ReportItem.error(
15f218
         report_codes.CMAN_UNSUPPORTED_COMMAND,
15f218
-        "This command is not supported on CMAN clusters"
15f218
+        "This command is not supported on RHEL 6 clusters"
15f218
     )
15f218
 
15f218
 def id_already_exists(id):
15f218
@@ -1138,7 +1138,7 @@ def cman_ignored_option(option):
15f218
     """
15f218
     return ReportItem.warning(
15f218
         report_codes.IGNORED_CMAN_UNSUPPORTED_OPTION,
15f218
-        '{option_name} ignored as it is not supported on CMAN clusters',
15f218
+        '{option_name} ignored as it is not supported on RHEL 6 clusters',
15f218
         info={'option_name': option}
15f218
     )
15f218
 
15f218
@@ -1159,7 +1159,7 @@ def cman_udpu_restart_required():
15f218
     """
15f218
     return ReportItem.warning(
15f218
         report_codes.CMAN_UDPU_RESTART_REQUIRED,
15f218
-        "Using udpu transport on a CMAN cluster, "
15f218
+        "Using udpu transport on a RHEL 6 cluster, "
15f218
             + "cluster restart is required after node add or remove"
15f218
     )
15f218
 
15f218
@@ -1169,7 +1169,7 @@ def cman_broadcast_all_rings():
15f218
     """
15f218
     return ReportItem.warning(
15f218
         report_codes.CMAN_BROADCAST_ALL_RINGS,
15f218
-        "Enabling broadcast for all rings as CMAN does not support "
15f218
+        "Enabling broadcast for all rings as RHEL 6 does not support "
15f218
             + "broadcast in only one ring"
15f218
     )
15f218
 
15f218
diff --git a/pcs/pcs.8 b/pcs/pcs.8
15f218
index 1efe8f4..dffaddd 100644
15f218
--- a/pcs/pcs.8
15f218
+++ b/pcs/pcs.8
15f218
@@ -197,13 +197,13 @@ auth [node] [...] [\fB\-u\fR username] [\fB\-p\fR password] [\fB\-\-force\fR] [\
15f218
 Authenticate pcs to pcsd on nodes specified, or on all nodes configured in corosync.conf if no nodes are specified (authorization tokens are stored in ~/.pcs/tokens or /var/lib/pcsd/tokens for root).  By default all nodes are also authenticated to each other, using \fB\-\-local\fR only authenticates the local node (and does not authenticate the remote nodes with each other).  Using \fB\-\-force\fR forces re-authentication to occur.
15f218
 .TP
15f218
 setup [\fB\-\-start\fR [\fB\-\-wait\fR[=<n>]]] [\fB\-\-local\fR] [\fB\-\-enable\fR] \fB\-\-name\fR <cluster name> <node1[,node1-altaddr]> [<node2[,node2-altaddr]>] [...] [\fB\-\-transport\fR udpu|udp] [\fB\-\-rrpmode\fR active|passive] [\fB\-\-addr0\fR <addr/net> [[[\fB\-\-mcast0\fR <address>] [\fB\-\-mcastport0\fR <port>] [\fB\-\-ttl0\fR <ttl>]] | [\fB\-\-broadcast0\fR]] [\fB\-\-addr1\fR <addr/net> [[[\fB\-\-mcast1\fR <address>] [\fB\-\-mcastport1\fR <port>] [\fB\-\-ttl1\fR <ttl>]] | [\fB\-\-broadcast1\fR]]]] [\fB\-\-wait_for_all\fR=<0|1>] [\fB\-\-auto_tie_breaker\fR=<0|1>] [\fB\-\-last_man_standing\fR=<0|1> [\fB\-\-last_man_standing_window\fR=<time in ms>]] [\fB\-\-ipv6\fR] [\fB\-\-token\fR <timeout>] [\fB\-\-token_coefficient\fR <timeout>] [\fB\-\-join\fR <timeout>] [\fB\-\-consensus\fR <timeout>] [\fB\-\-miss_count_const\fR <count>] [\fB\-\-fail_recv_const\fR <failures>]
15f218
-Configure corosync and sync configuration out to listed nodes. \fB\-\-local\fR will only perform changes on the local node, \fB\-\-start\fR will also start the cluster on the specified nodes, \fB\-\-wait\fR will wait up to 'n' seconds for the nodes to start, \fB\-\-enable\fR will enable corosync and pacemaker on node startup, \fB\-\-transport\fR allows specification of corosync transport (default: udpu; udp for CMAN clusters), \fB\-\-rrpmode\fR allows you to set the RRP mode of the system. Currently only 'passive' is supported or tested (using 'active' is not recommended). The \fB\-\-wait_for_all\fR, \fB\-\-auto_tie_breaker\fR, \fB\-\-last_man_standing\fR, \fB\-\-last_man_standing_window\fR options are all documented in corosync's votequorum(5) man page. These options are not supported on CMAN clusters.
15f218
+Configure corosync and sync configuration out to listed nodes. \fB\-\-local\fR will only perform changes on the local node, \fB\-\-start\fR will also start the cluster on the specified nodes, \fB\-\-wait\fR will wait up to 'n' seconds for the nodes to start, \fB\-\-enable\fR will enable corosync and pacemaker on node startup, \fB\-\-transport\fR allows specification of corosync transport (default: udpu; udp for RHEL 6 clusters), \fB\-\-rrpmode\fR allows you to set the RRP mode of the system. Currently only 'passive' is supported or tested (using 'active' is not recommended). The \fB\-\-wait_for_all\fR, \fB\-\-auto_tie_breaker\fR, \fB\-\-last_man_standing\fR, \fB\-\-last_man_standing_window\fR options are all documented in corosync's votequorum(5) man page. These options are not supported on RHEL 6 clusters.
15f218
 
15f218
-\fB\-\-ipv6\fR will configure corosync to use ipv6 (instead of ipv4).  This option is not supported on CMAN clusters.
15f218
+\fB\-\-ipv6\fR will configure corosync to use ipv6 (instead of ipv4).  This option is not supported on RHEL 6 clusters.
15f218
 
15f218
 \fB\-\-token\fR <timeout> sets time in milliseconds until a token loss is declared after not receiving a token (default 1000 ms)
15f218
 
15f218
-\fB\-\-token_coefficient\fR <timeout> sets time in milliseconds used for clusters with at least 3 nodes as a coefficient for real token timeout calculation (token + (number_of_nodes - 2) * token_coefficient) (default 650 ms)  This option is not supported on CMAN clusters.
15f218
+\fB\-\-token_coefficient\fR <timeout> sets time in milliseconds used for clusters with at least 3 nodes as a coefficient for real token timeout calculation (token + (number_of_nodes - 2) * token_coefficient) (default 650 ms)  This option is not supported on RHEL 6 clusters.
15f218
 
15f218
 \fB\-\-join\fR <timeout> sets time in milliseconds to wait for join messages (default 50 ms)
15f218
 
15f218
@@ -684,10 +684,10 @@ checkpoint restore <checkpoint_number>
15f218
 Restore cluster configuration to specified checkpoint.
15f218
 .TP
15f218
 import\-cman output=<filename> [input=<filename>] [\fB\-\-interactive\fR] [output\-format=corosync.conf|cluster.conf] [dist=<dist>]
15f218
-Converts CMAN cluster configuration to Pacemaker cluster configuration.  Converted configuration will be saved to 'output' file.  To send the configuration to the cluster nodes the 'pcs config restore' command can be used.  If \fB\-\-interactive\fR is specified you will be prompted to solve incompatibilities manually.  If no input is specified /etc/cluster/cluster.conf will be used.  You can force to create output containing either cluster.conf or corosync.conf using the output-format option.  Optionally you can specify output version by setting 'dist' option e. g. rhel,6.8 or redhat,7.3 or debian,7 or ubuntu,trusty.  You can get the list of supported dist values by running the "clufter \fB\-\-list-dists\fR" command.  If 'dist' is not specified, it defaults to this node's version if that matches output-format, otherwise redhat,6.7 is used for cluster.conf and redhat,7.1 is used for corosync.conf.
15f218
+Converts RHEL 6 (CMAN) cluster configuration to Pacemaker cluster configuration.  Converted configuration will be saved to 'output' file.  To send the configuration to the cluster nodes the 'pcs config restore' command can be used.  If \fB\-\-interactive\fR is specified you will be prompted to solve incompatibilities manually.  If no input is specified /etc/cluster/cluster.conf will be used.  You can force to create output containing either cluster.conf or corosync.conf using the output-format option.  Optionally you can specify output version by setting 'dist' option e. g. rhel,6.8 or redhat,7.3 or debian,7 or ubuntu,trusty.  You can get the list of supported dist values by running the "clufter \fB\-\-list-dists\fR" command.  If 'dist' is not specified, it defaults to this node's version if that matches output-format, otherwise redhat,6.7 is used for cluster.conf and redhat,7.1 is used for corosync.conf.
15f218
 .TP
15f218
 import\-cman output=<filename> [input=<filename>] [\fB\-\-interactive\fR] output\-format=pcs-commands|pcs-commands-verbose [dist=<dist>]
15f218
-Converts CMAN cluster configuration to a list of pcs commands which recreates the same cluster as Pacemaker cluster when executed.  Commands will be saved to 'output' file.  For other options see above.
15f218
+Converts RHEL 6 (CMAN) cluster configuration to a list of pcs commands which recreates the same cluster as Pacemaker cluster when executed.  Commands will be saved to 'output' file.  For other options see above.
15f218
 .TP
15f218
 export pcs\-commands|pcs\-commands\-verbose [output=<filename>] [dist=<dist>]
15f218
 Creates a list of pcs commands which upon execution recreates the current cluster running on this node.  Commands will be saved to 'output' file or written to stdout if 'output' is not specified.  Use pcs\-commands to get a simple list of commands, whereas pcs\-commands\-verbose creates a list including comments and debug messages.  Optionally specify output version by setting 'dist' option e. g. rhel,6.8 or redhat,7.3 or debian,7 or ubuntu,trusty.  You can get the list of supported dist values by running the "clufter \fB\-\-list-dists\fR" command.  If 'dist' is not specified, it defaults to this node's version.
15f218
diff --git a/pcs/usage.py b/pcs/usage.py
15f218
index ea407c3..0ebebe0 100644
15f218
--- a/pcs/usage.py
15f218
+++ b/pcs/usage.py
15f218
@@ -553,22 +553,22 @@ Commands:
15f218
         --wait will wait up to 'n' seconds for the nodes to start,
15f218
         --enable will enable corosync and pacemaker on node startup,
15f218
         --transport allows specification of corosync transport (default: udpu;
15f218
-            udp for CMAN clusters),
15f218
+            udp for RHEL 6 clusters),
15f218
         --rrpmode allows you to set the RRP mode of the system. Currently only
15f218
             'passive' is supported or tested (using 'active' is not
15f218
             recommended).
15f218
         The --wait_for_all, --auto_tie_breaker, --last_man_standing,
15f218
             --last_man_standing_window options are all documented in corosync's
15f218
-            votequorum(5) man page. These options are not supported on CMAN
15f218
+            votequorum(5) man page. These options are not supported on RHEL 6
15f218
             clusters.
15f218
         --ipv6 will configure corosync to use ipv6 (instead of ipv4). This
15f218
-            option is not supported on CMAN clusters.
15f218
+            option is not supported on RHEL 6 clusters.
15f218
         --token <timeout> sets time in milliseconds until a token loss is
15f218
             declared after not receiving a token (default 1000 ms)
15f218
         --token_coefficient <timeout> sets time in milliseconds used for clusters
15f218
             with at least 3 nodes as a coefficient for real token timeout calculation
15f218
             (token + (number_of_nodes - 2) * token_coefficient) (default 650 ms)
15f218
-            This option is not supported on CMAN clusters.
15f218
+            This option is not supported on RHEL 6 clusters.
15f218
         --join <timeout> sets time in milliseconds to wait for join messages
15f218
             (default 50 ms)
15f218
         --consensus <timeout> sets time in milliseconds to wait for consensus
15f218
@@ -1187,9 +1187,9 @@ Commands:
15f218
 
15f218
     import-cman output=<filename> [input=<filename>] [--interactive]
15f218
             [output-format=corosync.conf|cluster.conf] [dist=<dist>]
15f218
-        Converts CMAN cluster configuration to Pacemaker cluster configuration.
15f218
-        Converted configuration will be saved to 'output' file.  To send
15f218
-        the configuration to the cluster nodes the 'pcs config restore'
15f218
+        Converts RHEL 6 (CMAN) cluster configuration to Pacemaker cluster
15f218
+        configuration. Converted configuration will be saved to 'output' file.
15f218
+        To send the configuration to the cluster nodes the 'pcs config restore'
15f218
         command can be used.  If --interactive is specified you will be
15f218
         prompted to solve incompatibilities manually.  If no input is specified
15f218
         /etc/cluster/cluster.conf will be used.  You can force to create output
15f218
@@ -1203,9 +1203,9 @@ Commands:
15f218
 
15f218
     import-cman output=<filename> [input=<filename>] [--interactive]
15f218
             output-format=pcs-commands|pcs-commands-verbose [dist=<dist>]
15f218
-        Converts CMAN cluster configuration to a list of pcs commands which
15f218
-        recreates the same cluster as Pacemaker cluster when executed.  Commands
15f218
-        will be saved to 'output' file.  For other options see above.
15f218
+        Converts RHEL 6 (CMAN) cluster configuration to a list of pcs commands
15f218
+        which recreates the same cluster as Pacemaker cluster when executed.
15f218
+        Commands will be saved to 'output' file.  For other options see above.
15f218
 
15f218
     export pcs-commands|pcs-commands-verbose [output=<filename>] [dist=<dist>]
15f218
         Creates a list of pcs commands which upon execution recreates
15f218
diff --git a/pcsd/views/_dialogs.erb b/pcsd/views/_dialogs.erb
15f218
index d18ac71..21be443 100644
15f218
--- a/pcsd/views/_dialogs.erb
15f218
+++ b/pcsd/views/_dialogs.erb
15f218
@@ -40,7 +40,7 @@
15f218
   

Are you sure you want to remove the following node(s)?

15f218
   
15f218
   {{#if Pcs.is_cman_with_udpu_transport}}
15f218
-    

This is a CMAN cluster with UDPU transport, cluster restart is required to apply node removal.

15f218
+    

This is a RHEL 6 cluster with UDPU transport, cluster restart is required to apply node removal.

15f218
   {{/if}}
15f218
 
15f218
 
15f218
diff --git a/pcsd/views/manage.erb b/pcsd/views/manage.erb
15f218
index 39ab41f..cacd6cb 100644
15f218
--- a/pcsd/views/manage.erb
15f218
+++ b/pcsd/views/manage.erb
15f218
@@ -213,9 +213,9 @@
15f218
       At least one valid node must be entered.
15f218
       You may not leave the cluster name field blank
15f218
       Ring 1 addresses do not match to Ring 0 addresses
15f218
-      Cannot use UDPU transport on CMAN cluster. Please select UDP transport in Advanced options.
15f218
+      Cannot use UDPU transport on RHEL 6 cluster. Please select UDP transport in Advanced options.
15f218
       Cannot create a cluster using nodes running different versions of RHEL.
15f218
-      Cannot mix nodes running CMAN and nodes without CMAN in one cluster.
15f218
+      Cannot mix nodes running RHEL 6 and nodes running RHEL 6 in one cluster.
15f218
     
15f218
     Advanced Options:
15f218
     
15f218
@@ -245,7 +245,7 @@ remaining 3 nodes will be fenced.
15f218
 
15f218
 It is very useful when combined with Last Man Standing.
15f218
 
15f218
-This option has no effect on CMAN cluster." %>
15f218
+This option has no effect on RHEL 6 cluster." %>
15f218
 	<% auto_tie_desc = "\
15f218
 Enables Auto Tie Breaker (ATB) feature (default: off).
15f218
 
15f218
@@ -258,7 +258,7 @@ partition, or the set of nodes that are still in contact with the \
15f218
 node that has the lowest nodeid will remain quorate. The other nodes \
15f218
 will be inquorate.
15f218
 
15f218
-This option has no effect on CMAN cluster." %>
15f218
+This option has no effect on RHEL 6 cluster." %>
15f218
 	<% last_man_desc = "\
15f218
 Enables Last Man Standing (LMS) feature (default: off).
15f218
 
15f218
@@ -279,18 +279,18 @@ Using the above 8 node cluster example, with LMS enabled the cluster \
15f218
 can retain quorum and continue operating by losing, in a cascade \
15f218
 fashion, up to 6 nodes with only 2 remaining active.
15f218
 
15f218
-This option has no effect on CMAN cluster." %>
15f218
+This option has no effect on RHEL 6 cluster." %>
15f218
 	<% last_man_window_desc = "\
15f218
 Tunes Last Man Standing Window (default: 10000 ms)
15f218
 
15f218
 The window of time between when a node (or group of nodes die) and quorum \
15f218
 is recalculated if the 'Last Man Standing' option is enabled.
15f218
 
15f218
-This option has no effect on CMAN cluster." %>
15f218
+This option has no effect on RHEL 6 cluster." %>
15f218
 	<% use_ipv6_desc = "\
15f218
 Enables IPv6 for cluster communication (default: off)
15f218
 
15f218
-This option has no effect on CMAN cluster." %>
15f218
+This option has no effect on RHEL 6 cluster." %>
15f218
         <% token_timeout = "\
15f218
 Sets time in milliseconds until a token loss is declared after not receiving \
15f218
 a token (default: 1000 ms)" %>
15f218
@@ -299,7 +299,7 @@ Sets time in milliseconds used for clusters with at least 3 nodes \
15f218
 as a coefficient for real token timeout calculation \
15f218
 (token + (number_of_nodes - 2) * token_coefficient) (default: 650 ms)
15f218
 
15f218
-This option has no effect on CMAN cluster." %>
15f218
+This option has no effect on RHEL 6 cluster." %>
15f218
         <% join_timeout = "\
15f218
 Sets time in milliseconds to wait for join messages (default: 50 ms)" %>
15f218
         <% consensus_timeout = "\
15f218
diff --git a/pcsd/views/nodes.erb b/pcsd/views/nodes.erb
15f218
index 8fccd25..517e19d 100644
15f218
--- a/pcsd/views/nodes.erb
15f218
+++ b/pcsd/views/nodes.erb
15f218
@@ -350,7 +350,7 @@
15f218
       {{/if}}
15f218
       {{#if Pcs.is_cman_with_udpu_transport}}
15f218
       
15f218
-        This is a CMAN cluster with UDPU transport,
cluster restart is required to apply node addition.
15f218
+        This is a RHEL 6 cluster with UDPU transport,
cluster restart is required to apply node addition.
15f218
       
15f218
       {{/if}}
15f218
     
15f218
-- 
15f218
1.8.3.1
15f218