Fix swift reconfigure

Reconfiguring Swift currently fails to restart containers if
configuration changes. This is because kolla_set_configs is executed in
the containers as the default swift user, which does not have permission
to access all necessary files.

This change uses the root user to execute the command instead, which
allows it to exit with the correct status of 1 if the config files
differ.

Change-Id: I2a2363c71430a7173bb5253662412ae5dba09654
This commit is contained in:
Mark Goddard 2019-03-20 18:59:28 +00:00
parent 06242ea22b
commit 5629b5aad9
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@
- include_tasks: config.yml
- name: Check the configs
command: docker exec {{ item.name }} /usr/local/bin/kolla_set_configs --check
command: docker exec -u root {{ item.name }} /usr/local/bin/kolla_set_configs --check
changed_when: false
failed_when: false
register: check_results