Blame SOURCES/bz1353607-01-tests-use-safe-node-names.patch

15f218
From 850473a59993e1a75c248a9b3a83284f568a4bf2 Mon Sep 17 00:00:00 2001
15f218
From: Tomas Jelinek <tojeline@redhat.com>
15f218
Date: Fri, 8 Jul 2016 15:14:05 +0200
15f218
Subject: [PATCH] tests: use safe node names
15f218
15f218
---
15f218
 pcs/test/test_cluster.py | 466 +++++++++++++++++++++++------------------------
15f218
 1 file changed, 233 insertions(+), 233 deletions(-)
15f218
15f218
diff --git a/pcs/test/test_cluster.py b/pcs/test/test_cluster.py
15f218
index 2c3e71b..8a245a2 100644
15f218
--- a/pcs/test/test_cluster.py
15f218
+++ b/pcs/test/test_cluster.py
15f218
@@ -106,7 +106,7 @@ class ClusterTest(unittest.TestCase, AssertPcsMixin):
15f218
         self.assertTrue(output.startswith("\nUsage: pcs cluster setup..."))
15f218
         self.assertEqual(1, returnVal)
15f218
 
15f218
-        output, returnVal = pcs(temp_cib, "cluster setup cname rh7-1 rh7-2")
15f218
+        output, returnVal = pcs(temp_cib, "cluster setup cname rh7-1.localhost rh7-2.localhost")
15f218
         self.assertEqual(
15f218
             "Error: A cluster name (--name <name>) is required to setup a cluster\n",
15f218
             output
15f218
@@ -116,22 +116,22 @@ class ClusterTest(unittest.TestCase, AssertPcsMixin):
15f218
     def test_cluster_setup_hostnames_resolving(self):
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --corosync_conf={0} --cluster_conf={1} --name cname nonexistant-address"
15f218
+            "cluster setup --local --corosync_conf={0} --cluster_conf={1} --name cname nonexistant-address.invalid"
15f218
             .format(corosync_conf_tmp, cluster_conf_tmp)
15f218
         )
15f218
         ac(output, """\
15f218
 Error: Unable to resolve all hostnames, use --force to override
15f218
-Warning: Unable to resolve hostname: nonexistant-address
15f218
+Warning: Unable to resolve hostname: nonexistant-address.invalid
15f218
 """)
15f218
         self.assertEqual(1, returnVal)
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --corosync_conf={0} --cluster_conf={1} --name cname nonexistant-address --force"
15f218
+            "cluster setup --local --corosync_conf={0} --cluster_conf={1} --name cname nonexistant-address.invalid --force"
15f218
             .format(corosync_conf_tmp, cluster_conf_tmp)
15f218
         )
15f218
         ac(output, """\
15f218
-Warning: Unable to resolve hostname: nonexistant-address
15f218
+Warning: Unable to resolve hostname: nonexistant-address.invalid
15f218
 """)
15f218
         self.assertEqual(0, returnVal)
15f218
 
15f218
@@ -141,7 +141,7 @@ Warning: Unable to resolve hostname: nonexistant-address
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --corosync_conf={0} --name cname rh7-1 rh7-2"
15f218
+            "cluster setup --local --corosync_conf={0} --name cname rh7-1.localhost rh7-2.localhost"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         self.assertEqual("", output)
15f218
@@ -156,12 +156,12 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-1
15f218
+        ring0_addr: rh7-1.localhost
15f218
         nodeid: 1
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-2
15f218
+        ring0_addr: rh7-2.localhost
15f218
         nodeid: 2
15f218
     }
15f218
 }
15f218
@@ -183,7 +183,7 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --corosync_conf={0} --name cname rh7-2 rh7-3"
15f218
+            "cluster setup --local --corosync_conf={0} --name cname rh7-2.localhost rh7-3.localhost"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         self.assertEqual("""\
15f218
@@ -198,7 +198,7 @@ Error: {0} already exists, use --force to overwrite
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --force --local --corosync_conf={0} --name cname rh7-2 rh7-3"
15f218
+            "cluster setup --force --local --corosync_conf={0} --name cname rh7-2.localhost rh7-3.localhost"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         self.assertEqual("", output)
15f218
@@ -215,12 +215,12 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-2
15f218
+        ring0_addr: rh7-2.localhost
15f218
         nodeid: 1
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-3
15f218
+        ring0_addr: rh7-3.localhost
15f218
         nodeid: 2
15f218
     }
15f218
 }
15f218
@@ -243,7 +243,7 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --cluster_conf={0} --name cname rh7-1 rh7-2"
15f218
+            "cluster setup --local --cluster_conf={0} --name cname rh7-1.localhost rh7-2.localhost"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
         self.assertEqual("", output)
15f218
@@ -252,17 +252,17 @@ logging {
15f218
 <cluster config_version="9" name="cname">
15f218
   <fence_daemon/>
15f218
   <clusternodes>
15f218
-    <clusternode name="rh7-1" nodeid="1">
15f218
+    <clusternode name="rh7-1.localhost" nodeid="1">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-1"/>
15f218
+          <device name="pcmk-redirect" port="rh7-1.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-2" nodeid="2">
15f218
+    <clusternode name="rh7-2.localhost" nodeid="2">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-2"/>
15f218
+          <device name="pcmk-redirect" port="rh7-2.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
@@ -283,7 +283,7 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --cluster_conf={0} --name cname rh7-2 rh7-3"
15f218
+            "cluster setup --local --cluster_conf={0} --name cname rh7-2.localhost rh7-3.localhost"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
         self.assertEqual("""\
15f218
@@ -298,7 +298,7 @@ Error: {0} already exists, use --force to overwrite
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --force --local --cluster_conf={0} --name cname rh7-2 rh7-3"
15f218
+            "cluster setup --force --local --cluster_conf={0} --name cname rh7-2.localhost rh7-3.localhost"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
         self.assertEqual("", output)
15f218
@@ -309,17 +309,17 @@ Error: {0} already exists, use --force to overwrite
15f218
 <cluster config_version="9" name="cname">
15f218
   <fence_daemon/>
15f218
   <clusternodes>
15f218
-    <clusternode name="rh7-2" nodeid="1">
15f218
+    <clusternode name="rh7-2.localhost" nodeid="1">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-2"/>
15f218
+          <device name="pcmk-redirect" port="rh7-2.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-3" nodeid="2">
15f218
+    <clusternode name="rh7-3.localhost" nodeid="2">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-3"/>
15f218
+          <device name="pcmk-redirect" port="rh7-3.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
@@ -344,7 +344,7 @@ Error: {0} already exists, use --force to overwrite
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --corosync_conf={0} --name cname rh7-1 rh7-2"
15f218
+            "cluster setup --local --corosync_conf={0} --name cname rh7-1.localhost rh7-2.localhost"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         self.assertEqual("", output)
15f218
@@ -361,12 +361,12 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-1
15f218
+        ring0_addr: rh7-1.localhost
15f218
         nodeid: 1
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-2
15f218
+        ring0_addr: rh7-2.localhost
15f218
         nodeid: 2
15f218
     }
15f218
 }
15f218
@@ -385,10 +385,10 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster localnode add --corosync_conf={0} rh7-3"
15f218
+            "cluster localnode add --corosync_conf={0} rh7-3.localhost"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
-        self.assertEqual("rh7-3: successfully added!\n", output)
15f218
+        self.assertEqual("rh7-3.localhost: successfully added!\n", output)
15f218
         self.assertEqual(0, returnVal)
15f218
         with open(corosync_conf_tmp) as f:
15f218
             data = f.read()
