Hello team,
Mark (I got approval from him to CC here) reported an issue with looping
in ansible 2.7 this morning and I spent some time investigating using
the following playbook, I was able to duplicate the issue using -current
and latest snapshot:
$ cat test.yml
---
- hosts: localhost
tasks:
- name: testloop
shell: echo "{{ item }}"
loop: [ 0, 1, 2, 3, 4, 5 ]
What ends up happening is it echos the 0 then hangs. When I checked with
a ktrace I see the log spammed with the following:
$ kdump -f ktrace.out | tail -n20
96816 python2.7 CALL sched_yield()
96816 python2.7 RET sched_yield 0
96816 python2.7 CALL sched_yield()
96816 python2.7 RET sched_yield 0
96816 python2.7 CALL sched_yield()
96816 python2.7 RET sched_yield 0
96816 python2.7 CALL sched_yield()
96816 python2.7 RET sched_yield 0
96816 python2.7 CALL sched_yield()
96816 python2.7 RET sched_yield 0
96816 python2.7 CALL sched_yield()
96816 python2.7 RET sched_yield 0
96816 python2.7 CALL sched_yield()
96816 python2.7 RET sched_yield 0
96816 python2.7 CALL sched_yield()
96816 python2.7 RET sched_yield 0
96816 python2.7 CALL sched_yield()
96816 python2.7 RET sched_yield 0
96816 python2.7 CALL sched_yield()
96816 python2.7 RET sched_yield 0
This is an issue in ansible 2.7.x. I did not see any list emails for
this, and checking on IRC others saw similar issues.
My experience with this is limited and I am not sure where to look next.
Would anyone be able to lend a hand and help me learn while this gets
solved please?
Thank you,
--
Edward Lopez-Acosta