#8294 Nightly failure in test_integration/test_sssd.py::TestSSSDWithAdTrust::test_trustdomain_disable_disables_subdomain
Closed: worksforme 2 years ago by frenaud. Opened 4 years ago by frenaud.

The nightly test test_integration/test_sssd.py::TestSSSDWithAdTrust::test_trustdomain_disable_disables_subdomain failed in rawhide, see PR 4585 with logs:

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

    def test_trustdomain_disable_disables_subdomain(self):
        """Test that users from disabled trustdomains can not use ipa resources

        This is a regression test for sssd bug:
        https://pagure.io/SSSD/sssd/issue/4078
        """
        user = self.users['child_ad']['name']
        # verify the user can be retrieved initially
>       self.master.run_command(['id', user])

test_integration/test_sssd.py:396: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <ipatests.pytest_ipa.integration.host.Host master.ipa.test (master)>
argv = ['id', 'subdomaintestuser@child.ad.test'], 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 '['id', 'subdomaintestuser@child.ad.test']' returned non-zero exit status 1.

pytest_ipa/integration/host.py:194: CalledProcessError

The same test is successful on fedora31.


Also happened on fedora 32 in PR 4669 - testing-master-latest.

Lowering the priority as the failure is random and happens rarely

Metadata Update from @frenaud:
- Issue priority set to: low

3 years ago

The failure hasn't occurred in the last 12 months, closing for now. Feel free to re-open if it happens again.

Metadata Update from @frenaud:
- Issue close_status updated to: worksforme
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata