Hello,
This should fix tests failing on Beaker when the test controller and master share the same machine.
The second patch adds more debugging output to the code that fails.
https://fedorahosted.org/freeipa/ticket/4038

--
PetrĀ³
From 492762932ecc128919fa6adfa2a2f0f895f879b9 Mon Sep 17 00:00:00 2001
From: Petr Viktorin <pvikt...@redhat.com>
Date: Thu, 21 Nov 2013 12:06:29 +0100
Subject: [PATCH] test_integration: Set up DNS on replicas

https://fedorahosted.org/freeipa/ticket/4038
---
 ipatests/test_integration/tasks.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ipatests/test_integration/tasks.py b/ipatests/test_integration/tasks.py
index cee54768312c9cf0d79b9137f134af718b0a3b5f..10d7ef8869d5e36dfcdff59c1f50e3d725aaf6f7 100644
--- a/ipatests/test_integration/tasks.py
+++ b/ipatests/test_integration/tasks.py
@@ -203,6 +203,8 @@ def install_replica(master, replica, setup_ca=True):
             '-p', replica.config.dirman_password,
             '-w', replica.config.admin_password,
             '--ip-address', replica.ip,
+            '--setup-dns',
+            '--forwarder', replica.config.dns_forwarder,
             replica_filename]
     if setup_ca:
         args.append('--setup-ca')
-- 
1.8.3.1

From d25fc47487d7893e4436e2972ec50ad4d05ce8a8 Mon Sep 17 00:00:00 2001
From: Petr Viktorin <pvikt...@redhat.com>
Date: Thu, 21 Nov 2013 13:57:47 +0100
Subject: [PATCH] test_integration: Add debugging info to Host.ldap_connect

---
 ipatests/test_integration/host.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/ipatests/test_integration/host.py b/ipatests/test_integration/host.py
index 02c82b372ce2805c0ca922319f5de1cd29b0ed82..eb65a62df14f017638a35f21dfb3610d54457c21 100644
--- a/ipatests/test_integration/host.py
+++ b/ipatests/test_integration/host.py
@@ -157,7 +157,11 @@ def put_file_contents(self, filename, contents):
     def ldap_connect(self):
         """Return an LDAPClient authenticated to this host as directory manager
         """
-        self.log.info('Connecting to LDAP')
+        # First run ping (if available) to make sure hostname is reachable
+        self.run_command(['ping', '-c1', self.external_hostname],
+                         raiseonerr=False)
+
+        self.log.info('Connecting to LDAP at %s', self.external_hostname)
         ldap = IPAdmin(self.external_hostname)
         binddn = self.config.dirman_dn
         self.log.info('LDAP bind as %s' % binddn)
-- 
1.8.3.1

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to