Skip to content

Commit

Permalink
rolling_update: fix rbd-mirror play
Browse files Browse the repository at this point in the history
There's no service to stop/mask when the node being upgraded is
a 'primary node' only (1 way replication).

Signed-off-by: Guillaume Abrioux <[email protected]>
  • Loading branch information
guits committed Aug 3, 2022
1 parent 50b7a12 commit 82e0ae7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions infrastructure-playbooks/rolling_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -851,12 +851,18 @@
become: True
gather_facts: false
tasks:
- name: check for ceph rbd mirror services
command: systemctl show --no-pager --property=Id --state=enabled ceph-rbd-mirror@* # noqa 303
changed_when: false
register: rbdmirror_services

- name: stop ceph rbd mirror
systemd:
name: "ceph-rbd-mirror@rbd-mirror.{{ ansible_facts['hostname'] }}"
service:
name: "{{ item.split('=')[1] }}"
state: stopped
enabled: no
masked: yes
loop: "{{ rbdmirror_services.stdout_lines }}"

- import_role:
name: ceph-defaults
Expand Down

0 comments on commit 82e0ae7

Please sign in to comment.