Skip to content
Snippets Groups Projects
Commit b719782d authored by Chung Chih, Hung's avatar Chung Chih, Hung Committed by Duong Ha-Quang
Browse files

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: default avatarDuong Ha-Quang <duonghq@vn.fujitsu.com>

Change-Id: I998a7540de3dcae53acb73de79fb8a8e76cc4225
Closed-Bug: 1649247
parent b7e1d400
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment