Skip to content

Commit c44b232

Browse files
committed
[ceph_migrate] add a task to remove faulty mgr
Signed-off-by: Roberto Alfieri <[email protected]>
1 parent f7f199d commit c44b232

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/roles/ceph_migrate/tasks/post.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,19 @@
1111
vars:
1212
shell_header: "set -euo pipefail"
1313
when: ceph_daemons_layout.rgw | default(true) | bool
14+
15+
- name: Remove faulty mgr
16+
delegate_to: "{{ groups['ComputeHCI'][0] | default(inventory_hostname) }}"
17+
when:
18+
- groups['ComputeHCI'] is defined
19+
- groups['ComputeHCI'] | length > 0
20+
- ceph is defined
21+
- ceph.health.status is defined
22+
- ceph.health.status != 'HEALTH_OK'
23+
block:
24+
- name: Include fail_mgr tasks
25+
ansible.builtin.include_tasks: fail_mgr.yaml
26+
vars:
27+
ceph_config_home: /etc/ceph
28+
ceph_fsid: "{{ mon_dump.fsid }}"
29+
ceph_cluster: ceph

0 commit comments

Comments
 (0)