The test test_dnssec.py::TestInstallDNSSECFirst::test_servers_use_localhost_as_dns is failing in rawhide, see PR #2229 with the following logs and report:
test_dnssec.py::TestInstallDNSSECFirst::test_servers_use_localhost_as_dns
self = <ipatests.test_integration.test_dnssec.TestInstallDNSSECFirst object at 0x7f9bb231c090> def test_servers_use_localhost_as_dns(self): # check that localhost is set as DNS server for host in [self.master, self.replicas[0]]: > assert host.resolver.uses_localhost_as_dns() E assert False E + where False = <bound method ResolvedResolver.uses_localhost_as_dns of <ipatests.pytest_ipa.integration.resolver.ResolvedResolver object at 0x7f9bb2be74d0>>() E + where <bound method ResolvedResolver.uses_localhost_as_dns of <ipatests.pytest_ipa.integration.resolver.ResolvedResolver object at 0x7f9bb2be74d0>> = <ipatests.pytest_ipa.integration.resolver.ResolvedResolver object at 0x7f9bb2be74d0>.uses_localhost_as_dns E + where <ipatests.pytest_ipa.integration.resolver.ResolvedResolver object at 0x7f9bb2be74d0> = <ipatests.pytest_ipa.integration.host.Host master.ipa.test (master)>.resolver test_integration/test_dnssec.py:567: AssertionError -------------------------------Captured log call-------------------------------- INFO ipatests.pytest_ipa.integration.host.Host.master.IPAOpenSSHTransport:transport.py:391 RUN ['resolvectl', 'dns'] DEBUG ipatests.pytest_ipa.integration.host.Host.master.cmd108:transport.py:513 RUN ['resolvectl', 'dns'] DEBUG ipatests.pytest_ipa.integration.host.Host.master.cmd108:transport.py:557 Global: DEBUG ipatests.pytest_ipa.integration.host.Host.master.cmd108:transport.py:557 Link 2 (eth0): 192.168.122.1 DEBUG ipatests.pytest_ipa.integration.host.Host.master.cmd108:transport.py:217 Exit code: 0
The test is installing IPA with the DNS role and checks with the command resolvectl dns that the DNS resolution is properly using the localhost as DNS server. During IPA server installation, the installer creates a file /etc/systemd/resolved.conf.d/zzz-ipa.conf that configures the localhost as global DNS server:
resolvectl dns
/etc/systemd/resolved.conf.d/zzz-ipa.conf
# cat /etc/systemd/resolved.conf.d/zzz-ipa.conf # auto-generated by IPA installer [Resolve] # use local BIND instance DNS=127.0.0.1 # make local BIND default DNS server, add search suffixes Domains=~. ipa.test
The behavior has changed between systemd-resolved 252.1-588 and 252.2-591. With the old pkg, the output was the following:
# resolvectl dns Global: 127.0.0.1 Link 2 (eth0): 10.11.5.160 10.2.70.215
With the new systemd-resolved package, the output is:
# resolvectl dns Global: Link 2 (eth0): 10.11.5.160 10.2.70.215
Issue reported against systemd at Bug 2148870 - resolvectl dns does not display localhost as Global DNS server
Issue also happening on f37 with systemd-resolved-251.10-588.fc37.x86_64
Reproduced in testing_master_testing_selinux report
On fedora 37, - PR #2476 using systemd-resolved-251.11-2.fc37.x86_64 raised the issue - PR #2494 using systemd-resolved-251.13-5.fc37.x86_64 did not show the issue
On fedora 38, - PR #2376 using systemd-resolved-252.4-598.fc38.x86_64 raised the issue - PR #2412 using systemd-resolved-253~rc2-2.fc38.x86_64 did not show the issue
Closing as fixed.
Metadata Update from @frenaud: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)