ansible / awx-ee

An Ansible execution environment for AWX project
https://quay.io/ansible/awx-ee
Other
132 stars 158 forks source link

Cannot delegate task to a windows host anymore #128

Closed JLE-ATS closed 1 year ago

JLE-ATS commented 2 years ago

ISSUE TYPE

SUMMARY

Since the 11th of this month, I can't delegate a task to a Windows host from AWX. I have two AWX instances in two separate datacenter. The problem occurs on both of them. I also have an Ansible server who can still run tasks delegated to a Windows host. So Windows configuration does not seem to be the issue.

The windows host uses the following parameters:

Here I the things I did to fix the problem :

At this point, I assume this is a bug introduced by a recent update.

ENVIRONMENT

First env :

Second env :

STEPS TO REPRODUCE

Run any job delegated to a Windows host. In my case, i use the module "community.windows.win_dns_record" to add a DNS record in Active Directory.

EXPECTED RESULTS

The task should run without any problems.

ACTUAL RESULTS

This error : ntlm: HTTPConnectionPool(host='XXXX ', port=5985): Max retries exceeded with url: /wsman (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa7da5c36a0>: Failed to establish a new connection: [Errno 113] No route to host'))",

Where XXXX is the targeted host and not the host the task is delegated to.

akus062381 commented 2 years ago

hi @JLE-ATS, this appears to be less of a bug report and more of a question. The message "no route to host" indicates that this could be more of a configuration or environment problem. Could you please ask this on our mailing list? See https://github.com/ansible/awx/#get-involved for information for ways to connect with us.

JLE-ATS commented 2 years ago

hi @akus062381, thank you for your input. I have opened a new conversation on the mailing list as you suggested.

Nonetheless, I still struggle to think it is not a bug of some kind. I have used AWX for months without problems. Also, my AWX instances still can run tasks (direct tasks i mean) on the same windows host. I don't think the problem come from a network issue, despite the error message.

Are you able to reproduce the error ?

Here is the AWX log for the job (Blue is the targeted host and green is the windows host) : image

JLE-ATS commented 1 year ago

Hi, My problem is fixed now. I am not sure what solved the problem exactly. I have tried using kerberos authentication instead of ntlm and it worked. Now I am back with ntlm and it work fine. Thanks for your help.