Bootstrap-servers sets owner and permissions recursively to kolla:kolla in /etc/kolla
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
Fix Released
|
High
|
Mark Goddard | ||
Pike |
Fix Committed
|
Undecided
|
Unassigned | ||
Queens |
Fix Committed
|
Undecided
|
Unassigned | ||
Rocky |
Fix Committed
|
Undecided
|
Unassigned | ||
Stein |
Fix Released
|
High
|
Mark Goddard |
Bug Description
When kolla-ansible bootstrap-servers is run, it executes one of the following two tasks:
- name: Ensure node_config_
file:
path: "{{ node_config_
state: directory
recurse: true
owner: "{{ kolla_user }}"
group: "{{ kolla_group }}"
mode: "0755"
become: True
when: create_kolla_user | bool
- name: Ensure node_config_
file:
path: "{{ node_config_
state: directory
recurse: true
mode: "0755"
become: True
when: not create_kolla_user | bool
On the first run, normally node_config_
If we then run 'kolla-ansible deploy', config files are created for containers in this directory, e.g. /etc/kolla/
If at some point we again run kolla-ansible bootstrap-servers, it will recursively set the ownership and permissions of all files in /etc/kolla to kolla:kolla / 0755.
The solution is to change bootstrap-servers to not set the owner and permissions recursively. It's also arguable that /etc/kolla should be owned by 'config_owner_user' and 'config_
Changed in kolla-ansible: | |
assignee: | nobody → Mark Goddard (mgoddard) |
importance: | Undecided → High |
Changed in kolla-ansible: | |
status: | In Progress → Fix Committed |
status: | Fix Committed → In Progress |
Fix proposed to branch: master /review. openstack. org/647514
Review: https:/