#8188 Nightly test failure in test_integration/test_installation.py::TestInstallWithCA_DNS1::test_replica2_with_ca_kra_install - Dbus Exception
Opened 4 months ago by frenaud. Modified 4 months ago

The nightly test test_integration/test_installation.py::TestInstallWithCA_DNS1::test_replica2_with_ca_kra_install failed in PR 4207. Logs available at the following location.

The test failed while installing a replica, during ipa-replica-install, in the step configuring certificate renewals. The error seems related to a Dbus issue. See the following trace:

self = <ipatests.test_integration.test_installation.TestInstallWithCA_DNS1 object at 0x7f2368654d10>

    @pytest.mark.skipif(config.domain_level == DOMAIN_LEVEL_0,
                        reason='does not work on DOMAIN_LEVEL_0 by design')
    def test_replica2_with_ca_kra_install(self):
>       super(TestInstallWithCA_DNS1, self).test_replica2_with_ca_kra_install()

test_integration/test_installation.py:289: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test_integration/test_installation.py:104: in test_replica2_with_ca_kra_install
    setup_kra=True)
pytest_ipa/integration/tasks.py:515: in install_replica
    stdin_text=stdin_text)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <ipatests.pytest_ipa.integration.host.Host replica1.ipa.test (replica)>
argv = ['ipa-replica-install', '--admin-password', 'Secret.123', '--password', 'Secret.123', '-U', ...]
set_env = True, stdin_text = None, log_stdout = True, raiseonerr = True
cwd = None, bg = False, encoding = 'utf-8', ok_returncode = 0

    def run_command(self, argv, set_env=True, stdin_text=None,
                    log_stdout=True, raiseonerr=True,
                    cwd=None, bg=False, encoding='utf-8', ok_returncode=0):
        """Wrapper around run_command to log stderr on raiseonerr=True

        :param ok_returncode: return code considered to be correct,
                              you can pass an integer or sequence of integers
        """
        result = super().run_command(
            argv, set_env=set_env, stdin_text=stdin_text,
            log_stdout=log_stdout, raiseonerr=False, cwd=cwd, bg=bg,
            encoding=encoding
        )
        # in FIPS mode SSH may print noise to stderr, remove the string
        # "FIPS mode initialized" + optional newline.
        result.stderr_bytes = FIPS_NOISE_RE.sub(b'', result.stderr_bytes)
        try:
            result_ok = result.returncode in ok_returncode
        except TypeError:
            result_ok = result.returncode == ok_returncode
        if not result_ok and raiseonerr:
            result.log.error('stderr: %s', result.stderr_text)
            raise subprocess.CalledProcessError(
                result.returncode, argv,
>               result.stdout_text, result.stderr_text
            )
E           subprocess.CalledProcessError: Command '['ipa-replica-install', '--admin-password', 'Secret.123', '--password', 'Secret.123', '-U', '--setup-ca', '--setup-kra', '--ip-address', '192.168.122.131', '--realm', 'IPA.TEST', '--domain', 'ipa.test']' returned non-zero exit status 1.

pytest_ipa/integration/host.py:193: CalledProcessError
 ------------------------------Captured stderr call------------------------------ 

