#8393 Nightly test failure in test_integration/test_commands.py::TestIPACommand::test_login_wrong_password
Closed: duplicate by frenaud. Opened by frenaud.

Issue

The nightly test test_integration/test_commands.py::TestIPACommand::test_login_wrong_password is not stable and failed multiple times since it was added in the source tree.

See for instance PR #268 : [testing_master_latest] with the following test report.

Logs:

self = <ipatests.test_integration.test_commands.TestIPACommand object at 0x7f37c92ecf10>
user_creation_deletion = None
    def test_login_wrong_password(self, user_creation_deletion):
        """Test ipa user login with wrong password
        When ipa user login to machine using wrong password, it
        should log proper message
        related: https://github.com/SSSD/sssd/issues/5139
        """
        # try to login with wrong password
        sssd_version = tasks.get_sssd_version(self.master)
        if (sssd_version < tasks.parse_version('2.3.0')):
            pytest.xfail('Fix is part of sssd 2.3.0 and is'
                         ' available from fedora32 onwards')
        sshconn = paramiko.SSHClient()
        sshconn.set_missing_host_key_policy(paramiko.AutoAddPolicy())
        since = time.strftime('%H:%M:%S')
        try:
            sshconn.connect(self.master.hostname,
                            username=self.testuser,
                            password='WrongPassword')
        except paramiko.AuthenticationException:
            pass
        sshconn.close()
        # check if proper message logged
        exp_msg = ("pam_sss(sshd:auth): received for user {}: 7"
                   " (Authentication failure)".format(self.testuser))
        result = self.master.run_command(['journalctl',
                                          '-u', 'sshd',
                                          '--since={}'.format(since)])
>       assert exp_msg in result.stdout_text
E       AssertionError: assert 'pam_sss(sshd:auth): received for user testuser: 7 (Authentication failure)' in '-- Logs begin at Wed 2020-07-01 23:26:36 UTC, end at Wed 2020-07-01 23:49:20 UTC. --\nJul 01 23:49:19 master.ipa.test... master.ipa.test sshd[31877]: Connection closed by authenticating user testuser 192.168.122.235 port 55132 [preauth]\n'
E        +  where '-- Logs begin at Wed 2020-07-01 23:26:36 UTC, end at Wed 2020-07-01 23:49:20 UTC. --\nJul 01 23:49:19 master.ipa.test... master.ipa.test sshd[31877]: Connection closed by authenticating user testuser 192.168.122.235 port 55132 [preauth]\n' = <pytest_multihost.transport.SSHCommand object at 0x7f37c92ed070>.stdout_text

Also failed in PR #246: [testing_ipa-4.8_latest] with the following report.


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

Same issue reported in https://pagure.io/freeipa/issue/8432, closing as duplicate

Metadata