AttributeError: module '__main__' has no attribute '_module_fqn' #16805
Unanswered
ganeshrrhce
asked this question in
Help Wanted!
Replies: 1 comment
-
Problems with Ansible should be asked on an Ansible discussion group. Ansible is nothing to do with Netbox. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
OS: RHEL 8.10
Ansible Version:
ansible [core 2.16.3]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.12/site-packages/ansible
ansible collection location = /usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.12.1 (main, Feb 21 2024, 10:25:11) [GCC 8.5.0 20210514 (Red Hat 8.5.0-21)] (/usr/bin/python3.12)
jinja version = 3.1.2
libyaml = True
Host details:
Olvm: 7.9
Python3.6
We are facing the issue while deploy the code.
The full traceback is:
Traceback (most recent call last):
File "master:/opt/ansible/mitogen/mitogen-0.3.7/ansible_mitogen/runner.py", line 1056, in _run
self._run_code(code, mod)
File "master:/opt/ansible/mitogen/mitogen-0.3.7/ansible_mitogen/runner.py", line 1020, in _run_code
exec(code, vars(mod))
File "master:/usr/lib/python3.12/site-packages/ansible/modules/yum.py", line 1821, in
File "master:/usr/lib/python3.12/site-packages/ansible/modules/yum.py", line 1817, in main
File "master:/usr/lib/python3.12/site-packages/ansible/modules/yum.py", line 1697, in run
File "master:/usr/lib/python3.12/site-packages/ansible/module_utils/common/respawn.py", line 39, in respawn_module
payload = _create_payload()
File "master:/usr/lib/python3.12/site-packages/ansible/module_utils/common/respawn.py", line 76, in _create_payload
module_fqn = sys.modules['main']._module_fqn
AttributeError: module 'main' has no attribute '_module_fqn'
fatal: [xxxxexaple.org]: FAILED! => changed=false
ansible_facts:
discovered_interpreter_python: /bin/python3.6
module_stderr: |-
Traceback (most recent call last):
File "master:/opt/ansible/mitogen/mitogen-0.3.7/ansible_mitogen/runner.py", line 1056, in _run
self._run_code(code, mod)
File "master:/opt/ansible/mitogen/mitogen-0.3.7/ansible_mitogen/runner.py", line 1020, in _run_code
exec(code, vars(mod))
File "master:/usr/lib/python3.12/site-packages/ansible/modules/yum.py", line 1821, in
File "master:/usr/lib/python3.12/site-packages/ansible/modules/yum.py", line 1817, in main
File "master:/usr/lib/python3.12/site-packages/ansible/modules/yum.py", line 1697, in run
File "master:/usr/lib/python3.12/site-packages/ansible/module_utils/common/respawn.py", line 39, in respawn_module
payload = _create_payload()
File "master:/usr/lib/python3.12/site-packages/ansible/module_utils/common/respawn.py", line 76, in _create_payload
module_fqn = sys.modules['main']._module_fqn
AttributeError: module 'main' has no attribute '_module_fqn'
module_stdout: ''
msg: |-
MODULE FAILURE
See stdout/stderr for the exact error
rc: 1
Beta Was this translation helpful? Give feedback.
All reactions