ansible.windows
ansible.windows copied to clipboard
win_package timeout
SUMMARY
When running AWS_PROFILE=test ap -i inventories/windows.aws_ec2.yml dev.yml
, the installation of the package failed with a timeout error message.
TASK [fluent-bit : install fluent-bit] **************************************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: at CallSite.Target(Closure , CallSite , WebRequest )
fatal: [test.test.aws.xxx.de]: FAILED! => {"changed": false, "msg": "Unhandled exception while executing module: The operation has timed out"}
But when I add -vvv
, the installation is fine and succeeded.
TASK [fluent-bit : install fluent-bit] **************************************************************************************************************************************************************************************
task path: /home/m/git/lekker/windows/roles/fluent-bit/tasks/main.yml:1
Using module file /home/m/.local/lib/python3.10/site-packages/ansible_collections/ansible/windows/plugins/modules/win_package.ps1
Pipelining is enabled.
<test.test.aws.xxx.de> ESTABLISH WINRM CONNECTION FOR USER: apl105 on PORT 5986 TO test.test.aws.xxx.de
EXEC (via pipeline wrapper)
changed: [test.test.aws.xxx.de] => {
"changed": true,
"elapsed": 0.9687526,
"invocation": {
"module_args": {
"arguments": "/S /D=C:\\installs\\",
"chdir": null,
"client_cert": null,
"client_cert_password": null,
"creates_path": null,
"creates_service": null,
"creates_version": null,
"expected_return_code": [
0,
3010
],
"follow_redirects": "safe",
"force_basic_auth": false,
"headers": null,
"http_agent": "ansible-httpget",
"log_path": null,
"maximum_redirection": 50,
"password": null,
"path": "https://fluentbit.io/releases/1.9/fluent-bit-1.9.5-win64.exe",
"product_id": null,
"provider": "auto",
"proxy_password": null,
"proxy_url": null,
"proxy_use_default_credential": false,
"proxy_username": null,
"state": "present",
"url_method": null,
"url_password": null,
"url_timeout": 30,
"url_username": null,
"use_default_credential": false,
"use_proxy": true,
"username": null,
"validate_certs": true,
"wait_for_children": false
}
},
"msg": "OK",
"rc": 0,
"reboot_required": false,
"status_code": 200
}
META: role_complete for test.test.aws.xxx.de
META: ran handlers
META: ran handlers
This is reproducible here.
So it's unclear why the task works as expected only when increasing the verbose level.
ISSUE TYPE
- Bug Report
COMPONENT NAME
win_package
ANSIBLE VERSION
ansible [core 2.12.5]
config file = None
configured module search path = ['/home/m/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/m/.local/lib/python3.10/site-packages/ansible
ansible collection location = /home/m/.ansible/collections:/usr/share/ansible/collections
executable location = /home/m/.local/bin/ansible
python version = 3.10.4 (main, Apr 2 2022, 09:04:19) [GCC 11.2.0]
jinja version = 3.1.2
libyaml = True
COLLECTION VERSION
ansible.windows 1.10.0
community.windows 1.10.0
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 22.04
STEPS TO REPRODUCE
- name: install fluent-bit
ansible.windows.win_package:
path: https://fluentbit.io/releases/1.9/fluent-bit-1.9.5-win64.exe
arguments: '/S /D=C:\installs\'
EXPECTED RESULTS
Just a change, install succeeds
ACTUAL RESULTS
TASK [fluent-bit : install fluent-bit] **************************************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: at CallSite.Target(Closure , CallSite , WebRequest )
fatal: [test.test.aws.xxx.de]: FAILED! => {"changed": false, "msg": "Unhandled exception while executing module: The operation has timed out"}
Sorry for the delay on this one. Are you saying it is always failing when using a lower verbosity and always succeeds when using -vvv
or higher? I'm not able to replicate this on my test host and I'm unsure how that would be the case. I cannot see anything in the code that would affect the remote side invocation based on the verbosity level. The short snippet I see in the non-verbose error would indicate there was a timeout when trying to download the file from the URL. Can win_get_url
successfully download the same file on the host or is it also problematic?
Closing due to no response.