Running logging playbook fails with "unicode object has no attribute iteritems" in OCP 3.11

Solution In Progress - Updated -

Issue

  • Error in nodeselector during configuration of EFK logging using variables through CLI
ansible-playbook -i inventory2 /usr/share/ansible/openshift-ansible/playbooks/openshift-logging/config.yml \
-e openshift_logging_install_logging=true \
-e openshift_logging_es_nodeselector={"node-role.kubernetes.io/infra":"true"} \
-e openshift_logging_fluentd_nodeselector={"node-role.kubernetes.io/infra":"true"} \
-e openshift_logging_curator_nodeselector={"node-role.kubernetes.io/infra":"true"} \
-e openshift_logging_kibana_nodeselector={"node-role.kubernetes.io/infra":"true"} \
-e openshift_logging_es_pvc_dynamic=true \
-e openshift_logging_es_pvc_storage_class_name=storage-class

Output:

FAILED! => {"msg": "An unhandled exception occurred while templating '{{ openshift_logging_es_nodeselector | map_to_pairs }}'. Error was a <type 'exceptions.AttributeError'>, original message: 'unicode' object has no attribute 'iteritems'"}

Environment

  • Red Hat OpenShift Container Platform (OCP) 3.11

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content