This patch fixes failing DNS/DSSEC/KRA tests for backup and restore into already installed IPA master.

It may require my PATCH 0065 to apply cleanly.

Additionally, applying my PATCH 0066 (acked but not pushed as of writing this) should result in all backup/restore tests passing.

Martin^3 Babinsky
From 18b7f256c94f0becff8511f338ae5c32d961f6db Mon Sep 17 00:00:00 2001
From: Martin Babinsky <>
Date: Wed, 23 Sep 2015 12:47:13 +0200
Subject: [PATCH] re-kinit after ipa-restore in backup/restore CI tests

In FreeIPA CI-tests the install_master task automatically performs kinit after
successfull installation. This may break some backup/restore tests which
perform backup into previously installed IPA master. In this case it is
neccessary to re-kinit after restore.
 ipatests/test_integration/ | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ipatests/test_integration/ b/ipatests/test_integration/
index 82d056063809b9e54aa68d62f21749ab860f6613..1eefb3e39d07bf54f26a1603f55e07cb150aafda 100644
--- a/ipatests/test_integration/
+++ b/ipatests/test_integration/
@@ -273,6 +273,7 @@ class BaseBackupAndRestoreWithDNS(IntegrationTest):
             tasks.resolve_record(self.master.ip, self.example_test_zone)
+            tasks.kinit_admin(self.master)
                 'ipa', 'dnszone-add',
@@ -343,6 +344,7 @@ class BaseBackupAndRestoreWithDNSSEC(IntegrationTest):
                 self.example_test_zone, self.log), ("Zone is not signed after "
+            tasks.kinit_admin(self.master)
                 'ipa', 'dnszone-add',
@@ -423,6 +425,7 @@ class BaseBackupAndRestoreWithKRA(IntegrationTest):
             self.master.run_command(['ipa-restore', backup_path],
                                     stdin_text=dirman_password + '\nyes')
+            tasks.kinit_admin(self.master)
             # retrieve secret after restore
                 "ipa", "vault-retrieve",

Manage your subscription for the Freeipa-devel mailing list:
Contribute to FreeIPA:

Reply via email to