Secret generate fail with hostvars is undefined for kubernetes orchestration engine
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
Fix Released
|
Critical
|
Duong Ha-Quang | ||
kolla-kubernetes |
Confirmed
|
Critical
|
Unassigned |
Bug Description
My kolla-ansible and kolla-kubernetes code is upstream.
When I try to generate kubernetes secret, it raise following errors.
> tools/secret-
File "tools/
nsname = KollaKubernetes
File "/home/
r = JinjaUtils.
File "/home/
rendered_
File "/home/
rendered_
File "/home/
return self.environmen
File "/home/
reraise(
File "<template>", line 477, in top-level template code
File "/home/
return obj[argument]
jinja2.
kolla-kubernetes will found one file named ansible/
Then try to render the file.
There is one variable named tunnel_
tunnel_
This variable will not exist if we using kuberentes orchestration engine.
So there are two solution to fix this issue.
One is override the variable at globals.yml file or kolla-kuberenet
The other is add condition statement which will determine whether orchestration engine is ansible at kolla-ansible's code.
I prefer we should add condition statement at kolla-ansible project.
Because of api_interface_
Changed in kolla-kubernetes: | |
assignee: | nobody → Chung Chih, Hung (lyanchih) |
assignee: | Chung Chih, Hung (lyanchih) → nobody |
Changed in kolla-ansible: | |
assignee: | nobody → Chung Chih, Hung (lyanchih) |
summary: |
- Secret generate fail with hostvars is undefined + Secret generate fail with hostvars is undefined for kubernetes + orchestration engine |
Changed in kolla-ansible: | |
status: | New → In Progress |
Changed in kolla-ansible: | |
milestone: | none → ocata-3 |
importance: | Undecided → Critical |
Changed in kolla-kubernetes: | |
status: | New → Confirmed |
importance: | Undecided → Critical |
milestone: | none → 0.5.0 |
Changed in kolla-ansible: | |
milestone: | ocata-3 → ocata-rc1 |
Changed in kolla-kubernetes: | |
milestone: | 0.5.0 → 0.6.0 |
Changed in kolla-ansible: | |
assignee: | Chung Chih, Hung (lyanchih) → Duong Ha-Quang (duonghq) |
Changed in kolla-ansible: | |
milestone: | ocata-rc1 → ocata-rc2 |
milestone: | ocata-rc2 → pike-1 |
Changed in kolla-ansible: | |
status: | In Progress → Fix Released |
Changed in kolla-kubernetes: | |
milestone: | 0.6.0 → 0.7.0 |
Fix proposed to branch: master /review. openstack. org/417331
Review: https:/