Skip to content

Commit d0fe5ab

Browse files
priteauyoctozepto
authored andcommitted
Fix monasca-thresh upgrade
Change Ib225d76076782d695c9387e1c2693bae9a4521d7 introduced a new upgrade task for monasca-thresh. Because the task is not restricted to the correct group, it fails while trying to stop monasca_thresh on hosts not running this container. Change-Id: I33c2c458a98145315b0de0c069f13b83f59622eb Closes-Bug: #1952408 (cherry picked from commit b06784e)
1 parent c80e021 commit d0fe5ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ansible/roles/monasca/tasks/upgrade.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
common_options: "{{ docker_common_options }}"
4949
name: "{{ monasca_services['monasca-thresh']['container_name'] }}"
5050
when:
51+
- inventory_hostname in groups['monasca-thresh']
5152
- inventory_hostname != groups['monasca-thresh']|first
5253

5354
- name: Flush handlers

0 commit comments

Comments
 (0)