#8665 Nightly test failure (fed33) in test_integration/test_smb.py::TestSMB::test_install_samba
Closed: fixed by frenaud. Opened by frenaud.

The nightly test test_integration/test_smb.py::TestSMB::test_install_samba is failing on fedora 33. See PR #647 with the following logs and report:

self = <ipatests.test_integration.test_smb.TestSMB object at 0x7fec9b2cebb0>
    def test_install_samba(self):
>       samba_install_result = self.smbserver.run_command(
            ['ipa-client-samba', '-U'])
test_integration/test_smb.py:225: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <ipatests.pytest_ipa.integration.host.Host client1.ipa.test (client)>
argv = ['ipa-client-samba', '-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-client-samba', '-U']' returned non-zero exit status 1.
pytest_ipa/integration/host.py:200: CalledProcessError
 ------------------------------Captured stderr call------------------------------ 
ipa: ERROR: stderr: Traceback (most recent call last):
  File "/usr/sbin/ipa-client-samba", line 15, in <module>
    sys.exit(ipa_client_samba.run())
  File "/usr/lib/python3.9/site-packages/ipaclient/install/ipa_client_samba.py", line 699, in run
    service_add_smb(api.env.host, options.netbiosname)
  File "/usr/lib/python3.9/site-packages/ipalib/frontend.py", line 471, in __call__
    return self.__do_call(*args, **options)
  File "/usr/lib/python3.9/site-packages/ipalib/frontend.py", line 499, in __do_call
    ret = self.run(*args, **options)
  File "/usr/lib/python3.9/site-packages/ipalib/frontend.py", line 822, in run
    return self.forward(*args, **options)
  File "/usr/lib/python3.9/site-packages/ipalib/frontend.py", line 844, in forward
    return self.Backend.rpcclient.forward(self.forwarded_name,
  File "/usr/lib/python3.9/site-packages/ipalib/rpc.py", line 1147, in forward
    return self._call_command(command, params)
  File "/usr/lib/python3.9/site-packages/ipalib/rpc.py", line 1123, in _call_command
    return command(*params)
  File "/usr/lib/python3.9/site-packages/ipalib/rpc.py", line 1277, in _call
    return self.__request(name, args)
  File "/usr/lib/python3.9/site-packages/ipalib/rpc.py", line 1271, in __request
    raise error_class(**kw)
ipalib.errors.DNSNotARecordError: Host 'client1.ipa.test' does not have corresponding DNS A/AAAA record

Another failure PR648, report

Another failure: PR680,report

Fixed with https://github.com/freeipa/freeipa/pull/5474 DNS resolvers management.
Green nightly runs:
- testing_master_previous: PR 780, Report
- testing_master_latest: PR 779, Report
- testing_ipa-4.9_previous: PR 773, Report
- testing_ipa-4.9_latest: PR 771, Report

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

Metadata