Browse Source

[QUEENS-ONLY] Make ceph mons consistent with their systemd unit

This change is required to recover from an update scenario
that fails because of the bug:

Closes-Bug: #1897240
Change-Id: I1ea5a80b482e7a4f1147abb74d5357b60a142daa
changes/36/753636/11
Francesco Pantano 10 months ago
committed by Giulio Fidente
parent
commit
9edeaaff3b
  1. 13
      docker/services/ceph-ansible/ceph-mon.yaml

13
docker/services/ceph-ansible/ceph-mon.yaml

@ -86,3 +86,16 @@ outputs:
- {get_attr: [CephBase, role_data, config_settings, ceph_common_ansible_vars]}
- monitor_secret: {get_param: CephMonKey}
admin_secret: {get_param: CephAdminKey}
update_tasks:
- block:
- name: Double check the mon systemd unit is not consistent with the current mon
shell: "systemctl is-active ceph-mon@*"
register: ceph_mon_status
ignore_errors: true
- name: Stop mons to make them consistent with systemd
shell: "docker stop ceph-mon-{{ ansible_hostname }}"
when:
- ceph_mon_status.rc != 0
tags: common
when:
- step|int == 3
Loading…
Cancel
Save