15f218
@@ -402,17 +402,17 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-1
15f218
+        ring0_addr: rh7-1.localhost
15f218
         nodeid: 1
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-2
15f218
+        ring0_addr: rh7-2.localhost
15f218
         nodeid: 2
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-3
15f218
+        ring0_addr: rh7-3.localhost
15f218
         nodeid: 3
15f218
     }
15f218
 }
15f218
@@ -430,11 +430,11 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster localnode remove --corosync_conf={0} rh7-3"
15f218
+            "cluster localnode remove --corosync_conf={0} rh7-3.localhost"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         self.assertEqual(0, returnVal)
15f218
-        self.assertEqual("rh7-3: successfully removed!\n", output)
15f218
+        self.assertEqual("rh7-3.localhost: successfully removed!\n", output)
15f218
         with open(corosync_conf_tmp) as f:
15f218
             data = f.read()
15f218
             ac(data, """\
15f218
@@ -447,12 +447,12 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-1
15f218
+        ring0_addr: rh7-1.localhost
15f218
         nodeid: 1
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-2
15f218
+        ring0_addr: rh7-2.localhost
15f218
         nodeid: 2
15f218
     }
15f218
 }
15f218
@@ -471,10 +471,10 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster localnode add --corosync_conf={0} rh7-3,192.168.1.3"
15f218
+            "cluster localnode add --corosync_conf={0} rh7-3.localhost,192.168.1.3"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
-        self.assertEqual("rh7-3,192.168.1.3: successfully added!\n", output)
15f218
+        self.assertEqual("rh7-3.localhost,192.168.1.3: successfully added!\n", output)
15f218
         self.assertEqual(0, returnVal)
15f218
         with open(corosync_conf_tmp) as f:
15f218
             data = f.read()
15f218
@@ -488,17 +488,17 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-1
15f218
+        ring0_addr: rh7-1.localhost
15f218
         nodeid: 1
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-2
15f218
+        ring0_addr: rh7-2.localhost
15f218
         nodeid: 2
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-3
15f218
+        ring0_addr: rh7-3.localhost
15f218
         ring1_addr: 192.168.1.3
15f218
         nodeid: 3
15f218
     }
15f218
@@ -517,11 +517,11 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster localnode remove --corosync_conf={0} rh7-2"
15f218
+            "cluster localnode remove --corosync_conf={0} rh7-2.localhost"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         self.assertEqual(0, returnVal)
15f218
-        self.assertEqual("rh7-2: successfully removed!\n", output)
15f218
+        self.assertEqual("rh7-2.localhost: successfully removed!\n", output)
15f218
         with open(corosync_conf_tmp) as f:
15f218
             data = f.read()
15f218
             ac(data, """\
15f218
@@ -534,12 +534,12 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-1
15f218
+        ring0_addr: rh7-1.localhost
15f218
         nodeid: 1
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-3
15f218
+        ring0_addr: rh7-3.localhost
15f218
         ring1_addr: 192.168.1.3
15f218
         nodeid: 3
15f218
     }
15f218
@@ -559,11 +559,11 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster localnode remove --corosync_conf={0} rh7-3,192.168.1.3"
15f218
+            "cluster localnode remove --corosync_conf={0} rh7-3.localhost,192.168.1.3"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         self.assertEqual(0, returnVal)
15f218
-        self.assertEqual("rh7-3,192.168.1.3: successfully removed!\n", output)
15f218
+        self.assertEqual("rh7-3.localhost,192.168.1.3: successfully removed!\n", output)
15f218
         with open(corosync_conf_tmp) as f:
15f218
             data = f.read()
