kolla-ansible reconfigure fails when fernet is used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Fix Released
|
Critical
|
t.goto | ||
Newton |
Fix Released
|
Critical
|
t.goto |
Bug Description
Hello.
I'm using kolla master on CentOS and found Reconfigure does not work when fernet is used as token.
Here's the ansible log.
http://
I think culprit lies on "Add fernet related components to variable if fernet is enabled" task in keystone/
You can't set a variable using newly created variable in same task.
I checked it in ansible 2.1.2.0 with following test playbook.
-------
- name: set one variable first
set_fact:
first_fact:
- { name: keystone, group: keystone }
- name: set new varialbe and simultaneously set it to another variable
set_fact:
new_fact:
- { name: keystone_fernet, group: keystone }
- { name: keystone_ssh, group: keystone }
another_fact: "{{ first_fact + new_fact }}"
- name: debug here
debug: var=another_fact
-------
TASK [set_fact_test : set new varialbe and simultaneously set it to another variable] ***
fatal: [localhost]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'new_fact' is undefined\n\nThe error appears to have been in '/home/
-------
So, we will need to separate this task.
Changed in kolla: | |
assignee: | nobody → Tomoya Goto (t.goto) |
Changed in kolla: | |
milestone: | none → ocata-1 |
Fix proposed to branch: master /review. openstack. org/390178
Review: https:/