URL: https://github.com/freeipa/freeipa/pull/3085 Author: ndehadrai Title: #3085: tasks.py :: prepare_reverse_zone : Using '--skip-overlap-check' option during dnszone creation Action: opened
PR body: """ Currently when the test_replica_promotion tests are run in CI, it returns warning message 'ipa: WARNING: ipa: ERROR: DNS zone with name <xyz> already exists'. Using the above option would force dnszone-add creation. """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/3085/head:pr3085 git checkout pr3085
From 27365a8ba98231f9a80fbc71fbe3491c4a21d0fd Mon Sep 17 00:00:00 2001 From: ndehadrai <ndeha...@redhat.com> Date: Fri, 26 Apr 2019 18:49:35 +0530 Subject: [PATCH] tasks.py: Updating 'ipa dnszone -add' command to use '--skip-overlap-check' Currently when the test_replica_promotion tests are run in CI, it returns warning message 'ipa: WARNING: ipa: ERROR: DNS zone with name <xyz> already exists'. Using the above option would force dnszone-add creation. Signed-off-by: ndehadrai <ndeha...@redhat.com> --- ipatests/pytest_ipa/integration/tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipatests/pytest_ipa/integration/tasks.py b/ipatests/pytest_ipa/integration/tasks.py index ff24627693..40f79c8c6b 100644 --- a/ipatests/pytest_ipa/integration/tasks.py +++ b/ipatests/pytest_ipa/integration/tasks.py @@ -141,7 +141,8 @@ def prepare_reverse_zone(host, ip): zone = get_reverse_zone_default(ip) result = host.run_command(["ipa", "dnszone-add", - zone], raiseonerr=False) + zone, + "--skip-overlap-check"], raiseonerr=False) # To force dnszone-add if result.returncode > 0: logger.warning("%s", result.stderr_text) return zone, result.returncode
_______________________________________________ FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/freeipa-devel@lists.fedorahosted.org