-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make mon redeploy more solid and add nfs and log dump
This patch does a few things: 1. it makes the mon daemon delete and redeploy more solid 2. it adds a post.yaml plugged into the main playbook: right now it only contains log dump, and ceph_load.yaml is reused for this purpose 3. it adds a wait() after each daemon migration 4. it makes drain.yaml more solid and removes most of the ignore_errors previously set 5. it adds nfs.yaml that can be called to deploy a ceph_nfs cluster during the manila migration. Signed-off-by: Francesco Pantano <[email protected]>
- Loading branch information
Showing
10 changed files
with
173 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
[defaults] | ||
callback_whitelist = profile_json,profile_tasks | ||
roles_path = ./roles | ||
module_utils=./plugins/module_utils | ||
library=./plugins/modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Get a fresh ceph_cli | ||
- name: Get ceph_cli | ||
ansible.builtin.include_tasks: ceph_cli.yaml | ||
vars: | ||
ceph_fsid: "{{ mon_dump.fsid }}" | ||
ceph_cluster: ceph | ||
|
||
# Add nfs labels to the target nodes where the cluster should be deployed | ||
- name: NFS - Setup NFS label to the target node | ||
ansible.builtin.include_tasks: labels.yaml | ||
vars: | ||
nodes: "{{ hostmap.keys() | difference(decomm_nodes) }}" | ||
act: "add" | ||
labels: | ||
- "nfs" | ||
# waiting for https://github.com/ceph/ceph/pull/53108 | ||
# to appear in the next Ceph container build | ||
# disabling this task by default for now | ||
- name: Create NFS Ganesha Cluster | ||
become: true | ||
ansible.builtin.command: | | ||
{{ ceph_cli }} nfs cluster create {{ cephfs_name }} \ | ||
--ingress --virtual-ip={{ ceph_nfs_vip }} \ | ||
--ingress-mode=haproxy-protocol '--placement=label=nfs' | ||
changed_when: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Dump logs of the Ceph cluster daemons | ||
- name: POST - Dump logs | ||
ansible.builtin.include_tasks: ceph_load.yaml | ||
vars: | ||
dump: true | ||
tags: | ||
- ceph_dump |
Oops, something went wrong.