From 8de9d5368180f733d5ea55b36e152050137095d8 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Tue, 15 Feb 2022 15:11:23 +0000 Subject: [PATCH] Fix custom config idempotence When some custom config files are used, generation of local configuration for Kolla Ansible is not idempotent. This happens because an executable permission is applied recursively in a directory, then reverted on regular files. Change-Id: I8cc9531570b76a8282a95c4036324e9d1025d7cb --- ansible/roles/kolla-openstack/tasks/config.yml | 1 - releasenotes/notes/config-idemoptence-37846db82ecd9f43.yaml | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/config-idemoptence-37846db82ecd9f43.yaml diff --git a/ansible/roles/kolla-openstack/tasks/config.yml b/ansible/roles/kolla-openstack/tasks/config.yml index 5123bcda0..2e0a37992 100644 --- a/ansible/roles/kolla-openstack/tasks/config.yml +++ b/ansible/roles/kolla-openstack/tasks/config.yml @@ -91,7 +91,6 @@ - name: Ensure extra configuration parent directories are present file: path: "{{ item.0.item.dest }}/{{ item.1.path | relpath(item.0.item.src) | dirname }}" - recurse: true state: directory mode: 0750 with_subelements: diff --git a/releasenotes/notes/config-idemoptence-37846db82ecd9f43.yaml b/releasenotes/notes/config-idemoptence-37846db82ecd9f43.yaml new file mode 100644 index 000000000..108343502 --- /dev/null +++ b/releasenotes/notes/config-idemoptence-37846db82ecd9f43.yaml @@ -0,0 +1,4 @@ +fixes: + - | + Fixes an issue with idempotence of local Kolla Ansible configuration + generation.