From 7b02afd3ce1ddff3be8e62e88dd7528541cbebca Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Wed, 25 May 2022 16:04:40 +0200 Subject: [PATCH] Sync rings to all swift hosts to build_files In previous patch [1] I wrongly assumed that there's no reason to have /etc/swift/ring_build_files/ on all hosts. However, there's another logic in the role, that assumes having these files and verifying md5sum of them. As an easy bugfix, we're returning sync to ring_build_files until we change logic. It's also easily backportable. [1] https://review.opendev.org/c/openstack/openstack-ansible-os_swift/+/765354 Change-Id: If0e686352e08379027508c2939fae00db6ae6cb8 Closes-Bug: #1973045 --- tasks/swift_rings_distribute.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/swift_rings_distribute.yml b/tasks/swift_rings_distribute.yml index d738f298..e5b95e82 100644 --- a/tasks/swift_rings_distribute.yml +++ b/tasks/swift_rings_distribute.yml @@ -23,5 +23,8 @@ - name: Upload swift rings synchronize: src: "{{ lookup('env', 'OSA_CONFIG_DIR') }}/ring_build_files/" - dest: /etc/swift/ + dest: "{{ item }}" mode: push + with_items: + - /etc/swift/ + - /etc/swift/ring_build_files/