splunk / splunk-platform-automator

Ansible framework providing a fast and simple way to spin up complex Splunk environments.
Apache License 2.0
117 stars 46 forks source link

Unexpected Exception, this is probably a bug: maximum recursion depth exceeded in cmp #3

Closed aleoliva closed 5 years ago

aleoliva commented 5 years ago

Hi Marco,

I face an error while creating a distributed Splunk environment. The error is on task [deployment_server : apply baseconfig app org_all_search_base] and using Splunkenizer version 1.2devel, e.g.

$ ansible-playbook ansible/deploy_site.yml
 [WARNING]: Could not match supplied host pattern, ignoring: role_universal_forwarder_windows

PLAY [apply common configurations] ***************************************************************************************************************************************

TASK [Gathering Facts] ***************************************************************************************************************************************************
ok: [splkT_cm]
ok: [splkT_idx2s1]
ok: [splkT_ds]
ok: [splkT_idx3s2]
ok: [splkT_idx1s1]
ok: [splkT_idx4s2]
ok: [splkT_sh1]
ok: [splkT_sh2]
ok: [splkT_sh3]
ok: [splkT_hf1]

[...]

TASK [deployment_server : apply baseconfig app org_all_search_base] ******************************************************************************************************
ERROR! Unexpected Exception, this is probably a bug: maximum recursion depth exceeded in cmp
to see the full traceback, use -vvv

Ansible version is:

$ ansible --version
ansible 2.4.2.0
  config file = /home/linux/Vagrant/Splunkenizer/ansible.cfg
  configured module search path = [u'/home/linux/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Oct 30 2018, 23:45:53) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]

The error is reproducible, additional details can be submitted if you need them.

splunkenizer commented 5 years ago

This is related to your Ansible version. I remember there was a bug with your version, when I was using it, back in time. This is why it is not listed as a supported version in the README.md. Please use a later version mentioned there.

splunkenizer commented 5 years ago

Related to Ansible Bug 33922