Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maximum recursion depth exceeded #57

Open
imp1sh opened this issue Apr 9, 2024 · 0 comments
Open

maximum recursion depth exceeded #57

imp1sh opened this issue Apr 9, 2024 · 0 comments

Comments

@imp1sh
Copy link

imp1sh commented Apr 9, 2024

I'm on Ansible 8.7.0 with commscope.icx collection 1.0.5.
This is my sample playbook:

---
- hosts: 7250.example.com
  collections:
   - commscope.icx
  connection: network_cli
  gather_facts: no
  vars:
    ansible_become: true
    ansible_become_method: enable
  tasks:
  - name: Configure top level configuration
    community.network.icx_config:
      lines: hostname {{ inventory_hostname }}

When I run the playbook I get this:

╰─$ ansible-playbook playbooks/icx3.yml --flush-cache --ask-pass -u super                                               130 ↵
SSH password: 

[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details

PLAY [7250.example.com] ********************************************************************************************************

TASK [Configure top level configuration] *************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: RecursionError: maximum recur
sion depth exceeded
fatal: [7250.example.com]: FAILED! => {"msg": "Unexpected failure during module execution: maximum recursion depth exceeded", "s
tdout": ""}

Here's the debug version

task path: /home/jochen/ansible/playbooks/icx3.yml:11
redirecting (type: become) ansible.builtin.enable to ansible.netcommon.enable
The full traceback is:
Traceback (most recent call last):
  File "/home/jochen/env/ansiblejochen/lib/python3.11/site-packages/ansible/executor/task_executor.py", line 165, in run
    res = self._execute()
          ^^^^^^^^^^^^^^^
  File "/home/jochen/env/ansiblejochen/lib/python3.11/site-packages/ansible/executor/task_executor.py", line 608, in _execute
    socket_path = start_connection(self._play_context, options, self._task._uuid)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jochen/env/ansiblejochen/lib/python3.11/site-packages/ansible/executor/task_executor.py", line 1230, in start_co
nnection
    write_to_file_descriptor(master, options)
  File "/home/jochen/env/ansiblejochen/lib/python3.11/site-packages/ansible/module_utils/connection.py", line 58, in write_to_
file_descriptor
    src = cPickle.dumps(obj, protocol=0)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/copyreg.py", line 77, in _reduce_ex
    state = base(self)
            ^^^^^^^^^^
RecursionError: maximum recursion depth exceeded
fatal: [7250.example.com]: FAILED! => {
    "msg": "Unexpected failure during module execution: maximum recursion depth exceeded",
    "stdout": ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant