Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1549894

Summary: encountered maximum recursion depth exceeded while calling a Python object when trying to install logging
Product: OpenShift Container Platform Reporter: Peter Ruan <pruan>
Component: InstallerAssignee: Scott Dodson <sdodson>
Status: CLOSED WONTFIX QA Contact: Johnny Liu <jialiu>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.7.1CC: aos-bugs, Infrastructure.Engineering, jokerman, mmccomas
Target Milestone: ---   
Target Release: 3.7.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-16 14:14:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
ansible playbook none

Description Peter Ruan 2018-02-28 01:07:45 UTC
Description of problem:

Version-Release number of the following components:
ansible-2.4.1.0-2.fc25.noarch
openshift-ansible git commit id  db4cdcd

oc v3.7.23
kubernetes v1.7.6+a08f5eeb62
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://172.16.120.62:8443
openshift v3.7.23
kubernetes v1.7.6+a08f5eeb62


How reproducible:
always

Steps to Reproduce:
1. ansible-playbook -i /tmp/tmp/install_inventory -vv /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/openshift-logging.yml

2.
3.

Actual results:
ASK [openshift_logging : include_role] *****************************************************************************************
task path: /usr/share/ansible/openshift-ansible/roles/openshift_logging/tasks/install_logging.yaml:311
Wednesday 28 February 2018  01:02:33 +0000 (0:00:00.058)       0:02:59.222 ****
Traceback (most recent call last):
  File "/usr/lib64/python2.7/multiprocessing/queues.py", line 268, in _feed
    send(obj)
RuntimeError: maximum recursion depth exceeded while calling a Python object

Expected results:

Additional info:
[OSEv3:children]
masters
etcd
nodes

[masters]
host-8-245-96.host.centralci.eng.rdu2.redhat.com openshift_public_hostname=host-8-245-96.host.centralci.eng.rdu2.redhat.com

[nodes]
host-8-245-96.host.centralci.eng.rdu2.redhat.com

[etcd]
host-8-245-96.host.centralci.eng.rdu2.redhat.com openshift_public_hostname=host-8-245-96.host.centralci.eng.rdu2.redhat.com

[OSEv3:vars]
ansible_ssh_user=root
ansible_ssh_private_key_file="/tmp/tmp/libra.pem"
deployment_type=openshift-enterprise

# Logging
openshift_logging_install_logging=true
openshift_logging_kibana_hostname=logs.apps.0228-q9x.qe.rhcloud.com
openshift_logging_kibana_ops_hostname=logs-ops.apps.0228-q9x.qe.rhcloud.com
public_master_url=https://host-8-245-96.host.centralci.eng.rdu2.redhat.com:8443
openshift_logging_image_prefix=brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/
openshift_logging_image_version=v3.7
openshift_logging_namespace=l3faa

# Extra_Logging
openshift_logging_use_ops=true
openshift_logging_elasticsearch_cpu_limit=300m
openshift_logging_elasticsearch_cpu_request=300m
openshift_logging_elasticsearch_memory_limit=512Mi
openshift_logging_es_cpu_limit=300m
openshift_logging_es_cpu_request=300m
openshift_logging_es_ops_cpu_limit=300m
openshift_logging_es_ops_cpu_request=300m
openshift_logging_es_memory_limit=512Mi
openshift_logging_es_ops_memory_limit=512Mi
openshift_logging_kibana_memory_limit=512Mi
openshift_logging_kibana_ops_memory_limit=512Mi

# Metrics
openshift_metrics_install_metrics=true
openshift_metrics_hawkular_hostname=metrics.apps.0228-q9x.qe.rhcloud.com
openshift_metrics_project=l3faa
openshift_metrics_image_prefix=brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/
openshift_metrics_image_version=v3.7

# Extra_Metrics

Comment 1 Scott Dodson 2018-02-28 02:14:11 UTC
Can you please test with ansible-2.4.3 as there are some relevant fixes in that release. Also we don't really support running the installer on an OS other than RHEL7 for OCP so we'd also want to verify that this problem exists when running the installer on RHEL7 before digging too much further into this.

Comment 2 sicpa gss 2018-03-12 12:45:50 UTC
Created attachment 1407173 [details]
ansible playbook

Comment 3 sicpa gss 2018-03-12 12:46:06 UTC
hello Scott 
i have encountered the same problem with the same playbook , i used ansible version 2.4.3 

ansible --version
ansible 2.4.3.0
  config file = /home/ocp-mgmt/git/sicpa_ocp/ansible.cfg
  configured module search path = [u'/home/ocp-mgmt/git/sicpa_ocp/openshift-ansible/library']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /bin/ansible
  python version = 2.7.5 (default, May  3 2017, 07:55:04) [GCC 4.8.5 20150623 (Red Hat 4.8.5-14)]
the difference with ansible 2.4.2 was  that the error is caught and the playbook is not left stuck in the middle 


Monday 12 March 2018  13:24:52 +0100 (0:00:00.890)       0:09:29.197 **********
ERROR! Unexpected Exception, this is probably a bug: maximum recursion depth exceeded
to see the full traceback, use -vvv
i have included the full stack

Comment 4 Scott Dodson 2018-03-12 14:17:26 UTC
sicpa gss,

Overall our recommendation for customers is that for any release prior to 3.9 they should use ansible-2.3.2 as shipped in the OCP channels. Can you try that please?

This bug is originally reported by our QE team as they're testing older releases with 2.4 as we try to fix bugs with those releases though at this point we're not likely to fix any more bugs using the unsupported version of ansible.