#10000 Nightly test failures in test_sudo
Opened by mpolovka. Modified

  • Failed test_integration/test_sudo.py::TestSudo_Functional::test_007_sudorule_offline_caching_option_command
  • Failed test_integration/test_sudo.py::TestSudo_Functional::test_008_disable_sudorule_offline_caching

with an error:

>       assert "(root) NOPASSWD: /bin/date" in result.stdout_text
E       AssertionError: assert '(root) NOPASSWD: /bin/date' in ''
E        +  where '' = <pytest_multihost.transport.SSHCommand object at 0x7faa0879a510>.stdout_text
INFO     ipatests.pytest_ipa.integration.host.Host.client.IPAOpenSSHTransport:transport.py:391 RUN su -c "echo Secret123! | sudo -l -S" testuser1
DEBUG    ipatests.pytest_ipa.integration.host.Host.client.cmd633:transport.py:513 RUN su -c "echo Secret123! | sudo -l -S" testuser1
DEBUG    ipatests.pytest_ipa.integration.host.Host.client.cmd633:transport.py:557 sudo: PAM account management error: Unknown error -1
DEBUG    ipatests.pytest_ipa.integration.host.Host.client.cmd633:transport.py:557 sudo: a password is required
DEBUG    ipatests.pytest_ipa.integration.host.Host.client.cmd633:transport.py:217 Exit code: 1

nightly latest master log


Hi @pthube, these tests have been added by you, can you look into it please?

This test is quite flaky and the issue is with the cache timing. Rerun possibly will pass this. But will look at it.

Filled issue with sssd :https://github.com/SSSD/sssd/issues/8778

Two additional tests are failing consistently, see:
http://freeipa-org-pr-ci.s3-website.eu-central-1.amazonaws.com/jobs/9996e46e-6024-11f1-a362-fa163e2a1f74/report.html?sort=result

test_integration/test_sudo.py::TestSudo_Functional::test_007_sudorule_offline_caching_option_command
test_integration/test_sudo.py::TestSudo_Functional::test_008_disable_sudorule_offline_caching

@rcritten The issue is been already filled with sssd ,will test with latest sssd nightly build.

Metadata