Upgraded ansible to
$ ansible --version
ansible 2.9.0.dev0
config file = /Users/tanner/projects/ansible.git/playbooks.git/celadonsystems.com/ansible.cfg
configured module search path = [u'/Users/tanner/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /Users/tanner/projects/ansible.git/ansible/lib/ansible
executable location = /Users/tanner/projects/ansible.git/ansible/bin/ansible
python version = 2.7.10 (default, Feb 22 2019, 21:55:15) [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)]
And now random playbooks and tasks just hang in unusual places.
Before the upgrade of ansible all this playbooks and tasks worked as expected.
- name: Install programs (choco)
win_chocolatey:
name: "{{ item }}"
state: "present"
when:
- chocolatey_packages is defined
loop: "{{ chocolatey_packages|flatten(levels=1) }}"The above is a task that randomly hangs.
<win2016.LAB.testing.com> ESTABLISH WINRM CONNECTION FOR USER: Admini...@LAB.testing.com on PORT 5986 TO win2016.LAB.testing.com
Using module file /Users/tanner/projects/ansible.git/ansible/lib/ansible/modules/windows/win_chocolatey.ps1
Pipelining is enabled.I've let this sit for 12 hours.
No timeouts. No errors.
$ python -V
Python 2.7.10
Management host: macOS Mojave 10.14.5
Managed host: Windows Server 2016
$ kinit --version
kinit (Heimdal 1.5.1apple1)
Copyright 1995-2011 Kungliga Tekniska Högskolan
Send bug-reports to heimda...@h5l.org
This feels like a personal problem or a python-2.7 problem (still in progress of upgrading to python3)
I didn't open an issue because I'd like to learn how to report more(?) better(?) info regarding this issue.
Any help would be appreciated.
Thanks.
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e918e71c-1088-48d8-8164-3e72e655a06d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
If everything worked, what was the reason for upgrading to an unreleased development version?
Hi Bob,Does it just hang on chocolatey or on other things too?I think there's been a recent change which may have broken the ansible<->chocolatey integration although iirc its been fixed by latest chocolatey.Anything in the event logs on the target machine(s)? I don't use choco much but is it logging and if so is there anything in the log file for it?Hope this helps,
On Jun 10, 2019, at 7:15 PM, Jordan Borean <jbor...@gmail.com> wrote:
- I see you are using a MacOS host with Kerberos auth, there is a problem using the builtin kinit process on MacOS which causes a hang. Try using a self managed Kerberos ticket to rule out this problem
The MacOS Kerberos kinit issue is fixed by making sure pexpect is installed on the Python environment for the controller but it's best to just use your own Kerb ticket to rule it out.
On Jun 10, 2019, at 7:15 PM, Jordan Borean <jbor...@gmail.com> wrote:
- Do you see the module process actually running on the remote host
- When it hangs, is the process still running, any left over processes that isn't powershell.exe
- Is it easily replicable, or does it only happen randomly, e.g. sometimes a task works but other times it doesn’t
- I see you are using a MacOS host with Kerberos auth, there is a problem using the builtin kinit process on MacOS which causes a hang. Try using a self managed Kerberos ticket to rule out this problem
The MacOS Kerberos kinit issue is fixed by making sure pexpect is installed on the Python environment for the controller but it's best to just use your own Kerb ticket to rule it out.
On Jun 11, 2019, at 4:01 PM, Jordan Borean <jbor...@gmail.com> wrote:The self managed kerberos ticket is just you running `kinit` yourself and disabling the auto kinit process that Ansible runs if you supply the password. Because you actually see the process running on the Windows host then that rules out that problem and you can ignore it.If it is hanging on choco upgrade all and you still see choco.exe running in the background then there's not much we can do. Chocolatey seems to be running something and not exiting so win_chocolatey won't exit for you. You will have to look at Chocolatey's logs, or even run the upgrade all process yourself manually and see if it's prompting for anything.
On Jun 11, 2019, at 4:49 PM, Jordan Borean <jbor...@gmail.com> wrote:Identifying hangs aren't easy but without knowing the full story is next to impossible. From what you are saying the problem looks like it is happening on the execution side and unrelated to the Ansible controller so debugging the Python process probably won't give you any good information.