Open miksir opened 4 years ago
I think official Docker image for ubuntu Xenial doesn't have Python installed by default. Therefore Ansible cannot run the shell
module. Even if you tried with raw
mitogen requires Python as quoted in your last error message.
I think official Docker image for ubuntu Xenial doesn't have Python installed by default. Therefore Ansible cannot run the
shell
module. Even if you tried withraw
mitogen requires Python as quoted in your last error message.
All hosts and docker image has python 2.7
playbook:
Number of hosts: 60+ Without mitogen all work fine and play takes 10sec (with fork=200) With mitogen - part of hosts (~50%-70%) failed with message
Run with default fork value helps but takes too much time (40sec with mitogen, 24sec without). Also, run with any kind or debug output - helps too (it works find with debug output, I tried -vvv, MITOGEN_ROUTER_DEBUG=1). 1-2 hosts work nice too.
Master version works bad too... it's can run 2-5min (or more), can fail also and spam errors
[WARNING]: Unhandled error in Python interpreter discovery for host ***: unexpected output from Python interpreter discovery
andPlatform unknown on host *** is using the discovered Python interpreter at /usr/bin/python, but future installation of another Python interpreter could change this. See https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information.
OS of hosts: Ubuntu Xenial, local host is Xenial too but run in docker container based on Xenial
Since everything work fine in case of debug on I even don't known how to debug it