15f218
             ac(data, """\
15f218
@@ -576,7 +576,7 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-1
15f218
+        ring0_addr: rh7-1.localhost
15f218
         nodeid: 1
15f218
     }
15f218
 }
15f218
@@ -601,7 +601,7 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --corosync_conf={0} --name cname rh7-1 rh7-2 --auto_tie_breaker=1"
15f218
+            "cluster setup --local --corosync_conf={0} --name cname rh7-1.localhost rh7-2.localhost --auto_tie_breaker=1"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         self.assertEqual("", output)
15f218
@@ -618,12 +618,12 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-1
15f218
+        ring0_addr: rh7-1.localhost
15f218
         nodeid: 1
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-2
15f218
+        ring0_addr: rh7-2.localhost
15f218
         nodeid: 2
15f218
     }
15f218
 }
15f218
@@ -642,10 +642,10 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster localnode add --corosync_conf={0} rh7-3"
15f218
+            "cluster localnode add --corosync_conf={0} rh7-3.localhost"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
-        self.assertEqual(output, "rh7-3: successfully added!\n")
15f218
+        self.assertEqual(output, "rh7-3.localhost: successfully added!\n")
15f218
         self.assertEqual(0, returnVal)
15f218
         with open(corosync_conf_tmp) as f:
15f218
             data = f.read()
15f218
@@ -659,17 +659,17 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-1
15f218
+        ring0_addr: rh7-1.localhost
15f218
         nodeid: 1
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-2
15f218
+        ring0_addr: rh7-2.localhost
15f218
         nodeid: 2
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-3
15f218
+        ring0_addr: rh7-3.localhost
15f218
         nodeid: 3
15f218
     }
15f218
 }
15f218
@@ -688,10 +688,10 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster localnode remove --corosync_conf={0} rh7-3"
15f218
+            "cluster localnode remove --corosync_conf={0} rh7-3.localhost"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
-        self.assertEqual("rh7-3: successfully removed!\n", output)
15f218
+        self.assertEqual("rh7-3.localhost: successfully removed!\n", output)
15f218
         self.assertEqual(0, returnVal)
15f218
         with open(corosync_conf_tmp) as f:
15f218
             data = f.read()
15f218
@@ -705,12 +705,12 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-1
15f218
+        ring0_addr: rh7-1.localhost
15f218
         nodeid: 1
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-2
15f218
+        ring0_addr: rh7-2.localhost
15f218
         nodeid: 2
15f218
     }
15f218
 }
15f218
@@ -734,7 +734,7 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --corosync_conf={0} --name cname rh7-1 rh7-2 rh7-3"
15f218
+            "cluster setup --local --corosync_conf={0} --name cname rh7-1.localhost rh7-2.localhost rh7-3.localhost"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         self.assertEqual("", output)
15f218
@@ -751,17 +751,17 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-1
15f218
+        ring0_addr: rh7-1.localhost
15f218
         nodeid: 1
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-2
15f218
+        ring0_addr: rh7-2.localhost
15f218
         nodeid: 2
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-3
15f218
+        ring0_addr: rh7-3.localhost
15f218
         nodeid: 3
15f218
     }
15f218
 }
15f218
@@ -784,7 +784,7 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --corosync_conf={0} --name cname rh7-1 rh7-2 --transport udp"
15f218
+            "cluster setup --local --corosync_conf={0} --name cname rh7-1.localhost rh7-2.localhost --transport udp"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         self.assertEqual("", output)
15f218
@@ -801,12 +801,12 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-1
15f218
+        ring0_addr: rh7-1.localhost
15f218
         nodeid: 1
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-2
15f218
+        ring0_addr: rh7-2.localhost
15f218
         nodeid: 2
15f218
     }
15f218
 }
15f218
@@ -834,7 +834,7 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --cluster_conf={0} --name cname rh7-1 rh7-2"
15f218
+            "cluster setup --local --cluster_conf={0} --name cname rh7-1.localhost rh7-2.localhost"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
         ac(output, "")
15f218
@@ -845,17 +845,17 @@ logging {
15f218
 <cluster config_version="9" name="cname">
15f218
   <fence_daemon/>
15f218
   <clusternodes>
15f218
-    <clusternode name="rh7-1" nodeid="1">
15f218
+    <clusternode name="rh7-1.localhost" nodeid="1">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-1"/>
15f218
+          <device name="pcmk-redirect" port="rh7-1.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-2" nodeid="2">
15f218
+    <clusternode name="rh7-2.localhost" nodeid="2">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-2"/>
15f218
+          <device name="pcmk-redirect" port="rh7-2.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
@@ -873,10 +873,10 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster localnode add --cluster_conf={0} rh7-3"
15f218
+            "cluster localnode add --cluster_conf={0} rh7-3.localhost"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
-        ac(output, "rh7-3: successfully added!\n")
15f218
+        ac(output, "rh7-3.localhost: successfully added!\n")
15f218
         self.assertEqual(returnVal, 0)
15f218
         with open(cluster_conf_tmp) as f:
15f218
             data = f.read()
15f218
@@ -884,24 +884,24 @@ logging {
15f218
 <cluster config_version="13" name="cname">
15f218
   <fence_daemon/>
15f218
   <clusternodes>
15f218
-    <clusternode name="rh7-1" nodeid="1">
15f218
+    <clusternode name="rh7-1.localhost" nodeid="1">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-1"/>
15f218
+          <device name="pcmk-redirect" port="rh7-1.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-2" nodeid="2">
15f218
+    <clusternode name="rh7-2.localhost" nodeid="2">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-2"/>
15f218
+          <device name="pcmk-redirect" port="rh7-2.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-3" nodeid="3">
15f218
+    <clusternode name="rh7-3.localhost" nodeid="3">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-3"/>
15f218
+          <device name="pcmk-redirect" port="rh7-3.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
@@ -919,10 +919,10 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster localnode remove --cluster_conf={0} rh7-3"
15f218
+            "cluster localnode remove --cluster_conf={0} rh7-3.localhost"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
-        ac(output, "rh7-3: successfully removed!\n")
15f218
+        ac(output, "rh7-3.localhost: successfully removed!\n")
15f218
         self.assertEqual(returnVal, 0)
15f218
 
15f218
         with open(cluster_conf_tmp) as f:
15f218
@@ -931,17 +931,17 @@ logging {
15f218
 <cluster config_version="15" name="cname">
15f218
   <fence_daemon/>
15f218
   <clusternodes>
15f218
-    <clusternode name="rh7-1" nodeid="1">
15f218
+    <clusternode name="rh7-1.localhost" nodeid="1">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-1"/>
15f218
+          <device name="pcmk-redirect" port="rh7-1.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-2" nodeid="2">
15f218
+    <clusternode name="rh7-2.localhost" nodeid="2">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-2"/>
15f218
+          <device name="pcmk-redirect" port="rh7-2.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
@@ -959,10 +959,10 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster localnode add --cluster_conf={0} rh7-3,192.168.1.3"
15f218
+            "cluster localnode add --cluster_conf={0} rh7-3.localhost,192.168.1.3"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
-        ac(output, "rh7-3,192.168.1.3: successfully added!\n")
15f218
+        ac(output, "rh7-3.localhost,192.168.1.3: successfully added!\n")
15f218
         self.assertEqual(returnVal, 0)
15f218
 
15f218
         with open(cluster_conf_tmp) as f:
15f218
@@ -971,25 +971,25 @@ logging {
15f218
 <cluster config_version="20" name="cname">
15f218
   <fence_daemon/>
15f218
   <clusternodes>
15f218
-    <clusternode name="rh7-1" nodeid="1">
15f218
+    <clusternode name="rh7-1.localhost" nodeid="1">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-1"/>
15f218
+          <device name="pcmk-redirect" port="rh7-1.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-2" nodeid="2">
15f218
+    <clusternode name="rh7-2.localhost" nodeid="2">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-2"/>
15f218
+          <device name="pcmk-redirect" port="rh7-2.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-3" nodeid="3">
15f218
+    <clusternode name="rh7-3.localhost" nodeid="3">
15f218
       <altname name="192.168.1.3"/>
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-3"/>
15f218
+          <device name="pcmk-redirect" port="rh7-3.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
@@ -1007,10 +1007,10 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster localnode remove --cluster_conf={0} rh7-2"
15f218
+            "cluster localnode remove --cluster_conf={0} rh7-2.localhost"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
-        ac(output, "rh7-2: successfully removed!\n")
15f218
+        ac(output, "rh7-2.localhost: successfully removed!\n")
15f218
         self.assertEqual(returnVal, 0)
15f218
 
15f218
         with open(cluster_conf_tmp) as f:
15f218
@@ -1019,18 +1019,18 @@ logging {
15f218
 <cluster config_version="22" name="cname">
15f218
   <fence_daemon/>
15f218
   <clusternodes>
15f218
-    <clusternode name="rh7-1" nodeid="1">
15f218
+    <clusternode name="rh7-1.localhost" nodeid="1">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-1"/>
15f218
+          <device name="pcmk-redirect" port="rh7-1.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-3" nodeid="3">
15f218
+    <clusternode name="rh7-3.localhost" nodeid="3">
15f218
       <altname name="192.168.1.3"/>
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-3"/>
15f218
+          <device name="pcmk-redirect" port="rh7-3.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
@@ -1048,10 +1048,10 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster localnode remove --cluster_conf={0} rh7-3,192.168.1.3"
15f218
+            "cluster localnode remove --cluster_conf={0} rh7-3.localhost,192.168.1.3"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
-        ac(output, "rh7-3,192.168.1.3: successfully removed!\n")
15f218
+        ac(output, "rh7-3.localhost,192.168.1.3: successfully removed!\n")
15f218
         self.assertEqual(returnVal, 0)
15f218
 
15f218
         with open(cluster_conf_tmp) as f:
15f218
@@ -1060,10 +1060,10 @@ logging {
15f218
 <cluster config_version="23" name="cname">
15f218
   <fence_daemon/>
15f218
   <clusternodes>
15f218
-    <clusternode name="rh7-1" nodeid="1">
15f218
+    <clusternode name="rh7-1.localhost" nodeid="1">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-1"/>
15f218
+          <device name="pcmk-redirect" port="rh7-1.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
@@ -1086,7 +1086,7 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --cluster_conf={0} --name cname rh7-1 rh7-2 rh7-3"
15f218
+            "cluster setup --local --cluster_conf={0} --name cname rh7-1.localhost rh7-2.localhost rh7-3.localhost"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
         ac(output, "")
15f218
@@ -1097,24 +1097,24 @@ logging {
15f218
 <cluster config_version="12" name="cname">
15f218
   <fence_daemon/>
15f218
   <clusternodes>
15f218
-    <clusternode name="rh7-1" nodeid="1">
15f218
+    <clusternode name="rh7-1.localhost" nodeid="1">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-1"/>
15f218
+          <device name="pcmk-redirect" port="rh7-1.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-2" nodeid="2">
15f218
+    <clusternode name="rh7-2.localhost" nodeid="2">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-2"/>
15f218
+          <device name="pcmk-redirect" port="rh7-2.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-3" nodeid="3">
15f218
+    <clusternode name="rh7-3.localhost" nodeid="3">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-3"/>
15f218
+          <device name="pcmk-redirect" port="rh7-3.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
@@ -1137,7 +1137,7 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --cluster_conf={0} --name cname rh7-1 rh7-2 --transport udpu"
15f218
+            "cluster setup --local --cluster_conf={0} --name cname rh7-1.localhost rh7-2.localhost --transport udpu"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
         ac(output, """\
15f218
@@ -1150,17 +1150,17 @@ Warning: Using udpu transport on a CMAN cluster, cluster restart is required aft
15f218
 <cluster config_version="9" name="cname">
15f218
   <fence_daemon/>
15f218
   <clusternodes>
15f218
-    <clusternode name="rh7-1" nodeid="1">
15f218
+    <clusternode name="rh7-1.localhost" nodeid="1">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-1"/>
15f218
+          <device name="pcmk-redirect" port="rh7-1.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-2" nodeid="2">
15f218
+    <clusternode name="rh7-2.localhost" nodeid="2">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-2"/>
15f218
+          <device name="pcmk-redirect" port="rh7-2.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
@@ -1182,7 +1182,7 @@ Warning: Using udpu transport on a CMAN cluster, cluster restart is required aft
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --corosync_conf={0} --name cname rh7-1 rh7-2 --ipv6"
15f218
+            "cluster setup --local --corosync_conf={0} --name cname rh7-1.localhost rh7-2.localhost --ipv6"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         self.assertEqual("", output)
15f218
@@ -1200,12 +1200,12 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-1
15f218
+        ring0_addr: rh7-1.localhost
15f218
         nodeid: 1
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-2
15f218
+        ring0_addr: rh7-2.localhost
15f218
         nodeid: 2
15f218
     }
