If the role_networks is unset, the "Set ssh_known_hosts fact" fails like:
TASK [tripleo-ssh-known-hosts : groups var] *******************************************************************************************************************
ok: [minion] => {
"groups['overcloud']": [
"minion"
]
}
TASK [tripleo-ssh-known-hosts : enabled_networks] *************************************************************************************************************
ok: [minion] => {
"enabled_networks": [
"External"
]
}
TASK [tripleo-ssh-known-hosts : role_networks] ****************************************************************************************************************
ok: [minion] => {
"role_networks": null
}
TASK [tripleo-ssh-known-hosts : Set ssh_known_hosts fact] *****************************************************************************************************
fatal: [minion]: FAILED! => {"msg": "Unexpected templating type error occurred on ({%- for host in groups['overcloud'] | intersect(play_hosts) %}\n[{{ ctlplane_ip }}]*,[{{ host }}.{{ cloud_domain }}]*,[{{ host }}]*{%- if enabled_networks | length > 0 %},{% endif %}\n{%- for network in enabled_networks | default([]) %}\n{%- if network in role_networks %}\n[{{ hostvars[host][networks[network]['name'] ~ '_ip'] }}]*,[{{ host }}.{{ networks[network]['name'] }}]*,{% if 1 %}{% endif %}\n[{{ host }}.{{ networks[network]['name'] }}.{{ cloud_domain }}]*{% if not loop.last %},{% endif %}\n{%- endif -%}\n{%- endfor -%}\n{{ ' ssh-rsa ' ~ hostvars[host]['ansible_ssh_host_key_rsa_public'] }}\n{% endfor %}): argument of type 'NoneType' is not iterable"}
Fix proposed to branch: master /review. opendev. org/672326
Review: https:/