Mark Goddard 6b0be5c5ba Remove recurse: yes for owner/perms on /etc/kolla
When kolla-ansible bootstrap-servers is run, it executes one of the
following two tasks:

- name: Ensure node_config_directory directory exists for user kolla
  file:
    path: "{{ node_config_directory }}"
    state: directory
    recurse: true
    owner: "{{ kolla_user }}"
    group: "{{ kolla_group }}"
    mode: "0755"
  become: True
  when: create_kolla_user | bool

- name: Ensure node_config_directory directory exists
  file:
    path: "{{ node_config_directory }}"
    state: directory
    recurse: true
    mode: "0755"
  become: True
  when: not create_kolla_user | bool

On the first run, normally node_config_directory (/etc/kolla/) doesn't
exist, so it is created with kolla:kolla ownership and 0755 permissions.

If we then run 'kolla-ansible deploy', config files are created for
containers in this directory, e.g. /etc/kolla/nova-compute/. Permissions
for those files should be set according to 'config_owner_user' and
'config_owner_group'.

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_owner_group', rather than
kolla:kolla, although that's a separate issue.

Change-Id: I24668914a9cedc94d5a6cb835648740ce9ce6e39
Closes-Bug: #1821599
2019-03-25 15:39:21 +00:00
..
2018-11-26 08:07:01 +00:00
2018-11-26 08:07:01 +00:00
2018-11-26 08:07:01 +00:00
2019-02-25 19:30:33 +01:00
2018-11-26 08:07:01 +00:00
2018-11-26 08:07:01 +00:00
2018-11-26 08:07:01 +00:00
2019-03-01 14:36:25 +00:00
2019-02-19 11:13:08 +00:00
2019-03-11 18:26:12 +00:00
2018-11-26 08:07:01 +00:00
2019-03-21 12:31:23 +00:00
2018-12-05 11:44:37 +00:00
2018-11-26 08:07:01 +00:00
2019-03-21 12:02:09 +01:00
2018-11-26 08:07:01 +00:00
2018-11-26 08:07:01 +00:00
2018-11-26 08:07:01 +00:00
2018-11-26 08:07:01 +00:00
2019-03-20 18:59:28 +00:00
2019-03-07 15:50:41 +01:00
2019-03-06 15:08:26 -05:00