Windows: winRM Read timed out. (read timeout=nnn). Again! #78797
Labels
affects_2.9
This issue/PR affects Ansible v2.9
affects_2.16
bug
This issue/PR relates to a bug.
needs_verified
This issue needs to be verified/reproduced by maintainer
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
waiting_on_contributor
This would be accepted but there are no plans to actively work on it.
Summary
The winRM error
"winrm connection error: HTTPSConnectionPool(host='1.2.3.4', port=5986): Read timed out. (read timeout=nnn)"
is thrown and causes the ansible task to fail. It happens very unpredictable and seemingly randomly. It does not help (very little) to adjust the winrm setting 'ansible_winrm_connection_timeout' to different values, the exception is still thrown seemingly randomly and unpredictable.
For more details see pull request #78796
Issue Type
Bug Report
Component Name
Connection Plugin 'winrm'
Ansible Version
Configuration
OS / Environment
SLES 11.4
Steps to Reproduce
See pull request: #78796
The winRM error "Read timed out" is thrown unexpectedly and cannot be reproduced at will (without actively injecting code provoking the timers to expire)
Expected Results
If the two timeout parameters (operation timeout in the WS-Man session and the HTTP-request transport read_timeout in the client session) are set independently and with a difference with about 10 seconds, this winRM will not happen during normal network operation.
The expected result is that the winrm-code should be more tolerant against networks with long latency and roundtrips since the two involved timers are running on different computers, the ansible controller and the winRM-server which can be located far away from each other network wise. If the difference between these two timers are higher, this error can be almost eliminated.
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: