Provide a brief description of your issue here. For example:
During installation, on "openshift_ca" task, I'm having the following error:
TASK [openshift_ca : command] ********************************************************************
Thursday 23 May 2019 00:22:54 -0500 (0:00:00.044) 0:00:39.043 ***
changed: [master1.oshi39]
ERROR! template error while templating string: no filter named 'lib_utils_oo_collect'. String: {{ g_master_legacy_ca_result.files | default([]) | lib_utils_oo_collect('path') }}
ansible --versionIf you're operating from a git clone:
git describeIf you're running from playbooks installed via RPM
rpm -q openshift-ansiblePlace the output between the code block below:
VERSION INFORMATION HERE PLEASE
Installation succesfull.
Example command and output or error messages
It couldn't install succesfully Openshift Origin 3.9
Example command and output or error messages
For long output or logs, consider using a gist
Provide any additional information which may help us diagnose the
issue.
$ cat /etc/redhat-release)CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
CentOS Linux release 7.6.1810 (Core)
CentOS Linux release 7.6.1810 (Core)
cpe:/o:centos:centos:7
[OSEv3:vars]
ansible_user=root
openshift_deployment_type=origin
deployment_type=origin
openshift_release=v3.9
openshift_pkg_version=-3.9.0
openshift_image_tag=v3.9.0
openshift_service_catalog_image_version=v3.9.0
template_service_broker_image_version=v3.9.0
openshift_metrics_image_version="v3.9"
openshift_logging_image_version="v3.9"
openshift_logging_elasticsearch_proxy_image_version="v1.0.0"
osm_use_cockpit=true
openshift_metrics_install_metrics=True
openshift_logging_install_logging=True
openshift_portal_net=172.30.0.0/16
osm_cluster_network_cidr=10.128.0.0/14
osm_host_subnet_length=9
openshift_master_api_port=443
openshift_master_console_port=443
openshift_master_cluster_method=native
openshift_master_cluster_hostname=console-int.openshift.local
openshift_master_cluster_public_hostname=console.openshift.local
openshift_master_default_subdomain=apps.openshift.local
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]
openshift_master_htpasswd_users={'admin': '$apr1$Y7xqqalc$Mhtfi2EH5cwY6bLaFJWfm0', 'user1': '$apr1$HYdB7Vye$J9GFboUG/TIG3IYl0c4LV0'}
openshift_hosted_registry_storage_kind=nfs
openshift_hosted_registry_storage_access_modes=['ReadWriteMany']
openshift_hosted_registry_storage_host=zion.local
openshift_hosted_registry_storage_nfs_directory=/volume1/SHARED
openshift_hosted_registry_storage_volume_name=registry
openshift_hosted_registry_storage_volume_size=50Gi
containerized=True
os_sdn_network_plugin_name='redhat/openshift-ovs-multitenant'
openshift_disable_check=disk_availability,docker_storage,memory_availability,docker_image_availability
openshift_enable_unsupported_configurations=True
skip_sanity_checks=true
openshift_node_kubelet_args="{'eviction-hard': ['memory.available<100Mi'], 'minimum-container-ttl-duration': ['10s'], 'maximum-dead-containers-per-container': ['2'], 'maximum-dead-containers': ['5'], 'pods-per-core': ['10'], 'max-pods': ['25'], 'image-gc-high-threshold': ['80'], 'image-gc-low-threshold': ['60']}"
[OSEv3:vars]
[masters]
master1.oshi39:2204
[etcd]
master1.oshi39:2204
[nodes]
master1.oshi39:2204 openshift_node_labels="{'region': 'master'}"
infra1.oshi39:2205 openshift_node_labels="{'region': 'infra'}"
node1.oshi39:2206 openshift_node_labels="{'region': 'primary'}"
node2.oshi39:2207 openshift_node_labels="{'region': 'primary'}"
EXTRA INFORMATION GOES HERE
I'm also getting the same error using tag v3.11.0
TASK [openshift_ca : Create the master certificates if they do not already exist] ************************************************************************************************************************************************************
skipping: [10.0.76.177]
TASK [openshift_ca : command] ****************************************************************************************************************************************************************************************************************
changed: [10.0.76.177]
ERROR! template error while templating string: no filter named 'lib_utils_oo_collect'. String: {{ g_master_legacy_ca_result.files | default([]) | lib_utils_oo_collect('path') }}
Here is a more verbose trace
TASK [openshift_ca : command] ****************************************************************************************************************************************************************************************************************
task path: /Users/dabou/Code/snowdrop/openshift-infra/ansible/openshift-ansible/roles/openshift_ca/tasks/main.yml:153
<10.0.76.177> ESTABLISH SSH CONNECTION FOR USER: centos
<10.0.76.177> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/Users/dabou/Code/snowdrop/openshift-infra/ansible/inventory/id_openstack.rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="centos"' -o ConnectTimeout=10 -o ControlPath=/Users/dabou/.ansible/cp/4f3e6e3bd7 10.0.76.177 '/bin/sh -c '"'"'echo ~centos && sleep 0'"'"''
<10.0.76.177> (0, b'/home/centos\n', b'')
<10.0.76.177> ESTABLISH SSH CONNECTION FOR USER: centos
<10.0.76.177> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/Users/dabou/Code/snowdrop/openshift-infra/ansible/inventory/id_openstack.rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="centos"' -o ConnectTimeout=10 -o ControlPath=/Users/dabou/.ansible/cp/4f3e6e3bd7 10.0.76.177 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/centos/.ansible/tmp/ansible-tmp-1559025680.986325-56673251978326 `" && echo ansible-tmp-1559025680.986325-56673251978326="` echo /home/centos/.ansible/tmp/ansible-tmp-1559025680.986325-56673251978326 `" ) && sleep 0'"'"''
<10.0.76.177> (0, b'ansible-tmp-1559025680.986325-56673251978326=/home/centos/.ansible/tmp/ansible-tmp-1559025680.986325-56673251978326\n', b'')
Using module file /usr/local/Cellar/ansible/2.8.0/libexec/lib/python3.7/site-packages/ansible/modules/commands/command.py
<10.0.76.177> PUT /Users/dabou/.ansible/tmp/ansible-local-92329wpo4lipv/tmpcn7yw5jq TO /home/centos/.ansible/tmp/ansible-tmp-1559025680.986325-56673251978326/AnsiballZ_command.py
<10.0.76.177> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/Users/dabou/Code/snowdrop/openshift-infra/ansible/inventory/id_openstack.rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="centos"' -o ConnectTimeout=10 -o ControlPath=/Users/dabou/.ansible/cp/4f3e6e3bd7 '[10.0.76.177]'
<10.0.76.177> (0, b'sftp> put /Users/dabou/.ansible/tmp/ansible-local-92329wpo4lipv/tmpcn7yw5jq /home/centos/.ansible/tmp/ansible-tmp-1559025680.986325-56673251978326/AnsiballZ_command.py\n', b'')
<10.0.76.177> ESTABLISH SSH CONNECTION FOR USER: centos
<10.0.76.177> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/Users/dabou/Code/snowdrop/openshift-infra/ansible/inventory/id_openstack.rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="centos"' -o ConnectTimeout=10 -o ControlPath=/Users/dabou/.ansible/cp/4f3e6e3bd7 10.0.76.177 '/bin/sh -c '"'"'chmod u+x /home/centos/.ansible/tmp/ansible-tmp-1559025680.986325-56673251978326/ /home/centos/.ansible/tmp/ansible-tmp-1559025680.986325-56673251978326/AnsiballZ_command.py && sleep 0'"'"''
<10.0.76.177> (0, b'', b'')
<10.0.76.177> ESTABLISH SSH CONNECTION FOR USER: centos
<10.0.76.177> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/Users/dabou/Code/snowdrop/openshift-infra/ansible/inventory/id_openstack.rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="centos"' -o ConnectTimeout=10 -o ControlPath=/Users/dabou/.ansible/cp/4f3e6e3bd7 -tt 10.0.76.177 '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=ypjbqjtszedgcnwzgohsfjlzggkakvfm] password:" -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-ypjbqjtszedgcnwzgohsfjlzggkakvfm ; /usr/bin/python /home/centos/.ansible/tmp/ansible-tmp-1559025680.986325-56673251978326/AnsiballZ_command.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<10.0.76.177> (0, b'\r\n{"changed": true, "end": "2019-05-28 06:41:26.872547", "stdout": "/tmp/openshift-ansible-KqIiaI", "cmd": ["mktemp", "-d", "/tmp/openshift-ansible-XXXXXX"], "rc": 0, "start": "2019-05-28 06:41:26.869822", "stderr": "", "delta": "0:00:00.002725", "invocation": {"module_args": {"creates": null, "executable": null, "_uses_shell": false, "strip_empty_ends": true, "_raw_params": "mktemp -d /tmp/openshift-ansible-XXXXXX", "removes": null, "argv": null, "warn": true, "chdir": null, "stdin_add_newline": true, "stdin": null}}}\r\n', b'Shared connection to 10.0.76.177 closed.\r\n')
<10.0.76.177> ESTABLISH SSH CONNECTION FOR USER: centos
<10.0.76.177> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/Users/dabou/Code/snowdrop/openshift-infra/ansible/inventory/id_openstack.rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="centos"' -o ConnectTimeout=10 -o ControlPath=/Users/dabou/.ansible/cp/4f3e6e3bd7 10.0.76.177 '/bin/sh -c '"'"'rm -f -r /home/centos/.ansible/tmp/ansible-tmp-1559025680.986325-56673251978326/ > /dev/null 2>&1 && sleep 0'"'"''
<10.0.76.177> (0, b'', b'')
changed: [10.0.76.177] => {
"changed": true,
"cmd": [
"mktemp",
"-d",
"/tmp/openshift-ansible-XXXXXX"
],
"delta": "0:00:00.002725",
"end": "2019-05-28 06:41:26.872547",
"invocation": {
"module_args": {
"_raw_params": "mktemp -d /tmp/openshift-ansible-XXXXXX",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": true
}
},
"rc": 0,
"start": "2019-05-28 06:41:26.869822",
"stderr": "",
"stderr_lines": [],
"stdout": "/tmp/openshift-ansible-KqIiaI",
"stdout_lines": [
"/tmp/openshift-ansible-KqIiaI"
]
}
ERROR! template error while templating string: no filter named 'lib_utils_oo_collect'. String: {{ g_master_legacy_ca_result.files | default([]) | lib_utils_oo_collect('path') }}
I encountered this problem and it was caused by using an ansible version incompatible with the release version of openshift-ansible.
In the case of release-3.11 I was using ansible 2.8 instead of 2.6.
Try using the ansible version corresponding to your openshift-ansible release version.
Ansible 2.8+ will not be supported on versions of openshift-ansible below 3.11.
PR to support Ansible 2.8.1 on openshift-ansible release-3.11: https://github.com/openshift/openshift-ansible/pull/11325
Most helpful comment
I'm also getting the same error using tag
v3.11.0Here is a more verbose trace