#8484 Nightly failure in test_integration/test_sssd.py::TestSSSDWithAdTrust::test_extdom_group
Opened 3 months ago by mpolovka. Modified 3 months ago

The nightly test test_integration/test_sssd.py::TestSSSDWithAdTrust::test_extdom_group s failing in the command 'getent', 'group', 'group@group@ad.test' without stderr output and exit code 2.

PR393, logs

self = <ipatests.test_integration.test_sssd.TestSSSDWithAdTrust object at 0x7f74f80ccc88>

    def test_extdom_group(self):
        """ipa-extdom-extop plugin should allow @ in group name.

            Test for : https://bugzilla.redhat.com/show_bug.cgi?id=1746951

            If group contains @ in group name from AD, eg. abc@pqr@AD.DOMAIN
            then it should fetch successfully on ipa-client.
            """
        client = self.clients[0]
        hosts = [self.master, client]
        ad_group = 'group@group@{0}'.format(self.ad.domain.name)
        expression = '((?P<name>.+)@(?P<domain>[^@]+$))'
        master_conf_backup = tasks.FileBackup(self.master, paths.SSSD_CONF)
        client_conf_backup = tasks.FileBackup(client, paths.SSSD_CONF)
        for host in hosts:
            with tasks.remote_sssd_config(host) as sssd_conf:
                sssd_conf.edit_service('sssd', 're_expression', expression)
            tasks.clear_sssd_cache(host)
        try:
            cmd = ['getent', 'group', ad_group]
>           result = self.master.run_command(cmd)

test_integration/test_sssd.py:136: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <ipatests.pytest_ipa.integration.host.Host master.ipa.test (master)>
argv = ['getent', 'group', 'group@group@ad.test'], set_env = True
stdin_text = None, log_stdout = True, raiseonerr = True, cwd = None
ok_returncode = 0

    def run_command(self, argv, set_env=True, stdin_text=None,
                    log_stdout=True, raiseonerr=True,
                    cwd=None, 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(Host, self).run_command(
            argv, set_env=set_env, stdin_text=stdin_text,
            log_stdout=log_stdout, raiseonerr=False, cwd=cwd
        )
        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
            )
E           subprocess.CalledProcessError: Command '['getent', 'group', 'group@group@ad.test']' returned non-zero exit status 2.

Login to comment on this ticket.

Metadata