[ipatests.pytest_ipa.integration.host.Host.replica1.cmd43] Exit code: 0
[ipatests.pytest_ipa.integration.host.Host.replica1.ParamikoTransport] RUN ['ss', '--all', '--tcp', '--udp', '--numeric', '--processes', '-o', 'state', 'all', '( sport = :749 or dport = :749 or sport = :464 or dport = :464 )']
[ipatests.pytest_ipa.integration.host.Host.replica1.cmd44] RUN ['ss', '--all', '--tcp', '--udp', '--numeric', '--processes', '-o', 'state', 'all', '( sport = :749 or dport = :749 or sport = :464 or dport = :464 )']
[ipatests.pytest_ipa.integration.host.Host.replica1.cmd44] Netid   State   Recv-Q   Send-Q     Local Address:Port      Peer Address:Port   
[ipatests.pytest_ipa.integration.host.Host.replica1.cmd44] Exit code: 0
[ipatests.pytest_ipa.integration.host.Host.master.ParamikoTransport] RUN ['kinit', 'admin']
[ipatests.pytest_ipa.integration.host.Host.master.cmd75] RUN ['kinit', 'admin']
[ipatests.pytest_ipa.integration.host.Host.master.cmd75] Password for admin@IPA.TEST: 
[ipatests.pytest_ipa.integration.host.Host.master.cmd75] Exit code: 0
[ipatests.pytest_ipa.integration.host.Host.master.ParamikoTransport] RUN ['ipa', 'dnsconfig-mod', '--allow-sync-ptr=true']
[ipatests.pytest_ipa.integration.host.Host.master.cmd76] RUN ['ipa', 'dnsconfig-mod', '--allow-sync-ptr=true']
[ipatests.pytest_ipa.integration.host.Host.master.cmd76] ipa: ERROR: no modifications to be performed
[ipatests.pytest_ipa.integration.host.Host.master.cmd76] Exit code: 1
[ipatests.pytest_ipa.integration.host.Host.master.ParamikoTransport] RUN ['ipa', 'dnszone-add', '122.168.192.in-addr.arpa.']
[ipatests.pytest_ipa.integration.host.Host.master.cmd77] RUN ['ipa', 'dnszone-add', '122.168.192.in-addr.arpa.']
[ipatests.pytest_ipa.integration.host.Host.master.cmd77] ipa: ERROR: DNS zone with name "122.168.192.in-addr.arpa." already exists
[ipatests.pytest_ipa.integration.host.Host.master.cmd77] Exit code: 1
ipa: WARNING: ipa: ERROR: DNS zone with name "122.168.192.in-addr.arpa." already exists


[ipatests.pytest_ipa.integration.host.Host.replica1.cmd58]   [17/29]: configure certmonger for renewals
[ipatests.pytest_ipa.integration.host.Host.replica1.cmd58]   [18/29]: Importing RA key
[ipatests.pytest_ipa.integration.host.Host.replica1.cmd58]   [19/29]: setting audit signing renewal to 2 years
[ipatests.pytest_ipa.integration.host.Host.replica1.cmd58]   [20/29]: restarting certificate server
[ipatests.pytest_ipa.integration.host.Host.replica1.cmd58]   [21/29]: authorizing RA to modify profiles
[ipatests.pytest_ipa.integration.host.Host.replica1.cmd58]   [22/29]: authorizing RA to manage lightweight CAs
[ipatests.pytest_ipa.integration.host.Host.replica1.cmd58]   [23/29]: Ensure lightweight CAs container exists
[ipatests.pytest_ipa.integration.host.Host.replica1.cmd58]   [24/29]: configure certificate renewals
[ipatests.pytest_ipa.integration.host.Host.replica1.cmd58]   [error] DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[ipatests.pytest_ipa.integration.host.Host.replica1.cmd58] org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[ipatests.pytest_ipa.integration.host.Host.replica1.cmd58] The ipa-replica-install command failed. See /var/log/ipareplica-install.log for more information
[ipatests.pytest_ipa.integration.host.Host.replica1.cmd58] Your system may be partly configured.
[ipatests.pytest_ipa.integration.host.Host.replica1.cmd58] Run /usr/sbin/ipa-server-install --uninstall to clean up.
[ipatests.pytest_ipa.integration.host.Host.replica1.cmd58] 
[ipatests.pytest_ipa.integration.host.Host.replica1.cmd58] Exit code: 1
ipa: ERROR: stderr: Lookup failed: Preferred host replica1.ipa.test does not provide DNS.
Could not resolve hostname replica1.ipa.test using DNS. Clients may not function properly. Please check your DNS setup. (Note that this check queries IPA DNS directly and ignores /etc/hosts.)
Lookup failed: Preferred host master.ipa.test does not provide KRA.
Custodia uses 'replica2.ipa.test' as master peer.
org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
The ipa-replica-install command failed. See /var/log/ipareplica-install.log for more information

Metadata Update from @frenaud:
- Issue tagged with: test-failure, tests

4 months ago

Login to comment on this ticket.

Metadata