diff --git a/ipaserver/install/server/replicainstall.py b/ipaserver/install/server/replicainstall.py index a7ad1ded1..1903f9df9 100644 --- a/ipaserver/install/server/replicainstall.py +++ b/ipaserver/install/server/replicainstall.py @@ -1153,13 +1153,17 @@ def promote_check(installer): promotion_check_ipa_domain(conn, remote_api.env.basedn) + # Make sure that domain fulfills minimal domain level + # requirement domain_level = current_domain_level(remote_api) check_domain_level_is_supported(domain_level) - if domain_level < constants.DOMAIN_LEVEL_1: + if domain_level < constants.MIN_DOMAIN_LEVEL: raise RuntimeError( - "You must provide a file generated by ipa-replica-prepare to " - "create a replica when the domain is at level 0." - ) + "Cannot promote this client to a replica. The domain level " + "must be raised to {mindomainlevel} before the replica can be " + "installed".format( + mindomainlevel=constants.MIN_DOMAIN_LEVEL + )) # Check authorization result = remote_api.Command['hostgroup_find'](