mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipatests: always try to create A records for hosts in IPA domain
Do not check that host is resolvable. systemd-resolved creates synthetic records for hosts in /etc/hosts. If test hosts are listed in /etc/hosts on controller, no A records will be created. Related to https://pagure.io/freeipa/issue/8703 Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
@@ -55,7 +55,7 @@ from ipaplatform.paths import paths
|
||||
from ipaplatform.services import knownservices
|
||||
from ipapython.dn import DN
|
||||
from ipalib import errors
|
||||
from ipalib.util import get_reverse_zone_default, verify_host_resolvable
|
||||
from ipalib.util import get_reverse_zone_default
|
||||
from ipalib.constants import (
|
||||
DEFAULT_CONFIG, DOMAIN_SUFFIX_NAME, DOMAIN_LEVEL_0,
|
||||
MIN_DOMAIN_LEVEL, MAX_DOMAIN_LEVEL
|
||||
@@ -1507,14 +1507,7 @@ def add_a_records_for_hosts_in_master_domain(master):
|
||||
for host in master.domain.hosts:
|
||||
# We don't need to take care of the zone creation since it is master
|
||||
# domain
|
||||
try:
|
||||
verify_host_resolvable(host.hostname)
|
||||
logger.debug("The host (%s) is resolvable.", host.hostname)
|
||||
except errors.DNSNotARecordError:
|
||||
logger.debug("Hostname (%s) does not have A/AAAA record. Adding "
|
||||
"new one.",
|
||||
host.hostname)
|
||||
add_a_record(master, host)
|
||||
add_a_record(master, host)
|
||||
|
||||
|
||||
def add_a_record(master, host):
|
||||
|
||||
Reference in New Issue
Block a user