#8663 Nightly test failure (fed 33) in test_integration/test_nfs.py::TestNFS::test_krb5_nfsd
Closed: fixed by frenaud. Opened by frenaud.

The nightly test test_integration/test_nfs.py::TestNFS::test_krb5_nfsd is failing in fedora 33, see PR #647 with the following logs and report:

self = <ipatests.test_integration.test_nfs.TestNFS object at 0x7f237f11e6d0>
    def test_krb5_nfsd(self):
        nfssrv = self.clients[0]
        # NFS keytab management
>       self.master.run_command([
            "ipa", "service-add", "nfs/%s" % nfssrv.hostname
        ])
test_integration/test_nfs.py:97: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <ipatests.pytest_ipa.integration.host.Host master.ipa.test (master)>
argv = ['ipa', 'service-add', 'nfs/client1.ipa.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 '['ipa', 'service-add', 'nfs/client1.ipa.test']' returned non-zero exit status 1.
pytest_ipa/integration/host.py:200: CalledProcessError
 ------------------------------Captured stderr call------------------------------ 
ipa: ERROR: stderr: ipa: ERROR: Host 'client1.ipa.test' does not have corresponding DNS A/AAAA record
 -------------------------------Captured log call-------------------------------- 
INFO     ipatests.pytest_ipa.integration.host.Host.master.IPAOpenSSHTransport:transport.py:391 RUN ['ipa', 'service-add', 'nfs/client1.ipa.test']
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd70:transport.py:513 RUN ['ipa', 'service-add', 'nfs/client1.ipa.test']
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd70:transport.py:557 ipa: ERROR: Host 'client1.ipa.test' does not have corresponding DNS A/AAAA record
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd70:transport.py:217 Exit code: 1
ERROR    ipatests.pytest_ipa.integration.host.Host.master.cmd70:host.py:199 stderr: ipa: ERROR: Host 'client1.ipa.test' does not have corresponding DNS A/AAAA record

Another failure: PR648, report

Another failure: PR680. report

Fixed with the commit on freeipa-pr-ci: https://github.com/freeipa/freeipa-pr-ci/commit/4b034af13ec7c0fee4b842dc1a59ce6f90b057fb

The runs are now green.

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

Metadata