Secret generate fail with hostvars is undefined
When Kolla-kubernetes try to generate secret, it will found one file named ansible/group_vars/all.yml at kolla reporitory. Then try to render the file. There is one variable named tunnel_interface_addres which will access hostvars variable, but this variable is not exist at kubernetes orchestration engine. We should add condition statement which will determine whether orchestration engine is ansible. Co-Authored-By: Duong Ha-Quang <duonghq@vn.fujitsu.com> Change-Id: I998a7540de3dcae53acb73de79fb8a8e76cc4225 Closed-Bug: 1649247
This commit is contained in:
parent
b7e1d40030
commit
b719782d44
@ -119,7 +119,7 @@ cluster_interface: "{{ network_interface }}"
|
||||
tunnel_interface: "{{ network_interface }}"
|
||||
bifrost_network_interface: "{{ network_interface }}"
|
||||
dns_interface: "{{ network_interface }}"
|
||||
tunnel_interface_address: "{{ hostvars[inventory_hostname]['ansible_' + tunnel_interface]['ipv4']['address'] }}"
|
||||
tunnel_interface_address: "{{ hostvars[inventory_hostname]['ansible_' + tunnel_interface]['ipv4']['address'] if orchestration_engine == 'ANSIBLE' else '0.0.0.0' }}"
|
||||
|
||||
# Valid options are [ openvswitch, linuxbridge, sfc ]
|
||||
neutron_plugin_agent: "openvswitch"
|
||||
|
Loading…
Reference in New Issue
Block a user