summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Spacek <pspacek@redhat.com>2014-02-21 14:48:05 +0100
committerPetr Viktorin <pviktori@redhat.com>2014-02-21 16:04:20 +0100
commitdd55e13aa94a7540324239cac61b286262542d1e (patch)
treebdc17da4627969c8fb7a0c3bcade6a34905e2957
parent70e2217d7301185713b7d7391c7f1018f7d0d523 (diff)
downloadfreeipa-dd55e13aa94a7540324239cac61b286262542d1e.tar.gz
freeipa-dd55e13aa94a7540324239cac61b286262542d1e.tar.xz
freeipa-dd55e13aa94a7540324239cac61b286262542d1e.zip
Clarify error message about missing DNS component in ipa-replica-prepare.
https://fedorahosted.org/freeipa/ticket/4188 Reviewed-By: Petr Viktorin <pviktori@redhat.com>
-rw-r--r--ipaserver/install/ipa_replica_prepare.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/ipaserver/install/ipa_replica_prepare.py b/ipaserver/install/ipa_replica_prepare.py
index bd5244d4f..c786569e2 100644
--- a/ipaserver/install/ipa_replica_prepare.py
+++ b/ipaserver/install/ipa_replica_prepare.py
@@ -202,8 +202,11 @@ class ReplicaPrepare(admintool.AdminTool):
if not dns_container_exists(api.env.host, api.env.basedn,
dm_password=self.dirman_password,
ldapi=True, realm=api.env.realm):
- raise admintool.ScriptError("You can't add a DNS record "
- "because DNS is not set up.")
+ self.log.error(
+ "It is not possible to add a DNS record automatically "
+ "because DNS is not managed by IPA. Please create DNS "
+ "record manually and then omit --ip-address option.")
+ raise admintool.ScriptError("Cannot add DNS record")
if options.reverse_zone and not bindinstance.verify_reverse_zone(
options.reverse_zone, options.ip_address):
raise admintool.ScriptError("Invalid reverse zone")