#9044 Random nightly failure in test_otp.py::TestOTPToken::test_check_otpd_after_idle_timeout
Closed: fixed 5 months ago by frenaud. Opened 6 months ago by frenaud.

The nightly test test_otp.py is randomly failing in TestOTPToken::test_check_otpd_after_idle_timeout. Test scenario:
- modify 389-ds nsslapd-idletimeout to 60s
- kinit with an otp token
- wait for the idle timeout
- the connection between ipa-otpd and 389ds has been idle for 60s and should be closed by 389ds
- check that the journal contains an error "Can't contact LDAP server" showing the connection closure

Examples of failures:
- in rawhide: PR #1321 - logs, report
- in f33: PR #1317 - logs, report

According to 389ds documentation:

Idle timeout is enforced when the connection table is walked, when poll() does not return zero

It may be worth trying to perform a ldap operation after the kinit in order to force 389ds to walk through the connection table.


Metadata Update from @frenaud:
- Issue assigned to amore

6 months ago

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/6119
- Issue assigned to frenaud (was: amore)

5 months ago

master:

  • b5fd288 ipatests: fix TestOTPToken::test_check_otpd_after_idle_timeout

ipa-4-9:

  • 4c54e9d ipatests: fix TestOTPToken::test_check_otpd_after_idle_timeout

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

5 months ago

Login to comment on this ticket.

Metadata