#9135 Nightly test failure (f37+): reverse zone not created
Opened 2 years ago by frenaud. Modified a year ago

The nightly test test_installation.py::TestInstallWithCA_DNS3::test_number_of_zones is failing in rawhide, see PR #1602 with the following logs and report:

args = (<ipatests.test_integration.test_installation.TestInstallWithCA_DNS3 object at 0x7fd010569930>,)
master = <ipatests.pytest_ipa.integration.host.Host master.ipa.test (master)>

    def wrapped(*args):
        master = args[0].master
        create_broken_resolv_conf(master)
        try:
>           func(*args)

test_integration/test_installation.py:56: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <ipatests.test_integration.test_installation.TestInstallWithCA_DNS3 object at 0x7fd010569930>

    @pytest.mark.xfail(
        osinfo.id == 'fedora' and osinfo.version_number >= (33,)
        and osinfo.version_number < (35,),
        reason='freeipa ticket 8700', strict=True)
    @server_install_setup
    def test_number_of_zones(self):
        """There should be two zones: one forward, one reverse"""

        self.create_pkcs12('ca1/server')
        self.prepare_cacert('ca1')

        self.install_server(extra_args=['--allow-zone-overlap'])

        result = self.master.run_command([
            'ipa', 'dnszone-find'])

>       assert "in-addr.arpa." in result.stdout_text
E       AssertionError: assert 'in-addr.arpa.' in '  Zone name: ipa.test.\n  Active zone: TRUE\n  Authoritative nameserver: master.ipa.test.\n  Administrator e-mail address: hostmaster.ipa.test.\n  SOA serial: 1648535681\n  SOA refresh: 3600\n  SOA retry: 900\n  SOA expire: 1209600\n  SOA minimum: 3600\n  BIND update policy: grant IPA.TEST krb5-self * A; grant IPA.TEST krb5-self * AAAA; grant IPA.TEST krb5-self * SSHFP;\n  Dynamic update: TRUE\n  Allow query: any;\n  Allow transfer: none;\n----------------------------\nNumber of entries returned 1\n----------------------------\n'
E        +  where '  Zone name: ipa.test.\n  Active zone: TRUE\n  Authoritative nameserver: master.ipa.test.\n  Administrator e-mail address: hostmaster.ipa.test.\n  SOA serial: 1648535681\n  SOA refresh: 3600\n  SOA retry: 900\n  SOA expire: 1209600\n  SOA minimum: 3600\n  BIND update policy: grant IPA.TEST krb5-self * A; grant IPA.TEST krb5-self * AAAA; grant IPA.TEST krb5-self * SSHFP;\n  Dynamic update: TRUE\n  Allow query: any;\n  Allow transfer: none;\n----------------------------\nNumber of entries returned 1\n----------------------------\n' = <pytest_multihost.transport.SSHCommand object at 0x7fd010399c90>.stdout_text

test_integration/test_installation.py:602: AssertionError

Test scenario:
- install ipa with --setup-dns --auto-reverse --allow-zone-overlap --forwarder 192.168.122.1
- check if the reverse zone was created with ipa dnszone-find

Only the zone ipa.test. is returned:

RUN ['ipa', 'dnszone-find']
  Zone name: ipa.test.
  Active zone: TRUE
  Authoritative nameserver: master.ipa.test.
  Administrator e-mail address: hostmaster.ipa.test.
  SOA serial: 1648535681
  SOA refresh: 3600
  SOA retry: 900
  SOA expire: 1209600
  SOA minimum: 3600
  BIND update policy: grant IPA.TEST krb5-self * A; grant IPA.TEST krb5-self * AAAA; grant IPA.TEST krb5-self * SSHFP;
  Dynamic update: TRUE
  Allow query: any;
  Allow transfer: none;
----------------------------
Number of entries returned 1
----------------------------
Exit code: 0

The issue is similar to #8700 that was fixed with systemd.

Installed packages:
systemd-resolved-250.4-2.fc37.x86_64
bind-9.16.27-1.fc37.x86_64
bind-dyndb-ldap-11.9-14.fc37.x86_64


The failure now also happens in fedora 35 when updates-testing is enabled, likely related to the update of systemd-resolved package to systemd-249.11-1.fc35.
See Nightly test PR #1639 with the following details

Reproduced in [testing_master_testing_selinux] Nightly PR #1640, report

Reproducible in testing_master_latest PR 1752 Report

Reproducible in testing_master_latest PR 1760 Report

reproduced in testing_master_latest_selinux report

Reproducible in testing_master_latest PR 1813 Report

Reproducible in testing_master_pki report

Reproducible in testing_master_latest PR 1821 Report

Reproducible in testing_master_latest PR 1838 Report

Reproducible in testing_master_latest PR 1856 Report

Reproducible in testing_master_latest PR 1866 Report

Reproducible in testing_master_latest PR 1887 Report

Reproducible in testing_master_latest PR Report

Reproducible in testing_master_latest PR 1906 Report

Reproducible in testing_master_latest PR 1916 Report

Reproducible in testing_master_latest PR 1927 Report

Reproducible in testing_master_latest PR 1937 Report

Reproducible in testing_master_pki PR 1953
report

Reproducible in testing_master_latest PR 1965 Report

Reproducible in testing_master_latest PR 1975 Report

Reproducible in testing_master_latest PR 1985 Report

Reproducible in testing_master_latest PR 1995 Report

Reproducible in testing_master_latest PR 2014 Report

Reproducible in testing_master_latest PR 2024 Report

Reproducible in testing_master_latest PR 2034 Report

Reproducible in testing_master_latest PR 2043 Report

Reproducible in testing_master_latest PR 2053 Report

master:

  • 25c00d0 ipatests: update the xfail annotation for test_number_of_zones

ipa-4-9:

  • cc9e568 ipatests: update the xfail annotation for test_number_of_zones

ipa-4-10:

  • 3049789 ipatests: update the xfail annotation for test_number_of_zones

Login to comment on this ticket.

Metadata