mitogen
mitogen copied to clipboard
OpenIndiana: Mitogen fails to find/serve ansible.py
Wild guess: Mitogen incorrectly rejects or is blind to the directory structure used by the system Python, e.g. /usr/lib/python3.9/vendor-packages/ansible.
- Which version of Ansible are you running? 2.15.12
- Is your version of Ansible patched in any way? not by me
- Are you running with any custom modules, or
module_utilsloaded? no
alex@oiv2404:~/mitogen-0.3.8$ ANSIBLE_STRATEGY_PLUGINS=ansible_mitogen/plugins/strategy/ ANSIBLE_STRATEGY=mitogen_linear ansible-playbook issue950.yml
/usr/lib/python3.9/vendor-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
"cipher": algorithms.TripleDES,
/usr/lib/python3.9/vendor-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
"class": algorithms.TripleDES,
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'
PLAY [localhost] ***************************************************************
TASK [Gathering Facts] *********************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: File "<stdin>", line 1639, in create_module
fatal: [localhost]: FAILED! => {"msg": "Unexpected failure during module execution: builtins.ImportError: The Mitogen master process was unable to serve 'ansible'. It may be a native Python extension, or it may be missing entirely. Check the importer debug logs on the master for more information.\n File \"<stdin>\", line 3860, in _dispatch_one\n File \"<stdin>\", line 3847, in _parse_request\n File \"<stdin>\", line 714, in import_module\n File \"<stdin>\", line 1672, in exec_module\n File \"master:/export/home/alex/mitogen-0.3.8/ansible_mitogen/target.py\", line 82, in <module>\n import ansible.module_utils.json_utils\n File \"<stdin>\", line 1639, in create_module\n", "stdout": ""}
PLAY RECAP *********************************************************************
localhost : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
- hosts: localhost
become: true
vars:
ansible_become_password: fred
tasks:
- ping:
alex@oiv2404:~/mitogen-0.3.8$ ansible --version
ansible [core 2.15.12]
config file = None
configured module search path = ['/export/home/alex/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.9/vendor-packages/ansible
ansible collection location = /export/home/alex/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.9.19 (main, Mar 26 2024, 20:30:24) [GCC 13.2.0] (/usr/bin/python3.9)
jinja version = 3.1.4
libyaml = True
alex@oiv2404:~/mitogen-0.3.8$ uname -a
SunOS oiv2404 5.11 illumos-0fbabfc26b i86pc i386 i86pc
Found while trying to reproduce #950