diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index bbe783c619..ed11ed1549 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -419,7 +419,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 @@ -431,7 +431,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 command: "{{ ceph_cmd }} --cluster {{ cluster }} osd pool set {{ item.name }} pg_autoscale_mode off" @@ -569,7 +569,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: set_fact container_exec_cmd_osd set_fact: 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 d7e8d48b72..46e30c5b8c 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 @@ -222,7 +222,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 @@ -234,7 +234,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 command: "{{ ceph_cmd }} --cluster {{ cluster }} osd pool set {{ item.name }} pg_autoscale_mode off" @@ -423,7 +423,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