You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was working on deploying a openshift 4.1 cluster on RHEV utilizing this Ansible playbook. As I was going through the setup and running the playbook I ran into a few issues. 1st on the task to combine mac /hostname/ip into a dictionary it runs into a templating error. Here is the traceback:
fatal: [localhost]: FAILED! => {"msg": "Unexpected templating type error occurre d on ({{\n host_mac_list | default([]) +\n [\n {\n 'name': item.it em,\n 'mac': item.ansible_facts.ovirt_nics[0].mac.address,\n ' ip': hostvars[item.item]['ip']\n }\n ]\n}}): coercing to Unicode: need strin g or buffer, list found"}
Here is the portion of the code in roles/rhv/tasks/main.yaml where it is getting an error:
I temporarily created a fix where I messed around with the variables and got the ip and hostname to be saved correctly but the mac address is not so I worked around that and set a static value for now. Here is my current configuration.
Hi,
I was working on deploying a openshift 4.1 cluster on RHEV utilizing this Ansible playbook. As I was going through the setup and running the playbook I ran into a few issues. 1st on the task to combine mac /hostname/ip into a dictionary it runs into a templating error. Here is the traceback:
fatal: [localhost]: FAILED! => {"msg": "Unexpected templating type error occurre d on ({{\n host_mac_list | default([]) +\n [\n {\n 'name': item.it em,\n 'mac': item.ansible_facts.ovirt_nics[0].mac.address,\n ' ip': hostvars[item.item]['ip']\n }\n ]\n}}): coercing to Unicode: need strin g or buffer, list found"}
Here is the portion of the code in roles/rhv/tasks/main.yaml where it is getting an error:
I temporarily created a fix where I messed around with the variables and got the ip and hostname to be saved correctly but the mac address is not so I worked around that and set a static value for now. Here is my current configuration.
Any help would be appreciated
Thanks,
Yajan
The text was updated successfully, but these errors were encountered: