Mitogen fails when executing certain custom modules #1214
Labels
affects-0.3
Issues related to 0.3.X Mitogen releases
bug
Code feature that hinders desired execution outcome
I'm currently trying to use Mitogen 0.3.20 on with a number of playbooks I use. For the most part, things are working well, but certain custom modules fail when running under Mitogen. Among these are
ansible_freeipa.ipaserver
andondrejhome.ha_cluster.pcs_resource
. In particular, they fail with the following backtrace:As far as I can tell, Mitogen is assuming that stdout/stderr is a
BytesIO
orStringIO
, which apparently is not true in these cases.Originally, I suggested using
read
as an alternative togetvalue
, which does more or less the same thing save for advancing the stream position. However, in local testing, I found that sys.stdout and sys.stderr refer to closed files when we hit the problematic line in runner.py, and I'm not familiar enough with Ansible's architecture to make any headway past that.Ansible versions:
The text was updated successfully, but these errors were encountered: