#9183 Timeout issue in test_installation.py when using interactive mode
Closed: fixed 2 years ago by mpolovka. Opened 2 years ago by mpolovka.

Disclaimer: This issue affects downstream only. This ticket serves as an upstream reference, since the test needs to be fixed upstream.

The tests using interactive mode with expect are failing in downstream with timeout reached errors. Increase the default timeout to remedy this issue.

E           pexpect.exceptions.TIMEOUT: Timeout exceeded.
E           <ipatests.pytest_ipa.integration.expect.IpaTestExpect object at 0x7f395cf77610>
E           command: /bin/ssh
E           args: [b'/bin/ssh', b'-l', b'root', b'-o', b'ControlPath=/tmp/multihost_tests.b3gmk0ht/control', b'-o', b'StrictHostKeyChecking=no', b'-o', b'UserKnownHostsFile=/tmp/multihost_tests.b3gmk0ht/known_hosts', b'-i', b'/root/.ssh/id_rsa', b'filteredIP', b'-q', b'ipa-server-install']
E           buffer (last 100 chars): 'ing DNS domain testrelm.test., please wait ...\r\n'
E           before (last 100 chars): 'Checking DNS domain testrelm.test., please wait ...\r\n'
E           after: <class 'pexpect.exceptions.TIMEOUT'>
E           match: None
E           match_index: None
E           exitstatus: None
E           flag_eof: False
E           pid: 25398
E           child_fd: 25
E           closed: False
E           timeout: 10
E           delimiter: <class 'pexpect.exceptions.EOF'>
E           logfile: None
E           logfile_read: None
E           logfile_send: None
E           maxread: 2000
E           ignorecase: False
E           searchwindowsize: None
E           delaybeforesend: 0.05
E           delayafterclose: 0.1
E           delayafterterminate: 0.1
E           searcher: searcher_string:
E               0: 'Do you want to configure DNS forwarders? [yes]: '

err        = TIMEOUT('Timeout exceeded.')
exc        = TIMEOUT("Timeout exceeded.\n<ipatests.pytest_ipa.integration.expect.IpaTestExpect object at 0x7f395cf77610>\ncommand: ... 0.1\ndelayafterterminate: 0.1\nsearcher: searcher_string:\n    0: 'Do you want to configure DNS forwarders? [yes]: '")
index      = -1
msg        = "Timeout exceeded.\n<ipatests.pytest_ipa.integration.expect.IpaTestExpect object at 0x7f395cf77610>\ncommand: /bin/ssh...: 0.1\ndelayafterterminate: 0.1\nsearcher: searcher_string:\n    0: 'Do you want to configure DNS forwarders? [yes]: '"
self       = <pexpect.expect.Expecter object at 0x7f395d08d610>
spawn      = <ipatests.pytest_ipa.integration.expect.IpaTestExpect object at 0x7f395cf77610>

../pexpect/expect.py:144: TIMEOUT

master:

  • 40b3c11 ipatests: Increase expect timeout for interactive mode

ipa-4-9:

  • a6a6781 ipatests: Increase expect timeout for interactive mode

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

2 years ago

Login to comment on this ticket.

Metadata