diff --git a/infrastructure-playbooks/cephadm-adopt.yml b/infrastructure-playbooks/cephadm-adopt.yml index de3c3ca48..24ac4cb0e 100644 --- a/infrastructure-playbooks/cephadm-adopt.yml +++ b/infrastructure-playbooks/cephadm-adopt.yml @@ -424,7 +424,7 @@ - name: get balancer module status command: "{{ ceph_cmd }} --cluster {{ cluster }} balancer status -f json" - register: balancer_status + register: balancer_status_adopt run_once: true delegate_to: "{{ groups[mon_group_name][0] }}" changed_when: false @@ -441,7 +441,7 @@ run_once: true delegate_to: "{{ groups[mon_group_name][0] }}" changed_when: false - when: (balancer_status.stdout | from_json)['active'] | bool + when: (balancer_status_adopt.stdout | from_json)['active'] | bool - name: disable pg autoscale on pools ceph_pool: @@ -588,7 +588,7 @@ run_once: true delegate_to: "{{ groups[mon_group_name][0] }}" changed_when: false - when: (balancer_status.stdout | from_json)['active'] | bool + when: (balancer_status_adopt.stdout | from_json)['active'] | bool - name: redeploy mds daemons hosts: "{{ mds_group_name|default('mdss') }}" diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index ad9011a81..6315fbd05 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -411,7 +411,7 @@ - name: get balancer module status command: "{{ ceph_cmd }} --cluster {{ cluster }} balancer status -f json" - register: balancer_status + register: balancer_status_update changed_when: false check_mode: false @@ -423,7 +423,7 @@ - name: disable balancer command: "{{ ceph_cmd }} --cluster {{ cluster }} balancer off" changed_when: false - when: (balancer_status.stdout | from_json)['active'] | bool + when: (balancer_status_update.stdout | from_json)['active'] | bool - name: disable pg autoscale on pools ceph_pool: @@ -574,7 +574,7 @@ - name: re-enable balancer command: "{{ ceph_cmd }} --cluster {{ cluster }} balancer on" changed_when: false - when: (balancer_status.stdout | from_json)['active'] | bool + when: (balancer_status_update.stdout | from_json)['active'] | bool - name: upgrade ceph mdss cluster, deactivate all rank > 0 hosts: "{{ mon_group_name | default('mons') }}[0]" diff --git a/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml b/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml index 2b4b289e3..e43647216 100644 --- a/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml +++ b/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml @@ -223,7 +223,7 @@ - name: get balancer module status command: "{{ ceph_cmd }} --cluster {{ cluster }} balancer status -f json" - register: balancer_status + register: balancer_status_switch changed_when: false check_mode: false @@ -235,7 +235,7 @@ - name: disable balancer command: "{{ ceph_cmd }} --cluster {{ cluster }} balancer off" changed_when: false - when: (balancer_status.stdout | from_json)['active'] | bool + when: (balancer_status_switch.stdout | from_json)['active'] | bool - name: disable pg autoscale on pools ceph_pool: @@ -429,7 +429,7 @@ - name: re-enable balancer command: "{{ ceph_cmd }} --cluster {{ cluster }} balancer on" changed_when: false - when: (balancer_status.stdout | from_json)['active'] | bool + when: (balancer_status_switch.stdout | from_json)['active'] | bool - name: switching from non-containerized to containerized ceph mds