mitogen icon indicating copy to clipboard operation
mitogen copied to clipboard

RHEL 8 - Paramiko connection dropped only when Mitogen linear strategy is used

Open pun-ky opened this issue 3 years ago • 0 comments

When having playbook and using Mitogen strategy: image

and

strategy_plugins = ~/.ansible/plugins/strategy:/usr/share/ansible/plugins/strategy:/usr/lib/python3.8/site-packages/ansible_mitogen/plugins/strategy

and using Mitogen: https://github.com/pun-ky/mitogen/tree/v0.3.0-776 https://github.com/pun-ky/mitogen/archive/refs/tags/v0.3.0-776.tar.gz

and Ansible:

Ansible version:
ansible 2.10.7
  config file = /gat/env/ansible/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.8/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.8.10 (default, May  6 2021, 00:05:59) [GCC 10.2.1 20201203]

then I have an following error.

File "/venv/lib/pythonx.x/site-packages/paramiko/file.py", line 339, in write
    self._write_all(data)
  File "/venv/lib/pythonx.x/site-packages/paramiko/file.py", line 456, in _write_all
    count = self._write(data)
  File "/venv/lib/pythonx.x/site-packages/paramiko/sftp_file.py", line 180, in _write
    t, msg = self.sftp._read_response(req)
  File "/venv/lib/pythonx.x/site-packages/paramiko/sftp_client.py", line 762, in _read_response
    raise SSHException('Server connection dropped: %s' % str(e))
SSHException: Server connection dropped: 

And nothing more interesting.

When I comment out / use built-in linear strategy then the error is gone. Could you tell me why? How could I avoid this?

The target host is using RHEL 8.3/8.4 (same error on both versions) on Azure.

pun-ky avatar Jul 29 '21 12:07 pun-ky