From: Teoman ONAY Date: Wed, 2 Oct 2024 14:43:39 +0000 (+0200) Subject: cephadm-adopt: Alertmanager placement count missing X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fheads%2Fmergify%2Fbp%2Fstable-8.0%2Fpr-7613;p=ceph-ansible.git cephadm-adopt: Alertmanager placement count missing Regression from #7576. Alertmanager placement count was missing after migration to ceph_orch_apply module Signed-off-by: Teoman ONAY (cherry picked from commit 31be49506118ece75371d0c86af794caee8bc051) --- diff --git a/infrastructure-playbooks/cephadm-adopt.yml b/infrastructure-playbooks/cephadm-adopt.yml index 2ecf68dbd..ebdd310e2 100644 --- a/infrastructure-playbooks/cephadm-adopt.yml +++ b/infrastructure-playbooks/cephadm-adopt.yml @@ -1475,7 +1475,7 @@ CEPHADM_IMAGE: '{{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}' - name: With dashboard enabled - when: dashboard_enabled | bool + when: dashboard_enabled | bool and groups.get(monitoring_group_name, []) | length > 0 block: - name: Update the placement of alertmanager hosts ceph_orch_apply: @@ -1485,6 +1485,7 @@ service_id: "{{ ansible_facts['hostname'] }}" placement: label: "{{ monitoring_group_name }}" + count: "{{ groups.get(monitoring_group_name, []) | length }}" {% if grafana_server_addr is defined %} networks: - {{ grafana_server_addr }}