15f218
 }
15f218
@@ -1228,7 +1228,7 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --cluster_conf={0} --name cname rh7-1 rh7-2 --ipv6"
15f218
+            "cluster setup --local --cluster_conf={0} --name cname rh7-1.localhost rh7-2.localhost --ipv6"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
         ac(output, """\
15f218
@@ -1241,17 +1241,17 @@ Warning: --ipv6 ignored as it is not supported on CMAN clusters
15f218
 <cluster config_version="9" name="cname">
15f218
   <fence_daemon/>
15f218
   <clusternodes>
15f218
-    <clusternode name="rh7-1" nodeid="1">
15f218
+    <clusternode name="rh7-1.localhost" nodeid="1">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-1"/>
15f218
+          <device name="pcmk-redirect" port="rh7-1.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-2" nodeid="2">
15f218
+    <clusternode name="rh7-2.localhost" nodeid="2">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-2"/>
15f218
+          <device name="pcmk-redirect" port="rh7-2.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
@@ -1272,14 +1272,14 @@ Warning: --ipv6 ignored as it is not supported on CMAN clusters
15f218
             return
15f218
 
15f218
         o,r = pcs(
15f218
-            "cluster setup --local --corosync_conf={0} --name cname rh7-1 rh7-2 --addr0 1.1.1.0 --addr0 1.1.2.0"
15f218
+            "cluster setup --local --corosync_conf={0} --name cname rh7-1.localhost rh7-2.localhost --addr0 1.1.1.0 --addr0 1.1.2.0"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         assert r == 1
15f218
         ac(o, "Error: --addr0 can only be used once\n")
15f218
 
15f218
         o,r = pcs(
15f218
-            "cluster setup --local --corosync_conf={0} --name cname rh7-1 rh7-2 --addr0 1.1.1.0 --addr1 1.1.2.0 --rrpmode blah --broadcast0 --transport udp"
15f218
+            "cluster setup --local --corosync_conf={0} --name cname rh7-1.localhost rh7-2.localhost --addr0 1.1.1.0 --addr1 1.1.2.0 --rrpmode blah --broadcast0 --transport udp"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         assert r == 1
15f218
@@ -1289,7 +1289,7 @@ Warning: --ipv6 ignored as it is not supported on CMAN clusters
15f218
         )
15f218
 
15f218
         o,r = pcs(
15f218
-            "cluster setup --transport udp --local --corosync_conf={0} --name cname rh7-1 rh7-2 --addr0 1.1.1.0 --addr1 1.1.2.0"
15f218
+            "cluster setup --transport udp --local --corosync_conf={0} --name cname rh7-1.localhost rh7-2.localhost --addr0 1.1.1.0 --addr1 1.1.2.0"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         ac(o,"")
15f218
@@ -1321,12 +1321,12 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-1
15f218
+        ring0_addr: rh7-1.localhost
15f218
         nodeid: 1
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-2
15f218
+        ring0_addr: rh7-2.localhost
15f218
         nodeid: 2
15f218
     }
15f218
 }
15f218
@@ -1348,7 +1348,7 @@ logging {
15f218
             return
15f218
 
15f218
         o,r = pcs(
15f218
-            "cluster setup --transport udp --local --corosync_conf={0} --name cname rh7-1 rh7-2 --addr0 1.1.1.0 --mcast0 8.8.8.8 --addr1 1.1.2.0 --mcast1 9.9.9.9"
15f218
+            "cluster setup --transport udp --local --corosync_conf={0} --name cname rh7-1.localhost rh7-2.localhost --addr0 1.1.1.0 --mcast0 8.8.8.8 --addr1 1.1.2.0 --mcast1 9.9.9.9"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         ac(o,"")
15f218
@@ -1380,12 +1380,12 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-1
15f218
+        ring0_addr: rh7-1.localhost
15f218
         nodeid: 1
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-2
15f218
+        ring0_addr: rh7-2.localhost
15f218
         nodeid: 2
15f218
     }
15f218
 }
15f218
@@ -1407,7 +1407,7 @@ logging {
15f218
             return
15f218
 
15f218
         o,r = pcs(
15f218
-            "cluster setup --transport udp --local --corosync_conf={0} --name cname rh7-1 rh7-2 --addr0 1.1.1.0 --mcastport0 9999 --mcastport1 9998 --addr1 1.1.2.0"
15f218
+            "cluster setup --transport udp --local --corosync_conf={0} --name cname rh7-1.localhost rh7-2.localhost --addr0 1.1.1.0 --mcastport0 9999 --mcastport1 9998 --addr1 1.1.2.0"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         ac(o,"")
15f218
@@ -1439,12 +1439,12 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-1
15f218
+        ring0_addr: rh7-1.localhost
15f218
         nodeid: 1
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-2
15f218
+        ring0_addr: rh7-2.localhost
15f218
         nodeid: 2
15f218
     }
15f218
 }
15f218
@@ -1466,7 +1466,7 @@ logging {
15f218
             return
15f218
 
15f218
         o,r = pcs(
15f218
-            "cluster setup --local --corosync_conf={0} --name cname rh7-1 rh7-2 --addr0 1.1.1.0 --addr1 1.1.2.0 --ttl0 4 --ttl1 5 --transport udp"
15f218
+            "cluster setup --local --corosync_conf={0} --name cname rh7-1.localhost rh7-2.localhost --addr0 1.1.1.0 --addr1 1.1.2.0 --ttl0 4 --ttl1 5 --transport udp"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         ac(o,"")
15f218
@@ -1500,12 +1500,12 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-1
15f218
+        ring0_addr: rh7-1.localhost
15f218
         nodeid: 1
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-2
15f218
+        ring0_addr: rh7-2.localhost
15f218
         nodeid: 2
15f218
     }
15f218
 }
15f218
@@ -1527,14 +1527,14 @@ logging {
15f218
             return
15f218
 
15f218
         o,r = pcs(
15f218
-            "cluster setup --local --corosync_conf={0} --name cname rh7-1 rh7-2 --addr0 1.1.1.0 --addr1 1.1.2.0 --rrpmode active --transport udp"
15f218
+            "cluster setup --local --corosync_conf={0} --name cname rh7-1.localhost rh7-2.localhost --addr0 1.1.1.0 --addr1 1.1.2.0 --rrpmode active --transport udp"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         ac(o, "Error: using a RRP mode of 'active' is not supported or tested, use --force to override\n")
15f218
         assert r == 1
15f218
 
15f218
         o,r = pcs(
15f218
-            "cluster setup --force --local --corosync_conf={0} --name cname rh7-1 rh7-2 --addr0 1.1.1.0 --addr1 1.1.2.0 --rrpmode active --transport udp"
15f218
+            "cluster setup --force --local --corosync_conf={0} --name cname rh7-1.localhost rh7-2.localhost --addr0 1.1.1.0 --addr1 1.1.2.0 --rrpmode active --transport udp"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         ac(o, "Warning: using a RRP mode of 'active' is not supported or tested\n")
15f218
@@ -1566,12 +1566,12 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-1
15f218
+        ring0_addr: rh7-1.localhost
15f218
         nodeid: 1
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-2
15f218
+        ring0_addr: rh7-2.localhost
15f218
         nodeid: 2
15f218
     }
15f218
 }
15f218
@@ -1593,14 +1593,14 @@ logging {
15f218
             return
15f218
 
15f218
         o,r = pcs(
15f218
-            "cluster setup --local --corosync_conf={0} --name cname rh7-1 rh7-2 --addr0 1.1.1.0 --addr1 1.1.2.0 --rrpmode active --broadcast0 --transport udp"
15f218
+            "cluster setup --local --corosync_conf={0} --name cname rh7-1.localhost rh7-2.localhost --addr0 1.1.1.0 --addr1 1.1.2.0 --rrpmode active --broadcast0 --transport udp"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         ac(o, "Error: using a RRP mode of 'active' is not supported or tested, use --force to override\n")
15f218
         assert r == 1
15f218
 
15f218
         o,r = pcs(
15f218
-            "cluster setup --force --local --corosync_conf={0} --name cname rh7-1 rh7-2 --addr0 1.1.1.0 --addr1 1.1.2.0 --rrpmode active --broadcast0 --transport udp"
15f218
+            "cluster setup --force --local --corosync_conf={0} --name cname rh7-1.localhost rh7-2.localhost --addr0 1.1.1.0 --addr1 1.1.2.0 --rrpmode active --broadcast0 --transport udp"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         ac(o, "Warning: using a RRP mode of 'active' is not supported or tested\n")
15f218
@@ -1631,12 +1631,12 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-1
15f218
+        ring0_addr: rh7-1.localhost
15f218
         nodeid: 1
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-2
15f218
+        ring0_addr: rh7-2.localhost
15f218
         nodeid: 2
15f218
     }
15f218
 }
15f218
@@ -1658,25 +1658,25 @@ logging {
15f218
             return
15f218
 
15f218
         o,r = pcs(
15f218
-            "cluster setup --local --corosync_conf={0} --name cname rh7-1,192.168.99.1 rh7-2,192.168.99.2,192.168.99.3"
15f218
+            "cluster setup --local --corosync_conf={0} --name cname rh7-1.localhost,192.168.99.1 rh7-2.localhost,192.168.99.2,192.168.99.3"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
-        ac(o,"Error: You cannot specify more than two addresses for a node: rh7-2,192.168.99.2,192.168.99.3\n")
15f218
+        ac(o,"Error: You cannot specify more than two addresses for a node: rh7-2.localhost,192.168.99.2,192.168.99.3\n")
15f218
         assert r == 1
15f218
 
15f218
         o,r = pcs(
15f218
-            "cluster setup --local --corosync_conf={0} --name cname rh7-1,192.168.99.1 rh7-2"
15f218
+            "cluster setup --local --corosync_conf={0} --name cname rh7-1.localhost,192.168.99.1 rh7-2.localhost"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         ac(o,"Error: if one node is configured for RRP, all nodes must be configured for RRP\n")
15f218
         assert r == 1
15f218
 
15f218
-        o,r = pcs("cluster setup --force --local --name test99 rh7-1 rh7-2 --addr0 1.1.1.1")
15f218
+        o,r = pcs("cluster setup --force --local --name test99 rh7-1.localhost rh7-2.localhost --addr0 1.1.1.1")
15f218
         ac(o,"Error: --addr0 and --addr1 can only be used with --transport=udp\n")
15f218
         assert r == 1
15f218
 
15f218
         o,r = pcs(
15f218
-            "cluster setup --local --corosync_conf={0} --name cname rh7-1,192.168.99.1 rh7-2,192.168.99.2"
15f218
+            "cluster setup --local --corosync_conf={0} --name cname rh7-1.localhost,192.168.99.1 rh7-2.localhost,192.168.99.2"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         ac(o,"")
15f218
@@ -1694,13 +1694,13 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-1
15f218
+        ring0_addr: rh7-1.localhost
15f218
         ring1_addr: 192.168.99.1
15f218
         nodeid: 1
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-2
15f218
+        ring0_addr: rh7-2.localhost
15f218
         ring1_addr: 192.168.99.2
15f218
         nodeid: 2
15f218
     }
15f218
@@ -1723,49 +1723,49 @@ logging {
15f218
             return
15f218
 
15f218
         o,r = pcs(
15f218
-            "cluster setup --local --corosync_conf={0} --name test99 rh7-1 rh7-2 --wait_for_all=2"
15f218
+            "cluster setup --local --corosync_conf={0} --name test99 rh7-1.localhost rh7-2.localhost --wait_for_all=2"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         ac(o, "Error: '2' is not a valid --wait_for_all value, use 0, 1\n")
15f218
         assert r == 1
15f218
 
15f218
         o,r = pcs(
15f218
-            "cluster setup --force --local --corosync_conf={0} --name test99 rh7-1 rh7-2 --wait_for_all=2"
15f218
+            "cluster setup --force --local --corosync_conf={0} --name test99 rh7-1.localhost rh7-2.localhost --wait_for_all=2"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         ac(o, "Error: '2' is not a valid --wait_for_all value, use 0, 1\n")
15f218
         assert r == 1
15f218
 
15f218
         o,r = pcs(
15f218
-            "cluster setup --local --corosync_conf={0} --name test99 rh7-1 rh7-2 --auto_tie_breaker=2"
15f218
+            "cluster setup --local --corosync_conf={0} --name test99 rh7-1.localhost rh7-2.localhost --auto_tie_breaker=2"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         ac(o, "Error: '2' is not a valid --auto_tie_breaker value, use 0, 1\n")
15f218
         assert r == 1
15f218
 
15f218
         o,r = pcs(
15f218
-            "cluster setup --force --local --corosync_conf={0} --name test99 rh7-1 rh7-2 --auto_tie_breaker=2"
15f218
+            "cluster setup --force --local --corosync_conf={0} --name test99 rh7-1.localhost rh7-2.localhost --auto_tie_breaker=2"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         ac(o, "Error: '2' is not a valid --auto_tie_breaker value, use 0, 1\n")
15f218
         assert r == 1
15f218
 
15f218
         o,r = pcs(
15f218
-            "cluster setup --local --corosync_conf={0} --name test99 rh7-1 rh7-2 --last_man_standing=2"
15f218
+            "cluster setup --local --corosync_conf={0} --name test99 rh7-1.localhost rh7-2.localhost --last_man_standing=2"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         ac(o, "Error: '2' is not a valid --last_man_standing value, use 0, 1\n")
15f218
         assert r == 1
15f218
 
15f218
         o,r = pcs(
15f218
-            "cluster setup --force --local --corosync_conf={0} --name test99 rh7-1 rh7-2 --last_man_standing=2"
15f218
+            "cluster setup --force --local --corosync_conf={0} --name test99 rh7-1.localhost rh7-2.localhost --last_man_standing=2"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         ac(o, "Error: '2' is not a valid --last_man_standing value, use 0, 1\n")
15f218
         assert r == 1
15f218
 
15f218
         o,r = pcs(
15f218
-            "cluster setup --local --corosync_conf={0} --name test99 rh7-1 rh7-2 --wait_for_all=1 --auto_tie_breaker=1 --last_man_standing=1 --last_man_standing_window=12000"
15f218
+            "cluster setup --local --corosync_conf={0} --name test99 rh7-1.localhost rh7-2.localhost --wait_for_all=1 --auto_tie_breaker=1 --last_man_standing=1 --last_man_standing_window=12000"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         ac(o,"")
15f218
@@ -1782,12 +1782,12 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-1
15f218
+        ring0_addr: rh7-1.localhost
15f218
         nodeid: 1
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-2
15f218
+        ring0_addr: rh7-2.localhost
15f218
         nodeid: 2
15f218
     }
15f218
 }
15f218
@@ -1813,14 +1813,14 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --name cname rh7-1 rh7-2 --addr0 1.1.1.0 --addr0 1.1.2.0"
15f218
+            "cluster setup --local --name cname rh7-1.localhost rh7-2.localhost --addr0 1.1.1.0 --addr0 1.1.2.0"
15f218
         )
15f218
         ac(output, "Error: --addr0 can only be used once\n")
15f218
         self.assertEqual(returnVal, 1)
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --cluster_conf={0} --name cname rh7-1 rh7-2 --addr0 1.1.1.0 --addr1 1.1.2.0 --rrpmode blah --broadcast0 --transport udp"
15f218
+            "cluster setup --local --cluster_conf={0} --name cname rh7-1.localhost rh7-2.localhost --addr0 1.1.1.0 --addr1 1.1.2.0 --rrpmode blah --broadcast0 --transport udp"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
         ac(output, """\
15f218
@@ -1831,7 +1831,7 @@ Warning: Enabling broadcast for all rings as CMAN does not support broadcast in
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --transport udp --local --cluster_conf={0} --name cname rh7-1 rh7-2 --addr0 1.1.1.0 --addr1 1.1.2.0"
15f218
+            "cluster setup --transport udp --local --cluster_conf={0} --name cname rh7-1.localhost rh7-2.localhost --addr0 1.1.1.0 --addr1 1.1.2.0"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
         ac(output, "")
15f218
@@ -1843,19 +1843,19 @@ Warning: Enabling broadcast for all rings as CMAN does not support broadcast in
15f218
 <cluster config_version="14" name="cname">
15f218
   <fence_daemon/>
15f218
   <clusternodes>
15f218
-    <clusternode name="rh7-1" nodeid="1">
15f218
+    <clusternode name="rh7-1.localhost" nodeid="1">
15f218
       <altname name="1.1.2.0"/>
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-1"/>
15f218
+          <device name="pcmk-redirect" port="rh7-1.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-2" nodeid="2">
15f218
+    <clusternode name="rh7-2.localhost" nodeid="2">
15f218
       <altname name="1.1.2.0"/>
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-2"/>
15f218
+          <device name="pcmk-redirect" port="rh7-2.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
@@ -1881,7 +1881,7 @@ Warning: Enabling broadcast for all rings as CMAN does not support broadcast in
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --transport udp --local --cluster_conf={0} --name cname rh7-1 rh7-2 --addr0 1.1.1.0 --mcast0 8.8.8.8 --addr1 1.1.2.0 --mcast1 9.9.9.9"
15f218
+            "cluster setup --transport udp --local --cluster_conf={0} --name cname rh7-1.localhost rh7-2.localhost --addr0 1.1.1.0 --mcast0 8.8.8.8 --addr1 1.1.2.0 --mcast1 9.9.9.9"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
         ac(output, "")
15f218
@@ -1893,19 +1893,19 @@ Warning: Enabling broadcast for all rings as CMAN does not support broadcast in
15f218
 <cluster config_version="14" name="cname">
15f218
   <fence_daemon/>
15f218
   <clusternodes>
15f218
-    <clusternode name="rh7-1" nodeid="1">
15f218
+    <clusternode name="rh7-1.localhost" nodeid="1">
15f218
       <altname name="1.1.2.0"/>
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-1"/>
15f218
+          <device name="pcmk-redirect" port="rh7-1.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-2" nodeid="2">
15f218
+    <clusternode name="rh7-2.localhost" nodeid="2">
15f218
       <altname name="1.1.2.0"/>
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-2"/>
15f218
+          <device name="pcmk-redirect" port="rh7-2.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
@@ -1931,7 +1931,7 @@ Warning: Enabling broadcast for all rings as CMAN does not support broadcast in
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --transport udp --local --cluster_conf={0} --name cname rh7-1 rh7-2 --addr0 1.1.1.0 --mcastport0 9999 --mcastport1 9998 --addr1 1.1.2.0"
15f218
+            "cluster setup --transport udp --local --cluster_conf={0} --name cname rh7-1.localhost rh7-2.localhost --addr0 1.1.1.0 --mcastport0 9999 --mcastport1 9998 --addr1 1.1.2.0"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
         ac(output, "")
15f218
@@ -1943,19 +1943,19 @@ Warning: Enabling broadcast for all rings as CMAN does not support broadcast in
15f218
 <cluster config_version="14" name="cname">
15f218
   <fence_daemon/>
15f218
   <clusternodes>
15f218
-    <clusternode name="rh7-1" nodeid="1">
15f218
+    <clusternode name="rh7-1.localhost" nodeid="1">
15f218
       <altname name="1.1.2.0"/>
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-1"/>
15f218
+          <device name="pcmk-redirect" port="rh7-1.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-2" nodeid="2">
15f218
+    <clusternode name="rh7-2.localhost" nodeid="2">
15f218
       <altname name="1.1.2.0"/>
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-2"/>
15f218
+          <device name="pcmk-redirect" port="rh7-2.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
@@ -1981,7 +1981,7 @@ Warning: Enabling broadcast for all rings as CMAN does not support broadcast in
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --cluster_conf={0} --name cname rh7-1 rh7-2 --addr0 1.1.1.0 --addr1 1.1.2.0 --ttl0 4 --ttl1 5 --transport udp"
15f218
+            "cluster setup --local --cluster_conf={0} --name cname rh7-1.localhost rh7-2.localhost --addr0 1.1.1.0 --addr1 1.1.2.0 --ttl0 4 --ttl1 5 --transport udp"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
         ac(output, "")
15f218
@@ -1993,19 +1993,19 @@ Warning: Enabling broadcast for all rings as CMAN does not support broadcast in
15f218
 <cluster config_version="14" name="cname">
15f218
   <fence_daemon/>
15f218
   <clusternodes>
15f218
-    <clusternode name="rh7-1" nodeid="1">
15f218
+    <clusternode name="rh7-1.localhost" nodeid="1">
15f218
       <altname name="1.1.2.0"/>
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-1"/>
15f218
+          <device name="pcmk-redirect" port="rh7-1.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-2" nodeid="2">
15f218
+    <clusternode name="rh7-2.localhost" nodeid="2">
15f218
       <altname name="1.1.2.0"/>
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-2"/>
15f218
+          <device name="pcmk-redirect" port="rh7-2.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
@@ -2031,7 +2031,7 @@ Warning: Enabling broadcast for all rings as CMAN does not support broadcast in
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --cluster_conf={0} --name cname rh7-1 rh7-2 --addr0 1.1.1.0 --addr1 1.1.2.0 --rrpmode active --transport udp"
15f218
+            "cluster setup --local --cluster_conf={0} --name cname rh7-1.localhost rh7-2.localhost --addr0 1.1.1.0 --addr1 1.1.2.0 --rrpmode active --transport udp"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
         ac(
15f218
@@ -2042,7 +2042,7 @@ Warning: Enabling broadcast for all rings as CMAN does not support broadcast in
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --force --local --cluster_conf={0} --name cname rh7-1 rh7-2 --addr0 1.1.1.0 --addr1 1.1.2.0 --rrpmode active --transport udp"
15f218
+            "cluster setup --force --local --cluster_conf={0} --name cname rh7-1.localhost rh7-2.localhost --addr0 1.1.1.0 --addr1 1.1.2.0 --rrpmode active --transport udp"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
         ac(
15f218
@@ -2056,19 +2056,19 @@ Warning: Enabling broadcast for all rings as CMAN does not support broadcast in
15f218
 <cluster config_version="14" name="cname">
15f218
   <fence_daemon/>
15f218
   <clusternodes>
15f218
-    <clusternode name="rh7-1" nodeid="1">
15f218
+    <clusternode name="rh7-1.localhost" nodeid="1">
15f218
       <altname name="1.1.2.0"/>
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-1"/>
15f218
+          <device name="pcmk-redirect" port="rh7-1.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-2" nodeid="2">
15f218
+    <clusternode name="rh7-2.localhost" nodeid="2">
15f218
       <altname name="1.1.2.0"/>
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-2"/>
15f218
+          <device name="pcmk-redirect" port="rh7-2.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
@@ -2094,7 +2094,7 @@ Warning: Enabling broadcast for all rings as CMAN does not support broadcast in
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --cluster_conf={0} --name cname rh7-1 rh7-2 --addr0 1.1.1.0 --addr1 1.1.2.0 --rrpmode active --broadcast0 --transport udp"
15f218
+            "cluster setup --local --cluster_conf={0} --name cname rh7-1.localhost rh7-2.localhost --addr0 1.1.1.0 --addr1 1.1.2.0 --rrpmode active --broadcast0 --transport udp"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
         ac(output, """\
15f218
@@ -2105,7 +2105,7 @@ Warning: Enabling broadcast for all rings as CMAN does not support broadcast in
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --force --local --cluster_conf={0} --name cname rh7-1 rh7-2 --addr0 1.1.1.0 --addr1 1.1.2.0 --rrpmode active --broadcast0 --transport udp"
15f218
+            "cluster setup --force --local --cluster_conf={0} --name cname rh7-1.localhost rh7-2.localhost --addr0 1.1.1.0 --addr1 1.1.2.0 --rrpmode active --broadcast0 --transport udp"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
         ac(output, """\
15f218
@@ -2119,19 +2119,19 @@ Warning: using a RRP mode of 'active' is not supported or tested
15f218
 <cluster config_version="12" name="cname">
15f218
   <fence_daemon/>
15f218
   <clusternodes>
15f218
-    <clusternode name="rh7-1" nodeid="1">
15f218
+    <clusternode name="rh7-1.localhost" nodeid="1">
15f218
       <altname name="1.1.2.0"/>
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-1"/>
15f218
+          <device name="pcmk-redirect" port="rh7-1.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-2" nodeid="2">
15f218
+    <clusternode name="rh7-2.localhost" nodeid="2">
15f218
       <altname name="1.1.2.0"/>
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-2"/>
15f218
+          <device name="pcmk-redirect" port="rh7-2.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
@@ -2154,17 +2154,17 @@ Warning: using a RRP mode of 'active' is not supported or tested
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --cluster_conf={0} --name cname rh7-1,192.168.99.1 rh7-2,192.168.99.2,192.168.99.3"
15f218
+            "cluster setup --local --cluster_conf={0} --name cname rh7-1.localhost,192.168.99.1 rh7-2.localhost,192.168.99.2,192.168.99.3"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
         ac(output, """\
15f218
-Error: You cannot specify more than two addresses for a node: rh7-2,192.168.99.2,192.168.99.3
15f218
+Error: You cannot specify more than two addresses for a node: rh7-2.localhost,192.168.99.2,192.168.99.3
15f218
 """)
15f218
         self.assertEqual(returnVal, 1)
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --name cname rh7-1,192.168.99.1 rh7-2"
15f218
+            "cluster setup --local --name cname rh7-1.localhost,192.168.99.1 rh7-2.localhost"
15f218
         )
15f218
         ac(output, """\
15f218
 Error: if one node is configured for RRP, all nodes must be configured for RRP
15f218
@@ -2173,7 +2173,7 @@ Error: if one node is configured for RRP, all nodes must be configured for RRP
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --name test99 rh7-1 rh7-2 --addr0 1.1.1.1 --transport=udpu"
15f218
+            "cluster setup --local --name test99 rh7-1.localhost rh7-2.localhost --addr0 1.1.1.1 --transport=udpu"
15f218
         )
15f218
         ac(output, """\
15f218
 Error: --addr0 and --addr1 can only be used with --transport=udp
15f218
@@ -2183,7 +2183,7 @@ Warning: Using udpu transport on a CMAN cluster, cluster restart is required aft
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --cluster_conf={0} --name cname rh7-1,192.168.99.1 rh7-2,192.168.99.2"
15f218
+            "cluster setup --local --cluster_conf={0} --name cname rh7-1.localhost,192.168.99.1 rh7-2.localhost,192.168.99.2"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
         ac(output, "")
15f218
@@ -2194,19 +2194,19 @@ Warning: Using udpu transport on a CMAN cluster, cluster restart is required aft
15f218
 <cluster config_version="12" name="cname">
15f218
   <fence_daemon/>
15f218
   <clusternodes>
15f218
-    <clusternode name="rh7-1" nodeid="1">
15f218
+    <clusternode name="rh7-1.localhost" nodeid="1">
15f218
       <altname name="192.168.99.1"/>
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-1"/>
15f218
+          <device name="pcmk-redirect" port="rh7-1.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-2" nodeid="2">
15f218
+    <clusternode name="rh7-2.localhost" nodeid="2">
15f218
       <altname name="192.168.99.2"/>
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-2"/>
15f218
+          <device name="pcmk-redirect" port="rh7-2.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
@@ -2231,19 +2231,19 @@ Warning: Using udpu transport on a CMAN cluster, cluster restart is required aft
15f218
 <cluster config_version="12" name="cname">
15f218
   <fence_daemon/>
15f218
   <clusternodes>
15f218
-    <clusternode name="rh7-1" nodeid="1">
15f218
+    <clusternode name="rh7-1.localhost" nodeid="1">
15f218
       <altname name="1.1.2.0"/>
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-1"/>
15f218
+          <device name="pcmk-redirect" port="rh7-1.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-2" nodeid="2">
15f218
+    <clusternode name="rh7-2.localhost" nodeid="2">
15f218
       <altname name="1.1.2.0"/>
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-2"/>
15f218
+          <device name="pcmk-redirect" port="rh7-2.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
@@ -2262,7 +2262,7 @@ Warning: Using udpu transport on a CMAN cluster, cluster restart is required aft
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --cluster_conf={0} --name cname rh7-1 rh7-2 --addr0 1.1.1.0 --addr1 1.1.2.0 --rrpmode passive --broadcast0 --transport udp"
15f218
+            "cluster setup --local --cluster_conf={0} --name cname rh7-1.localhost rh7-2.localhost --addr0 1.1.1.0 --addr1 1.1.2.0 --rrpmode passive --broadcast0 --transport udp"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
         ac(output, """\
15f218
@@ -2277,7 +2277,7 @@ Warning: Enabling broadcast for all rings as CMAN does not support broadcast in
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --cluster_conf={0} --name cname rh7-1 rh7-2 --addr0 1.1.1.0 --addr1 1.1.2.0 --broadcast0 --transport udp"
15f218
+            "cluster setup --local --cluster_conf={0} --name cname rh7-1.localhost rh7-2.localhost --addr0 1.1.1.0 --addr1 1.1.2.0 --broadcast0 --transport udp"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
         ac(output, """\
15f218
@@ -2294,7 +2294,7 @@ Warning: Enabling broadcast for all rings as CMAN does not support broadcast in
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --cluster_conf={0} --name test99 rh7-1 rh7-2 --wait_for_all=2 --auto_tie_breaker=3 --last_man_standing=4 --last_man_standing_window=5"
15f218
+            "cluster setup --local --cluster_conf={0} --name test99 rh7-1.localhost rh7-2.localhost --wait_for_all=2 --auto_tie_breaker=3 --last_man_standing=4 --last_man_standing_window=5"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
         ac(output, """\
15f218
@@ -2310,17 +2310,17 @@ Warning: --last_man_standing_window ignored as it is not supported on CMAN clust
15f218
 <cluster config_version="9" name="test99">
15f218
   <fence_daemon/>
15f218
   <clusternodes>
15f218
-    <clusternode name="rh7-1" nodeid="1">
15f218
+    <clusternode name="rh7-1.localhost" nodeid="1">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-1"/>
15f218
+          <device name="pcmk-redirect" port="rh7-1.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-2" nodeid="2">
15f218
+    <clusternode name="rh7-2.localhost" nodeid="2">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-2"/>
15f218
+          <device name="pcmk-redirect" port="rh7-2.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
@@ -2341,7 +2341,7 @@ Warning: --last_man_standing_window ignored as it is not supported on CMAN clust
15f218
             return
15f218
 
15f218
         o,r = pcs(
15f218
-            "cluster setup --local --corosync_conf={0} --name test99 rh7-1 rh7-2 --token 20000 --join 20001 --consensus 20002 --miss_count_const 20003 --fail_recv_const 20004 --token_coefficient 20005"
15f218
+            "cluster setup --local --corosync_conf={0} --name test99 rh7-1.localhost rh7-2.localhost --token 20000 --join 20001 --consensus 20002 --miss_count_const 20003 --fail_recv_const 20004 --token_coefficient 20005"
15f218
             .format(corosync_conf_tmp)
15f218
         )
15f218
         ac(o,"")
15f218
@@ -2364,12 +2364,12 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-1
15f218
+        ring0_addr: rh7-1.localhost
15f218
         nodeid: 1
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-2
15f218
+        ring0_addr: rh7-2.localhost
15f218
         nodeid: 2
15f218
     }
15f218
 }
15f218
@@ -2392,7 +2392,7 @@ logging {
15f218
 
15f218
         output, returnVal = pcs(
15f218
             temp_cib,
15f218
-            "cluster setup --local --cluster_conf={0} --name test99 rh7-1 rh7-2 --token 20000 --join 20001 --consensus 20002 --miss_count_const 20003 --fail_recv_const 20004 --token_coefficient 20005"
15f218
+            "cluster setup --local --cluster_conf={0} --name test99 rh7-1.localhost rh7-2.localhost --token 20000 --join 20001 --consensus 20002 --miss_count_const 20003 --fail_recv_const 20004 --token_coefficient 20005"
15f218
             .format(cluster_conf_tmp)
15f218
         )
15f218
         ac(output, """\
15f218
@@ -2405,17 +2405,17 @@ Warning: --token_coefficient ignored as it is not supported on CMAN clusters
15f218
 <cluster config_version="10" name="test99">
15f218
   <fence_daemon/>
15f218
   <clusternodes>
15f218
-    <clusternode name="rh7-1" nodeid="1">
15f218
+    <clusternode name="rh7-1.localhost" nodeid="1">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-1"/>
15f218
+          <device name="pcmk-redirect" port="rh7-1.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-2" nodeid="2">
15f218
+    <clusternode name="rh7-2.localhost" nodeid="2">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-2"/>
15f218
+          <device name="pcmk-redirect" port="rh7-2.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
@@ -2583,12 +2583,12 @@ Warning: --token_coefficient ignored as it is not supported on CMAN clusters
15f218
             return
15f218
 
15f218
         self.assert_pcs_fail(
15f218
-            "cluster setup --local --name cname rh7-1 rh7-2 --transport=unknown",
15f218
+            "cluster setup --local --name cname rh7-1.localhost rh7-2.localhost --transport=unknown",
15f218
             "Error: 'unknown' is not a valid transport value, use udp, udpu, use --force to override\n"
15f218
         )
15f218
 
15f218
         self.assert_pcs_success(
15f218
-            "cluster setup --local --name cname rh7-1 rh7-2 --transport=unknown --force",
15f218
+            "cluster setup --local --name cname rh7-1.localhost rh7-2.localhost --transport=unknown --force",
15f218
             "Warning: 'unknown' is not a valid transport value, use udp, udpu\n"
15f218
         )
15f218
         with open(corosync_conf_tmp) as f:
15f218
@@ -2603,12 +2603,12 @@ totem {
15f218
 
15f218
 nodelist {
15f218
     node {
15f218
-        ring0_addr: rh7-1
15f218
+        ring0_addr: rh7-1.localhost
15f218
         nodeid: 1
15f218
     }
15f218
 
15f218
     node {
15f218
-        ring0_addr: rh7-2
15f218
+        ring0_addr: rh7-2.localhost
15f218
         nodeid: 2
15f218
     }
15f218
 }
15f218
@@ -2630,12 +2630,12 @@ logging {
15f218
             return
15f218
 
15f218
         self.assert_pcs_fail(
15f218
-            "cluster setup --local --name cname rh7-1 rh7-2 --transport=rdma",
15f218
+            "cluster setup --local --name cname rh7-1.localhost rh7-2.localhost --transport=rdma",
15f218
             "Error: 'rdma' is not a valid transport value, use udp, udpu, use --force to override\n"
15f218
         )
15f218
 
15f218
         self.assert_pcs_success(
15f218
-            "cluster setup --local --name cname rh7-1 rh7-2 --transport=rdma --force",
15f218
+            "cluster setup --local --name cname rh7-1.localhost rh7-2.localhost --transport=rdma --force",
15f218
             "Warning: 'rdma' is not a valid transport value, use udp, udpu\n"
15f218
         )
15f218
         with open(cluster_conf_tmp) as f:
15f218
@@ -2644,17 +2644,17 @@ logging {
15f218
 <cluster config_version="9" name="cname">
15f218
   <fence_daemon/>
15f218
   <clusternodes>
15f218
-    <clusternode name="rh7-1" nodeid="1">
15f218
+    <clusternode name="rh7-1.localhost" nodeid="1">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-1"/>
15f218
+          <device name="pcmk-redirect" port="rh7-1.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-    <clusternode name="rh7-2" nodeid="2">
15f218
+    <clusternode name="rh7-2.localhost" nodeid="2">
15f218
       <fence>
15f218
         <method name="pcmk-method">
15f218
-          <device name="pcmk-redirect" port="rh7-2"/>
15f218
+          <device name="pcmk-redirect" port="rh7-2.localhost"/>
15f218
         </method>
15f218
       </fence>
15f218
     </clusternode>
15f218
-- 
15f218
1.8.3.1
15f218